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

Primitive gl drawing : do not write depth when using polygon offset #1267

Open
proberts-cinesite opened this issue Jun 6, 2022 · 0 comments

Comments

@proberts-cinesite
Copy link
Contributor

Summary

OpenGL's polygon offset is used to avoid z-fighting when drawing primitives in line and points mode. Using the polygon offset feature results in an implementation defined depth offset, writing this offset depth to the framebuffer depth attachment makes performing a manual depth test hard. So only write depth when we are not using polygon offset and only use polygon offset once depth has been written.

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

Successfully merging a pull request may close this issue.

1 participant