From fca5ed884668b957403472a13b7ce357fa8d8ca7 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 10 Jun 2020 01:00:20 +0300 Subject: [PATCH] don't scale the noise to 240 height --- src/pc/gfx/gfx_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/gfx/gfx_opengl.c b/src/pc/gfx/gfx_opengl.c index f506631e..1fe59a26 100644 --- a/src/pc/gfx/gfx_opengl.c +++ b/src/pc/gfx/gfx_opengl.c @@ -319,7 +319,7 @@ static struct ShaderProgram *gfx_opengl_create_and_load_new_shader(uint32_t shad } if (opt_alpha && opt_noise) { - append_line(fs_buf, &fs_len, "texel.a *= floor(random(vec3(floor(gl_FragCoord.xy * (240.0 / float(window_height))), float(frame_count))) + 0.5);"); + append_line(fs_buf, &fs_len, "texel.a *= floor(random(vec3(floor(gl_FragCoord.xy * float(window_height)), float(frame_count))) + 0.5);"); } if (opt_alpha) {