Browse Source

Projector: Temporal MeshFaceMaterial handling.

Mr.doob 10 năm trước cách đây
mục cha
commit
a73fb6edd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/js/renderers/Projector.js

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

@@ -517,7 +517,7 @@ THREE.Projector = function () {
 						var face = faces[ f ];
 
 						material = isFaceMaterial === true
-							 ? objectMaterials.materials[ face.materialIndex ]
+							 ? objectMaterials.materials[ 0 ] // objectMaterials.materials[ face.materialIndex ]
 							 : object.material;
 
 						if ( material === undefined ) continue;