Functional fragment shader calculating vertex positions.