- 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:
parent
81e32ecc72
commit
1973001834
5 changed files with 24 additions and 4 deletions
|
|
@ -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) }
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue