gfx.sky.physical.set_mie_color

Client

Sets the Mie scattering color of the physical sky material


Syntax

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

Parameters

TypeNameDescription
colorcolorMie 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 Mie color using a color table
gfx.sky.physical.set_mie_color({0.69, 0.86, 1.0, 1.0})
Set physical sky Mie color using a hex string
gfx.sky.physical.set_mie_color("#b0dcff")

On this page