Previous | Next --- Slide 36 of 70
Back to Lecture Thumbnails
SlimShady

What is a fragment?

motoole2

@SlimShady A fragment is a piece of a triangle primitive, and one is generated every time we sample a triangle at the rasterization stage. A fragment includes the coordinates of the pixel it represents, and other data derived from the vertices of its triangle (e.g., color, UV coordinates, normal information). To perform perspective correct interpolation of the se attributes, we follow the recipe shown above. The graphics pipeline then takes each fragment and its attributes as input, and outputs a color value for the corresponding pixel.