pixiv / three-vrm

Use VRM on Three.js
MIT License
1.3k stars 110 forks source link

fix: MToon, Fix normal mapping when other textures are not specified #1410

Closed 0b5vr closed 6 months ago

0b5vr commented 6 months ago

See: https://github.com/pixiv/three-vrm/pull/1384#issuecomment-2117311809

Fix normal mapping when other textures are not specified.

This is because this.normalMap !== null did not perticipate in the condition of the MTOON_USE_UV flag.

Below is the screenshot of feature-test.html. Note that the blue ball that only specifies normal map has bumps correctly.

image