oglc/res/shader/shader.vert

12 lines
264 B
GLSL
Raw Normal View History

2021-07-04 03:53:37 +02:00
#version 330 core
2021-07-06 01:58:55 +02:00
layout (location = 0) in vec3 aPos; // position has attribute position 0
layout (location = 1) in vec3 aColor; // color has attribute position 1
2021-07-04 03:53:37 +02:00
2021-07-06 01:58:55 +02:00
out vec3 ourColor;
2021-07-05 09:51:55 +02:00
2021-07-04 03:53:37 +02:00
void main()
{
2021-07-06 01:58:55 +02:00
gl_Position = vec4(aPos, 1.0);
ourColor = aColor;
2021-07-04 03:53:37 +02:00
}