|
@@ -22,6 +22,7 @@
|
|
|
public specular = new Color3(1.0, 1.0, 1.0);
|
|
|
public intensity = 1.0;
|
|
|
public range = Number.MAX_VALUE;
|
|
|
+ public includeOnlyWithLayerMask = 0;
|
|
|
public includedOnlyMeshes = new Array<AbstractMesh>();
|
|
|
public excludedMeshes = new Array<AbstractMesh>();
|
|
|
|
|
@@ -63,6 +64,10 @@
|
|
|
if (this.excludedMeshes.length > 0 && this.excludedMeshes.indexOf(mesh) !== -1) {
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ if (this.includeOnlyWithLayerMask !== 0 && this.includeOnlyWithLayerMask !== mesh.layerMask){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
return true;
|
|
|
}
|