Adding fog
Beginner
Getting started
Adding fog to your game can be a great way to change its mood and atmosphere. Enabling fog in BBMOD is really easy - simply call function bbmod_fog_set:
bbmod_fog_set(
// The color of the fog
BBMOD_C_SILVER,
// The maximum intensity of the fog
0.6,
// The distance from the camera at which the fog starts
100,
// The distance from the camera at which the fog has the maximum intensity
1000);
You can also change individual fog properties using functions bbmod_fog_set_color, bbmod_fog_set_intensity, bbmod_fog_set_start and bbmod_fog_set_end. Fog can be disabled again by setting its intensity to 0:
bbmod_fog_set_intensity(0); // Disables fog