Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-07-10 12:41:33 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-07-11 13:39:35 +0300
commitd35c24f87b133202abf85f8d0f2512a20caf0cda (patch)
tree6dd9b3f2b4204db20c91ca19c5c757bde2c34928 /source/blender/gpu/shaders
parent55022884ba690bc35b906053e933b9d4097356c1 (diff)
Eevee: Transparency: Add support for blend ADD and MULTIPLY.
This introduces a new transparency pass. It bypass the radial distance encoding in alpha for the transparent shaders.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 3235dad8d04..dbd3a941e57 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -4031,7 +4031,7 @@ void node_eevee_specular(
void node_output_eevee_material(Closure surface, out Closure result)
{
-#if defined(USE_ALPHA_HASH) || defined(USE_ALPHA_CLIP)
+#if defined(USE_ALPHA_HASH) || defined(USE_ALPHA_CLIP) || defined(USE_ALPHA_BLEND)
result = surface;
#else
result = Closure(surface.radiance, length(viewPosition));