public TerrainPrefab() : base() { Name = "TerrainPrefab-" + System.Guid.NewGuid(); geometry = new TerrainGeometry(100, 100, 1); renderer = AddComponent <MeshRenderer>(); renderer.Geometry = geometry; renderer.CastShadow = false; renderer.ReceiveShadow = true; weightData = new TerrainWeightData() { SandLayer = 9, GroundLayer = 18, RockLayer = 23, SnowLayer = 27 }; }
void OnEnable() { terrainGenerator = (TerrainGeometry)target; Tools.hidden = true; }
public override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z) { }