set_sun_position
Calculate the sun vector based on the location parameters: latitude, longitude, north orientation, date and time. The command returns the calculated sun vector.
arguments
- "latitude" : Float64
Latitude of the current location (North is positive)
- "longitude" : Float64
Longitude of the current location (East is positive)
- "date" : Date
Current date and time
- "time_offset" : Float64
Time offset from GMT (Timezones to the east are positive)
- "instance_name" : String (default: null)
Sun Light Instance name
- "sun_shader" : String (default: null)
Sun shader name
- "daylight_savings" : Boolean (default: false)
Boolean to enable daylight savings calculation
- "north" : Float32<3> (default: null)
North direction vector
- "z_up" : Boolean (default: false)
Boolean to determine up axis
return value
Float32<3>Float32<3>. The sun direction vector