Changeset 2951 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 09/16/08 12:38:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2949 r2951 34 34 35 35 float4 mypos: TEXCOORD3; 36 //float DEPTH;37 36 }; 38 37 … … 45 44 }; 46 45 46 #pragma position_invariant vtx 47 47 48 48 vtxout vtx(vtxin IN, … … 59 59 60 60 // transform the vertex position into eye space 61 OUT.position = mul(ModelViewProj, OUT.worldPos); 61 //OUT.position = mul(ModelViewProj, OUT.worldPos); 62 OUT.position = mul(glstate.matrix.mvp, IN.position); 62 63 63 64 OUT.normal = IN.normal; 64 65 65 66 OUT.mypos = OUT.position; 67 66 68 return OUT; 67 69 } … … 79 81 pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 80 82 81 // save world position in second r t83 // save world position in second render target 82 84 pix.pos = IN.worldPos * maxDepth; 83 85 // save normal in third rt 84 //pix.norm.xyz = IN.normal * 0.5f + 0.5f;85 86 pix.norm.xyz = IN.normal; 86 87
Note: See TracChangeset
for help on using the changeset viewer.