Skip to content
Snippets Groups Projects
Commit 2408e8be authored by Graham Linden's avatar Graham Linden
Browse files

SL-11357

Nerf moisture and ice levels iff there's no sun or moon to generate light to refract.
parent 48401b22
No related branches found
No related tags found
No related merge requests found
...@@ -185,6 +185,13 @@ void LLDrawPoolWLSky::renderSkyHazeDeferred(const LLVector3& camPosLocal, F32 ca ...@@ -185,6 +185,13 @@ void LLDrawPoolWLSky::renderSkyHazeDeferred(const LLVector3& camPosLocal, F32 ca
F32 droplet_radius = (float)psky->getSkyDropletRadius(); F32 droplet_radius = (float)psky->getSkyDropletRadius();
F32 ice_level = (float)psky->getSkyIceLevel(); F32 ice_level = (float)psky->getSkyIceLevel();
// hobble halos and rainbows when there's no light source to generate them
if (!psky->getIsSunUp() && !psky->getIsMoonUp())
{
moisture_level = 0.0f;
ice_level = 0.0f;
}
sky_shader->uniform1f(LLShaderMgr::MOISTURE_LEVEL, moisture_level); sky_shader->uniform1f(LLShaderMgr::MOISTURE_LEVEL, moisture_level);
sky_shader->uniform1f(LLShaderMgr::DROPLET_RADIUS, droplet_radius); sky_shader->uniform1f(LLShaderMgr::DROPLET_RADIUS, droplet_radius);
sky_shader->uniform1f(LLShaderMgr::ICE_LEVEL, ice_level); sky_shader->uniform1f(LLShaderMgr::ICE_LEVEL, ice_level);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment