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

Use the depth buffer for quads to reduce overdraw within a layer #38

Open
Kethku opened this issue Aug 13, 2024 · 0 comments
Open

Use the depth buffer for quads to reduce overdraw within a layer #38

Kethku opened this issue Aug 13, 2024 · 0 comments

Comments

@Kethku
Copy link
Member

Kethku commented Aug 13, 2024

If we let quads be special and draw them as though they are opaque within a layer and let them write to the depth buffer we can draw them in reverse order as the first step before batching other primitives and let them overwrite rather than blend with previous quads.

To do this we will have to include the layer index in the primitives we upload to the gpu as the z component of the position.

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