- Timestamp:
- 08/28/08 22:37:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2876 r2880 29 29 { 30 30 float4 illum_col: COLOR0; 31 float4 combined_col: COLOR1;32 31 }; 33 32 … … 173 172 } 174 173 175 OUT.combined_col = currentCol * OUT.illum_col.x;176 174 OUT.illum_col.w = currentDepth; 177 175 178 176 return OUT; 179 177 } 178 179 180 181 pixel 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.