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

@@ -390,7 +390,8 @@ bool ShadowVolumeOccluder::contains(const std::vector<Vec3>& vertices)
itr!=_holeList.end();
++itr)
{
if (itr->contains(vertices)) return false;
PointList points;
if (clip(itr->getPlaneList(),vertices,points)>=3) return false;
}
return true;
}