Moving position calculations into the vertex shader.