diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-18 16:31:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-18 16:31:07 +0300 |
commit | 83c2febaeeb2627ad8850ee635b6dba66a65d572 (patch) | |
tree | 4c8810422c43d2b8f2073a2795c7799c2454002d /source/blender/gpu | |
parent | 6e48afeb238b5935273891048be80b9a3a78027f (diff) |
Eevee: SSS: Fix compilation errors.
Fix T55114
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 04179787410..81672b6a046 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -2571,9 +2571,9 @@ void node_shadertorgb(Closure cl, out vec4 outcol, out float outalpha) # ifdef USE_SSS # ifdef USE_SSS_ALBEDO - outcol += (cl.sss_data * cl.sss_albedo); + outcol.rgb += cl.sss_data.rgb * cl.sss_albedo; # else - outcol += cl.sss_data; + outcol.rgb += cl.sss_data.rgb; # endif # endif } |