Hierarchy

  • PBSun

Properties

tints the directional light and the sun disc

direction?: PBVector3

Direction the sunlight travels, in scene space: (0,-1,0) = sun straight overhead. Normalized by the renderer. Set = the sun stays fixed at every time of day; its color and intensity still follow the time of day. Unset or zero = the time-of-day path.

intensity?: number

default = 1, multiplier on the renderer's time-of-day light intensity. Negative values clamp to 0

visible?: boolean

default = true. false hides the sun and moon discs and the lens flare, but not their light