Lighting in games is important as it is what allows GameObjects to be seen. If we did not have lights in our game, the game screen would be completely black. In Unity, it is easy to take lighting for granted because, when we create a new scene, there is a default
Main Camera and a
Shadows in game worlds are another component that can be taken for granted because Unity's default settings regarding shadows is often sufficient for games.
In this section, we will look at light sources and shadows.
- Directional light
- Point light
- Spot light
- Area light
Let's look at each of these lights.