2016-08-03 07:59:29 +00:00
|
|
|
#version 120
|
|
|
|
|
2009-09-29 07:41:11 +00:00
|
|
|
uniform sampler2D baseTexture;
|
|
|
|
varying float fogFactor;
|
2013-12-25 23:14:04 +00:00
|
|
|
varying vec4 cloudColor;
|
2009-09-29 07:41:11 +00:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
vec4 base = texture2D( baseTexture, gl_TexCoord[0].st);
|
2012-12-16 22:16:16 +00:00
|
|
|
if (base.a < 0.02)
|
2012-12-05 21:37:16 +00:00
|
|
|
discard;
|
|
|
|
|
2013-12-25 23:14:04 +00:00
|
|
|
vec4 finalColor = base * cloudColor;
|
2009-09-29 07:41:11 +00:00
|
|
|
gl_FragColor.rgb = mix(gl_Fog.color.rgb, finalColor.rgb, fogFactor );
|
2012-01-17 22:19:53 +00:00
|
|
|
gl_FragColor.a = finalColor.a;
|
2009-09-29 07:41:11 +00:00
|
|
|
}
|
|
|
|
|