- Timestamp:
- 08/26/08 13:30:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2866 r2867 77 77 // save color in first render target 78 78 pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 79 79 80 // save world position in second rt 80 81 pix.pos = IN.worldPos * maxDepth; 81 82 // save normal in third rt 82 pix.norm.xyz = IN.normal * 0.5f + 0.5f; 83 //pix.norm.xyz = IN.normal * 0.5f + 0.5f; 84 pix.norm.xyz = IN.normal; 83 85 84 86 // hack: squeeze some information about ambient into the texture … … 107 109 pix.col = diffuse; 108 110 pix.pos = IN.worldPos * maxDepth; 109 pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 110 // hack: squeeze some information about ambient into the texture 111 //pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 112 pix.norm.xyz = IN.normal; 113 // hack: squeeze some information about the ambient term into the target 111 114 pix.norm.w = ambient.x; 112 115 pix.pos.w = IN.mypos.w;
Note: See TracChangeset
for help on using the changeset viewer.