소스 검색

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  
    //Linear Tonemap  
    else if (g_fTonemapMode == 5.0)
    else if (g_fTonemapMode == 5.0)
    {  
    {  
-      x = TO_Linear(x);  	   
+      x = toLinear(TO_Linear(toGamma(x)));   	   
    }
    }
         
         
    return x;
    return x;