diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-15 16:01:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-15 20:51:55 +0300 |
commit | 2c1edcf3efd8d260a02d74c10a734992eab74072 (patch) | |
tree | c3bfce322fdb1f0ce6e87fc3f2b679c9c1a7629a /source/blender/gpu/shaders/material | |
parent | 24c846b2b4f1617ebfeb799045d284a9e24fa9ed (diff) |
EEVEE: Fix undefined behavior in world output
Diffstat (limited to 'source/blender/gpu/shaders/material')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl index b298fa4f8d1..27ca96501ae 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl @@ -4,6 +4,7 @@ void node_output_world(Closure surface, Closure volume, out Closure result) { #ifndef VOLUMETRICS float alpha = renderPassEnvironment ? 1.0 : backgroundAlpha; + result = CLOSURE_DEFAULT; result.radiance = surface.radiance * alpha; result.transmittance = vec3(1.0 - alpha); #else |