Increase opacity of clouds, discard transparent fragments.
This commit is contained in:
parent
6d9168150d
commit
cb1ce70688
3 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ varying float fogFactor;
|
|||
void main(void)
|
||||
{
|
||||
vec4 base = texture2D( baseTexture, gl_TexCoord[0].st);
|
||||
if (base.a <= 0.01)
|
||||
discard;
|
||||
|
||||
vec4 finalColor = base * gl_Color;
|
||||
gl_FragColor.rgb = mix(gl_Fog.color.rgb, finalColor.rgb, fogFactor );
|
||||
gl_FragColor.a = finalColor.a;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 244 KiB |
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue