Ignore:
Timestamp:
02/20/09 19:26:13 (15 years ago)
Author:
mattausch
Message:

indexing working not so bad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3313 r3324  
    263263 
    264264        // 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); 
    267267 
    268268        // actually 0 means pixel is valid 
    269269        const float pixelIsValid = 0.0f; 
    270270        // means that we only use slight temporal coherence over some frames 
    271         // so that there si no noticeable drag 
     271        // so that there is no noticeable drag 
    272272        const float pixelCouldBeValid = 2.0f; 
    273273        // this pixel information has to be discarded in order to not create artifacts 
    274274        const float pixelIsNotValid = 100.0f; 
    275275 
    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) 
    281279                ) 
    282280        { 
Note: See TracChangeset for help on using the changeset viewer.