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);