-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logarithmic depth with skinned model rendered incorrectly #4240
Comments
I noticed a similar issue with the Monster.glb model from the glTF-Sample-Models repo. The front right leg will show through the back right when looking from the left side. All the other sample models look right. |
Hello this seems to come from a vertex weight normalization issue. The total weights applied on a vertex is not equal to 1 hence producing wrong world matrices in shaders |
Here is the current discussion at Khronos: |
To fix it in your code you can call mesh.cleanMatrixWeights() on all your meshes |
Playground link
Current result:


Expected result:
The text was updated successfully, but these errors were encountered: