Question: 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[ ] =

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!