Ignore:
Timestamp:
08/29/08 00:00:59 (16 years ago)
Author:
mattausch
Message:

working quite well

File:
1 edited

Legend:

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

    r2880 r2881  
    2929 
    3030 
    31 struct pixel 
     31struct pixel2 
    3232{ 
    3333        float4 ssao_col: COLOR0; 
    3434        float4 illum_col: COLOR1; 
     35}; 
     36 
     37 
     38struct pixel 
     39{ 
     40        float4 illum_col: COLOR0; 
    3541}; 
    3642 
     
    8591                float2 texcoord = IN.texCoord.xy + offsetTransformed * AREA_SIZE * w; 
    8692 
     93                // use lower lod level to improve cache coherence 
    8794                float3 sample_position = tex2Dlod(positions, float4(texcoord, 0, 1)).xyz; 
    8895                float3 sample_color = tex2Dlod(colors, float4(texcoord, 0, 2)).xyz; 
     
    114121/** The mrt shader for screen space ambient occlusion + indirect illumination 
    115122*/ 
    116 pixel main(fragment IN,  
     123pixel2 main(fragment IN,  
    117124                   uniform sampler2D colors, 
    118125                   uniform sampler2D positions, 
     
    128135                   ) 
    129136{ 
    130         pixel OUT; 
     137        pixel2 OUT; 
    131138 
    132139        float4 norm = tex2D(normals, IN.texCoord.xy); 
Note: See TracChangeset for help on using the changeset viewer.