gfx.fog.set_depth_begin
Client
Sets the depth begin distance of the fog post-processing effect
Syntax
local status = gfx.fog.set_depth_begin(
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 — set
depth_beginless thandepth_endto define a valid and visible fog transition range.
Parameters
| Type | Name | Description |
|---|---|---|
float | value | Depth begin value to apply Sets the distance from the camera at which depth-based fog starts to appear. Geometry closer than this distance will not be affected by fog |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
gfx.fog.set_depth_begin(10.0)