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.
Related questions
Per Book of Shaders + LearnOpenGL, the standard COLOR model for screen rendering is which?Per Khan Academy Pixar-in-a-Box (parametric curves), a CUBIC Bezier curve is defined by hoPer LearnOpenGL (blending), the standard ALPHA blending formula is which?Per LearnOpenGL (PBR), Physically Based Rendering uses which microfacet-based reflection mPer LearnOpenGL (lighting), the PHONG reflection model adds which three components?Per LearnOpenGL (textures), the (u, v) coordinates of a texture are normalised to which raPer LearnOpenGL (transforms), a 2D AFFINE transformation typically combines which two operIn common practice (game engines), the typical TARGET frame rate for modern console / PC g