Browse Source

GLES2: Define LIGHT Spatial shader builtin

Fixes #25421.
Rémi Verschelde 6 years ago
parent
commit
1148a33b20
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gles2/shader_compiler_gles2.cpp

+ 1 - 0
drivers/gles2/shader_compiler_gles2.cpp

@@ -869,6 +869,7 @@ ShaderCompilerGLES2::ShaderCompilerGLES2() {
 	//for light
 	actions[VS::SHADER_SPATIAL].renames["VIEW"] = "view";
 	actions[VS::SHADER_SPATIAL].renames["LIGHT_COLOR"] = "light_color";
+	actions[VS::SHADER_SPATIAL].renames["LIGHT"] = "light";
 	actions[VS::SHADER_SPATIAL].renames["ATTENUATION"] = "attenuation";
 	actions[VS::SHADER_SPATIAL].renames["DIFFUSE_LIGHT"] = "diffuse_light";
 	actions[VS::SHADER_SPATIAL].renames["SPECULAR_LIGHT"] = "specular_light";