Lighting and Environment
You’ve been using the default lighting setup, which you added to your scene back in the first section. While you may be happy with this lighting setup, you can also adjust it to dramatically change the appearance of your game.
The WorldEnvironment
node contains an Environment
property that controls the background, sky, ambient light, and other aspects of the scene’s appearance. Select the node and click the property to expand it:
Figure 5.30: Environment properties
There are a lot of settings here, some of which are only really useful in specific advanced situations. However, these are the ones you’ll find yourself using the most often:
- Background and Sky: Here, you can configure the background appearance of the 3D scene. You can choose a solid color or a
Sky
material. Sky materials can either be special textures that wrap around the scene (see the next game for an example) or one that’s automatically...