gfx.env.set_ambient_source

Client

Sets the ambient light source of the environment


Syntax

local status = gfx.env.set_ambient_source(
    source
)

Parameters

TypeNameDescription
gfx.env.ambient_sourcesourceAmbient light source to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set environment ambient source to background
gfx.env.set_ambient_source(gfx.env.ambient_source.BG)

On this page