Skip to content

Commit

Permalink
adding notes
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish committed Jan 26, 2021
1 parent 5f1124b commit 65d597d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/js/loaders/GLTFLoader.js
Expand Up @@ -620,6 +620,7 @@ THREE.GLTFLoader = ( function () {

var scale = extension.clearcoatNormalTexture.scale;

// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
materialParams.clearcoatNormalScale = new THREE.Vector2( scale, -scale );

}
Expand Down Expand Up @@ -2774,6 +2775,7 @@ THREE.GLTFLoader = ( function () {

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 );

if ( materialDef.normalTexture.scale !== undefined ) {
Expand Down
2 changes: 2 additions & 0 deletions examples/jsm/loaders/GLTFLoader.js
Expand Up @@ -685,6 +685,7 @@ var GLTFLoader = ( function () {

var scale = extension.clearcoatNormalTexture.scale;

// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
materialParams.clearcoatNormalScale = new Vector2( scale, -scale );

}
Expand Down Expand Up @@ -2839,6 +2840,7 @@ var GLTFLoader = ( function () {

pending.push( parser.assignTexture( materialParams, 'normalMap', materialDef.normalTexture ) );

// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
materialParams.normalScale = new Vector2( 1, -1 );

if ( materialDef.normalTexture.scale !== undefined ) {
Expand Down

0 comments on commit 65d597d

Please sign in to comment.