Skip to content

Commit acaba2e

Browse files
authored
Merge pull request #15114 from Mugen87/dev11
Projector/SVGLoader: Added support for vertex colors
2 parents 0dc8330 + c0cad9d commit acaba2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/js/renderers/Projector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ THREE.Projector = function () {
322322

323323
_face.material = material;
324324

325-
if ( material.vertexColors === THREE.FaceColors ) {
325+
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
326326

327327
_face.color.fromArray( colors, a * 3 );
328328

examples/js/renderers/SVGRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ THREE.SVGRenderer = function () {
403403

404404
_color.copy( material.color );
405405

406-
if ( material.vertexColors === THREE.FaceColors ) {
406+
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
407407

408408
_color.multiply( element.color );
409409

@@ -413,7 +413,7 @@ THREE.SVGRenderer = function () {
413413

414414
_diffuseColor.copy( material.color );
415415

416-
if ( material.vertexColors === THREE.FaceColors ) {
416+
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
417417

418418
_diffuseColor.multiply( element.color );
419419

0 commit comments

Comments
 (0)