Skip to content

Commit

Permalink
macos 4x antialiasing
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobSpahn committed Nov 21, 2024
1 parent 414e7d9 commit 1689fb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metadrive/engine/core/engine_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ class EngineCore(ShowBase.ShowBase):
loadPrcFileData("", "gl-version 4 1")
loadPrcFileData("", "color-bits 8 8 8")
loadPrcFileData("", "alpha-bits 8")
loadPrcFileData("", "framebuffer-multisample 1")
loadPrcFileData("", "multisamples 4")
else:
# anti-aliasing does not work on macOS
loadPrcFileData("", "framebuffer-multisample 1")
loadPrcFileData("", "multisamples 8")
loadPrcFileData("", "color-bits 16 16 16")
Expand Down Expand Up @@ -299,7 +300,7 @@ def __init__(self, global_config):
else:
if is_mac():
self.pbrpipe = init(
msaa_samples = 0,
msaa_samples = 4,
# use_hardware_skinning=True,
use_330=True
)
Expand Down

0 comments on commit 1689fb7

Please sign in to comment.