Changeset 2181 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs
- Timestamp:
- 03/01/07 22:48:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_DepthShadow.hlsl
r2138 r2181 53 53 { 54 54 float4 hPosition : POSITION; 55 float4 Position : TEXCOORD0; 56 float4 lPosition : TEXCOORD1; 57 float4 lVPosition : TEXCOORD2; 55 float4 lPosition : TEXCOORD0; 56 float4 lVPosition : TEXCOORD1; 58 57 }; 59 58 … … 67 66 float4 wPos = mul(world, position); 68 67 OUT.lPosition = mul(lightViewProj, wPos); 69 OUT.lVPosition = 0; 70 OUT.Position = position; 71 return OUT; 72 } 73 74 68 OUT.lVPosition = 0; 69 return OUT; 70 } 71 72 /* 75 73 float4 depthShadowPS(VS_OUT_SHADOW IN, 76 74 uniform float4x4 lightViewProj, … … 110 108 return light; 111 109 } 112 110 */ 113 111 114 112 … … 125 123 OUT.lPosition = mul(lightViewProj, wPos); 126 124 OUT.lVPosition = mul(lightView, wPos); 127 OUT.Position = position;128 125 return OUT; 129 126 } … … 213 210 } 214 211 */ 215 /* 212 216 213 float4 depthShadowPS(VS_OUT_SHADOW IN, 217 214 uniform float4x4 lightViewProj, … … 249 246 return light; 250 247 } 251 */
Note: See TracChangeset
for help on using the changeset viewer.