diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-11-29 18:02:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-11-29 18:02:51 +0300 |
commit | a02cbb3c3aab93e0c532fbcf8be04a77d5d6a27b (patch) | |
tree | 491e217a57783d4d5a05fc4308bf936244bffb79 /source/blender/draw/engines/eevee/shaders/default_frag.glsl | |
parent | 2e47d1a14cd35684f1d86e65cb7bcc2285c8abe9 (diff) |
Eevee: Fix default shader.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/default_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/default_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/default_frag.glsl b/source/blender/draw/engines/eevee/shaders/default_frag.glsl index 91746a6f082..45c5c88e763 100644 --- a/source/blender/draw/engines/eevee/shaders/default_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_frag.glsl @@ -13,7 +13,7 @@ Closure nodetree_exec(void) vec3 out_diff, out_spec, ssr_spec; eevee_closure_default(N, albedo, f0, 0, roughness, 1.0, out_diff, out_spec, ssr_spec); - Closure result = Closure(out_spec + out_diff, 1.0, vec4(ssr_spec, roughness), normal_encode(normalize(viewNormal), viewCameraVec), 0); + Closure result = Closure(out_spec + out_diff * albedo, 1.0, vec4(ssr_spec, roughness), normal_encode(normalize(viewNormal), viewCameraVec), 0); return result; } |