Skip to main content

sun_direction

Function sun_direction 

Source
pub fn sun_direction(hour: f32) -> Vec3
Expand description

Unit vector pointing from the world towards the sun. Rises in +X at 6:00, peaks at noon, sets in -X at 18:00.