|
|
@ -125,7 +125,7 @@ const sdf_vs_src = `#version 300 es |
|
|
|
vec2 screen02 = screen01 * 2.0; |
|
|
|
vec2 screen02 = screen01 * 2.0; |
|
|
|
|
|
|
|
|
|
|
|
// Inflate quad by 1 pixel
|
|
|
|
// Inflate quad by 1 pixel
|
|
|
|
float apron = 1.0; |
|
|
|
float apron = 2.0; |
|
|
|
vec2 line_dir = normalize(a_line.zw - a_line.xy); |
|
|
|
vec2 line_dir = normalize(a_line.zw - a_line.xy); |
|
|
|
vec2 up_dir = vec2(line_dir.y, -line_dir.x); |
|
|
|
vec2 up_dir = vec2(line_dir.y, -line_dir.x); |
|
|
|
vec2 pixel = vec2(2.0) / u_res * apron; |
|
|
|
vec2 pixel = vec2(2.0) / u_res * apron; |
|
|
|