1 #version 330 core
2 layout (location = 0) in vec3 aPos;
3 layout (location = 1) in vec3 aColor;
4 layout (location = 2) in vec3 bColor;
5 layout (location = 3) in vec2 aTexCoord;
6
7 out vec3 ourColor;
8 out vec3 ourBackground;
9 out vec2 TexCoord;
10
11 void main()
12 {
13 gl_Position = vec4(aPos, 1.0);
14 ourColor = aColor;
15 ourBackground = bColor;
16 TexCoord = vec2(aTexCoord.x, aTexCoord.y);
17 }