gfx.sky.physical.set_ground_color

Client

Sets the ground color of the physical sky material


Syntax

local status = gfx.sky.physical.set_ground_color(
    color
)
local status = gfx.sky.physical.set_ground_color(
    hex
)

Parameters

TypeNameDescription
colorcolorGround color as {r, g, b, a}
stringhexAlternatively, a valid HTML hex color string (e.g. "#ffffff")

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set physical sky ground color using a color table
gfx.sky.physical.set_ground_color({0.1, 0.07, 0.034, 1.0})
Set physical sky ground color using a hex string
gfx.sky.physical.set_ground_color("#1a1208")

On this page