A computational simulation suggests that insects may be capable of using the properties of light from the sky to determine their compass direction with an error of less than two degrees.