mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
update main shader
This commit is contained in:
parent
35cf07b0f0
commit
8dfc948fe3
4 changed files with 14 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue