Ignore:
Timestamp:
10/21/08 03:55:43 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp

    r3042 r3052  
    402402void Bvh::UpdateDistance(BvhNode *node) const 
    403403{ 
     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 
    404410        //node->mDistance = node->GetBox()GetMinDistance(sNearPlane); 
    405411        node->mDistance = sNearPlane.Distance(node->GetBox().Center()); 
Note: See TracChangeset for help on using the changeset viewer.