gfx.fog.set_depth_curve
Client
Sets the depth curve of the fog post-processing effect
Syntax
local status = gfx.fog.set_depth_curve(
value
)Only available when the fog mode is set to depth mode. Refer gfx.fog.set_mode to configure the active fog mode.
- Depth mode required — calling this function in any other fog mode will have no effect.
- Recommended usage — combine with
gfx.fog.set_depth_beginandgfx.fog.set_depth_endto fully control the fog transition shape.
Parameters
| Type | Name | Description |
|---|---|---|
float | value | Depth curve value to apply Controls the rate at which fog density increases between the depth begin and end points. Higher values cause fog to build up more aggressively near the end distance, while lower values spread the transition more evenly |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
gfx.fog.set_depth_curve(1.5)