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

Make edge overdraw configurable beyond blending. #13

Open
darionco opened this issue Dec 11, 2020 · 0 comments
Open

Make edge overdraw configurable beyond blending. #13

darionco opened this issue Dec 11, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@darionco
Copy link
Contributor

A problem that occurs with simple blending is that when there is a lot of overdraw the alpha values of the edges need to be lowered too much, this makes the parts with overdraw stand out but the rest of the edges basically disappear. This can create a visually pleasant effect (like smoke) in some areas but hides edge information.

My proposed solution is to take advantage of the double pass rendering implemented for RenderingMode.HIGH and use the first pass to render to a single channel data texture with pure additive blending (GL_ONE, GL_ONE) this should create an overdraw texture. The second pass uses this overdraw texture to render the edges in a color selected form a configurable color palette, effectively making the render result of overdraw configurable.

The texture can be cached for use in the other RenderModes so depth testing can remail enabled, ovedraw is one of the biggest performance hits when rendering large number of edges, so this would also improve performance.

@darionco darionco added the enhancement New feature or request label Dec 11, 2020
@darionco darionco self-assigned this Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant