refactor shaders

This commit is contained in:
MihailRis
2025-05-09 23:51:34 +03:00
parent 36e5ff2472
commit 30a0b81680
9 changed files with 128 additions and 88 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ void WorldRenderer::setupWorldShader(
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);
shader.uniform1i("u_skybox", 1);
shader.uniform1i("u_enableShadows", gbufferPipeline);
if (gbufferPipeline) {