2024-07-31 13:40:16 +00:00
|
|
|
#version 330 core
|
2024-08-27 20:24:08 +00:00
|
|
|
layout(location = 0) in vec3 aPos;
|
|
|
|
layout(location = 1) in vec3 aColor;
|
2024-08-22 15:55:30 +00:00
|
|
|
|
2024-07-31 13:40:16 +00:00
|
|
|
out vec3 ourColor;
|
|
|
|
|
2024-08-27 20:24:08 +00:00
|
|
|
uniform mat4 model;
|
|
|
|
uniform mat4 view;
|
|
|
|
uniform mat4 projection;
|
|
|
|
|
2024-07-31 13:40:16 +00:00
|
|
|
void main()
|
|
|
|
{
|
2024-08-27 20:24:08 +00:00
|
|
|
gl_Position = projection * view * model * vec4(aPos, 1.0);
|
2024-07-31 13:40:16 +00:00
|
|
|
ourColor = aColor;
|
2024-08-27 20:24:08 +00:00
|
|
|
}
|