diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-24 10:52:41 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-24 10:52:41 -0300 |
commit | 082e3fbb2920340cec7e7b1a3f39083325b4b341 (patch) | |
tree | 753668f4057e41724d905bbfc8c74665b6422f7f /drivers/gles2/rasterizer_gles2.cpp | |
parent | ccd40f76e8975b679619eb3591eb56376e82a6b3 (diff) | |
parent | 2ea992b7881a350ebae7df45c8069830e2ef6cc2 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts:
main/main.cpp
Diffstat (limited to 'drivers/gles2/rasterizer_gles2.cpp')
-rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index b473e8493f..39b448d6e0 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -4641,6 +4641,9 @@ void RasterizerGLES2::_update_shader( Shader* p_shader) const { if (light_flags.uses_light) { enablers.push_back("#define USE_LIGHT_SHADER_CODE\n"); } + if (light_flags.uses_shadow_color) { + enablers.push_back("#define USE_LIGHT_SHADOW_COLOR\n"); + } if (light_flags.uses_time || fragment_flags.uses_time || vertex_flags.uses_time) { enablers.push_back("#define USE_TIME\n"); uses_time=true; |