update main shader

This commit is contained in:
MihailRis
2025-02-26 02:24:16 +03:00
parent 35cf07b0f0
commit 8dfc948fe3
4 changed files with 14 additions and 5 deletions
+2
View File
@@ -119,6 +119,8 @@ void WorldRenderer::setupWorldShader(
shader.uniform1f("u_gamma", settings.graphics.gamma.get());
shader.uniform1f("u_fogFactor", fogFactor);
shader.uniform1f("u_fogCurve", settings.graphics.fogCurve.get());
shader.uniform1f("u_weatherFogOpacity", 0.8f);
shader.uniform1f("u_weatherFogDencity", 2.0f);
shader.uniform1f("u_dayTime", level.getWorld()->getInfo().daytime);
shader.uniform2f("u_lightDir", skybox->getLightDir());
shader.uniform3f("u_cameraPos", camera.position);