Practice free →
Home › Per LearnOpenGL (shaders), a VERTEX SHADER's mai…

Per LearnOpenGL (shaders), a VERTEX SHADER's main role is which?

ASample the depth buffer for each fragment
BCull triangles that are not visible
CTransform per-vertex position from object space
DCompute the final per-pixel output colour
Answer & Solution
Correct answer: C. Transform per-vertex position from object space
LearnOpenGL Shaders: vertex shader runs per vertex; applies MVP transformations and writes gl_Position. Per-pixel colour is the FS's job.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions