public void Render() { if (!initialized) { return; } GL.Disable(EnableCap.DepthTest); GL.Disable(EnableCap.CullFace); _skybox.ShaderProgram.Use(); _skybox.ShaderProgram.SetUniform( new Uniform("viewProjectionMat", scene.Camera.View.Transpose().ClipRotation().Values), new Uniform("modelMat", scene.Camera.Proj.Values) ); _skybox.BindAndRender(); GL.Disable(EnableCap.CullFace); GL.Enable(EnableCap.DepthTest); }