microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.54k stars 505 forks source link

darker images loading #407

Closed aDioS786 closed 9 months ago

aDioS786 commented 9 months ago

Hi, ID3D11ShaderResourceView** out_srv I am trying to use hr = DirectX::CreateWICTextureFromFile(g_pd3dDevice,filename, nullptr, out_srv);

Images loads perfect, but only issue is they are darker as compared to image when viewed, so not loading with normal brightness.

walbourn commented 9 months ago

This is almost certainly due to sRGB. See https://github.com/microsoft/DirectXTK/wiki/WICTextureLoader#srgb