mirror of https://github.com/sm64pc/sm64pc.git
don't scale the noise to 240 height
This commit is contained in:
parent
33b4bd7f8d
commit
fca5ed8846
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue