Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling depth buffer? #147

Open
borisblizzard opened this issue May 20, 2020 · 0 comments
Open

Enabling depth buffer? #147

borisblizzard opened this issue May 20, 2020 · 0 comments

Comments

@borisblizzard
Copy link

So I've been trying to enable a depth buffer for the default framebuffer (or the used render texture), but I haven't been able to actually find that particular instance of the RenderTexture or Framebuffer object. I can confirm that it works fine if I set Framebuffer.depth to true and call Framebuffer.addDepthTexture() somewhere after the creation and then use the needed GL calls to make it work, but I obviously don't want every framebuffer to have a depth buffer (and I want to make sure that it's cleared properly on every buffer swap).

So, any ideas how I can make this work? Just being able to fetch the Framebuffer object and the current RenderTexture object that's rendered onto before that texture itself is drawn onto the Framebuffer object.

I'm using v5.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant