diff --git a/examples/js/loaders/GLTF2Loader.js b/examples/js/loaders/GLTF2Loader.js index 1752107b163ebbe5a89df026681c2a3b505fa346..a981c0ab17d8ff46d313a4f260595eb6e73da5c0 100644 --- a/examples/js/loaders/GLTF2Loader.js +++ b/examples/js/loaders/GLTF2Loader.js @@ -1750,6 +1750,12 @@ THREE.GLTF2Loader = ( function () { } + if ( geometry.attributes.color !== undefined ) { + + material.vertexColors = THREE.VertexColors; + + } + if ( primitive.indices !== undefined ) { geometry.setIndex( dependencies.accessors[ primitive.indices ] );