mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-31 02:24:27 +08:00
Rendering painted triangles - increase polygon offset to avoid artifacts
This commit is contained in:
parent
8b647ab41b
commit
ab6e653de4
@ -79,7 +79,7 @@ void GLGizmoPainterBase::render_triangles(const Selection& selection) const
|
|||||||
|
|
||||||
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
||||||
ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); } );
|
ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); } );
|
||||||
glsafe(::glPolygonOffset(-1.0, -1.0));
|
glsafe(::glPolygonOffset(-5.0, -5.0));
|
||||||
|
|
||||||
// Take care of the clipping plane. The normal of the clipping plane is
|
// Take care of the clipping plane. The normal of the clipping plane is
|
||||||
// saved with opposite sign than we need to pass to OpenGL (FIXME)
|
// saved with opposite sign than we need to pass to OpenGL (FIXME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user