Skip to content

SunDisk

Class ยท server and client scripts

SunDisk draws the sun as a visible disk in an Atmosphere sky when attached to a directional light entity.

Example

-- Server script.
local sun = World.Spawn({ SunDisk = { SunDiskScale = 1.5 } })
local disk = sun.SunDisk
if disk then
    disk.SunDiskScale = 2
end

SunDiskScale

Property
SunDiskScale: number

SunDiskScale multiplies the angular radius of the sun disk drawn in the sky.

Default 1