Browse Source

Fix off-by-factor-of-2 in the vertex shader

ssao
A.Olokhtonov 11 months ago
parent
commit
2d88b57dca
  1. 2
      client/webgl_shaders.js

2
client/webgl_shaders.js

@ -162,7 +162,7 @@ const sdf_vs_src = `#version 300 es @@ -162,7 +162,7 @@ const sdf_vs_src = `#version 300 es
}
vec2 pos = origin + normalize(outwards) * radius;
screen02 = (pos.xy * u_scale + u_translation) / u_res + outwards * pixel;
screen02 = (pos.xy * u_scale + u_translation) / u_res * 2.0 + outwards * pixel;
v_texcoord = pos.xy + outwards * rscale;
screen02.y = 2.0 - screen02.y;

Loading…
Cancel
Save