Changeset 2817 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 07/04/08 15:40:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r2816 r2817 79 79 80 80 //const float areaSize = 5e-1f; 81 const float areaSize = 2e-1f;82 const float sampleIntensity = 0. 1f;81 const float areaSize = 3e-1f; 82 const float sampleIntensity = 0.2f; 83 83 84 84 for (int i = 0; i < SAMPLES; i ++) { … … 130 130 pixel OUT; 131 131 132 float4 lightDir = float4(0.8f, 1.0f, 1.5f, 0.0f);132 float4 lightDir = float4(0.8f, -1.0f, 0.7f, 0.0f); 133 133 float4 lightDir2 = float4(-0.5f, 0.5f, 0.4f, 0.0f); 134 134 … … 145 145 // float3 L = normalize(lightPosition - position); 146 146 float3 light = normalize(lightDir.xyz); 147 float3 light2 = normalize(lightDir .xyz);147 float3 light2 = normalize(lightDir2.xyz); 148 148 149 149 float diffuseLight = max(dot(normal, light), 0.0f); … … 155 155 //OUT.color = ao; 156 156 OUT.color = ao * (ambient + diffuse) * color; 157 //OUT.color = (ambient + diffuse) * color; 157 158 158 159 //float4 currentPos = tex2D(normals, IN.texCoord.xy) * 0.5f + 0.5f; 159 //float4 currentPos = tex2D(positions, IN.texCoord.xy); 160 //OUT.color = currentPos.w; 161 162 160 //float4 currentPos = tex2D(normals, IN.texCoord.xy); 161 //OUT.color = currentPos; 162 163 163 return OUT; 164 164 }
Note: See TracChangeset
for help on using the changeset viewer.