Exemplo n.º 1
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();
    }
Exemplo n.º 2
0
    private void Start()
    {
        var matrix = new int[height, width];

        perlinIsland = new PerlinIsland(6.0, 8, 150);
        perlinIsland.Draw(matrix);
        new OutputConsole().Draw(matrix);
        Generate(height, width, matrix, 150);
    }