1
0
forked from mirrors/0ad

Added specular mapping for units

This was SVN commit r12336.
This commit is contained in:
myconid
2012-08-09 18:49:35 +00:00
parent 8d59192410
commit a89d131f2d
@@ -195,7 +195,7 @@ void main()
#if USE_SPECULAR || USE_SPECULAR_MAP
vec3 specCol;
float specPow;
#if USE_INSTANCING && USE_SPECULAR_MAP
#if USE_SPECULAR_MAP
vec4 s = texture2D(specTex, coord);
specCol = s.rgb;
specular.a = s.a;
@@ -218,7 +218,7 @@ void main()
color += ambColor;
#if USE_INSTANCING && USE_SPECULAR_MAP && USE_SELF_LIGHT
#if USE_SPECULAR_MAP && USE_SELF_LIGHT
color = mix(texdiffuse, color, specular.a);
#endif