Adding indoor lights
As I mentioned in the lighting chapter (Chapter 6), setting up our lights is crucial to increase visibility; but more importantly, if you don’t set up your lights correctly, you will run into performance issues. We will cover more on how to improve performance by baking our lights in Chapter 18, which covers optimizations. But for now, our focus is on setting up our lights in a way that makes sense for the art gallery and creating a system to control the lights based on proximity.
Note
Overuse of dynamic lights can hinder performance, particularly in VR. Implementing baked lighting for static items is advisable to enhance performance.
To set up indoor lighting with spotlight prefabs (Figure 12.3), follow these steps: