gfx.sky.set_mode

Client

Sets the material type of the sky


Syntax

local status = gfx.sky.set_mode(
    mode
)

Parameters

TypeNameDescription
stringmodeSky material type to apply
Refer Modes section

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Modes

ModeDescription
"panorama"Panorama sky material
"procedural"Procedural sky material
"physical"Physical sky material

Examples

Set sky material type to procedural
gfx.sky.set_mode("procedural")

On this page