Clip Space and Perspective Division
gl_Position is a homogeneous 4D coordinate; primitives are clipped against -w <= x,y,z <= w, then division by w maps surviving vertices into normalized device coordinates in [-1,1]. The w-divide is what makes distant objects smaller under a perspective projection.
This Concept is waiting for its first lesson!
gl_Position is a homogeneous 4D coordinate; primitives are clipped against -w <= x,y,z <= w, then division by w maps surviving vertices into normalized device coordinates in [-1,1]. The w-divide is what makes distant objects smaller under a perspective projection.
Are you a teacher? Sign in to start contributing.
Sign In