Changeset 3190 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 11/27/08 04:14:45 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3189 r3190 132 132 normalFactor = max(step(.0f, dot(sampleNorm, centerNormal)), 1e-3f); 133 133 //normalFactor = max(dot(sampleNorm, samplePos), 1e-3f); 134 //convergenceFactor = min(100.0f, aoSample.y);135 convergenceFactor = aoSample.y;134 convergenceFactor = min(20.0f, aoSample.y); 135 //convergenceFactor = aoSample.y; 136 136 137 137 // combine the weights -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3189 r3190 284 284 285 285 const float depthDif = abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 286 287 286 const float squaredLen = SqrLen(diffVec); 288 287 … … 290 289 float validPixel; 291 290 292 const bool oldDynamic = (squaredLen <=DYNAMIC_OBJECTS_THRESHOLD);293 const bool newDynamic = (oldPixel.z <=DYNAMIC_OBJECTS_THRESHOLD);294 295 if (!(oldDynamic && !newDynamic) && !(!oldDynamic && newDynamic) &&296 !(oldDynamic && newDynamic && (depthDif >MIN_DEPTH_DIFF))291 const bool oldDynamic = (squaredLen > DYNAMIC_OBJECTS_THRESHOLD); 292 const bool newDynamic = (oldPixel.z > DYNAMIC_OBJECTS_THRESHOLD); 293 294 if (!(oldDynamic && !newDynamic) && !(!oldDynamic && newDynamic) 295 && !(oldDynamic && newDynamic && (depthDif <= MIN_DEPTH_DIFF)) 297 296 && (oldTexCoords.x >= 0.0f) && (oldTexCoords.x < 1.0f) 298 297 && (oldTexCoords.y >= 0.0f) && (oldTexCoords.y < 1.0f)
Note: See TracChangeset
for help on using the changeset viewer.