stk-code_catmod/data/shaders/lightblend.frag
auria db0a3d37a2 Undo samuncle's commit that added specular lights, but in a way that would only work on nvidia gpus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 20:19:46 +00:00

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;
}