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:
Clément Foucault 2020-10-22 00:55:38 +02:00
parent 091b433677
commit b0f34eee30
Notes: blender-bot 2023-02-13 23:29:42 +01:00
Referenced by issue #81820, difference in rendering of alpha material between 2.90 and 2.91 (Eevee)
Referenced by issue #80522, New Boolean Exact fails with operand that has intersecting elements
Referenced by issue #73793, Walk navigation crosshair gets hidden behind objects
1 changed files with 1 additions and 1 deletions

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,