-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
alphaMode Additive question. #1033
Comments
@bghgary probably has a more complete picture than me, but if I recall correctly:
With that said, additive blending might be yet another thing to discuss when considering further development of the spec. @memmottse Could you give an example of your use case for additive blending? It would be interesting to know how relevant this is to the large majority, so we can get an idea if it makes sense to integrate this into future versions, or not. |
@mlimper A specific use case I am looking at currently is a simple animated particle system fire. I can imagine several use cases though: fake light beams at a theater marque, holographic elements on a star ship bridge, etc. |
While these are perfectly valid use cases, they don't seem to fit PBR Metal-Roughness model (which is glTF 2.0 default material). At some point, even alpha-over was considered to be excluded from spec. I'd think that something like "effects" material extension should be created for cases like fire or beams. |
Given that schema is designed to be forward-compatible, such extension could enable new enum value for {
"materials": [
{
"name": "spark",
"emissiveFactor": [ 1.0, 0.9, 0.8 ],
"alphaMode": "ADD",
"extensions": {
"EXT_material_effects": {
"type": "SPARK",
"someParameter": 0.5
}
}
}
]
} |
Okay. That makes perfect sense. |
Sorry for the slow response (just got back from vacation). We didn't include add or multiply for |
@bghgary Additive transparency has uses far beyond particle effects and it's continuing absence is a real pain point for a lot of real world applications. |
We would need an extension to support this. There was an effort earlier to do something like this: #1302. Discussions were on going, but we decided to focus on other priorities at the time. It might be good to voice your concerns there and maybe we can bring it back up. |
Is there a specific reason that an Additive option was not added to the alphaMode types?
I've searched through the issues and I haven't been able to find a discussion about it.
Thanks
The text was updated successfully, but these errors were encountered: