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:
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl')
-rw-r--r--source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl
index ea9711a6cad..88e71a060c5 100644
--- a/source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/effect_subsurface_frag.glsl
@@ -11,6 +11,7 @@ layout(std140) uniform sssProfile {
uniform float jitterThreshold;
uniform sampler2D depthBuffer;
uniform sampler2D sssData;
+uniform sampler2D sssAlbedo;
uniform sampler2DArray utilTex;
out vec4 FragColor;
@@ -80,6 +81,10 @@ void main(void)
#ifdef FIRST_PASS
FragColor = vec4(accum, sss_data.a);
#else /* SECOND_PASS */
+ #ifdef USE_SEP_ALBEDO
+ FragColor = vec4(accum * texture(sssAlbedo, uvs).rgb, 1.0);
+ #else
FragColor = vec4(accum, 1.0);
+ #endif
#endif
}