Skip to content

Commit

Permalink
Fix GLX Corner Radius to be more circular
Browse files Browse the repository at this point in the history
  • Loading branch information
pijulius authored May 18, 2024
1 parent ba8d120 commit fcc32ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/gl/shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const char blit_shader_glsl[] = GLSL(330,
vec4 rim_color = mix(c, border_color, clamp(border_width, 0.0f, 1.0f));

vec2 outer_size = effective_size;
vec2 inner_size = outer_size - vec2(corner_radius) * 2.0f;
vec2 inner_size = outer_size - vec2(corner_radius) * 2.0f - 1;
float rect_distance = rectangle_sdf(texcoord - outer_size / 2.0f,
inner_size / 2.0f) - corner_radius;
if (rect_distance > 0.0f) {
Expand Down

0 comments on commit fcc32ee

Please sign in to comment.