2021-07-06 23:13:56 +01:00
|
|
|
#version 430 core
|
2021-07-06 21:20:01 +01: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 02:53:37 +01:00
|
|
|
|
2021-07-06 00:58:55 +01:00
|
|
|
out vec3 ourColor;
|
2021-07-06 21:20:01 +01:00
|
|
|
out vec2 TexCoord;
|
2021-07-05 08:51:55 +01:00
|
|
|
|
2021-07-04 02:53:37 +01:00
|
|
|
void main()
|
|
|
|
{
|
2021-07-06 00:58:55 +01:00
|
|
|
gl_Position = vec4(aPos, 1.0);
|
|
|
|
ourColor = aColor;
|
2021-07-06 21:20:01 +01:00
|
|
|
TexCoord = aTexCoord;
|
2021-07-04 02:53:37 +01:00
|
|
|
}
|