Skip to content
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

Different blending compared to official OpenGL backend #86

Open
lovelymono opened this issue Oct 26, 2022 · 2 comments
Open

Different blending compared to official OpenGL backend #86

lovelymono opened this issue Oct 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@lovelymono
Copy link

lovelymono commented Oct 26, 2022

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 lovelymono added the bug Something isn't working label Oct 26, 2022
@lovelymono
Copy link
Author

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

Glow Wgpu
grim_1666857532 grim_1666857528

@parasyte
Copy link
Contributor

FWIW imgui is known to do all of its color interpolations in the sRGB color space, which is mathematically incorrect. See ocornut/imgui#578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants