Eevee: SSS: Fix compilation errors.

Fix T55114
This commit is contained in:
Clément Foucault 2018-05-18 15:31:07 +02:00
parent 6e48afeb23
commit 83c2febaee
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #55114, eevee subsurface scattering separate albedo error
1 changed files with 2 additions and 2 deletions

View File

@ -2571,9 +2571,9 @@ void node_shadertorgb(Closure cl, out vec4 outcol, out float outalpha)
# ifdef USE_SSS
# ifdef USE_SSS_ALBEDO
outcol += (cl.sss_data * cl.sss_albedo);
outcol.rgb += cl.sss_data.rgb * cl.sss_albedo;
# else
outcol += cl.sss_data;
outcol.rgb += cl.sss_data.rgb;
# endif
# endif
}