pixiv / three-vrm

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

fix: Add new shadowIntensity value to mtoon shader (2) #1441

Closed 0b5vr closed 4 months ago

0b5vr commented 4 months ago

Redo of #1431 , preserving @ashconnell 's commit

Three 166 introduces a new light.shadowIntensity value (https://github.com/mrdoob/three.js/pull/28588) which breaks three-vrm as the shader won't compile.

This PR updates the MToon fragment shader to use the new value.

My commit adds pre-r166 compatibility.