Browse Source

Fixes built-In "LIGHT" causing fragment compilation error

Add a rename for shader LIGHT built-in, Fix bug #14537
Arnaud PEZEL 7 years ago
parent
commit
6f114c50a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gles3/shader_compiler_gles3.cpp

+ 1 - 0
drivers/gles3/shader_compiler_gles3.cpp

@@ -812,6 +812,7 @@ ShaderCompilerGLES3::ShaderCompilerGLES3() {
 	//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";