update
This commit is contained in:
@@ -2,10 +2,19 @@
|
||||
layout (location = 0) in vec2 p0;
|
||||
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 = 6) in float edge_softness;
|
||||
|
||||
uniform mat4 projection;
|
||||
|
||||
out vec4 fragment_color;
|
||||
out vec4 frag_color;
|
||||
out vec2 frag_dest_position;
|
||||
out vec2 frag_dest_center;
|
||||
out vec2 frag_dest_half_size;
|
||||
out float frag_softness;
|
||||
out float frag_border_radius;
|
||||
out float frag_border_thickness;
|
||||
|
||||
const vec2 rectangle_vertices[4] = vec2[](
|
||||
vec2(-1, -1),
|
||||
@@ -25,5 +34,11 @@ void main() {
|
||||
1
|
||||
);
|
||||
|
||||
fragment_color = color;
|
||||
frag_color = color;
|
||||
frag_dest_position = dest_position;
|
||||
frag_dest_center = dest_center;
|
||||
frag_dest_half_size = dest_half_size;
|
||||
frag_border_radius = border_radius;
|
||||
frag_border_thickness = border_thickness;
|
||||
frag_softness = edge_softness;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user