fireball/lib/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl

9 lines
325 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
#ifdef USE_MORPHNORMALS
objectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];
objectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];
objectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];
objectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];
#endif