mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 20:25:57 +08:00
Added code for potential antialiasing
This commit is contained in:
parent
a0dda36df0
commit
34a49086e5
@ -212,6 +212,14 @@ sub Render {
|
|||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
|
# anti-alias
|
||||||
|
if (0) {
|
||||||
|
glEnable(GL_LINE_SMOOTH);
|
||||||
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
|
||||||
|
glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
|
||||||
|
}
|
||||||
|
|
||||||
my $tess = gluNewTess();
|
my $tess = gluNewTess();
|
||||||
gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT');
|
gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT');
|
||||||
gluTessCallback($tess, GLU_TESS_END, 'DEFAULT');
|
gluTessCallback($tess, GLU_TESS_END, 'DEFAULT');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user