morphTargetsVertex.fx 339 B

1234567891011
  1. #ifdef MORPHTARGETS
  2. positionUpdated += (position{X} - position) * morphTargetInfluences[{X}];
  3. #ifdef MORPHTARGETS_NORMAL
  4. normalUpdated += (normal{X} - normal) * morphTargetInfluences[{X}];
  5. #endif
  6. #ifdef MORPHTARGETS_TANGENT
  7. tangentUpdated.xyz += (tangent{X} - tangent.xyz) * morphTargetInfluences[{X}];
  8. #endif
  9. #endif