Browse Source

changed excludeWithLayerMask test

jeff Palmer 10 năm trước cách đây
mục cha
commit
754ddbd189
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Babylon/Lights/babylon.light.ts

+ 1 - 1
Babylon/Lights/babylon.light.ts

@@ -71,7 +71,7 @@
             }
 
 
-            if (this.excludeWithLayerMask !== 0 && this.excludeWithLayerMask === mesh.layerMask) {
+            if (this.excludeWithLayerMask !== 0 && this.excludeWithLayerMask & mesh.layerMask) {
                 return false;
             }