소스 검색

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