diff --git a/examples/js/renderers/Projector.js b/examples/js/renderers/Projector.js index 898f7cb67b0ec3..ede8c00bf403a8 100644 --- a/examples/js/renderers/Projector.js +++ b/examples/js/renderers/Projector.js @@ -322,7 +322,7 @@ THREE.Projector = function () { _face.material = material; - if ( material.vertexColors === THREE.FaceColors ) { + if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) { _face.color.fromArray( colors, a * 3 ); diff --git a/examples/js/renderers/SVGRenderer.js b/examples/js/renderers/SVGRenderer.js index 05e4aa542f61e0..5f6c82bfa2e613 100644 --- a/examples/js/renderers/SVGRenderer.js +++ b/examples/js/renderers/SVGRenderer.js @@ -403,7 +403,7 @@ THREE.SVGRenderer = function () { _color.copy( material.color ); - if ( material.vertexColors === THREE.FaceColors ) { + if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) { _color.multiply( element.color ); @@ -413,7 +413,7 @@ THREE.SVGRenderer = function () { _diffuseColor.copy( material.color ); - if ( material.vertexColors === THREE.FaceColors ) { + if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) { _diffuseColor.multiply( element.color );