#version 330 core layout (location = 0) in vec3 aPos; //layout (location = 1) in vec2 texCoords; layout (location = 2) in vec4 color; out vec4 oColor; uniform mat4 modelViewProjectionMatrix; void main() { oColor = color; gl_Position = modelViewProjectionMatrix * vec4(aPos.x, aPos.y, aPos.z, 1.0); }