What’s Next

Lights and materials are advanced topics and we have only scratched the surface of what’s possible. There are many settings that take a lot of getting used to. Just setting colors with red, green, and blue values is a little strange at first. But that’s not why these are advanced topics. Lights and materials are incredibly cool, but you must realize that you shouldn’t always use them. This is an important lesson in any kind of programming, not just JavaScript gaming: just because you can doesn’t mean you should. The best programmers in the world know this rule well. And now you do, too!

Let’s put our new lighting skills to good use in the next chapter as we build a simulation of our solar system.

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.