summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-01-28 17:27:16 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-01-28 17:27:20 +0100
commit1148a33b20ffec8b858176df9edc5847316c5e26 (patch)
tree0187ad0956a155d4ddf8f28f0404afea16809ce5 /drivers
parentac01aef9e3e9839809306efc915f6e4fa4ac303f (diff)
downloadredot-engine-1148a33b20ffec8b858176df9edc5847316c5e26.tar.gz
GLES2: Define LIGHT Spatial shader builtin
Fixes #25421.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/shader_compiler_gles2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles2/shader_compiler_gles2.cpp b/drivers/gles2/shader_compiler_gles2.cpp
index bff031b93a..b2a7409d43 100644
--- a/drivers/gles2/shader_compiler_gles2.cpp
+++ b/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";