Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

MSAA Framebuffer

0x3C50 edited this page Jan 18, 2023 · 5 revisions

MSAA is also supported by this library, although it has a few flaws:

  1. 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.
  2. 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.

Clone this wiki locally