Avaer Kazmer
Avaer Kazmer
This PR need a rebase.
A few more wasm-related comments.
I think the bug is that avatar updates for switched-to NPCs are run twice.
@gonnavis if this is the branch we are working on it needs a rebase. If you have a better branch, please kindly close this!
There should be visual in-world indicators for this.
 I still have to fix kyojin mode on the texture remap but the performance improvement with this PR is quite large, and no quality should be lost.
 It seems the bug is in the toon shader, because using a different material fixes the mapping.
Indeed it appears that changing the texture on the VRM toon material has no effect. Probably the VRM toon shader code is doing something incorrect/unexpected with accessors, or is otherwise...
 Hacking the uniforms did work but the lighting is still slightly broken. There's probably some other properties that need to be updated, like the shade texture.
 It's almost perfect now after porting the texture constants (filter settings, etc). One strand of hair is still broken.