The sky turns already dark when the player (feet) is below y = 1. Expected would be that this happens when he is below y = 0 or even better when his eye level if below y = 0.