Question: PLEASE HELP Suppose this is the model vertices float vertices[ ] = { 0.4f, 0.6f, 0.0f, //p0 0.0f, 0.0f, 0.0f, //p1 -0.4f, 0.0f, 0.4f, //p2
PLEASE HELP Suppose this is the model vertices
float vertices[ ] = {
0.4f, 0.6f, 0.0f, //p0
0.0f, 0.0f, 0.0f, //p1
-0.4f, 0.0f, 0.4f, //p2
0.0f, 0.0f, 0.0f, //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 glDrawArrays(GL_TRIANGLES, 1, 3) draw?
c) What does glDrawArrays(GL_TRIANGLES, 2, 3) draw?
d) What does glDrawArrays(GL_TRIANGLES, 0, 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
Get step-by-step solutions from verified subject matter experts
