Changeset 3052 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
- Timestamp:
- 10/21/08 03:55:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3042 r3052 402 402 void Bvh::UpdateDistance(BvhNode *node) const 403 403 { 404 // use distance to center rather than the distance to the near plane because 405 // otherwise problems with big object penetrating the near plane 406 // (e.g., big objects in the distance which are then always visible) 407 // especially annoying is this problem when using the frustum 408 // fitting on the visible objects for shadow mapping 409 404 410 //node->mDistance = node->GetBox()GetMinDistance(sNearPlane); 405 411 node->mDistance = sNearPlane.Distance(node->GetBox().Center());
Note: See TracChangeset
for help on using the changeset viewer.