5 Years Ago
[D11][#3998] Fix for shadows flashing when far from the map center: 1. Shadow map resolution on the main directional light set to 2048 - this makes the shadow map calculations more precise at the cost of 30 Mb of memory. 2. Updating the rotation of the sun every N frames to decrease the frequency at which the lighting conditions are changed and thus keeping the shadow maps the same for several frames.