Sat, 05 Mar 2022 00:51:23 +0200
improve grid rendering
src/ui/canvas.cpp | file | annotate | diff | comparison | revisions |
--- a/src/ui/canvas.cpp Sat Mar 05 00:44:15 2022 +0200 +++ b/src/ui/canvas.cpp Sat Mar 05 00:51:23 2022 +0200 @@ -145,10 +145,14 @@ } // Render grid { + glLineWidth(1); glEnable(GL_BLEND); + glLineStipple(1, 0x8888); + glEnable(GL_LINE_STIPPLE); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); this->gridProgram->draw(); glDisable(GL_BLEND); + glDisable(GL_LINE_STIPPLE); } if (this->worldPosition.has_value()) {