Practice free →
Home › Per The Book of Shaders (Patricio Gonzalez Vivo)…

Per The Book of Shaders (Patricio Gonzalez Vivo), a FRAGMENT shader executes how often during rendering?

AOnce per pixel of every rasterized fragment
BOnce per vertex of input mesh data
COnly when the user clicks the mouse
DOnce per frame at a global level only
Answer & Solution
Correct answer: A. Once per pixel of every rasterized fragment
Book of Shaders Ch. Pixel: FS runs per fragment (≈ per pixel). Output is a colour vec4, computed in parallel on the GPU.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions