forked from 0ad/0ad
Trying to clean up the old specularity code
This was SVN commit r12568.
This commit is contained in:
parent
7ce09c315b
commit
2ed11f6a84
@ -44,7 +44,7 @@ varying vec2 v_los;
|
||||
uniform vec3 specularColor;
|
||||
#endif
|
||||
|
||||
#if USE_SPECULAR || USE_NORMAL_MAP || USE_SPECULAR_MAP || USE_PARALLAX_MAP || USE_AO
|
||||
#if USE_NORMAL_MAP || USE_SPECULAR_MAP || USE_PARALLAX_MAP || USE_AO
|
||||
uniform vec4 effectSettings;
|
||||
#endif
|
||||
|
||||
|
@ -207,7 +207,7 @@ void main()
|
||||
specPow = effectSettings.y;
|
||||
#else
|
||||
specCol = specularColor;
|
||||
specPow = specularPower.x;
|
||||
specPow = specularPower;
|
||||
#endif
|
||||
specular.rgb = sunColor * specCol * pow(max(0.0, dot(normalize(normal), v_half)), specPow);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user