Fix T77561 EEVEE: Refraction BSDF is using world probe during glossy bake

This fixes light leaking during baking indoor environment when using
refraction bsdfs.
This commit is contained in:
Clément Foucault 2020-11-17 15:56:18 +01:00
parent 9296ba8674
commit dede4aac5b
Notes: blender-bot 2023-02-14 11:24:03 +01:00
Referenced by issue #77561, Eevee: Refraction BSDF is using world probe during glossy bake.
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ void CLOSURE_NAME(vec3 N
float btdf = get_btdf_lut(NV, roughness, ior);
out_refr += refr_accum.rgb * btdf;
/* Global toggle for lightprobe baking. */
out_refr *= float(specToggle);
# endif
# ifdef CLOSURE_CLEARCOAT