Skip to content

Flare

Class ยท server and client scripts

Flare controls the world's sun lens flare and sun rays. Access it through World.Flare.

Example

-- Server script.
World.Flare.Intensity = 0.8
World.Flare.Scale = 1.2
World.Flare.Tint = Color.new(1, 0.95, 0.85)

Intensity

Property
Intensity: number

Intensity is the brightness, from 0 to 10, of the sun lens flare and sun rays; 0 turns both off.

Default 1

Scale

Property
Scale: number

Scale multiplies the size of every lens flare element, from 0.1 to 5.

Default 1

Tint

Property
Tint: Color

Tint is the color tint of the lens flare and sun rays.

Default Color.White

Ghost

Property
Ghost: number

Ghost is the brightness, from 0 to 10, of the secondary reflections of the sun lens flare. 0 keeps only the main flare disk.

Default 1

Rays

Property
Rays: number

Rays is the brightness, from 0 to 10, of the sun rays shining past clouds and objects. Rays draw at graphics quality Level 6 and above.

Default 0.25