Framebuffer Image Reading

Hi, I am converting a mod from forge to fabric that records the screen. The way it normally captures the screen is by reading the Framebuffer object in the MinecraftClient/Minecraft (depending on your mappings) class. Reading that buffer directly when not using shaders gives be good results. However, when I enable shaders, the result is just a sky colored image with none of the actual terrain, clouds, water, etc.

Is there another framebuffer provided by Iris that would allow me to capture exactly what is on the screen?
ED1D8A52-37A2-459D-8106-C1D5885590A3.png
Was this page helpful?