浏览代码

Projector: Added support for vertex colors

Mugen87 6 年之前
父节点
当前提交
d60e5d9145
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 
-				if ( material.vertexColors === THREE.FaceColors ) {
+				if ( material.vertexColors === THREE.FaceColors ||  material.vertexColors === THREE.VertexColors ) {
 
 					_face.color.fromArray( colors, a * 3 );