Here's your free sample!

1.1.0. Rasterization stage

This post is also available in…

The third stage corresponds to rasterization. At this point, the objects have 2D screen coordinates, so pixels in the projection area must be found. The process of finding all the pixels that surround an on-screen object is called Rasterization. This process can be seen as a synchronization point between the objects in the scene and the pixels on the screen.

For each object, the rasterizer performs two processes:

  1. Triangle Setup.
  2. Triangle Traversal.

Triangle Setup generates the data that will be sent to Triangle Traversal. It includes the equations for the edges of an object on the screen. After this, Triangle Traversal lists the pixels that are covered by the area of the polygon object. In this way, it generates a group of pixels called fragments; and from this the word Fragment Shader, which is also used to refer to an individual pixel.

Follow us to stay informed about all the latest news, updates, and more.

Join the group to share your experiences with other developers.

Subscribe to our channel and keep learning game dev!

Jettelly Team

We are a team of indie developers with more than 9 years of experience in video games. As an independent studio, we have developed Nom Noms in which we published with Hyperbeard in 2019. We are currently developing The Unity Shader Bible.

Follow us on our social networks.