gfx.sky.physical.set_rayleigh_color

Client

Sets the Rayleigh scattering color of the physical sky material


Syntax

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

Parameters

TypeNameDescription
colorcolorRayleigh scattering 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 Rayleigh color using a color table
gfx.sky.physical.set_rayleigh_color({0.26, 0.41, 0.58, 1.0})
Set physical sky Rayleigh color using a hex string
gfx.sky.physical.set_rayleigh_color("#426894")

On this page