public override void Render(Matrix4 viewMatrix, Matrix4 projectionMatrix, List <Light> lights, bool PhongLightningModel, bool PhongShading) { renderer.Use(); renderer.SetModelMatrix(ModelMatrix); renderer.SetProjectionMatrix(projectionMatrix); renderer.SetViewMatrix(viewMatrix); renderer.SetLights(lights); renderer.SetPhongLightning(PhongLightningModel); GL.ActiveTexture(TextureUnit.Texture0); GL.BindTexture(TextureTarget.Texture2D, Texture.TextureId); renderer.SetAmbientColor(Vector3.One); renderer.SetDiffuseColor(Vector3.One); renderer.SetSpecularColor(Vector3.One); renderer.SetHasTexture(Texture != null); renderer.SetPhongShading(PhongShading); renderer.EnableVertexAttribArrays(); GL.DrawElements(BeginMode.TriangleStrip, _indicesCount, DrawElementsType.UnsignedInt, 0); renderer.DisableVertexAttribArrays(); }