Eevee: SSS: Fix SSS with Add Shader node.
This commit is contained in:
parent
e70c563aa3
commit
3546636870
Notes:
blender-bot
2023-02-14 09:43:37 +01:00
Referenced by issue #53335, RNA error with texture nodes and EXR
|
@ -634,6 +634,9 @@ Closure closure_mix(Closure cl1, Closure cl2, float fac)
|
|||
Closure closure_add(Closure cl1, Closure cl2)
|
||||
{
|
||||
Closure cl = (cl1.ssr_id == outputSsrId) ? cl1 : cl2;
|
||||
#ifdef USE_SSS
|
||||
cl.sss_data = (cl1.sss_data.a > 0.0) ? cl1.sss_data : cl2.sss_data;
|
||||
#endif
|
||||
cl.radiance = cl1.radiance + cl2.radiance;
|
||||
cl.opacity = cl1.opacity + cl2.opacity;
|
||||
return cl;
|
||||
|
|
Loading…
Reference in New Issue