瀏覽代碼

Merge pull request #903 from vvv-yeaf/development

Fix for Linear Tonemapper color space
Brian Roberts 3 年之前
父節點
當前提交
8895dc6549
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.hlsl

+ 1 - 1
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;