scale brush size on high dpi

This commit is contained in:
2019-02-26 15:14:42 +01:00
parent cbfcd66bfc
commit a0ed079299
7 changed files with 23 additions and 16 deletions

View File

@@ -49,7 +49,7 @@ out mediump vec4 frag;
void main()
{
mediump vec2 uv_base = use_fragcoord ? gl_FragCoord.st / resolution : uv;
mediump vec2 uv_base = use_fragcoord ? (gl_FragCoord.st / resolution) : uv;
mediump vec4 base = texture(tex, uv_base);
mediump vec4 stroke = texture(tex_stroke, uv);