prosperon/source/shaders/linevert.glsl
2023-05-16 18:31:19 +00:00

20 lines
364 B
GLSL

#version 330
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;
uniform mat4 proj;
void main()
{
gl_Position = proj * vec4(apos, 0.f, 1.f);
fcolor = acolor;
dist = adist;
seg_len = aseglen;
}