- Timestamp:
- 02/20/09 19:26:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3313 r3324 263 263 264 264 // check if the pixel belonged to a dyanmic object in the last frame 265 const bool oldDynamic = (squaredLen > DYNAMIC_OBJECTS_THRESHOLD);266 const bool newDynamic = (oldPixel.z > DYNAMIC_OBJECTS_THRESHOLD);265 const bool oldDynamic = false;(squaredLen > DYNAMIC_OBJECTS_THRESHOLD); 266 const bool newDynamic = false; (oldPixel.z > DYNAMIC_OBJECTS_THRESHOLD); 267 267 268 268 // actually 0 means pixel is valid 269 269 const float pixelIsValid = 0.0f; 270 270 // means that we only use slight temporal coherence over some frames 271 // so that there sino noticeable drag271 // so that there is no noticeable drag 272 272 const float pixelCouldBeValid = 2.0f; 273 273 // this pixel information has to be discarded in order to not create artifacts 274 274 const float pixelIsNotValid = 100.0f; 275 275 276 const float xOffs = 0;// 0.5f / 1024.0f; 277 const float yOffs = 0;// 0.5f / 768.0f; 278 279 if ((oldTexCoords.x < xOffs) || (oldTexCoords.x > (1.0f - xOffs)) || 280 (oldTexCoords.y < yOffs) || (oldTexCoords.y > (1.0f - yOffs)) 276 // check if the pixel was outside of the frame buffer 277 if ((oldTexCoords.x <= 0) || (oldTexCoords.x >= 1.0f) || 278 (oldTexCoords.y <= 0) || (oldTexCoords.y >= 1.0f) 281 279 ) 282 280 {
Note: See TracChangeset
for help on using the changeset viewer.