In this section, we're going to be looking at combining our light sources. So far we've covered directional lights, point lights, and spotlights in the previous sections. The following is a brief overview of what they are:
- Directional light: A directional light is a light that has a particular direction. It shines light in a particular direction. But it doesn't have a location, a position. It's just infinitely far away from everything.
- Point light: A point light has a position, but it shines light in every single direction. Depending on what you're doing and what sort of game you've got, you could potentially have the sun or a star' as a directional light, but if you could go into space, go around your star or get near it, then you'd probably want a point light.
- Spotlight: A spotlight essentially is like a lamp. It casts a light in an initial position, and then in a direction as well. So it's like a combination of the preceding two types of light.
In the previous sections, we...