diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-23 13:37:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 13:37:54 +0200 |
commit | 2b1c3878f9b36cb52a5d2f654fdebb1b809167dd (patch) | |
tree | 192ea53841552d335c1ef0a3d7a008e96de7a1de /drivers/gles2/shader_compiler_gles2.cpp | |
parent | 664f462238e6d81df8b4a6382aa003496d401143 (diff) | |
parent | 3ea778e66e0cb19412831db25171d951e430b58f (diff) |
Merge pull request #29031 from BastiaanOlij/alpha_shadow
Implement shadow to opacity
Diffstat (limited to 'drivers/gles2/shader_compiler_gles2.cpp')
-rw-r--r-- | drivers/gles2/shader_compiler_gles2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles2/shader_compiler_gles2.cpp b/drivers/gles2/shader_compiler_gles2.cpp index d00b03fb8a..6ba4004f20 100644 --- a/drivers/gles2/shader_compiler_gles2.cpp +++ b/drivers/gles2/shader_compiler_gles2.cpp @@ -934,6 +934,7 @@ ShaderCompilerGLES2::ShaderCompilerGLES2() { actions[VS::SHADER_SPATIAL].render_mode_defines["specular_disabled"] = "#define SPECULAR_DISABLED\n"; actions[VS::SHADER_SPATIAL].render_mode_defines["shadows_disabled"] = "#define SHADOWS_DISABLED\n"; actions[VS::SHADER_SPATIAL].render_mode_defines["ambient_light_disabled"] = "#define AMBIENT_LIGHT_DISABLED\n"; + actions[VS::SHADER_SPATIAL].render_mode_defines["shadow_to_opacity"] = "#define USE_SHADOW_TO_OPACITY\n"; // No defines for particle shaders in GLES2, there are no GPU particles |