浏览代码

conform gl to dx

AzaezelX 3 年之前
父节点
当前提交
f419227d30
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.glsl

+ 1 - 1
Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_finalPass.glsl

@@ -87,7 +87,7 @@ vec3 Tonemap(vec3 x)
    //Linear Tonemap  
    else if (g_fTonemapMode == 5.0)
    {  
-      x = TO_Linear(x);  	   
+      x = toLinear(TO_Linear(toGamma(x)));    	   
    }
         
    return x;