Incremental implementation of primitiveVertexShader.glsl