Skip to content

fix: disable vertex colors on GLTF models to remove triangle artifacts#1263

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-triangle-artifacts-Yghw8
Feb 3, 2026
Merged

fix: disable vertex colors on GLTF models to remove triangle artifacts#1263
braedonsaunders merged 1 commit into
mainfrom
claude/fix-triangle-artifacts-Yghw8

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

AI-generated models (Tripo/Meshy) often bake ambient occlusion into vertex colors. The GLTFLoader automatically enables vertexColors on materials when it detects color attributes, causing the dark AO data to be multiplied with the base color and creating visible triangular artifacts on all model surfaces.

This fix disables vertexColors on all mesh materials after GLTF loading in both loadGLTF() and loadGLTFForLOD() methods. The color attribute data is preserved in case it's needed, but it no longer affects the visual appearance.

https://claude.ai/code/session_012kqvccEiiHNQHAjUEoposi

AI-generated models (Tripo/Meshy) often bake ambient occlusion into
vertex colors. The GLTFLoader automatically enables vertexColors on
materials when it detects color attributes, causing the dark AO data
to be multiplied with the base color and creating visible triangular
artifacts on all model surfaces.

This fix disables vertexColors on all mesh materials after GLTF loading
in both loadGLTF() and loadGLTFForLOD() methods. The color attribute
data is preserved in case it's needed, but it no longer affects the
visual appearance.

https://claude.ai/code/session_012kqvccEiiHNQHAjUEoposi
@braedonsaunders braedonsaunders merged commit 3205354 into main Feb 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants