Rasterization converts geometric points into pixels on a grid. In OpenGL, it is the central pipeline for turning supplied geometry into an image; higher-level tools such as Raylib instead offer drawing functions like DrawTriangle and DrawRectangle. section 7.1.2
The pipeline proceeds in stages:
- A draw call supplies geometry and specifies what kind and how many objects to draw. section 7.1.2
- A vertex shader manipulates vertices, from moving them to projecting a 3D scene. section 7.1.2
- The rasterizer turns shapes into fragments; a fragment shader assigns color to each visible pixel. section 7.1.2
- The fragments are reassembled into an image. section 7.1.2
Figure 7.1 The rasterization pipeline
Use the pipeline diagram to follow the stages from geometry to image. section 7.1.2
