EEVEE: Principle BSDF: Use multi-scatter switch for the glass variant

This avoid strange discrepency between the general purpose variant and
the specialized glass variant which did not have a way to turn
multi-scatter off.
This commit is contained in:
2020-10-22 00:55:38 +02:00
parent 091b433677
commit b0f34eee30

View File

@@ -450,7 +450,7 @@ void node_bsdf_principled_glass(vec4 base_color,
eevee_closure_glass(N,
vec3(1.0),
vec3(1.0),
vec3((use_multiscatter != 0.0) ? 1.0 : -1.0),
int(ssr_id),
roughness,
1.0,