Getting Started
...
Glossary
#-G Terms

Fog

3min

In gaming, fog is a post-processing effect that is used to simulate the effect of fog in the real world. Fog is a layer of particles in the air that scatters light. This can make objects further away appear hazy or obscured.

There are two main types of fog used in gaming:

  • Linear fog: Linear fog is the simplest type of fog. It is a gradient that starts at a certain distance from the camera and becomes opaque at a certain distance.
  • Exponential fog: Exponential fog is a more realistic type of fog. It is a gradient that starts at a certain distance from the camera and becomes opaque at an exponential rate.

Fog can be used to create a variety of effects in games, such as:

  • To create a sense of depth: Fog can be used to create a sense of depth in a game world. This is because it can make objects further away appear hazy or obscured.
  • To hide objects: Fog can be used to hide objects that are further away from the camera. This can be useful for hiding objects that are not yet loaded into the game world or for hiding objects that the player is not supposed to see.
  • To create atmospheric effects: Fog can be used to create atmospheric effects, such as fog banks or mist. This can make a game world look more realistic and immersive.

Here are some additional tips for using fog in gaming:

  • Use a consistent fog density: It is important to use a consistent fog density throughout a game. This will help to ensure that the fog looks realistic and natural.
  • Use the right type of fog: The type of fog that you use will depend on the desired effect. For example, if you want to create a sense of depth, you should use linear fog. If you want to hide objects, you should use exponential fog.
  • Optimize the fog: The fog effect can affect the performance of a game. If you are using a lot of fog, you may want to consider optimizing the fog effect to improve performance.

Overall, fog is an important post-processing effect that can be used to create a variety of effects in games. By understanding the properties and uses of fog, you can create more realistic and immersive game worlds.

Feedback

Please be sure to submit issues or feature requests through the embedded feedback form. In the event it is a major issue please contact us directly through Discord.

Updated 03 Apr 2024
Doc contributor
Did this page help you?