prosperon/source/shaders/circlevert.glsl

22 lines
437 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;
layout (location = 1) in vec3 acolor;
layout (location = 2) in vec2 apos;
layout (location = 3) in float aradius;
2023-05-13 22:01:53 -05:00
//layout (location = 4) in float afill;
2023-05-12 13:22:05 -05:00
2022-06-21 23:16:14 -05:00
out vec2 coords;
2023-05-12 13:22:05 -05:00
out float radius;
out vec3 fcolor;
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);
coords = vertex.xy;
fcolor = acolor;
radius = aradius;
2023-02-26 11:28:52 -06:00
}