From 718838d8b781290790301d287ef2f050c76d2177 Mon Sep 17 00:00:00 2001 From: Xonk Date: Fri, 15 Nov 2024 17:58:24 -0500 Subject: [PATCH] fix incorrect auto target exposure values --- shaders/dimensions/deferred.vsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/dimensions/deferred.vsh b/shaders/dimensions/deferred.vsh index 5378d88..df35a2f 100644 --- a/shaders/dimensions/deferred.vsh +++ b/shaders/dimensions/deferred.vsh @@ -288,9 +288,9 @@ void main() { float keyVal = 1.03-2.0/(log(L*4000/150.*8./3.0+1.0)/log(10.0)+2.0); float expFunc = 0.5+0.5*tanh(log(L)); - float targetExposure = 1.0/log(L+1.05); - // float targetExposure = 0.35/log(L+1.05); - // float targetExposure = 0.18/log2(L*2.5+1.045)*0.62; + // float targetExposure = 1.0/log(L+1.05); + float targetExposure = 0.35/log(L+1.05); // mine + // float targetExposure = 0.18/log2(L*2.5+1.045)*0.62; // choc original avgL2 = clamp(mix(avgB,texelFetch2D(colortex4,ivec2(10,37),0).b,0.985),0.00003051757,65000.0); float targetrodExposure = max(0.012/log2(avgL2+1.002)-0.1,0.0)*1.2;