start splitting render pipelines & remove the obsolete world fog parameter

This commit is contained in:
MihailRis 2026-06-19 00:01:14 +03:00
parent 07c35f001c
commit 22f09d3659
8 changed files with 223 additions and 147 deletions

View file

@ -100,7 +100,7 @@ void Shadows::setup(Shader& shader, const Weather& weather) {
return;
}
const auto& worldInfo = level.getWorld()->getInfo();
float cloudsIntensity = glm::max(worldInfo.fog, weather.clouds());
float cloudsIntensity = weather.clouds();
float shadowsOpacity = 1.0f - cloudsIntensity;
shadowsOpacity *= glm::sqrt(glm::abs(
glm::mod((worldInfo.daytime + 0.5f) * 2.0f, 1.0f) * 2.0f - 1.0f