Acutally use the vertex colors for alias models.

Thanks to Spirit trying QF on nvidia drivers, the missing attributes were
found. Now he shouldn't get gl errors :)
This commit is contained in:
Bill Currie 2012-07-08 16:52:13 +09:00
parent 7b3242843f
commit 37260018a2

View file

@ -31,10 +31,12 @@ main (void)
float pix = texture2D (skin, st).r;
float light = ambient;
float d, col;
vec4 lit;
d = dot (normal, lightvec);
d = min (d, 0.0);
light = 255.0 - light;
light += d * shadelight;
gl_FragColor = fogBlend (texture2D (colormap, vec2 (pix, light / 255.0)));
lit = texture2D (colormap, vec2 (pix, light / 255.0));
gl_FragColor = fogBlend (lit * color);
}