Exemplo n.º 1
0
        void Render( )
        {
            UpdateRenderData();

            this._mvp_ssbo.Update(ref this._mvp_data);
            this._mvp_ssbo.Bind(1);
            this._rubiks_ssbo.Update(ref _rubiks_cube.Data);
            this._rubiks_ssbo.Bind(2);

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

            this._prog.Use();
            _vao.DrawInstanced(27, 36);
        }