b1a777b12d
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
26 lines
467 B
C++
26 lines
467 B
C++
// -*-C++-*-
|
|
uniform sampler2D texture;
|
|
|
|
////fog "include" /////
|
|
uniform int fogType;
|
|
|
|
vec3 fog_Func(vec3 color, int type);
|
|
//////////////////////
|
|
|
|
|
|
void main()
|
|
{
|
|
vec4 color = vec4(1.0, 1.0, 1.0, 1.0);
|
|
vec4 texel;
|
|
vec4 fragColor;
|
|
vec4 finalColor;
|
|
|
|
texel = texture2D(texture, gl_TexCoord[0].st);
|
|
fragColor = color * texel;
|
|
|
|
gl_FragColor = fragColor;
|
|
|
|
finalColor.rgb = fog_Func(fragColor.rgb, fogType);
|
|
gl_FragColor = finalColor;
|
|
|
|
}
|