Open
Description
Bevy version
0.17
What you did
Run the transparent_window example.
What went wrong
There is fringing where the bevy logo is translucent.
Additional information
Wayland assumes that pre-multiplication is performed after transfer-function encoding. There is no way to achieve this in Vulkan with built-in functionality, therefore I think the simplest solution to achieve this is as follows:
- Keep everything else as is.
- Immediately before presentation, run the following compute shader on the swapchain image:
- Apply the sRGB EOTF
- Unpremultiply
- Apply the sRGB OETF
- Premultiply