EEVEE: Fix undefined behavior in world output
This commit is contained in:
parent
24c846b2b4
commit
2c1edcf3ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue