Revert "Revert "Fix a typo in tonemap.frag""
This reverts commit 812b2afcd83eeb8def9cbe6ba665584c1cb0e7d5.
This commit is contained in:
parent
19d2f1f9ac
commit
f83eb399fd
@ -10,7 +10,7 @@ vec3 getCIEYxy(vec3 rgbColor);
|
||||
vec3 getRGBFromCIEXxy(vec3 YxyColor);
|
||||
|
||||
float exposure = .2;
|
||||
float whitePoint = 1.;
|
||||
float whitePoint = 10.;
|
||||
float delta = .0001;
|
||||
|
||||
void main()
|
||||
@ -21,7 +21,7 @@ void main()
|
||||
|
||||
vec3 Yxy = getCIEYxy(col.xyz);
|
||||
float Lp = Yxy.r * exposure / avgLuminance;
|
||||
Yxy.r = (Lp * (1. * Lp / (whitePoint * whitePoint))) / (1. + Lp);
|
||||
Yxy.r = (Lp * (1. + Lp / (whitePoint * whitePoint))) / (1. + Lp);
|
||||
FragColor = vec4(getRGBFromCIEXxy(Yxy), 1.);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user