gfx.fog.set_mode
Client
Sets the mode of the fog post-processing effect
Syntax
local status = gfx.fog.set_mode(
value
)Parameters
| Type | Name | Description |
|---|---|---|
gfx.fog.fog_mode | value | Fog mode to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
-- Set exponential fog mode
gfx.fog.set_mode(gfx.fog.fog_mode.EXPONENTIAL)
-- Set depth-based fog mode
gfx.fog.set_mode(gfx.fog.fog_mode.DEPTH)