1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add a default direction light for shadows

This commit is contained in:
Lars 2023-04-06 09:30:37 -10:00 committed by lhofhansl
parent 9d736e8b8b
commit 8982998681
2 changed files with 7 additions and 9 deletions

View file

@ -4212,8 +4212,6 @@ void Game::updateShadows()
v3f sun_pos = light * offset_constant;
if (shadow->getDirectionalLightCount() == 0)
shadow->addDirectionalLight();
shadow->getDirectionalLight().setDirection(sun_pos);
shadow->setTimeOfDay(in_timeofday);