Sky Class
Sky class if composed of a HemisphereLight, DirectionalLight and a dynamic generated Sky sphere geometry.
This object is composed by 3 internal objects - Hemisphere light - Directional Light - Mesh
Item Index
Methods
update
()
Update sky state, updates the time value and the gradient uniform values.
updateSky
()
Update sky color and sun position.
If autoUpdate set to true is automatically called by the update method.
Properties
autoUpdate
Boolean
If set to true the sky auto updates its time.
Default: true
colorBottom
Array
Array with bottom sky colors.
colorTop
Array
Array with top sky colors.
dayTime
Number
Day time in seconds.
intensity
Number
Sun color intensity.
moonColor
Number
Moon color in hex RGB.
Default: 0x5555BB
sunColor
Number
Sun color in hex RGB.
Default: 0xFFFFAA
sunDistance
Number
Sun distance.
time
Number
Current day time in seconds.