mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Added code for potential antialiasing
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user