From a59a1ed1a3ed5a5f9283b88a15a425fdb8c61f11 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Mon, 20 May 2024 17:28:32 +0900 Subject: [PATCH] fix: MToon, Fix normal mapping when other textures are not specified See: https://github.com/pixiv/three-vrm/pull/1384#issuecomment-2117311809 --- packages/three-vrm-materials-mtoon/src/MToonMaterial.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts b/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts index b8c002ad..3d198669 100644 --- a/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts +++ b/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts @@ -606,6 +606,7 @@ export class MToonMaterial extends THREE.ShaderMaterial { const useUvInVert = this.outlineWidthMultiplyTexture !== null; const useUvInFrag = this.map !== null || + this.normalMap !== null || this.emissiveMap !== null || this.shadeMultiplyTexture !== null || this.shadingShiftTexture !== null ||