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:
parent
9d736e8b8b
commit
8982998681
2 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue