- Timestamp:
- 08/25/08 20:20:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2865 r2866 75 75 pixel pix; 76 76 77 // save color in first render target 77 78 pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 79 // save world position in second rt 78 80 pix.pos = IN.worldPos * maxDepth; 81 // save normal in third rt 79 82 pix.norm.xyz = IN.normal * 0.5f + 0.5f; 80 83 81 84 // hack: squeeze some information about ambient into the texture 82 85 pix.norm.w = ambient.x; 83 // hack: store projection coordinate for scaling ssao86 // store projection coordinates with positions (used for ssao) 84 87 pix.pos.w = IN.projPos.w; 85 88
Note: See TracChangeset
for help on using the changeset viewer.