Skip to content

Commit 29c6044

Browse files
committed
Option to disable anti aliasing
1 parent dd6dbd8 commit 29c6044

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyrender/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class RenderFlags(object):
5555
"""Render the color buffer flat, with no lighting computations."""
5656
SEG = 8192
5757

58+
"""Disable anti-aliasing"""
59+
DISABLE_ANTI_ALIASING = 16384
60+
5861

5962
class TextAlign:
6063
"""Text alignment options for captions.

pyrender/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _forward_pass(self, scene, flags, seg_node_map=None):
335335

336336
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
337337

338-
if not bool(flags & RenderFlags.SEG):
338+
if not bool(flags & RenderFlags.SEG) and not bool(flags & RenderFlags.DISABLE_ANTI_ALIASING):
339339
glEnable(GL_MULTISAMPLE)
340340
else:
341341
glDisable(GL_MULTISAMPLE)

0 commit comments

Comments
 (0)