Fragment (computer graphics)
From Wikipedia, the free encyclopedia
A fragment is a computer graphics term for all of the data necessary to generate a pixel in the frame buffer. This may include, but is not limited to:
- raster position
- depth
- interpolated attributes (color, texture coordinates , etc.)
- stencil
- alpha
- window ID
It can be thought of as the data needed to shade the pixel, plus the data needed to test whether the fragment survives to become a pixel (depth, alpha, stencil, scissor, window ID, etc.)