|
@@ -19,6 +19,7 @@ namespace KairoEngine.TerrainEngine
|
|
public bool flatShaded;
|
|
public bool flatShaded;
|
|
public Material material;
|
|
public Material material;
|
|
public GameObject parent;
|
|
public GameObject parent;
|
|
|
|
+ [Layer] public int terrainLayer;
|
|
|
|
|
|
|
|
|
|
private MeshFilter meshFilter;
|
|
private MeshFilter meshFilter;
|
|
@@ -137,6 +138,7 @@ namespace KairoEngine.TerrainEngine
|
|
mesh.RecalculateNormals();
|
|
mesh.RecalculateNormals();
|
|
meshFilter.mesh = mesh;
|
|
meshFilter.mesh = mesh;
|
|
meshCollider.sharedMesh = mesh;
|
|
meshCollider.sharedMesh = mesh;
|
|
|
|
+ target.layer = terrainLayer;
|
|
}
|
|
}
|
|
|
|
|
|
private void ScheduleJob(Vector3 initialPosition)
|
|
private void ScheduleJob(Vector3 initialPosition)
|