Skip to content
Rendering · Pipeline stagesBeginner

Fragment shader

The program that runs once per covered pixel and outputs its color.

Live demo coming soon

How it works

Placeholder text for the walking skeleton. Israel replaces it.

After the rasterizer works out which pixels a triangle covers, the fragment shader runs once for each of them and writes a color. Values passed from the vertex shader arrive interpolated across the triangle.

Further reading