pixiv/three-vrm

`uv2_vertex` and `uv2_pars_vertex` failing mtoon VRM rendering in Three v151

antpb opened this issue · 3 comments

antpb commented

In Three.js v151 there were changes that removed uv2_vertex and uv2_pars_vertex which cause issues loading VRM files that have the mtoon shader.

Here is the Three.js change: mrdoob/three.js@5c5a5c7#diff-c2bc4656a48180f106fc5f8813c5d6fd1fe51f8af74b7ac5e1939661379d4841

I found that mtoon uses uv2_vertex and uv2_pars_vertex in Line 42 and 17 of the mtoon.vert file.

I attempted to comment them out, but as expected it broke things further. Reporting here as I try to solve the problem. :)

0b5vr commented

oh no. I will fix this in the next version.

Thank you for the report.

0b5vr commented

r151 support is way harder than I thought; there are many breaking changes on shaderchunks.
Expect more time to support r151.

See:

0b5vr commented

@antpb v1.0.10 should fix the shader compilation problem, please try the new version!

https://github.com/pixiv/three-vrm/releases/tag/v1.0.10