update main shader
This commit is contained in:
@@ -97,6 +97,7 @@ void PrecipitationRenderer::render(const Camera& camera, float delta) {
|
||||
|
||||
WeatherPreset weather {};
|
||||
auto& fall = weather.fall;
|
||||
fall.vspeed = 2.0f;
|
||||
fall.texture = "misc/rain";
|
||||
|
||||
const int radius = 6;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user