Browse Source

Merge pull request #890 from ChrisWiki/master

Bugfix: u_spotLightDirection was missing in colored fragment shader
Sean Paul Taylor 13 years ago
parent
commit
5b11abff9e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gameplay/res/shaders/colored.frag

+ 1 - 0
gameplay/res/shaders/colored.frag

@@ -14,6 +14,7 @@ uniform float u_specularExponent;				// Specular exponent
 #if defined(SPOT_LIGHT)
 uniform float u_spotLightInnerAngleCos;			// The bright spot [0.0 - 1.0]
 uniform float u_spotLightOuterAngleCos;			// The soft outer part [0.0 - 1.0]
+uniform vec3 u_spotLightDirection;              // Direction of a spot light source
 #endif
 #if defined(MODULATE_COLOR)
 uniform vec4 u_modulateColor;					// Modulation color