Explorar o código

changed excludeWithLayerMask test

jeff Palmer %!s(int64=10) %!d(string=hai) anos
pai
achega
754ddbd189
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }