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/ViewCellsManager.cpp

    r555 r556  
    458458                        bool added = 
    459459                        viewcell->GetPvs().AddSample(ray.mTerminationObject, 
    460                                                                                         contribution 
    461                                                                                         ); 
     460                                                                                 ray.mPdf, 
     461                                                                                 contribution 
     462                                                                                 ); 
    462463                        if (added) 
    463464                        ray.mPvsContribution++; 
     
    473474                        float contribution; 
    474475                        if (viewcell->GetPvs().GetSampleContribution(ray.mTerminationObject, 
    475                                                                                                                 contribution 
    476                                                                                                                 )) 
    477                         ray.mPvsContribution++; 
     476                                                                                                                 ray.mPdf, 
     477                                                                                                                 contribution 
     478                                                                                                                 )) 
     479                          ray.mPvsContribution++; 
    478480                        ray.mRelativePvsContribution += contribution; 
    479481                } 
    480  
     482                 
    481483                for (it = viewcells.begin(); it != viewcells.end(); ++it) { 
    482                         ViewCell *viewcell = *it; 
    483                         // if ray not outside of view space 
    484                         viewcell->GetPvs().AddSample(ray.mTerminationObject); 
     484                  ViewCell *viewcell = *it; 
     485                  // if ray not outside of view space 
     486                  viewcell->GetPvs().AddSample(ray.mTerminationObject, ray.mPdf); 
    485487                } 
    486488        } 
Note: See TracChangeset for help on using the changeset viewer.