diff --git a/src/graphics/sp/sp_shader_manager.cpp b/src/graphics/sp/sp_shader_manager.cpp index e4b491583..b484ee766 100644 --- a/src/graphics/sp/sp_shader_manager.cpp +++ b/src/graphics/sp/sp_shader_manager.cpp @@ -60,6 +60,13 @@ SPShaderManager::SPShaderManager() ua->setValue(sp_wind_dir); } }, + { "isDuringDayUniformAssigner", [](SPUniformAssigner* ua) + { + int is_during_day = Track::getCurrentTrack() ? + Track::getCurrentTrack()->getIsDuringDay() ? 1 : 0 : 0; + ua->setValue(is_during_day); + } + }, { "zeroAlphaUniformAssigner", [](SPUniformAssigner* ua) { ua->setValue(0.0f);