- Timestamp:
- 11/25/08 18:14:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3161 r3167 213 213 const float3 samplePos = ReconstructSamplePos(sampleColor.w, texcoord, bl, br, tl, tr); 214 214 // the normal of the current sample 215 const float3 sampleNormal = normalize(tex2Dlod(normalTex, float4(texcoord, 0, 0)).xyz); 215 //const float3 sampleNormal = normalize(tex2Dlod(normalTex, float4(texcoord, 0, 0)).xyz); 216 const float3 sampleNormal = tex2Dlod(normalTex, float4(texcoord, 0, 0)).xyz; 216 217 217 218 … … 357 358 pixel OUT; 358 359 359 const float3 normal = normalize(tex2Dlod(normals, float4(IN.texCoord, 0 ,0)).xyz); 360 //const float3 normal = normalize(tex2Dlod(normals, float4(IN.texCoord, 0 ,0)).xyz); 361 const float3 normal = tex2Dlod(normals, float4(IN.texCoord, 0 ,0)).xyz; 360 362 361 363 // reconstruct position from the eye space depth
Note: See TracChangeset
for help on using the changeset viewer.