Ignore:
Timestamp:
12/02/08 17:32:17 (16 years ago)
Author:
mattausch
Message:

as good as i cab do it right now but flickering when dynamic object enters + if dynamic object stops

File:
1 edited

Legend:

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

    r3204 r3205  
    165165                          uniform float3 br, 
    166166                          uniform float3 tl, 
    167                           uniform float3 tr 
     167                          uniform float3 tr, 
     168                          uniform float3 w, 
     169                          uniform float3 h 
    168170                          ) 
    169171{ 
     
    177179        // will be interpolated when upsampling and filter size does not match! 
    178180        float4 texelCenterConv; 
    179         //const float w = 512.0f; const float h = 384.0f; 
    180         //const float w = 128.0f; const float h = 96.0f; 
    181         const float w = 16.0f; const float h = 12.0f; 
    182181        const float xoffs = .5f / w; const float yoffs = .5f / h; 
    183182 
     
    186185        center.x = (floor(IN.texCoord.x * w - .5f) + 1.0f) / w; 
    187186        center.y = (floor(IN.texCoord.y * h - .5f) + 1.0f) / h; 
    188 //center=IN.texCoord; 
     187 
    189188        texelCenterConv.x = tex2Dlod(ssaoTex, float4(center + float2( xoffs,  yoffs), 0, 0)).y; 
    190189        texelCenterConv.y = tex2Dlod(ssaoTex, float4(center + float2( xoffs, -yoffs), 0, 0)).y; 
     
    225224 
    226225        //OUT.illum_col.xyz = float3(ao.x, ao.x, step(thres, convergence)); 
    227         OUT.illum_col.xyz = float3(0, convergence, 0); 
     226        //OUT.illum_col.xyz = float3(0, convergence, 0); 
    228227        //OUT.illum_col.xyz = float3(abs(center.x - IN.texCoord.x) * 16.0f, abs(center.y - IN.texCoord.y) * 12.0f, 0); 
    229228         
Note: See TracChangeset for help on using the changeset viewer.