Fix T65017 Eevee: Render error if a SSS node is unconnected
This commit is contained in:
parent
b4df509f7b
commit
f962c701fe
Notes:
blender-bot
2023-02-14 10:29:30 +01:00
Referenced by issue #67646, eevee - unconnected Subsurface Scattering node makes whole material not working Referenced by issue #65017, Eevee: Object not using SSS renders incorrectly if a SSS node is unconnected
|
@ -139,7 +139,7 @@ static int node_shader_gpu_bsdf_principled(GPUMaterial *mat,
|
|||
}
|
||||
|
||||
bool use_diffuse = socket_not_one(4) && socket_not_one(15);
|
||||
bool use_subsurf = socket_not_zero(1) && use_diffuse;
|
||||
bool use_subsurf = socket_not_zero(1) && use_diffuse && node->sss_id == 1;
|
||||
bool use_refract = socket_not_one(4) && socket_not_zero(15);
|
||||
bool use_clear = socket_not_zero(12);
|
||||
|
||||
|
|
Loading…
Reference in New Issue