db0a3d37a2
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
20 lines
340 B
GLSL
20 lines
340 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.xyz;
|
|
col.a = 1.0;
|
|
|
|
gl_FragColor = col;
|
|
}
|