mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
Fixed cracks in MMU painting gizmo. All triangles, even not painted triangles, are now rendered inside MMU painting gizmo.
The cracks were caused by using glPolygonOffset to resolve Z-fighting. All triangles of the object were firstly rendered entirely with a base color. And then paint triangles were drawn over these already rendered triangles.
This commit is contained in:
parent
de9ed9ee3e
commit
7377fc34ac
4 changed files with 22 additions and 25 deletions
|
@ -99,7 +99,7 @@ void GLGizmoMmuSegmentation::render_painter_gizmo() const
|
|||
glsafe(::glEnable(GL_BLEND));
|
||||
glsafe(::glEnable(GL_DEPTH_TEST));
|
||||
|
||||
render_triangles(selection);
|
||||
render_triangles(selection, false);
|
||||
|
||||
m_c->object_clipper()->render_cut();
|
||||
render_cursor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue