18 sd->closure_emission_background += weight;
22 sd->closure_emission_background = weight;
31 sd->closure_emission_background += weight;
35 sd->closure_emission_background = weight;
45 return (cosNO > 0.0f) ? 1.0f : 0.0f;
#define CCL_NAMESPACE_END
ccl_device void emissive_sample(const float3 Ng, float randu, float randv, ccl_private float3 *omega_out, ccl_private float *pdf)
CCL_NAMESPACE_BEGIN ccl_device void background_setup(ccl_private ShaderData *sd, const float3 weight)
ccl_device void emission_setup(ccl_private ShaderData *sd, const float3 weight)
ccl_device float3 emissive_simple_eval(const float3 Ng, const float3 I)
ccl_device float emissive_pdf(const float3 Ng, const float3 I)
T dot(const vec_base< T, Size > &a, const vec_base< T, Size > &b)