diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-06-30 02:32:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-06-30 02:32:00 +0300 |
commit | 062a843bfbe7c9d277a254a45a81c5a35e8d9b2e (patch) | |
tree | d52163a89d3d48a7a42c431a2a8e455502d26222 /source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl | |
parent | f28e59bd742e9cdea5d9cacc848d1759ef59f0a8 (diff) |
EEVEE: Fix undefined behavior when using BSDF nodes inside volume shaders
This should fix T76171 Eevee bsdf shaders glitches
Diffstat (limited to 'source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl index 7513c3a4edb..5ea22f3e0b4 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_glossy.glsl @@ -12,5 +12,5 @@ void node_bsdf_glossy(vec4 color, float roughness, vec3 N, float ssr_id, out Clo } #else /* Stub glossy because it is not compatible with volumetrics. */ -# define node_bsdf_glossy +# define node_bsdf_glossy(a, b, c, d, e) (e = CLOSURE_DEFAULT) #endif |