소스 검색

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 );