Ignore:
Timestamp:
02/13/09 11:49:44 (15 years ago)
Author:
mattausch
Message:

working on changed sampling scheme for temporal coherence

File:
1 edited

Legend:

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

    r3306 r3309  
    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.