Explorar el Código

Fix normalized morph color attribute (#23654)

Don McCurdy hace 3 años
padre
commit
a65c32328f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLMorphtargets.js

+ 1 - 1
src/renderers/webgl/WebGLMorphtargets.js

@@ -139,7 +139,7 @@ function WebGLMorphtargets( gl, capabilities, textures ) {
 
 							morph.fromBufferAttribute( morphColor, j );
 
-							if ( morphColor.normalized === true ) denormalize( morph, morphNormal );
+							if ( morphColor.normalized === true ) denormalize( morph, morphColor );
 
 							buffer[ offset + stride + 8 ] = morph.x;
 							buffer[ offset + stride + 9 ] = morph.y;