You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I want to ask how to create texture for ImGui::Image properly in DirectX 11 from PNG file?
In DirectX 9 I using D3DXCreateTextureFromFileInMemoryEx, and all is fine:
In DirectX 11 I tryed to use D3DX11CreateShaderResourceViewFromMemory, but something wrong with colors (too much white):
How can I fix this problem?
The text was updated successfully, but these errors were encountered:
ImGui::Image() create vertices that are rendered by the example binding imgui_impl_dx11.cpp, there's no processing or modification or magic performed by dear imgui, it doesn't even know anything about your textures, it's just passing data around.
This is probably a sRGB vs Linear Space issue with your setup, see #1927.
Hello. I want to ask how to create texture for ImGui::Image properly in DirectX 11 from PNG file?
In DirectX 9 I using D3DXCreateTextureFromFileInMemoryEx, and all is fine:
In DirectX 11 I tryed to use D3DX11CreateShaderResourceViewFromMemory, but something wrong with colors (too much white):
How can I fix this problem?
The text was updated successfully, but these errors were encountered: