Debian Codegraph @

Shaders/cloud-static.frag

raw
1 #version 120
2
3 uniform sampler2D baseTexture;
4 varying float fogFactor;
5
6 vec3 filter_combined (in vec3 color) ;
7
8 void main(void)
9 {
10 vec4 base = texture2D( baseTexture, gl_TexCoord[0].st);
11 vec4 finalColor = base * gl_Color;
12 gl_FragColor.rgb = mix(gl_Fog.color.rgb, finalColor.rgb, fogFactor );
13 gl_FragColor.a = mix(0.0, finalColor.a, fogFactor);
14 }