© Kyle Halladay 2019
Kyle HalladayPractical Shader Developmenthttps://doi.org/10.1007/978-1-4842-4457-9_12

12. Lighting in Depth

Kyle Halladay1 
Bristol, UK

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 ...

Get Practical Shader Development: Vertex and Fragment Shaders for Game Developers now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.