题目内容

What do shaders know about matrix stacks?

A. Shaders do not know anything about matrix stacks.
B. Shaders only know how to fetch the top matrix of the matrix stack.
C. The entire stack data structure is sent to the shader programs.
D. Shaders reference the stack data structure on the host CPU program.

查看答案
更多问题

To add per-vertex color to our shape in modern OpenGL, what must we provide in addition to draw code without color?

A glUniform call.
B. An unbind of the current buffer and a bind of a color buffer.
C. A client state update and a bind of a color buffer.
D. A bind of a color buffer.

Given that we are using glUniform to send values to our shader programs, what happens to the value on the shader if we change the value of the referenced variable on the CPU host program, without calling glUniform again?

A. The shader value is still set to the previous value.
B. The shader value will be automatically updated to the current value.
C. You cannot change the variable.
D. The shader value will have an undefined value.

How can we increase the size of a specular highlight from a point light on a specific object, while keeping the size of the specular highlight on other objects in the scene the same size?

A. Increase the intensity of the specular component of the light.
B. Increase the intensity of the specular component of the object's material.
C. Increase the shininess of the object's material.
Decrease the shininess of the object's material.
E. Move the object closer to the light
F. Move the object farther to the light

What additional interpolated vertex values must we use in the fragment shader for Phong shading

A. The color computed at each vertex.
B. The position and the normal of each vertex.
C. The normal of each vertex.
D. The connectivity of each vertex.

答案查题题库