- Timestamp:
- 12/02/08 17:32:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3204 r3205 165 165 uniform float3 br, 166 166 uniform float3 tl, 167 uniform float3 tr 167 uniform float3 tr, 168 uniform float3 w, 169 uniform float3 h 168 170 ) 169 171 { … … 177 179 // will be interpolated when upsampling and filter size does not match! 178 180 float4 texelCenterConv; 179 //const float w = 512.0f; const float h = 384.0f;180 //const float w = 128.0f; const float h = 96.0f;181 const float w = 16.0f; const float h = 12.0f;182 181 const float xoffs = .5f / w; const float yoffs = .5f / h; 183 182 … … 186 185 center.x = (floor(IN.texCoord.x * w - .5f) + 1.0f) / w; 187 186 center.y = (floor(IN.texCoord.y * h - .5f) + 1.0f) / h; 188 //center=IN.texCoord; 187 189 188 texelCenterConv.x = tex2Dlod(ssaoTex, float4(center + float2( xoffs, yoffs), 0, 0)).y; 190 189 texelCenterConv.y = tex2Dlod(ssaoTex, float4(center + float2( xoffs, -yoffs), 0, 0)).y; … … 225 224 226 225 //OUT.illum_col.xyz = float3(ao.x, ao.x, step(thres, convergence)); 227 OUT.illum_col.xyz = float3(0, convergence, 0);226 //OUT.illum_col.xyz = float3(0, convergence, 0); 228 227 //OUT.illum_col.xyz = float3(abs(center.x - IN.texCoord.x) * 16.0f, abs(center.y - IN.texCoord.y) * 12.0f, 0); 229 228
Note: See TracChangeset
for help on using the changeset viewer.