 #endif
 
 #ifdef HAS_TARGET_POSITION5_VEC3
-    pos.xyz += u_morphWeights[4] * a_target_position5;
+    pos.xyz += u_morphWeights[5] * a_target_position5;
 #endif
 
 #ifdef HAS_TARGET_POSITION6_VEC3
-    pos.xyz += u_morphWeights[4] * a_target_position6;
+    pos.xyz += u_morphWeights[6] * a_target_position6;
 #endif
 
 #ifdef HAS_TARGET_POSITION7_VEC3
-    pos.xyz += u_morphWeights[4] * a_target_position7;
+    pos.xyz += u_morphWeights[7] * a_target_position7;
 #endif
 
     return pos;


#ifdef HAS_TARGET_TANGENT3_VEC3
in vec3 a_target_tangent3;
#endif

#ifdef USE_MORPHING

    normal += u_morphWeights[4] * a_target_normal4;
#endif

#ifdef HAS_TARGET_NORMAL5_VEC3
    normal += u_morphWeights[5] * a_target_normal5;
#endif

#ifdef HAS_TARGET_NORMAL6_VEC3
    normal += u_morphWeights[6] * a_target_normal6;
#endif

#ifdef HAS_TARGET_NORMAL7_VEC3
    normal += u_morphWeights[7] * a_target_normal7;
#endif

    return normal;
}

