Debian Codegraph @

Shaders/marker-pin.frag

raw
1 // -*-C++-*-
2
3 #version 120
4
5 uniform sampler2D texture;
6
7 void main()
8 {
9 vec4 color = gl_Color;
10 // vec4 color = vec4(1.0, 0.0, 0.0, 1.0);
11 vec4 texel;
12 vec4 fragColor;
13
14 texel = texture2D(texture, gl_TexCoord[0].st);
15
16 fragColor.rgb = color.rgb;
17 fragColor.a = texel.a * color.a;
18
19 gl_FragColor = fragColor;
20 }
21