Exemplo n.º 1
0
        protected override void OnRenderFrame(FrameEventArgs args)
        {
            frameBuffer.Bind();

            GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit | ClearBufferMask.StencilBufferBit);

            GL.Enable(EnableCap.DepthTest);
            GL.CullFace(CullFaceMode.Back);

            //skybox.Use(camera);

            SceneManager.currentScene?.Render();

            FrameBuffer.Unbind();

            // EditorWindow();

            _controller.GenerateDockspace(EditorWindow);
            _controller.Render();

            GL.Flush();
            SwapBuffers();
            base.OnRenderFrame(args);
        }