Chapter 12Working with Lights and Materials

When you’re done with this chapter, you will

  • Understand how to make different colors

  • Be able to make shapes shiny or hard to see

  • Know how to make shadows in 3D games

In this chapter we’ll cover how to build interesting shapes and materials that look like this:

images/lights_and_materials/when_you_are_done.png

Back in Chapter 1, Project: Creating Simple Shapes, we discussed shapes in our 3D library. Here we’ll talk about different kinds of covers for those shapes. We cannot learn about covers without also learning about lighting. Even in the real world, material and lights go together. If a material is shiny, then it means it reflects light better. ...

Get 3D Game Programming for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.