add 'u_lightDir' to main shader

This commit is contained in:
MihailRis
2024-10-28 11:33:46 +03:00
parent bed49e54fd
commit ca69b55875
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -166,6 +166,7 @@ void WorldRenderer::setupWorldShader(
shader->uniform1f("u_fogFactor", fogFactor);
shader->uniform1f("u_fogCurve", settings.graphics.fogCurve.get());
shader->uniform1f("u_dayTime", level->getWorld()->getInfo().daytime);
shader->uniform2f("u_lightDir", skybox->getLightDir());
shader->uniform3f("u_cameraPos", camera.position);
shader->uniform1i("u_cubemap", 1);