Changeset 2965 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 09/23/08 12:11:29 (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/deferred.cg
r2959 r2965 186 186 return OUT; 187 187 } 188 189 190 /*float4 FinalPass( SkyboxVS_Output Input ) : COLOR 191 { 192 float4 vColor = tex2D( s0, Input.Tex ); 193 float3 vBloom = tex2D( s1, Input.Tex ); 194 195 float vLum = g_fImageKey; 196 vColor.rgb = vColor; 197 198 // Tone mapping 199 vColor.rgb *= g_fMiddleGray /(vLum + 0.001f); 200 vColor.rgb *= (1.0f + vColor/LUM_WHITE); 201 vColor.rgb /= (1.0f + vColor); 202 203 vColor.rgb += 0.6f * vBloom; 204 vColor.a = 1.0f; 205 206 return vColor; 207 }*/ -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2964 r2965 72 72 pixel pix; 73 73 74 //float4 dirtTexColor = tex2D(dirtTex, IN.texCoord.xy);75 74 float4 texColor = tex2D(tex, IN.texCoord.xy); 76 75 77 76 // save color in first render target 78 77 // hack: use comination of emmisive + diffuse (emmisive used as constant ambient term) 79 //pix.col = (glstate.material.emission + glstate.material.diffuse) * texColor * dirtTexColor;80 78 pix.col = (glstate.material.emission + glstate.material.diffuse) * texColor; 81 79
Note: See TracChangeset
for help on using the changeset viewer.