don't scale the noise to 240 height

This commit is contained in:
fgsfds 2020-06-10 01:00:20 +03:00
parent 33b4bd7f8d
commit fca5ed8846

View file

@ -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) {