mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor shaders
This commit is contained in:
parent
36e5ff2472
commit
30a0b81680
9 changed files with 128 additions and 88 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue