Camera tilt near ground cause lightning bug


I’ve discovered strange bug: if you try to tilt camera down near ground, lightning goes insane. This also makes fog looks darker than it looks. You can try it on sandcastle 3d models example(choose milk truck, point camera to see sun and then tilt camera towards ground).

I’ve attached gif animation showing how to reproduce this bug.

Best regards,

Aleksei Kalmykov

oops, looks like attachment didn’t work. You can check it here:


Thanks for reporting this! I’ve created a GitHub issue here: