Ver código fonte

Adds missing uniform u_spotLightDirection to colored shader

ChrisWiki 13 anos atrás
pai
commit
0d9b3a1354
1 arquivos alterados com 1 adições e 0 exclusões
  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)
 #if defined(SPOT_LIGHT)
 uniform float u_spotLightInnerAngleCos;			// The bright spot [0.0 - 1.0]
 uniform float u_spotLightInnerAngleCos;			// The bright spot [0.0 - 1.0]
 uniform float u_spotLightOuterAngleCos;			// The soft outer part [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
 #endif
 #if defined(MODULATE_COLOR)
 #if defined(MODULATE_COLOR)
 uniform vec4 u_modulateColor;					// Modulation color
 uniform vec4 u_modulateColor;					// Modulation color