Debian Codegraph @

Shaders/terrain-nocolor.frag

raw
1 // -*-C++-*-
2 #version 120
3
4 uniform sampler2D texture;
5
6 ////fog "include" /////
7 uniform int fogType;
8
9 vec3 fog_Func(vec3 color, int type);
10 //////////////////////
11
12
13 void main()
14 {
15 vec4 color = vec4(1.0, 1.0, 1.0, 1.0);
16 vec4 texel;
17 vec4 fragColor;
18 vec4 finalColor;
19
20 texel = texture2D(texture, gl_TexCoord[0].st);
21 fragColor = color * texel;
22
23 finalColor.rgb = fog_Func(fragColor.rgb, fogType);
24 gl_FragColor = finalColor;
25
26 }