瀏覽代碼

adding notes

Emmett Lalish 4 年之前
父節點
當前提交
65d597d2d4
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      examples/js/loaders/GLTFLoader.js
  2. 2 0
      examples/jsm/loaders/GLTFLoader.js

+ 2 - 0
examples/js/loaders/GLTFLoader.js

@@ -620,6 +620,7 @@ THREE.GLTFLoader = ( function () {
 
 
 				var scale = extension.clearcoatNormalTexture.scale;
 				var scale = extension.clearcoatNormalTexture.scale;
 
 
+				// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
 				materialParams.clearcoatNormalScale = new THREE.Vector2( scale, -scale );
 				materialParams.clearcoatNormalScale = new THREE.Vector2( scale, -scale );
 
 
 			}
 			}
@@ -2774,6 +2775,7 @@ THREE.GLTFLoader = ( function () {
 
 
 			pending.push( parser.assignTexture( materialParams, 'normalMap', materialDef.normalTexture ) );
 			pending.push( parser.assignTexture( materialParams, 'normalMap', materialDef.normalTexture ) );
 
 
+			// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
 			materialParams.normalScale = new THREE.Vector2( 1, -1 );
 			materialParams.normalScale = new THREE.Vector2( 1, -1 );
 
 
 			if ( materialDef.normalTexture.scale !== undefined ) {
 			if ( materialDef.normalTexture.scale !== undefined ) {

+ 2 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -685,6 +685,7 @@ var GLTFLoader = ( function () {
 
 
 				var scale = extension.clearcoatNormalTexture.scale;
 				var scale = extension.clearcoatNormalTexture.scale;
 
 
+				// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
 				materialParams.clearcoatNormalScale = new Vector2( scale, -scale );
 				materialParams.clearcoatNormalScale = new Vector2( scale, -scale );
 
 
 			}
 			}
@@ -2839,6 +2840,7 @@ var GLTFLoader = ( function () {
 
 
 			pending.push( parser.assignTexture( materialParams, 'normalMap', materialDef.normalTexture ) );
 			pending.push( parser.assignTexture( materialParams, 'normalMap', materialDef.normalTexture ) );
 
 
+			// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
 			materialParams.normalScale = new Vector2( 1, -1 );
 			materialParams.normalScale = new Vector2( 1, -1 );
 
 
 			if ( materialDef.normalTexture.scale !== undefined ) {
 			if ( materialDef.normalTexture.scale !== undefined ) {