Airport keep follows autumn coloring
This commit is contained in:
parent
db36387a36
commit
85486a0f51
4 changed files with 23 additions and 0 deletions
|
@ -220,6 +220,11 @@
|
|||
<type>float</type>
|
||||
<value><use>air_pollution</use></value>
|
||||
</uniform>
|
||||
<uniform>
|
||||
<name>season</name>
|
||||
<type>float</type>
|
||||
<value><use>season</use></value>
|
||||
</uniform>
|
||||
<uniform>
|
||||
<name>view_pitch_offset</name>
|
||||
<type>float</type>
|
||||
|
|
|
@ -34,6 +34,7 @@ uniform float overlay_bias;
|
|||
uniform float overlay_alpha;
|
||||
uniform float wetness;
|
||||
uniform float air_pollution;
|
||||
uniform float season;
|
||||
uniform float landing_light1_offset;
|
||||
uniform float landing_light2_offset;
|
||||
|
||||
|
@ -155,6 +156,7 @@ float noise_2000m = Noise2D(rawPos.xy, 2000.0);
|
|||
// get the texels
|
||||
|
||||
texel = texture2D(texture, gl_TexCoord[0].st * 5.0);
|
||||
float local_autumn_factor = texel.a;
|
||||
|
||||
float distortion_factor = 1.0;
|
||||
float noise_term;
|
||||
|
@ -212,6 +214,22 @@ if ((dist < 3000.0)&& (quality_level > 3) && (wetness>0.0))
|
|||
texel.r = texel.r * (1.0 + 0.14 * smoothstep(0.5,0.7, 0.33*(2.0 * noise_10m + (1.0-noise_5m))));
|
||||
|
||||
|
||||
// autumn colors
|
||||
|
||||
float autumn_factor = season * 2.0 * (1.0 - local_autumn_factor) ;
|
||||
|
||||
|
||||
texel.r = min(1.0, (1.0 + 2.5 * autumn_factor) * texel.r);
|
||||
texel.g = texel.g;
|
||||
texel.b = max(0.0, (1.0 - 4.0 * autumn_factor) * texel.b);
|
||||
|
||||
|
||||
if (local_autumn_factor < 1.0)
|
||||
{
|
||||
intensity = length(texel.rgb) * (1.0 - 0.5 * smoothstep(1.1,2.0,season));
|
||||
texel.rgb = intensity * normalize(mix(texel.rgb, vec3(0.23,0.17,0.08), smoothstep(1.1,2.0, season)));
|
||||
}
|
||||
|
||||
vec4 dust_color;
|
||||
|
||||
if (quality_level > 3)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
BIN
Textures/Trees/grass_blades.png
Normal file
BIN
Textures/Trees/grass_blades.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
Loading…
Reference in a new issue