From d5080935ff99e5f5e03cc05377413ee38287deec Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 3 Jan 2021 23:54:55 +0100 Subject: implement all guides --- src/opengl_widget.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/opengl_widget.cc') diff --git a/src/opengl_widget.cc b/src/opengl_widget.cc index ccdcac5..2100af0 100644 --- a/src/opengl_widget.cc +++ b/src/opengl_widget.cc @@ -207,7 +207,10 @@ void OpenGLWidget::paintGL() { main_program.setUniformValue("view", view); main_program.setUniformValue("highlight", false); glActiveTexture(GL_TEXTURE0); + glEnable(GL_POLYGON_OFFSET_FILL); + glPolygonOffset(1, 1); ground->draw(this, QMatrix4x4()); + glDisable(GL_POLYGON_OFFSET_FILL); if (painter) painter->draw(this); main_program.release(); } -- cgit v1.2.3-70-g09d2