mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-25 15:55:27 +01:00
Add a default direction light for shadows
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user