Fix T48514: Cycles toon glossy BSDF not respecting reflective caustics option.

This commit is contained in:
Brecht Van Lommel 2016-05-25 21:10:36 +02:00
parent b49185df99
commit f2ba13964d
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #48514, Indirect light from toon glossy shader acts like indirect diffuse light
1 changed files with 6 additions and 2 deletions

View File

@ -365,8 +365,12 @@ ccl_device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *
}
break;
}
case CLOSURE_BSDF_DIFFUSE_TOON_ID:
case CLOSURE_BSDF_GLOSSY_TOON_ID: {
case CLOSURE_BSDF_GLOSSY_TOON_ID:
#ifdef __CAUSTICS_TRICKS__
if(!kernel_data.integrator.caustics_reflective && (path_flag & PATH_RAY_DIFFUSE))
break;
#endif
case CLOSURE_BSDF_DIFFUSE_TOON_ID: {
ShaderClosure *sc = svm_node_closure_get_bsdf(sd, mix_weight);
if(sc) {