This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Filtered block layers: framebuffer drawn too late, covering up detail it shouldn't #251
Labels
bug
Something isn't working
Currently the framebuffer for feature/filtered block layers is drawn at the same time as the outline framebuffer, which is basically at the very end of world render.
Reason being is that minecraft absolutely shreds apart the GL state with its inbuilt framebuffer render function (and with good reason)
I'd like to render the framebuffer earlier (after world, but before everything else), so I need to find a way to elegantly either restore the GL state after rendering it, or not destroy the state at all.
Currently, things like:
are all 'below' the blocks, resulting in messed up visuals:
edit: also i've got no clue what this would do to the depth buffer
The text was updated successfully, but these errors were encountered: