Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/osl_closures.cpp
| Show First 20 Lines • Show All 494 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* BSDF Closure */ | /* BSDF Closure */ | ||||
| bool CBSDFClosure::skip(const ShaderData *sd, int path_flag, int scattering) | bool CBSDFClosure::skip(const ShaderData *sd, int path_flag, int scattering) | ||||
| { | { | ||||
| /* caustic options */ | /* caustic options */ | ||||
| if ((scattering & LABEL_GLOSSY) && (path_flag & PATH_RAY_DIFFUSE)) { | if ((scattering & LABEL_GLOSSY) && (path_flag & PATH_RAY_DIFFUSE)) { | ||||
| const KernelGlobals *kg = sd->osl_globals; | const KernelGlobalsCPU *kg = sd->osl_globals; | ||||
| if ((!kernel_data.integrator.caustics_reflective && (scattering & LABEL_REFLECT)) || | if ((!kernel_data.integrator.caustics_reflective && (scattering & LABEL_REFLECT)) || | ||||
| (!kernel_data.integrator.caustics_refractive && (scattering & LABEL_TRANSMIT))) { | (!kernel_data.integrator.caustics_refractive && (scattering & LABEL_TRANSMIT))) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| ▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines | |||||