Changeset 3346 for GTP


Ignore:
Timestamp:
04/13/09 17:56:45 (15 years ago)
Author:
mattausch
Message:

komischer fehler mit einem rendertarget

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3343 r3346  
    88#define NUM_PRECOMPUTED_SAMPLES 4096 
    99 
    10 //#define NUM_SAMPLES 8 
     10#define NUM_SAMPLES 8 
    1111//#define NUM_SAMPLES 16 
    1212//#define NUM_SAMPLES 24 
    13 #define NUM_SAMPLES 48 
     13//#define NUM_SAMPLES 48 
    1414 
    1515//#define MIN_SAMPLES 48 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3345 r3346  
    148148                 
    149149                //w = ComputeConvergence(oldTex, oldTexCoords, float2(1024.0f, 768.0f)); 
    150                 w = floor(oldPixel.y); 
     150                //w = floor(oldPixel.y); 
    151151                //w = oldPixel.y; 
    152                 idx = floor(oldPixel.z); 
     152                idx = floor(oldPixel.y); 
    153153        } 
    154154        else 
     
    521521        const float oldSsao = temporalVals.x; 
    522522         
    523         float oldIdx = temporalCoherence > 1 ? temporalVals.y : .0f; 
     523        //float oldIdx = temporalCoherence > 1 ? temporalVals.y : .0f; 
     524        float oldIdx = temporalVals.y; 
    524525        //float oldWeight = temporalVals.y; 
    525526        float oldWeight = clamp(oldIdx, 0, temporalCoherence); 
     
    583584                else if (ao.y > partlyResetThres) 
    584585                { 
    585                         oldWeight = min(oldWeight, 4.0f * NUM_SAMPLES); oldIdx = oldWeight; 
     586                        //oldWeight = min(oldWeight, 4.0f * NUM_SAMPLES); oldIdx = oldWeight; 
    586587                        //oldWeight = .0f; oldIdx = .0f; 
    587588                } 
Note: See TracChangeset for help on using the changeset viewer.