void Start()
    {
        fractalIsland = new FractalIsland(minValue, altitude, addAltitude);
        this.terrain  = GetComponent <Terrain>();
        TerrainUtil terrainUtil = new TerrainUtil(terrain, texture2D, fractalIsland, height, width, depth, 2);

        terrainUtil.Draw();
    }
Beispiel #2
0
    void Start()
    {
        perlinIsland = new PerlinIsland(frequency, octaves, maxHeight);
        this.terrain = GetComponent <Terrain>();
        TerrainUtil terrainUtil = new TerrainUtil(terrain, texture2D, perlinIsland, height, width, depth);

        terrainUtil.Draw();
    }
    private void Start()
    {
        perlinSolitaryIsland =
            new PerlinSolitaryIsland(truncatedProportion, mountainProportion, frequency, octaves, maxHeight);
        this.terrain = GetComponent <Terrain>();
        TerrainUtil terrainUtil = new TerrainUtil(terrain, texture2D, perlinSolitaryIsland, height, width, depth, 1);

        terrainUtil.Draw();
    }
    void Start()
    {
        diamondSquareAverageCornerIsland = new DiamondSquareAverageCornerIsland(minValue, altitude, addAltitude);
        this.terrain = GetComponent <Terrain>();
        TerrainUtil terrainUtil =
            new TerrainUtil(terrain, texture2D, diamondSquareAverageCornerIsland, height + 1, width + 1, depth);

        terrainUtil.Draw();
    }