You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2026. It is now read-only.
0x3C50 edited this page Jan 18, 2023
·
5 revisions
MSAA is also supported by this library, although it has a few flaws:
AMD recently broke support for the MSAA method this library uses. Using the MSAA Framebuffer on an AMD graphics card with the latest drivers will break a lot of stuff.
A lot of samples will demand a lot of action from the GPU. Use with caution.
Using
To use the MSAA Framebuffer, call MSAAFramebuffer.use(samples, runnable);, which will run your rendering code provided in runnable with samples samples. While you can technically go up to MSAAFramebuffer.MAX_SAMPLES, anything above 16 samples is usually considered overkill.
Advanced usage
You can also draw MSAA'd content to another framebuffer with MSAAFramebuffer.use(samples, framebuffer, runnable);. This will draw the rendered content to framebuffer, instead of the default minecraft framebuffer.