Setting up fogging of the level
Using fog is a very common method of adding depth to a scene. Fog can help separate distant objects from those up-close, and can even be used to separate the hills from the valleys. Having fog in a scene also allows us to reduce the render distance to help increase a game's performance. In this recipe, we will set up fog parameters in a level.
Getting ready
Start up Torque 3D and launch a level of your game, then press F11 to open the World Editor. As we want to manipulate the scene objects, the Object Editor should be selected (F1 or by using the Editors menu). A level based on the Empty Terrain
level of Full
template could be used as a good example.
How to do it...
The following steps add fog to a level that did not have it applied originally:
Select
theLevelInfo
class object in the Scene Tree window. By default it is named theLevelInfo class object.In the property inspector (the window named as Inspector), scroll until you locate the Fog section.
Click on the...