summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-01-28 19:26:35 +0100
committerGitHub <noreply@github.com>2019-01-28 19:26:35 +0100
commitc4c517e13d38958eface7b7e83e1859c1fab1cf3 (patch)
tree32e52c3674cdaf636684d23a08b7e566827f95c7
parent188a711c4f08f96bccd72ecea0d7445f0c7846ca (diff)
parent1148a33b20ffec8b858176df9edc5847316c5e26 (diff)
Merge pull request #25423 from akien-mga/gles2-spatialshader-light
GLES2: Define LIGHT Spatial shader builtin
-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";