Changeset 1764 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 11/17/06 10:10:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1763 r1764 1033 1033 1034 1034 bool madeContrib = false; 1035 float contribution; 1036 1037 Intersectable *obj = ray->mTerminationObject; 1038 1039 if (obj) 1035 float contribution = 1; 1036 1037 Intersectable *entry = 1038 mHierarchyManager->GetIntersectable(ray->mTerminationObject, true); 1039 1040 if (entry) 1040 1041 { 1041 1042 madeContrib = 1042 mViewCellsManager->AddSampleToPvs( 1043 obj, 1044 ray->mTermination, 1045 vc, 1046 ray->mPdf, 1047 contribution); 1043 vc->GetPvs().AddSample(entry, ray->mPdf); 1048 1044 1049 1045 sc += contribution; 1050 1046 } 1051 1047 #if COUNT_ORIGIN_OBJECTS 1052 obj = ray->mOriginObject;1053 1054 if ( obj)1048 entry = mHierarchyManager->GetIntersectable(ray->mOriginObject, true); 1049 1050 if (entry) 1055 1051 { 1056 1052 madeContrib = 1057 mViewCellsManager->AddSampleToPvs( 1058 obj, 1059 ray->mOrigin, 1060 vc, 1061 ray->mPdf, 1062 contribution); 1053 vc->GetPvs().AddSample(entry, ray->mPdf); 1063 1054 1064 1055 sc += contribution;
Note: See TracChangeset
for help on using the changeset viewer.