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:
2020-11-17 15:56:18 +01:00
parent 9296ba8674
commit dede4aac5b

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