static Ball() { for (int i = 0; i < 8; i++) { corners[i].color = i < 4 ? Vector3.One : Vector3.One / 2; } buffer = new VertexBuffer(corners, quadsOrder); }
public SkyComponent() { vbo = new VertexBuffer(); List<Vertex> vertices = new List<Vertex>(); Vector3 origin = new Vector3(0, 100, 250); vertices.Add (new Vertex(origin + new Vector3(-32,-32,0))); vertices.Add (new Vertex(origin + new Vector3(32,-32,0))); vertices.Add (new Vertex(origin + new Vector3(32,32,0))); vertices.Add (new Vertex(origin + new Vector3(-32,32,0))); vbo.SetData(vertices.ToArray()); }
public ChunkRenderer(Chunk chunk) { buffer = new VertexBuffer(); this.chunk = chunk; }
protected GuiComponentRenderer() { vertexbuffer = new VertexBuffer(); SetupVertexbuffer(); }