- use the exact sRGB->linear transfer function in HDR mode as the 2.2 gamma approximation is visibly inaccurate in this case

This commit is contained in:
Magnus Norddahl 2019-05-01 00:55:31 +02:00
commit 1973001834
5 changed files with 24 additions and 4 deletions

View file

@ -726,7 +726,7 @@ struct PresentUniforms
FVector2 Scale;
FVector2 Offset;
float ColorScale;
float Padding;
int HdrMode;
static std::vector<UniformFieldDesc> Desc()
{
@ -741,6 +741,7 @@ struct PresentUniforms
{ "UVScale", UniformType::Vec2, offsetof(PresentUniforms, Scale) },
{ "UVOffset", UniformType::Vec2, offsetof(PresentUniforms, Offset) },
{ "ColorScale", UniformType::Float, offsetof(PresentUniforms, ColorScale) },
{ "HdrMode", UniformType::Int, offsetof(PresentUniforms, HdrMode) }
};
}
};