morphTargetsVertex.fx 437 B

123456789101112131415
  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. #ifdef MORPHTARGETS_UV
  10. uvUpdated += (uv_{X} - uv) * morphTargetInfluences[{X}];
  11. #endif
  12. #endif