Ignore:
Timestamp:
08/28/08 22:37:40 (16 years ago)
Author:
mattausch
Message:

downsampling not working yet

File:
1 edited

Legend:

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

    r2876 r2880  
    2929{ 
    3030        float4 illum_col: COLOR0; 
    31         float4 combined_col: COLOR1; 
    3231}; 
    3332 
     
    173172        } 
    174173 
    175         OUT.combined_col = currentCol * OUT.illum_col.x; 
    176174        OUT.illum_col.w = currentDepth; 
    177175 
    178176        return OUT; 
    179177} 
     178 
     179 
     180 
     181pixel combine(fragment IN,  
     182                          uniform sampler2D colors, 
     183                          uniform sampler2D ssaoTex) 
     184{ 
     185        pixel OUT; 
     186 
     187        float4 col = tex2D(colors, IN.texCoord.xy); 
     188        float4 ao = tex2D(ssaoTex, IN.texCoord.xy); 
     189 
     190        OUT.illum_col = col * ao.x; 
     191 
     192        return OUT; 
     193} 
Note: See TracChangeset for help on using the changeset viewer.