From f5ba5006fdc302bccadb1ce77bc0503c5281e067 Mon Sep 17 00:00:00 2001 From: "gral@who.net" <gral@who.net> Date: Wed, 25 Aug 2010 20:56:19 +0200 Subject: [PATCH] Better transitions --- Shaders/forest.frag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shaders/forest.frag b/Shaders/forest.frag index 568db67f2..2ede6761c 100644 --- a/Shaders/forest.frag +++ b/Shaders/forest.frag @@ -132,22 +132,22 @@ void main (void) if (vegetationlevel <= 2200) { - c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.4)); + c1 = mix(c2, c5, clamp(0.65, n*0.1, 0.5)); diffuse = gl_Color.rgb * max(0.7, dot(N, l)) * max(0.9, dot(VNormal, gl_LightSource[0].position.xyz)); } if (vegetationlevel > 2200 && vegetationlevel < 2300) { - c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.4)); + c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.35)); diffuse = gl_Color.rgb * max(0.7, dot(N, l)) * max(0.9, dot(VNormal, gl_LightSource[0].position.xyz)); } if (vegetationlevel >= 2300 && vegetationlevel < 2530) { - c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.4)); + c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.20)); diffuse = gl_Color.rgb * max(0.85, dot(N, l)) * max(0.9, dot(VNormal, gl_LightSource[0].position.xyz)); } if (vegetationlevel >= 2530 && vegetationlevel < 2670) { - c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.4)); + c1 = mix(c2, c5, clamp(0.65, n*0.5, 0.05)); diffuse = gl_Color.rgb * max(0.85, dot(N, l)) * max(0.9, dot(VNormal, gl_LightSource[0].position.xyz)); }