Object containing information for the sun lighting type. The position of the light is set to the sun’s location.

Referenced by: lighting

Properties

PropertyDetails
datetimeThe current date and time of the simulated sun. It is a number representing the number of milliseconds since 1 January, 1970 UTC.
directShadowsIndicates whether to show shadows cast by the main light source.
displayUTCOffsetUTC offset in decimal hours. Not to be applied to datetime for sun position, only to adjust display of datetime in UI. If displayUTCOffset is null, offset is calculated for the current location (approximate only).
glowDefines stylized glow on emissive elements in the scene. When glow is unset, emissive elements display with a natural lighting appearance.
typeThe type of lighting
Valid value of this property sun

sunLighting Example

{
"datetime": 1458054000000,
"directShadows": true,
"displayUTCOffset": 1,
"type": "sun",
"glow": {
"intensity": 0.7
}
}