Shader pipeline detailed view
Description
Vertex shader- Inputs:
individual vertex attributes (position, colour, normal, texture coord)
- Typical operations: position
transformation, lighting computations per vertex, generation and transformation
of texture coordinates
- Outputs:
transformed vertex attributes.
Primitive assembly and rasterisation- Inputs:
transformed vertices and connectivity information
- Typical operations: determining fragment
locations, clipping against the view frustum, back face culling
- Outputs:
fragment positions, fragments to be coloured

Fragment shader- Input:
fragments
- Typical operations: assigning a fragment
colour based on interpolated colour, texel,
etc.
- Output: coloured fragments
Example

Súvisiace pojmy: