From c4f9d9e912c42f5df3c8c241453a8bc4419ed3cf Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 13 Jul 2022 09:19:47 -0400 Subject: [PATCH] Fix typo in source (#2840) treshold->threshold --- examples/09-hdr/fs_hdr_bright.sc | 4 ++-- examples/09-hdr/fs_hdr_tonemap.sc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/09-hdr/fs_hdr_bright.sc b/examples/09-hdr/fs_hdr_bright.sc index b86ba6d61..321fac73a 100644 --- a/examples/09-hdr/fs_hdr_bright.sc +++ b/examples/09-hdr/fs_hdr_bright.sc @@ -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) ); diff --git a/examples/09-hdr/fs_hdr_tonemap.sc b/examples/09-hdr/fs_hdr_tonemap.sc index b2e257568..44f3df9b4 100644 --- a/examples/09-hdr/fs_hdr_tonemap.sc +++ b/examples/09-hdr/fs_hdr_tonemap.sc @@ -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);