- Timestamp:
- 08/29/08 17:27:05 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r2848 r2885 777 777 void Bvh::PrintBvhStats() const 778 778 { 779 cout << " bvh stats:" << endl;779 cout << "\n******** bvh stats: ***********" << endl; 780 780 cout << "interiorNodesSA = " << mBvhStats.mInteriorSA / mRoot->mBox.SurfaceArea() << endl; 781 781 cout << "leafNodesSA = " << mBvhStats.mLeafSA / mRoot->mBox.SurfaceArea() << endl; … … 785 785 cout << "geometry per leaf: " << mBvhStats.mGeometryRatio << endl; 786 786 cout << "triangles per leaf: " << mBvhStats.mTriangleRatio << endl; 787 cout << "**************" << endl << endl; 787 788 } 788 789 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2884 r2885 78 78 float3 direction_to_sample = vector_to_sample / length_to_sample; 79 79 80 // Angle between current normal and direction to sample controls AO intensity.80 // angle between current normal and direction to sample controls AO intensity. 81 81 const float cos_angle = max(dot(direction_to_sample, currentNormal), 0.0f); 82 82 … … 85 85 (SAMPLE_INTENSITY * DISTANCE_SCALE) / (DISTANCE_SCALE + length_to_sample * length_to_sample); 86 86 87 // if surface normal perpenticular to view dir, some samples probably count less88 // => compensate for this 87 // if surface normal perpenticular to view dir, approx. half of the samples will not count 88 // => compensate for this (on the other hand, projected sampling area could be larger!) 89 89 const float view_correction = 1.0f + VIEW_CORRECTION_SCALE * (1.0f - dot(currentViewDir, currentNormal)); 90 90
Note: See TracChangeset
for help on using the changeset viewer.