Fix typo in source (#2840)

treshold->threshold
This commit is contained in:
luzpaz 2022-07-13 09:19:47 -04:00 committed by GitHub
parent e7936efa6a
commit c4f9d9e912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -29,10 +29,10 @@ void main()
float middleGray = u_tonemap.x;
float whiteSqr = u_tonemap.y;
float treshold = u_tonemap.z;
float threshold = u_tonemap.z;
float offset = u_tonemap.w;
rgb = max(vec3_splat(0.0), rgb - treshold) * middleGray / (lum + 0.0001);
rgb = max(vec3_splat(0.0), rgb - threshold) * middleGray / (lum + 0.0001);
rgb = reinhard2(rgb, whiteSqr);
gl_FragColor = toGamma(vec4(rgb, 1.0) );

View File

@ -20,7 +20,7 @@ void main()
float middleGray = u_tonemap.x;
float whiteSqr = u_tonemap.y;
float treshold = u_tonemap.z;
float threshold = u_tonemap.z;
float offset = u_tonemap.w;
float lp = Yxy.x * middleGray / (lum + 0.0001);