Ver código fonte

GLTFLoader: Invert normalScale.y, not normalScale.x.

Don McCurdy 7 anos atrás
pai
commit
77b234bda8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -2042,7 +2042,7 @@ THREE.GLTFLoader = ( function () {
 			// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
 			if ( material.normalScale ) {
 
-				material.normalScale.x = - material.normalScale.x;
+				material.normalScale.y = - material.normalScale.y;
 
 			}