-
Notifications
You must be signed in to change notification settings - Fork 136
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
The background color of ImGui windows seems not correct when it is set to transparent white #628
Comments
This unfortunately is a much more complicated issue than it looks. |
Thanks for your detailed response very much. |
It is not possible to remove color clamp in ImGui because it packs 0.0-1.0 floats into 8 bits. Attribs.SCDesc.RenderTargetFormat = TEX_FORMAT_RGBA8_UNORM; |
It looks like a little difficult for me, but I will have a try of the above method. |
Use the example I sent - this should not be too complicated. |
It seems like a problem for a long time, and still exists in recent versions.
The color of the ImGui's windows' background in DiligentCore apps is incorrect, when the background color is set to transparent white, such as this code:
ImGui::GetStyle().Colors[ImGuiCol_WindowBg] = ImVec4(1.0f, 1.0f, 1.0f, 0.5f);
The background color shows a transparent dark gray, but it should be transparent white.
With the same setting, the color is correct in the independent ImGui app without DiligentEngine.
In 2.5.3 the color shows right. This is the environment I used with when the problem occurs:
DiligentCore: v2.5.4~v2.5.6
Integrated ImGui: 1.89.1, 1.91.3
OS: Windows 11 with d3d11, d3d12, opengl, and valkan
I hope it can be fixed because I really need a light translucent style :)
The background color in DiligentEngine:
Hoped background color of ImGui app without DiligentEngine:
The text was updated successfully, but these errors were encountered: