- Timestamp:
- 09/04/08 15:00:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao3d.cg
r2902 r2903 40 40 uniform float3 currentNormal, 41 41 uniform float3 currentViewDir, 42 uniform float noiseMultiplier,43 42 uniform float4 centerPosition, 44 43 const uniform float4x4 modelViewProj, … … 64 63 // add random noise: r stores costheta, g stores sintheta 65 64 66 float3 mynoise = (float3)tex2D(noiseTexture, IN.texCoord.xy); // * noiseMultiplier);67 //const float3 offsetTransformed = myreflect(offset, mynoise) * AREA_SIZE;68 const float3 offsetTransformed = offset * AREA_SIZE;65 float3 mynoise = (float3)tex2D(noiseTexture, IN.texCoord.xy); 66 const float3 offsetTransformed = myreflect(offset, mynoise) * AREA_SIZE; 67 //const float3 offsetTransformed = offset * AREA_SIZE; 69 68 70 69 // compute position … … 116 115 uniform sampler2D noiseTexture, 117 116 uniform float3 samples[NUM_SAMPLES], 118 uniform float noiseMultiplier,119 117 uniform sampler2D oldTex, 120 118 const uniform float4x4 oldModelViewProj, … … 147 145 realPos.w = 1.0f; 148 146 149 const float ao = ssao(IN, positions, noiseTexture, samples, normal, viewDir, noiseMultiplier,centerPosition, mymodelViewProj, realPos);147 const float ao = ssao(IN, positions, noiseTexture, samples, normal, viewDir, centerPosition, mymodelViewProj, realPos); 150 148 //const float ao = ssao(IN, positions, samples, normal, viewDir, centerPosition, mymodelViewProj, realPos); 151 149
Note: See TracChangeset
for help on using the changeset viewer.