Ignore:
Timestamp:
01/19/06 15:30:44 (18 years ago)
Author:
bittner
Message:

debug version looking for glrenderer bug...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp

    r554 r556  
    7979 
    8080 
    81   if (!mDetectEmptyViewSpace) 
    82         ray.mFlags &= ~Ray::CULL_BACKFACES; 
    83    
     81        if (!mDetectEmptyViewSpace) 
     82          ray.mFlags &= ~Ray::CULL_BACKFACES; 
     83        else 
     84          ray.mFlags |= Ray::CULL_BACKFACES; 
     85 
    8486  if (mKdTree->CastRay(ray)) { 
    8587        objectA = ray.intersections[0].mObject; 
     
    103105  if (!mDetectEmptyViewSpace) 
    104106        ray.mFlags &= ~Ray::CULL_BACKFACES; 
     107                                                           else 
     108                                                                 ray.mFlags |= Ray::CULL_BACKFACES; 
    105109 
    106110  if (mKdTree->CastRay(ray)) { 
     
    120124        // cast again to ensure that there is no objectA 
    121125        SetupRay(ray, pointB, direction); 
     126          ray.mFlags |= Ray::CULL_BACKFACES; 
    122127        if (mKdTree->CastRay(ray)) { 
    123128          objectA = ray.intersections[0].mObject; 
Note: See TracChangeset for help on using the changeset viewer.