
#version 330

uniform mat4 u_projectionMatrix;
uniform mat4 u_cameraMatrix;
uniform mat4 u_objectPositionMatrix;

in vec4 a_vertexPos;
in vec4 a_colour;
in vec2 a_texCoord;

out vec4 v_colour;
out vec2 v_texCoord;

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