diff options
author | ccolin | 2021-01-03 23:54:55 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 23:54:55 +0100 |
commit | d5080935ff99e5f5e03cc05377413ee38287deec (patch) | |
tree | 41a723b793923cc1d557c3064f0c7281fbbb90f5 /src/opengl_widget.cc | |
parent | 0aaee9de337c6d5d7de05ad36a6c6ed15bcb7829 (diff) |
implement all guides
Diffstat (limited to 'src/opengl_widget.cc')
-rw-r--r-- | src/opengl_widget.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |