sm.render.setHorizonLight

Sets the Horizon light settings.

Kind: Function

Environments: Game

Game

sm.render.setHorizonLight(
    topColor,
    horizonColor,
    bottomColor,
    direction,
    start,
    end,
    falloff
)

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
topColor Color Color of the top of the horizon light.
horizonColor Color Color of the horizon of the horizon light.
bottomColor Color Color of the bottom of the horizon light.
direction Vec3 Direction of the horizon light.
start number Start distance for the horizon light. (Optional)
end number End distance for the horizon light. (Optional)
falloff number Falloff factor for the horizon light. (Optional)