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

Add a property to choose blend function for any buffer and/or program #2395

Open
Gammamad opened this issue Jul 1, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Gammamad
Copy link

Gammamad commented Jul 1, 2024

Is your feature request related to a problem? Please describe.
Making a shadow.fsh I need a subtractive blend for transparent things.

Describe the solution you'd like
In addition to
blend.<program>.<buffer>=src dst srcA dsta
I would like to have
blend.function.<program>.<buffer>=<add | subtract | other functions available in opengl>.

Describe alternatives you've considered
For now I am using SNORM texture format because a + (-b) is equals to a-b. But this reduces color resolution without also picking 16 bit per channel format. And it's just a workaround any way...

@Gammamad Gammamad added the enhancement New feature or request label Jul 1, 2024
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