Exemplo n.º 1
0
        public ChunkMeshCluster()
        {
            numberOfRenderers = Enum.GetNames(typeof(RendererType)).Length;
            chunkMeshes       = new ChunkMesh[numberOfRenderers];
            chunkMeshStates   = new ChunkMeshState[numberOfRenderers];

            for (int i = 0; i < numberOfRenderers; i++)
            {
                chunkMeshes[i]     = ChunkMeshPool.Instance().GetChunkMesh(this, (RendererType)i);
                chunkMeshStates[i] = ChunkMeshState.New;
            }
        }