1 2 3 4 5 6 7 8
out vec4 vworldPos; void main() { vec3 worldPos = model * position; vworldPos = vec4(worldPos - viewPoint + modelPos, 1); }