- Timestamp:
- 09/16/08 16:03:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2951 r2952 48 48 vtxout vtx(vtxin IN, 49 49 const uniform float4x4 ModelViewProj, 50 uniform float4x4 Model Matrix)50 uniform float4x4 ModelView) 51 51 { 52 vtxout OUT; 53 54 // transform the vertex position into eye space 55 OUT.color = IN.color; 52 vtxout OUT; 56 53 57 OUT.texCoord = IN.texCoord; 58 OUT.worldPos = mul(ModelMatrix, IN.position);54 // transform the vertex position into eye space 55 OUT.color = IN.color; 59 56 60 // transform the vertex position into eye space 61 //OUT.position = mul(ModelViewProj, OUT.worldPos); 62 OUT.position = mul(glstate.matrix.mvp, IN.position); 57 OUT.texCoord = IN.texCoord; 63 58 64 OUT.normal = IN.normal; 59 // transform the vertex position into eye space 60 OUT.position = mul(glstate.matrix.mvp, IN.position); 61 //OUT.worldPos = mul(glstate.matrix.inverse.projection, OUT.position); 62 OUT.worldPos = mul(ModelView, IN.position); 65 63 66 OUT.mypos = OUT.position;64 OUT.normal = IN.normal; 67 65 68 return OUT; 66 OUT.mypos = OUT.position; 67 68 return OUT; 69 69 } 70 70
Note: See TracChangeset
for help on using the changeset viewer.