CEGUI has an option to set the texture in SRGB format ?
If not, how handle the loading correctly ?
I see in the D3D11 renderer :
Code: Select all
static DXGI_FORMAT toD3DPixelFormat(const Texture::PixelFormat fmt)
{
switch (fmt)
{
case Texture::PixelFormat::Rgba: return DXGI_FORMAT_R8G8B8A8_UNORM;
case Texture::PixelFormat::Rgb: return DXGI_FORMAT_R8G8B8A8_UNORM;
case Texture::PixelFormat::RgbaDxt1: return DXGI_FORMAT_BC1_UNORM;
case Texture::PixelFormat::RgbaDxt3: return DXGI_FORMAT_BC2_UNORM;
case Texture::PixelFormat::RgbaDxt5: return DXGI_FORMAT_BC3_UNORM;
default: return DXGI_FORMAT_UNKNOWN;
}
}
So, I guess CEGUI doesn't handle the SRGB format.
I have to modify the code and compile a custom version with the SRGB format ?
The problem is the color is too bright without the SRGB format.
Thanks