prosperon/source/shaders/linevert.glsl

20 lines
364 B
Plaintext
Raw Normal View History

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;
out float dist;
out vec4 fcolor;
out float seg_len;
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-12 13:22:05 -05:00
}