
#version 330

uniform mat4 u_cameraMatrix;
uniform mat4 u_objectPositionMatrix;

in vec4 a_vertexPos;
in vec4 a_colour;

out vec4 v_colour;

vec4 p;
void main() {
    v_colour = a_colour;
    p = u_objectPositionMatrix * a_vertexPos;
    p = u_cameraMatrix * p;
    gl_Position = p;
}
