imgui-wgpu-rs icon indicating copy to clipboard operation
imgui-wgpu-rs copied to clipboard

Different blending compared to official OpenGL backend

Open lovelymono opened this issue 2 years ago • 2 comments

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

  • imgui-wgpu-rs 0.20.0
  • Arch Linux, 6.0.2
  • Wayland, Sway
  • AMD Radeon iGPU

lovelymono avatar Oct 26 '22 19:10 lovelymono

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

Glow Wgpu
grim_1666857532 grim_1666857528

lovelymono avatar Oct 27 '22 08:10 lovelymono

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

parasyte avatar Jun 12 '23 04:06 parasyte