Ignore:
Timestamp:
04/30/09 16:22:48 (15 years ago)
Author:
mattausch
Message:

working nicely but still artifacts where high convergence regions come on low convergence ones

File:
1 edited

Legend:

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

    r3366 r3367  
    2020{ 
    2121        float4 illum_col: COLOR0; 
    22         float4 col: COLOR1; 
    2322}; 
    2423 
     
    549548                // they possibly have any influence on the ao 
    550549 
    551                 if (cosAngle >= 0) 
     550                const float3 oldVector = oldSamplePos - oldPos; 
     551                const float oldDistance = length(oldVector); 
     552                const float cosAngle2 = dot(oldVector, normal); 
     553 
     554                if ((cosAngle >= 0) || (cosAngle2 >= 0)) 
    552555                { 
    553556                        const float oldDistance = length(oldSamplePos - oldPos); 
     
    615618                        uniform float kernelRadius, 
    616619                        uniform float sampleIntensity 
     620                        ,uniform float dummyIdx 
    617621                        ) 
    618622{ 
     
    757761        OUT.illum_col.w = eyeSpaceDepth; 
    758762 
    759         // this value can be used to check if this pixel belongs to a moving object 
    760         OUT.col.x = SqrLen(diffVec); 
    761         //OUT.illum_col.z = SqrLen(diffVec); 
    762  
    763763#else 
    764764 
Note: See TracChangeset for help on using the changeset viewer.