Remove blend effect when sun disc nears horizon (was letting the stars show through).
meow-7.2.2
Graham Linden 2019-02-25 12:12:29 -08:00
parent 5158ffa5ce
commit 8b0e2e4c82
2 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,7 @@ void main()
c.rgb = fullbrightAtmosTransport(c.rgb);
c.rgb = fullbrightScaleSoftClip(c.rgb);
c.a *= sun_fade;
//c.a *= sun_fade;
frag_data[0] = c;
frag_data[1] = vec4(0.0f);

View File

@ -47,7 +47,9 @@ void main()
vec4 sunA = texture2D(diffuseMap, vary_texcoord0.xy);
vec4 sunB = texture2D(altDiffuseMap, vary_texcoord0.xy);
vec4 c = mix(sunA, sunB, blend_factor);
c.a *= sun_fade;
// SL-9806
// c.a *= sun_fade;
c.rgb = pow(c.rgb, vec3(0.7f));
c.rgb = fullbrightAtmosTransport(c.rgb);