Changeset 2409 for GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
- Timestamp:
- 06/05/07 14:26:25 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollvs.cg
r2404 r2409 27 27 oPosition = mul(viewProjectionMatrix, blendPos); 28 28 // transform normal 29 //oNormal = mul((float3x3)worldMatrix3x4Array[blendIdx], normal); 29 oNormal = mul((float3x3)worldMatrix3x4Array[blendIdx[0]], normal) * blendWgt[0]; 30 oNormal += mul((float3x3)worldMatrix3x4Array[blendIdx[1]], normal) * blendWgt[1]; 30 31 //oTangent = mul((float3x3)worldMatrix3x4Array[blendIdx], tangent); 31 32 oNormal = normalize(oNormal);
Note: See TracChangeset
for help on using the changeset viewer.