Changeset 1581 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 10/07/06 22:54:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1580 r1581 1856 1856 { 1857 1857 if (viewcell->GetPvs().GetSampleContribution( 1858 ray.mTerminationObject,1859 ray.mPdf,1860 contribution))1861 {1858 ray.mTerminationObject, 1859 ray.mPdf, 1860 contribution)) 1861 { 1862 1862 ++ ray.mPvsContribution; 1863 ray.mRelativePvsContribution += contribution; 1864 } 1863 } 1864 ray.mRelativePvsContribution += contribution; 1865 1865 1866 } 1866 1867 1867 1868 #if SAMPLE_ORIGIN_OBJECTS 1868 1869 1869 1870 // for directional sampling it is important to count only contributions 1870 1871 // made in one direction!!! 1871 1872 // the other contributions of this sample will be counted for the oposite ray! 1872 1873 1873 1874 if (ray.mOriginObject && 1874 1875 viewcell->GetPvs().GetSampleContribution(ray.mOriginObject, 1875 1876 ray.mPdf, 1876 1877 contribution)) 1877 {1878 { 1878 1879 ++ ray.mPvsContribution; 1879 ray.mRelativePvsContribution += contribution;1880 }1880 } 1881 ray.mRelativePvsContribution += contribution; 1881 1882 #endif 1882 1883 } … … 5516 5517 { 5517 5518 ++ ray.mPvsContribution; 5518 ray.mRelativePvsContribution += contribution;5519 5519 } 5520 ray.mRelativePvsContribution += contribution; 5520 5521 #endif 5521 5522 }
Note: See TracChangeset
for help on using the changeset viewer.