Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Suppose this is the model vertices float vertices[ ] = { 0.4f, 0.6f, 0.0f, //po 0.0f, 0.0f, 0.0f, //p1 -0.4f, 0.0f, 0.48, //p2 0.0f,
1. Suppose this is the model vertices float vertices[ ] = { 0.4f, 0.6f, 0.0f, //po 0.0f, 0.0f, 0.0f, //p1 -0.4f, 0.0f, 0.48, //p2 0.0f, 0.0f, 0.0, 1/p1 0.6f, 3.0f, 0.0f //p3 }; And it is sent to vertex shader without further change. a) What does glDrawArrays/GL_TRIANGLES, 0, 3) draw? b) What does glDrawArcaxs(GL_TRIANGLES, 1, 3) draw? c) What does alDrawArrays/GL_TRIANGLES, 2, 3) draw? d) Wh does glDrawArrays/GL_TRIANGLES, O, 5) draw? e) For those triangles that are not degenerated, are the viewer seeing the front or back? 1. Suppose this is the model vertices float vertices[ ] = { 0.4f, 0.6f, 0.0f, //po 0.0f, 0.0f, 0.0f, //p1 -0.4f, 0.0f, 0.48, //p2 0.0f, 0.0f, 0.0, 1/p1 0.6f, 3.0f, 0.0f //p3 }; And it is sent to vertex shader without further change. a) What does glDrawArrays/GL_TRIANGLES, 0, 3) draw? b) What does glDrawArcaxs(GL_TRIANGLES, 1, 3) draw? c) What does alDrawArrays/GL_TRIANGLES, 2, 3) draw? d) Wh does glDrawArrays/GL_TRIANGLES, O, 5) draw? e) For those triangles that are not degenerated, are the viewer seeing the front or back
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started