diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-08-22 17:04:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-09-05 18:37:50 +0300 |
commit | d8aaf25c23fa10ee121dc4fdd1cafe544bcca355 (patch) | |
tree | b5a16157beac22e4b474c699c1ce25f3d8c5be51 /source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl | |
parent | ca58936f2ff2b14a649722be20d98f8fa35831ff (diff) |
Eevee: Shadow map refactor
Reviewed By: brecht
Differential Revision: http://developer.blender.org/D5659
Diffstat (limited to 'source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl index ea41790e6aa..749b3a4c11f 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_translucent.glsl @@ -1,7 +1,11 @@ #ifndef VOLUMETRICS void node_bsdf_translucent(vec4 color, vec3 N, out Closure result) { - node_bsdf_diffuse(color, 0.0, -N, result); + N = normalize(N); + result = CLOSURE_DEFAULT; + eevee_closure_diffuse(-N, color.rgb, 1.0, false, result.radiance); + closure_load_ssr_data(vec3(0.0), 0.0, N, viewCameraVec, -1, result); + result.radiance *= color.rgb; } #else /* Stub translucent because it is not compatible with volumetrics. */ |