- 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
|
|
@ -200,7 +200,11 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
|
|||
|
||||
if (applyGamma && fb->swapChain->swapChainFormat.colorSpace == VK_COLOR_SPACE_HDR10_ST2084_EXT)
|
||||
{
|
||||
uniforms.InvGamma *= 2.2f;
|
||||
uniforms.HdrMode = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
uniforms.HdrMode = 0;
|
||||
}
|
||||
|
||||
renderstate.Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue