From 6f114c50a7e74a68630525e3a061e88d2c152580 Mon Sep 17 00:00:00 2001 From: Arnaud PEZEL Date: Thu, 14 Dec 2017 14:38:52 +0100 Subject: Fixes built-In "LIGHT" causing fragment compilation error Add a rename for shader LIGHT built-in, Fix bug #14537 --- drivers/gles3/shader_compiler_gles3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/shader_compiler_gles3.cpp b/drivers/gles3/shader_compiler_gles3.cpp index 21102e8c25..101978548d 100644 --- a/drivers/gles3/shader_compiler_gles3.cpp +++ b/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"; -- cgit v1.2.3