Changeset 2157 for GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/bump.hlsl
- Timestamp:
- 02/22/07 23:12:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/bump.hlsl
r2152 r2157 76 76 OUT.mLight = wLightPos.xyz - wPos * wLightPos.w; 77 77 78 OUT.wTangent = normalize(mul( WorldI,float4(IN.Tangent, 1)));79 OUT.wNormal = normalize(mul( WorldI,float4(IN.Normal, 1)));78 OUT.wTangent = normalize(mul(float4(IN.Tangent, 1),WorldI)); 79 OUT.wNormal = normalize(mul(float4(IN.Normal, 1),WorldI)); 80 80 OUT.wBinormal = cross(OUT.wTangent, OUT.wNormal); 81 81
Note: See TracChangeset
for help on using the changeset viewer.