Why does GL divide `gl_Position` by W for you rather than letting you do it yourself?
I’d like to extent on BDL’s answer. It is not only about the perspective interpolation. It is also about the clipping. The space the value gl_Position is supposed to be provided in is called clip space, and this is before the division by w. The (default) clip volume of OpenGL is defined in clip space … Read more