|
@@ -25,6 +25,7 @@
|
|
public includeOnlyWithLayerMask = 0;
|
|
public includeOnlyWithLayerMask = 0;
|
|
public includedOnlyMeshes = new Array<AbstractMesh>();
|
|
public includedOnlyMeshes = new Array<AbstractMesh>();
|
|
public excludedMeshes = new Array<AbstractMesh>();
|
|
public excludedMeshes = new Array<AbstractMesh>();
|
|
|
|
+ public excludeWithLayerMask = 0;
|
|
|
|
|
|
public _shadowGenerator: ShadowGenerator;
|
|
public _shadowGenerator: ShadowGenerator;
|
|
private _parentedWorldMatrix: Matrix;
|
|
private _parentedWorldMatrix: Matrix;
|
|
@@ -69,6 +70,11 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ if (this.excludeWithLayerMask !== 0 && this.excludeWithLayerMask === mesh.layerMask) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|