瀏覽代碼

changed excludeWithLayerMask test

jeff Palmer 10 年之前
父節點
當前提交
754ddbd189
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
             }