Ignore:
Timestamp:
06/05/07 14:26:25 (18 years ago)
Author:
szirmay
Message:
 
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  
    2727        oPosition = mul(viewProjectionMatrix, blendPos); 
    2828        // 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]; 
    3031        //oTangent = mul((float3x3)worldMatrix3x4Array[blendIdx], tangent); 
    3132        oNormal = normalize(oNormal); 
Note: See TracChangeset for help on using the changeset viewer.