 #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;

in vec3 a_target_normal3;
#endif

#ifdef HAS_TARGET_TANGENT0_VEC3
in vec3 a_target_tangent0;
#endif

    tangent += u_morphWeights[4] * a_target_tangent4;
#endif

#ifdef HAS_TARGET_TANGENT5_VEC3
    tangent += u_morphWeights[5] * a_target_tangent5;
#endif

#ifdef HAS_TARGET_TANGENT6_VEC3
    tangent += u_morphWeights[6] * a_target_tangent6;
#endif

#ifdef HAS_TARGET_TANGENT7_VEC3
    tangent += u_morphWeights[7] * a_target_tangent7;
#endif

    return tangent;
}

