Changeset 3119 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Timestamp:
- 11/11/08 19:14:04 (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/chcdemo.cpp
r3118 r3119 463 463 //-- load some dynamic stuff 464 464 465 LoadModel("hbuddha.dem", dynamicObjects); 465 LoadModel("fisch.dem", dynamicObjects); 466 //LoadModel("hbuddha.dem", dynamicObjects); 466 467 buddha = dynamicObjects.back(); 467 468 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3117 r3119 102 102 // retrieve the sample from the last frame 103 103 const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 104 104 // the eye linear depth from the previous frame 105 105 const float oldEyeSpaceDepth = oldPixel.w; 106 106 … … 110 110 const float projectedEyeSpaceDepth = invlen * length(translatedPos); 111 111 112 float depthDif = (abs(eyeSpaceDepth - sampleEyeSpaceDepth) > 5.0f) ? 0 :113 abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth);112 float depthDif = (abs(eyeSpaceDepth - sampleEyeSpaceDepth) > 3.0f) ? 113 0 : abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 114 114 115 115 return depthDif; … … 207 207 ); 208 208 //overallDepth += sampleDif; 209 210 209 if (sampleDif >= MIN_DEPTH_DIFF) ++ notValid; 211 210 }
Note: See TracChangeset
for help on using the changeset viewer.