From 65dbc4cc0bd001feac0ce856029e4d681b5c289d Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Fri, 5 Oct 2012 22:13:24 +0100 Subject: [PATCH] Remove hardcoded maximum snow level. Now configured via Environment Settings. --- Shaders/forest.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/forest.frag b/Shaders/forest.frag index d7dd3186d..4d8a7d349 100644 --- a/Shaders/forest.frag +++ b/Shaders/forest.frag @@ -175,7 +175,7 @@ void main (void) //adding snow and permanent snow/glacier - if (vegetationlevel > snowlevel || vegetationlevel > 3100.0) { + if (vegetationlevel > snowlevel) { c3 = mix(vec4(n+1.0, n+1.0, n+1.0, 0.0), c1, smoothstep(0.990, 0.965, abs(normalize(Normal).z)+nvL[2]*1.3)); c4 = mix(vec4(n+1.0, n+1.0, n+1.0, 0.0), c1, smoothstep(0.990, 0.965, abs(normalize(Normal).z)+nvL[2]*0.9)); c5 = mix(c3, c4, 1.0);