Changeset 2880 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 08/28/08 22:37:40 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/globillum.cg
r2876 r2880 32 32 { 33 33 float4 ssao_col: COLOR0; 34 float4 combined_col: COLOR1; 35 float4 illum_col: COLOR2; 34 float4 illum_col: COLOR1; 36 35 }; 37 36 … … 185 184 } 186 185 187 OUT.combined_col = (currentCol + OUT.illum_col) * OUT.ssao_col.x;188 //OUT.combined_col = float4(newDepth, oldDepth, 1, 1) ;189 190 186 OUT.ssao_col.w = currentDepth; 191 187 192 188 return OUT; 193 189 } 190 191 192 pixel combine(fragment IN, 193 uniform sampler2D colors, 194 uniform sampler2D ssaoTex, 195 uniform sampler2D illumTex 196 ) 197 { 198 pixel OUT; 199 200 float4 col = tex2D(colors, IN.texCoord.xy); 201 float ao = tex2D(ssaoTex, IN.texCoord.xy).x; 202 float4 illum = tex2D(illumTex, IN.texCoord.xy); 203 204 OUT.illum_col = (col + illum) * ao; 205 206 return OUT; 207 } -
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.