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