Skip to content
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

Open
zeroeightysix opened this issue Sep 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@zeroeightysix
Copy link
Owner

zeroeightysix commented Sep 25, 2020

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:

  • Selection box
  • Damage (breaking) animation
  • Hand

are all 'below' the blocks, resulting in messed up visuals:
image

edit: also i've got no clue what this would do to the depth buffer

@zeroeightysix zeroeightysix added the bug Something isn't working label Sep 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant