Yet more bugfixes
This commit is contained in:
parent
4d10e77226
commit
f4c828c4de
2 changed files with 2 additions and 2 deletions
|
@ -363,7 +363,7 @@ if ((dist < 5000.0)&& (quality_level > 3) && (wetness>0.0))
|
|||
}
|
||||
if (quality_level > 4)
|
||||
{
|
||||
NdotL = NdotL + 3.0 * N + 0.1 * (noise_01m-0.5) ;
|
||||
NdotL = NdotL + 3.0 * N.r + 0.1 * (noise_01m-0.5) ;
|
||||
}
|
||||
if (NdotL > 0.0) {
|
||||
color += diffuse_term * NdotL;
|
||||
|
|
|
@ -227,7 +227,7 @@ float noise_2000m = Noise2D(rawPos.xy, 2000.0);
|
|||
sfactor = sqrt(2.0 * (1.0-steepness)/0.03) + abs(ct)/0.15;
|
||||
noise_term = noise_term + 0.2 * (noise_50m -0.5) * (1.0 - smoothstep(18000.0*sfactor, 40000.0*sfactor, dist) ) ;
|
||||
noise_term = noise_term + 0.3 * (noise_10m -0.5) * (1.0 - smoothstep(4000.0 * sfactor, 8000.0 * sfactor, dist) ) ;
|
||||
if (dist < 3000*sfactor){ noise_term = noise_term + 0.3 * (noise_5m -0.5) * (1.0 - smoothstep(1000.0 * sfactor, 3000.0 *sfactor, dist) );}
|
||||
if (dist < 3000.0*sfactor){ noise_term = noise_term + 0.3 * (noise_5m -0.5) * (1.0 - smoothstep(1000.0 * sfactor, 3000.0 *sfactor, dist) );}
|
||||
snow_texel.a = snow_texel.a * 0.2+0.8* smoothstep(0.2,0.8, 0.3 +noise_term + snow_thickness_factor +0.0001*(relPos.z +eye_alt -snowlevel) );
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue