Ignore:
Timestamp:
08/26/08 13:30:31 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2866 r2867  
    1010}; 
    1111 
    12 //uniform sampler2D s_distort; 
    13 uniform float4 e_barrier = float4(5e-5, 5e-5, 0, 0); 
     12// the barrier for detecting a discontinuity 
     13uniform float4 e_barrier = float4(5e-3, 5e-3, 0, 0); // x = normal, y = depth 
     14// the weights for normal / depth discontinuity 
    1415uniform float4 e_weights = float4(1.0f, 1.0f, 1.0f, 1.0f); // x = normal, y = depth 
    15 uniform float4 e_kernel = float4(0.3f, 1.0f, 1.0f, 1.0f); // x = normal, y = depth 
     16uniform float4 e_kernel = float4(0.35f, 1.0f, 1.0f, 1.0f);  
    1617 
    1718 
     
    2122                        ): COLOR 
    2223{ 
     24        //return tex2D(colors, IN.c.xy); 
    2325        // normal discontinuity filter 
    2426        float3 nc = (float3)tex2D(normals, IN.c.xy); 
     
    8183 
    8284        return (s0 + s1 + s2 + s3) / 4.0f; 
    83         //return float4(w); 
    8485} 
Note: See TracChangeset for help on using the changeset viewer.