mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 09:38:52 +08:00
fix incorrect auto target exposure values
This commit is contained in:
parent
4869877f77
commit
718838d8b7
@ -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 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 expFunc = 0.5+0.5*tanh(log(L));
|
||||||
|
|
||||||
float targetExposure = 1.0/log(L+1.05);
|
// float targetExposure = 1.0/log(L+1.05);
|
||||||
// float targetExposure = 0.35/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;
|
// 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);
|
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;
|
float targetrodExposure = max(0.012/log2(avgL2+1.002)-0.1,0.0)*1.2;
|
||||||
|
Loading…
Reference in New Issue
Block a user