5899a26aad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
20 lines
324 B
GLSL
20 lines
324 B
GLSL
uniform sampler2D tex;
|
|
uniform vec3 ambient;
|
|
uniform sampler2D spectex;
|
|
|
|
void main()
|
|
{
|
|
vec2 texc = gl_TexCoord[0].xy;
|
|
|
|
vec4 col = texture2D(tex, texc);
|
|
vec4 specular = texture2D(spectex, texc);
|
|
|
|
col.xyz += ambient;
|
|
float spec = col.a - 0.05;
|
|
spec *= specular.a;
|
|
col.xyz += spec;
|
|
col.a = 1.0;
|
|
|
|
gl_FragColor = col;
|
|
}
|