public void Render() { GL.Disable(EnableCap.Lighting); GL.Disable(EnableCap.CullFace); GL.Enable(EnableCap.Texture2D); GL.Disable(EnableCap.Fog); GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill); GL.PushMatrix(); float scale = 20000f; GL.Scale(new Vector3(scale, scale, scale)); GL.Translate(new Vector3(0f, 0.2f, 0f)); GL.Rotate(angle, new Vector3(0, 1, 0)); vbo.Render(); GL.PopMatrix(); GL.Enable(EnableCap.Fog); }
public void Render() { GL.PushMatrix(); Matrix4 pos = Matrix4.CreateTranslation(Position); GL.LoadMatrix(ref pos); // Matrix4 scale = Matrix4.CreateScale(20f); // GL.LoadMatrix(ref scale); GL.Color3(Color.White); GL.PushClientAttrib(ClientAttribMask.ClientVertexArrayBit); //GL.Enable(EnableCap.CullFace); GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill); vbo.Render(); //GL.Disable(EnableCap.CullFace); GL.PopClientAttrib(); GL.PopMatrix(); }