Browse Source

Projector: Added support for vertex colors

Mugen87 6 years ago
parent
commit
d60e5d9145
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/renderers/Projector.js

+ 1 - 1
examples/js/renderers/Projector.js

@@ -322,7 +322,7 @@ THREE.Projector = function () {
 
 
 				_face.material = material;
 				_face.material = material;
 
 
-				if ( material.vertexColors === THREE.FaceColors ) {
+				if ( material.vertexColors === THREE.FaceColors ||  material.vertexColors === THREE.VertexColors ) {
 
 
 					_face.color.fromArray( colors, a * 3 );
 					_face.color.fromArray( colors, a * 3 );