public override void initRendererAction(Vector3i vector) { Chunk chunk = world.viewableChunks[vector.X, vector.Z]; ChunkRenderer cRenderer = new SolidBoundsChunkRenderer(GraphicsDevice, world, chunk); ChunkRenderers.Add(chunk.Index, cRenderer); }
public override void DoBuild(Vector3i vector) { Chunk chunk = world.viewableChunks[vector.X, vector.Z]; // Build a vertex buffer for this chunks chunk.Renderer.BuildVertexList(); // Add the renderer to the list so that it is drawn ChunkRenderers.Add(chunk.Index, chunk.Renderer); chunk.built = true; }