- Timestamp:
- 01/19/06 15:30:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r555 r556 458 458 bool added = 459 459 viewcell->GetPvs().AddSample(ray.mTerminationObject, 460 contribution 461 ); 460 ray.mPdf, 461 contribution 462 ); 462 463 if (added) 463 464 ray.mPvsContribution++; … … 473 474 float contribution; 474 475 if (viewcell->GetPvs().GetSampleContribution(ray.mTerminationObject, 475 contribution 476 )) 477 ray.mPvsContribution++; 476 ray.mPdf, 477 contribution 478 )) 479 ray.mPvsContribution++; 478 480 ray.mRelativePvsContribution += contribution; 479 481 } 480 482 481 483 for (it = viewcells.begin(); it != viewcells.end(); ++it) { 482 483 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); 485 487 } 486 488 }
Note: See TracChangeset
for help on using the changeset viewer.