1
0
Fork 0

Remove hardcoded maximum snow level. Now configured via Environment Settings.

This commit is contained in:
Stuart Buchanan 2012-10-05 22:13:24 +01:00
parent 8f692c78d9
commit 65dbc4cc0b

View file

@ -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);