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?
No description
1 Reply
NJDaeger
NJDaeger2w ago
for additional context: i've attached what I use to read the pixels from the sceen without Iris. With iris, this is what causes the resulting buffer to be a flat image with no terrain features
Want results from more Discord servers?
Add your server