@@ -684,8 +684,7 @@ class GLTFMaterialsClearcoatExtension {
684684
685685 const scale = extension . clearcoatNormalTexture . scale ;
686686
687- // https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
688- materialParams . clearcoatNormalScale = new Vector2 ( scale , - scale ) ;
687+ materialParams . clearcoatNormalScale = new Vector2 ( scale , scale ) ;
689688
690689 }
691690
@@ -2892,16 +2891,6 @@ class GLTFParser {
28922891 if ( useVertexColors ) cachedMaterial . vertexColors = true ;
28932892 if ( useFlatShading ) cachedMaterial . flatShading = true ;
28942893
2895- if ( useVertexTangents ) {
2896-
2897- cachedMaterial . vertexTangents = true ;
2898-
2899- // https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
2900- if ( cachedMaterial . normalScale ) cachedMaterial . normalScale . y *= - 1 ;
2901- if ( cachedMaterial . clearcoatNormalScale ) cachedMaterial . clearcoatNormalScale . y *= - 1 ;
2902-
2903- }
2904-
29052894 this . cache . add ( cacheKey , cachedMaterial ) ;
29062895
29072896 this . associations . set ( cachedMaterial , this . associations . get ( material ) ) ;
@@ -3040,12 +3029,9 @@ class GLTFParser {
30403029
30413030 pending . push ( parser . assignTexture ( materialParams , 'normalMap' , materialDef . normalTexture ) ) ;
30423031
3043- // https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
3044- materialParams . normalScale = new Vector2 ( 1 , - 1 ) ;
3045-
30463032 if ( materialDef . normalTexture . scale !== undefined ) {
30473033
3048- materialParams . normalScale . set ( materialDef . normalTexture . scale , - materialDef . normalTexture . scale ) ;
3034+ materialParams . normalScale = new Vector2 ( materialDef . normalTexture . scale , materialDef . normalTexture . scale ) ;
30493035
30503036 }
30513037
0 commit comments