Exemplo n.º 1
0
    public void Start()
    {
        setBrush         = new SetVoxelBrush();
        setAdjacentBrush = new SetVoxelAdjacentBrush();

        materialAtlas.LoadFromFile("VoxelAtlas1");

        extractor = new CubicChunkExtractor(materialAtlas);

        Noise2D noise = new PerlinHeightmap(scale, magnitude, 1);

        brickTree = new BrickTree(brickDimensions, noise);

        createAll();
    }
Exemplo n.º 2
0
    public void Start()
    {
        foreach (Transform child in this.gameObject.transform)
        {
            chunkPool.Release(new Chunk(child.gameObject));
        }

        Noise2D noise = new FlatNoise(2);

        materialAtlas.LoadFromFile(voxelAtlasFile);

        voxelTree = new BrickTree(brickResolution, noise);

        extractor = new CubicChunkExtractor(materialAtlas);

        createAll();
    }