oglc/res/shader/shader.vert

15 lines
383 B
GLSL
Raw Normal View History

2021-07-04 03:53:37 +02:00
#version 330 core
2021-07-06 22:20:01 +02:00
layout (location = 0) in vec3 aPos; // position has attribute position 0
layout (location = 1) in vec3 aColor; // color has attribute position 1
layout (location = 2) in vec2 aTexCoord; // texture coordinate
2021-07-04 03:53:37 +02:00
2021-07-06 01:58:55 +02:00
out vec3 ourColor;
2021-07-06 22:20:01 +02:00
out vec2 TexCoord;
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-06 22:20:01 +02:00
TexCoord = aTexCoord;
2021-07-04 03:53:37 +02:00
}