Просмотр исходного кода

Adds missing uniform u_spotLightDirection to colored shader

ChrisWiki 13 лет назад
Родитель
Сommit
0d9b3a1354
1 измененных файлов с 1 добавлено и 0 удалено
  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