Added support for occlusion of holes in occluders, and cleaned up the

interface to ShadowVolumeOccluders.
This commit is contained in:
Robert Osfield
2002-06-19 10:19:10 +00:00
parent b3c26d5634
commit 21beb236d2
5 changed files with 61 additions and 8 deletions

View File

@@ -60,8 +60,22 @@ class SG_EXPORT ShadowVolumeOccluder
inline NodePath& getNodePath() { return _nodePath; }
inline const NodePath& getNodePath() const { return _nodePath; }
/** get the volume of the occluder minus its holes, in eye coords, the volume is normalized by dividing by
* the volume of the view frustum in eye coords.*/
float getVolume() const { return _volume; }
/** return the occluder polytope.*/
Polytope& getOccluder() { return _occluderVolume; }
/** return the const occluder polytope.*/
const Polytope& getOccluder() const { return _occluderVolume; }
/** return the list of holes.*/
HoleList& getHoleList() { return _holeList; }
/** return the const list of holes.*/
const HoleList& getHoleList() const { return _holeList; }
/** return true if the specified vertex list is contaned entirely
@@ -88,7 +102,7 @@ class SG_EXPORT ShadowVolumeOccluder
}
// protected:
protected:
float _volume;
NodePath _nodePath;