From 0cf8b0fcee2fe8c6590c6c8081da8cb1bea4780c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Wed, 26 Aug 2015 00:40:10 +0200 Subject: [PATCH] Fixed opengl humidity rendering --- src/render/opengl/shaders/atmosphere.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengl/shaders/atmosphere.frag b/src/render/opengl/shaders/atmosphere.frag index 728031b..d75ef20 100644 --- a/src/render/opengl/shaders/atmosphere.frag +++ b/src/render/opengl/shaders/atmosphere.frag @@ -282,7 +282,7 @@ vec4 getSkyColor(vec3 location, vec3 direction) vec3 inscattering = _getInscatterColor(x, t, v, s, r, mu, attenuation); vec3 nightsky = vec3(0.01, 0.012, 0.03); - return vec4(applyWeatherEffects(SPHERE_SIZE, nightsky + sunTransmittance.rgb, vec3(0), inscattering), 1.0); + return vec4(applyWeatherEffects(SPHERE_SIZE, nightsky + sunTransmittance.rgb, vec3(1), inscattering), 1.0); } vec4 applyLighting(vec3 location, vec3 normal, vec4 color, float shininess)