prosperon/source/shaders/circlevert.glsl

28 lines
551 B
Plaintext
Raw Normal View History

2022-06-21 23:16:14 -05:00
#version 330 core
2023-05-12 13:22:05 -05:00
layout (location = 0) in vec2 vertex;
2023-05-16 01:31:13 -05:00
layout (location = 1) in vec2 apos;
layout (location = 2) in float aradius;
layout (location = 3) in vec4 acolor;
2023-05-24 20:45:50 -05:00
layout (location = 4) in float asegsize;
layout (location = 5) in float afill;
2023-05-12 13:22:05 -05:00
2022-06-21 23:16:14 -05:00
out vec2 coords;
2023-05-16 01:31:13 -05:00
out vec4 fcolor;
2023-05-12 13:22:05 -05:00
2023-05-24 20:45:50 -05:00
out float segsize;
out float fill;
out float radius;
2023-05-04 17:07:00 -05:00
uniform mat4 proj;
2023-02-26 11:28:52 -06:00
2022-06-21 23:16:14 -05:00
void main()
{
2023-05-12 13:22:05 -05:00
gl_Position = proj * vec4((vertex * aradius) + apos, 0.0, 1.0);
2023-05-24 20:45:50 -05:00
coords = vertex;
2023-05-12 13:22:05 -05:00
fcolor = acolor;
2023-05-24 20:45:50 -05:00
segsize = asegsize;
fill = afill;
2023-05-12 13:22:05 -05:00
radius = aradius;
2023-02-26 11:28:52 -06:00
}