#version 300 es

in vec3 position;

uniform mat4 projMtx;
uniform mat4 viewMtx;
uniform mat4 mdlMtx;

out vec3 worldPos;

void main()
{
    gl_Position = projMtx * (viewMtx * (mdlMtx * vec4(position, 1.0))); 
    worldPos = (mdlMtx * vec4(position.xyz, 1.0)).xyz;
}
