fix incorrect auto target exposure values

This commit is contained in:
Xonk 2024-11-15 17:58:24 -05:00
parent b93d6f1a12
commit 125a4d69f4

View File

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