Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago