imgui-wgpu-rs
imgui-wgpu-rs copied to clipboard
Different blending compared to official OpenGL backend
OpenGL | Wgpu |
---|---|
![]() |
![]() |
Description
The alpha blending looks different compared to the ImGui OpenGL 3 backend.
Repro steps
OpenGL is based on example_glfw_opengl3
, Wgpu is based on imgui-wgpu-rs
example.
System Information
-
imgui-wgpu-rs
0.20.0 - Arch Linux, 6.0.2
- Wayland, Sway
- AMD Radeon iGPU
Similarly there's a huge difference in colors and blending between imgui-rs' glow renderer and wgpu.
Glow | Wgpu |
---|---|
![]() |
![]() |
FWIW imgui
is known to do all of its color interpolations in the sRGB color space, which is mathematically incorrect. See https://github.com/ocornut/imgui/issues/578