in vec2 position;
in float zCoord;
in vec4 meshColour;
out vec4 varyingColour;
uniform mat3 transform;

void main() {
    vec3 pos = transform * vec3(position.x, position.y, 1.0);
    varyingColour = meshColour;
    gl_Position = vec4(pos.x, pos.y, zCoord, 1.0);
}
