Exercises
Explore the core principles behind real-time shader programming for games. This quiz examines the graphics pipeline, vertex and fragment processing, attribute interpolation, UV addressing, normal transformation, lighting calculations, depth testing, mipmaps, transparency, and shader uniforms. The questions combine conceptual knowledge with practical visual interpretation to assess skills useful when creating efficient and accurate game rendering effects.
Answer the questions below and check the explanation for each answer.
0/11 answered
Auto audio on: the next questions will be read aloud when you click Continue.
Rasterization determines which screen samples are covered by a projected primitive and generates fragments for subsequent processing.
A vertex shader must output a clip-space position, commonly through gl_Position or SV_Position. Later pipeline stages use it for clipping and perspective division.
During rasterization, vertex attributes are combined using barycentric interpolation, usually with perspective correction, to obtain values for each fragment.
The repeat mode wraps UV coordinates so the texture tiles whenever either coordinate passes beyond its standard 0-to-1 interval.
Using the inverse transpose preserves the normal's perpendicular relationship to transformed tangent directions under non-uniform scaling.
A tangent-space normal of (0, 0, 1) is remapped from the signed range to texture color values, producing approximately (0.5, 0.5, 1.0).
Depth testing compares a fragment's depth with the stored value. Under a common less-than test, a farther fragment fails and does not overwrite the nearer visible surface.
Aligned unit vectors have a dot product of 1. Clamping with max(0, value) leaves 1, producing maximum Lambertian diffuse illumination.
Standard alpha blending is order-dependent. Transparent surfaces are generally drawn back to front while still depth-testing against opaque geometry and avoiding transparent depth writes.
Mipmaps store progressively smaller versions of a texture. Selecting an appropriate level reduces high-frequency aliasing during minification and can improve texture-cache behavior.
Uniform and constant-buffer data supplies shared parameters such as matrices, colors, or light settings. These values are not ordinary per-vertex interpolants or per-pixel framebuffer storage.
Video Courses
recommended
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks