2022-06-21 23:16:14 -05:00
|
|
|
#version 330
|
2023-05-16 13:31:19 -05:00
|
|
|
layout (location = 0) in vec2 apos;
|
|
|
|
layout (location = 1) in float adist;
|
|
|
|
layout (location = 2) in vec4 acolor;
|
|
|
|
layout (location = 3) in float aseglen;
|
2023-05-25 21:55:55 -05:00
|
|
|
layout (location = 4) in float asegspeed;
|
2023-05-16 13:31:19 -05:00
|
|
|
|
|
|
|
out float dist;
|
|
|
|
out vec4 fcolor;
|
|
|
|
out float seg_len;
|
2023-05-25 21:55:55 -05:00
|
|
|
out float seg_speed;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
2023-05-12 13:22:05 -05:00
|
|
|
uniform mat4 proj;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-05-16 13:31:19 -05:00
|
|
|
gl_Position = proj * vec4(apos, 0.f, 1.f);
|
|
|
|
fcolor = acolor;
|
|
|
|
dist = adist;
|
|
|
|
seg_len = aseglen;
|
2023-05-25 21:55:55 -05:00
|
|
|
seg_speed = asegspeed;
|
2023-05-12 13:22:05 -05:00
|
|
|
}
|