Practice free →
Home › Per LearnOpenGL, an ATTRIBUTE / IN variable in a…

Per LearnOpenGL, an ATTRIBUTE / IN variable in a vertex shader represents which?

APer-vertex input (e.g. position, normal, UV)
BA constant across all vertices in scene
COutput to the framebuffer of a draw call
DA texture sampler bound to a texture unit
Answer & Solution
Correct answer: A. Per-vertex input (e.g. position, normal, UV)
LearnOpenGL Vertex Attributes: each vertex carries a packet of attributes (position, normal, color, UV). VAOs describe their layout.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions