Vital.sandbox
GFXFog

gfx.fog.is_enabled

Client

Retrieves whether the fog post-processing effect is currently enabled


Syntax

local result = gfx.fog.is_enabled()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolresulttrue if fog is enabled, false otherwise

Examples

Print whether fog is enabled
engine.print("info", "Fog enabled:", gfx.fog.is_enabled())

On this page