Yatekii / imgui-wgpu-rs

Dear imgui renderer for wgpu-rs.
MIT License
256 stars 84 forks source link

Different blending compared to official OpenGL backend #86

Open lovelymono opened 1 year ago

lovelymono commented 1 year ago
OpenGL Wgpu
grim_1666812610 grim_1666812621

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

lovelymono commented 1 year ago

Similarly there's a huge difference in colors and blending between imgui-rs' glow renderer and wgpu.

Glow Wgpu
grim_1666857532 grim_1666857528
parasyte commented 1 year ago

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