From 5fedd9b8573d0f592a8c540739283df13ddf8f05 Mon Sep 17 00:00:00 2001 From: vvv-yeaf <101606795+vvv-yeaf@users.noreply.github.com> Date: Thu, 22 Sep 2022 14:26:28 -0300 Subject: [PATCH] Fix for Linear Tonemapper color space --- .../BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl b/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl index 4da52c86f..5eddfd88b 100644 --- a/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl +++ b/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl @@ -82,7 +82,7 @@ float3 Tonemap(float3 x) //Linear Tonemap else if (g_fTonemapMode == 5.0) { - x = TO_Linear(x); + x = toLinear(TO_Linear(toGamma(x))); } return x;