ugui.c3l/opengl/vertex.glsl

14 lines
263 B
Plaintext
Raw Permalink Normal View History

2023-01-19 00:53:46 +01:00
#version 330
// use the input ("in") vertices from index zero
layout(location = 0) in vec4 position;
2023-01-22 22:45:03 +01:00
layout(location = 1) in vec4 color;
smooth out vec4 out_color;
2023-01-19 00:53:46 +01:00
void main()
{
// simply copy teh output position
gl_Position = position;
2023-01-22 22:45:03 +01:00
out_color = color;
2023-01-19 00:53:46 +01:00
}