Closed ashconnell closed 4 months ago
@ashconnell Thank you for the contribution!
We usually provide broader compatibility against past Three.js versions, so compat codes are mandatory in MToon shader codes.
Would you add a compat code following the code example below?
You would probably use the expression THREE_VRM_THREE_VERSION >= 166
.
After changing the code, please make sure that the code is working correctly on both r165 and r166.
@ashconnell Hello, could you make the change I mentioned above?
Superseded by #1441
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.