1 2 3 4 5 6
void main() { gl_Position = viewProjection * model * vec4(position, 1.0); gl_Position.z = max(gl_Position.z, -1); }