morphnormal_vertex.glsl.js 346 B

1234567891011
  1. export default /* glsl */`
  2. #ifdef USE_MORPHNORMALS
  3. objectNormal *= morphTargetBaseInfluence;
  4. objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
  5. objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
  6. objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
  7. objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
  8. #endif
  9. `;