Practice free →
Home › Per LearnOpenGL, a VARYING (now 'in' to fragment…

Per LearnOpenGL, a VARYING (now 'in' to fragment shader) variable is which?

AConstant uniform value set by CPU code
BInterpolated per-pixel value from vertex shader
CPer-vertex attribute bound from a buffer
DA texture coordinate stored on disk only
Answer & Solution
Correct answer: B. Interpolated per-pixel value from vertex shader
LearnOpenGL: per-vertex outputs are interpolated across the primitive by the rasterizer and read in the fragment shader as 'in' variables.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions