This commit is contained in:
Daniel Ledda
2026-03-06 01:36:29 +01:00
parent aba462447d
commit e768b38322
14 changed files with 298 additions and 186 deletions

View File

@@ -4,7 +4,8 @@ layout (location = 1) in vec2 p1;
layout (location = 2) in vec4 color;
layout (location = 3) in float border_radius;
layout (location = 4) in float border_thickness;
layout (location = 5) in float edge_softness;
layout (location = 5) in vec4 border_color;
layout (location = 6) in float edge_softness;
uniform mat4 projection;
@@ -15,6 +16,7 @@ out vec2 frag_dest_half_size;
out float frag_softness;
out float frag_border_radius;
out float frag_border_thickness;
out vec4 frag_border_color;
const vec2 rectangle_vertices[4] = vec2[](
vec2(-1, -1),
@@ -40,5 +42,6 @@ void main() {
frag_dest_half_size = dest_half_size;
frag_border_radius = border_radius;
frag_border_thickness = border_thickness;
frag_border_color = border_color;
frag_softness = edge_softness;
}