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;
|
uniform vec3 specularColor;
|
||||||
#endif
|
#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;
|
uniform vec4 effectSettings;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ void main()
|
|||||||
specPow = effectSettings.y;
|
specPow = effectSettings.y;
|
||||||
#else
|
#else
|
||||||
specCol = specularColor;
|
specCol = specularColor;
|
||||||
specPow = specularPower.x;
|
specPow = specularPower;
|
||||||
#endif
|
#endif
|
||||||
specular.rgb = sunColor * specCol * pow(max(0.0, dot(normalize(normal), v_half)), specPow);
|
specular.rgb = sunColor * specCol * pow(max(0.0, dot(normalize(normal), v_half)), specPow);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user