diff options
Diffstat (limited to 'source/blender/gpu/shaders/material')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_output_world.glsl | 5 |
1 files changed, 3 insertions, 2 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 ba391df185e..b298fa4f8d1 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 @@ -3,8 +3,9 @@ uniform float backgroundAlpha; void node_output_world(Closure surface, Closure volume, out Closure result) { #ifndef VOLUMETRICS - result.radiance = surface.radiance * backgroundAlpha; - result.transmittance = vec3(1.0 - backgroundAlpha); + float alpha = renderPassEnvironment ? 1.0 : backgroundAlpha; + result.radiance = surface.radiance * alpha; + result.transmittance = vec3(1.0 - alpha); #else result = volume; #endif /* VOLUMETRICS */ |