From ccfcfad7db11c1ca1f590f0eb8bd8427eb4d6bc5 Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Thu, 11 Dec 2014 13:07:09 +0200 Subject: [PATCH] Fix small color mismatch in skydome code --- Shaders/skydome-ALS.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shaders/skydome-ALS.frag b/Shaders/skydome-ALS.frag index 77372d6cf..16275e514 100644 --- a/Shaders/skydome-ALS.frag +++ b/Shaders/skydome-ALS.frag @@ -253,12 +253,12 @@ color = mix(color, terrainHazeColor ,smoothstep(hazeBlendAngle + ctterrain, 0.0+ // mix fog the skydome with the right amount of haze -// this is for the terrain drawn +hColor *= eqColorFactor; hColor = max(hColor.rgb, minLight.rgb); hColor = clamp(hColor,0.0,1.0); -color = mix((eqColorFactor * hColor)+secondary_light * fog_backscatter(avisibility),color, transmission); +color = mix(hColor+secondary_light * fog_backscatter(avisibility),color, transmission);