Jelajahi Sumber

Merge pull request #903 from vvv-yeaf/development

Fix for Linear Tonemapper color space
Brian Roberts 2 tahun lalu
induk
melakukan
8895dc6549

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