Ignore:
Timestamp:
10/13/08 10:13:27 (16 years ago)
Author:
mattausch
Message:

debug version: what to do with shader programs??

File:
1 edited

Legend:

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

    r3026 r3028  
    172172        currentPos /= currentPos.w; 
    173173         
    174         const float currentDepth = currentPos.z * 1e-3f; 
     174        const float precisionScale = 1e-3f; 
     175        const float currentDepth = currentPos.z * precisionScale; 
    175176 
    176177        const float2 ao = ssao(IN, colors, noise, samples, normal, eyeSpacePos, w, bl, br, tl, tr, normalize(viewDir)); 
     
    188189 
    189190        // the current depth projected into the old frame 
    190         const float projDepth = projPos.z * 1e-3f; 
     191        const float projDepth = projPos.z * precisionScale; 
    191192 
    192193        // fit from unit cube into 0 .. 1 
     
    202203 
    203204        //const float oldNumSamples = oldCol.y; 
    204         const float oldWeight = 50;//clamp(oldCol.y, 0, temporalCoherence); 
     205        const float oldWeight = clamp(oldCol.y, 0, temporalCoherence); 
    205206 
    206207        float newWeight; 
Note: See TracChangeset for help on using the changeset viewer.