Prechádzať zdrojové kódy

Fix typo in source (#2840)

treshold->threshold
luzpaz 3 rokov pred
rodič
commit
c4f9d9e912

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

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