Exercises

Real-Time Shader Programming Fundamentals

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

  1. 1

    Which graphics pipeline operation converts projected triangles into fragments that can be processed for individual pixels?

    Question 1
  2. 2

    What output must a typical vertex shader provide so the pipeline can position a vertex for clipping and rasterization?

  3. 3

    In the illustrated triangle, what process produces smoothly changing color values at interior fragments from the three vertex colors?

    Question 3
  4. 4

    The image shows a checkerboard texture repeating several times across a surface whose UV coordinates extend beyond the 0-to-1 range. Which sampler address mode is represented?

    Question 4
  5. 5

    Which matrix should transform a surface normal when the model transformation includes non-uniform scaling?

    Question 5
  6. 6

    Which RGB value approximately represents an unperturbed surface normal pointing along positive Z in a conventional tangent-space normal map?

  7. 7

    What is the primary purpose of depth testing during fragment processing?

  8. 8

    In the diagram, the unit surface normal N and unit light direction L point in the same direction. What is the Lambertian term max(0, N dot L)?

    Question 8
  9. 9

    For conventional source-alpha blending, how should multiple transparent surfaces usually be rendered to produce correct compositing?

  10. 10

    Why are mipmaps commonly used when sampling game textures?

    Question 10
  11. 11

    Which statement correctly describes a shader uniform or constant-buffer value?

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate