Skip to content

Commit

Permalink
fix: Fix MToonNodeMaterial for r168
Browse files Browse the repository at this point in the history
`normalMap` is no longer a node element, we use this as an individual node instead
This should work also in r167
See: mrdoob/three.js#29187
  • Loading branch information
0b5vr committed Aug 30, 2024
1 parent 2f91aeb commit 62c49ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class MToonNodeMaterial extends THREE.NodeMaterial {

if (this.normalMap && this.normalMap.isTexture === true) {
const map = refNormalMap.context({ getUV: () => this._animatedUVNode });
this.normalNode = map.normalMap(refNormalScale);
this.normalNode = THREE.normalMap(map, refNormalScale);
}

if (this.isOutline) {
Expand Down

0 comments on commit 62c49ae

Please sign in to comment.