From: James W. W. <jww...@us...> - 2007-06-26 19:13:20
|
Update of /cvsroot/quesa/quesa/Development/Source/Renderers/OpenGL In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20928/quesa/Development/Source/Renderers/OpenGL Modified Files: QORenderer.cpp Log Message: In shadow phase, do not do view frustum culling, because an object that is out of view may cast a shadow that is visible. Index: QORenderer.cpp =================================================================== RCS file: /cvsroot/quesa/quesa/Development/Source/Renderers/OpenGL/QORenderer.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** QORenderer.cpp 24 Jun 2007 01:15:11 -0000 1.8 --- QORenderer.cpp 26 Jun 2007 19:13:15 -0000 1.9 *************** *** 168,173 **** const TQ3BoundingBox& inBounds ) { bool isVisible = ! (Q3View_IsBoundingBoxVisible( inView, &inBounds ) == kQ3True) && mLights.IsLit( inBounds ); --- 168,179 ---- const TQ3BoundingBox& inBounds ) { + // An object that is not visible may cast a shadow that is visible. + // Therefore, when in a shadowing phase, we do not do a bounding box + // visibility test. bool isVisible = ! ( ! mLights.IsShadowPhase() || ! (Q3View_IsBoundingBoxVisible( inView, &inBounds ) == kQ3True) ! ) && mLights.IsLit( inBounds ); |