Practice free →
Home › Per LearnOpenGL, a UNIFORM variable in a GLSL sh…

Per LearnOpenGL, a UNIFORM variable in a GLSL shader is best described as which?

AA per-pixel output of the fragment shader
BA per-vertex attribute changing each vertex
CA value set from CPU + constant across one draw
DA texture sampled from a 2D image
Answer & Solution
Correct answer: C. A value set from CPU + constant across one draw
LearnOpenGL Uniforms: uniforms are set on the host (CPU) before glDrawCall(). Same value visible to every shader invocation in that draw.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions