Kaynağa Gözat

Merge pull request #13784 from donmccurdy/feat-gltfloader-normalscale-inverty

GLTFLoader: Invert normalScale.y, not normalScale.x.
Mr.doob 7 yıl önce
ebeveyn
işleme
606b9d1c01
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;
 
 			}