-
Notifications
You must be signed in to change notification settings - Fork 20
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
More explicit alpha-blending functions #43
Comments
Given that |
Compositing on the web platform always happens in the native colorspace of the page. For almost all pages, that sRGB.
It's up to the UA to decide if they want to do compositing in premultiplied data. The compositing formulas for either mode should result in the same end result |
The UA can do its internal compositing in whatever way it wants, but the spec is now unambiguous that the alpha channel of the WebXR opaque framebuffer must be treated as premultiplied. That's an external interface, and it's important to get consistent behavior across implementations here. https://immersive-web.github.io/webxr/#xrwebgllayer-interface
|
When alpha blending is used, such as XREnvironmentBlendMode's "alpha-blend" option, we could be more explicit about how the blending is performed. Additionally, perhaps we could provide a more granular selection of blending modes.
In particular:
The text was updated successfully, but these errors were encountered: