Advertisement

Lighting in Depth

  • Kyle Halladay
Chapter

Abstract

Until now, our scene has been lit only by a single directional light. This has worked for us because we’ve been trying to light a simple outdoor scene, and a directional light is excellent at simulating light from the sun. Many games get by with lighting that isn’t any more complicated than this. However, the drawback for keeping lighting so simple is that it limits the amount of flexibility you have when deciding how your project will look. Since we don’t want to always be limited to lighting things with just the sun, this chapter is going to introduce different types of lights commonly used by video games and how to write shaders that work with multiple lights at once. Along the way, we’ll change our example project to be a night-time scene, with a number of different sources of light all working together.

Copyright information

© Kyle Halladay 2019

Authors and Affiliations

  • Kyle Halladay
    • 1
  1. 1.BristolUK

Personalised recommendations