|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | HairBsdf |
Functions | |
| ccl_device int | bsdf_hair_reflection_setup (ccl_private HairBsdf *bsdf) |
| ccl_device int | bsdf_hair_transmission_setup (ccl_private HairBsdf *bsdf) |
| ccl_device Spectrum | bsdf_hair_reflection_eval (const ccl_private ShaderClosure *sc, const float3 wi, const float3 wo, ccl_private float *pdf) |
| ccl_device Spectrum | bsdf_hair_transmission_eval (const ccl_private ShaderClosure *sc, const float3 wi, const float3 wo, ccl_private float *pdf) |
| ccl_device int | bsdf_hair_reflection_sample (const ccl_private ShaderClosure *sc, const float3, const float3 wi, const float2 rand, ccl_private Spectrum *eval, ccl_private float3 *wo, ccl_private float *pdf, ccl_private float2 *sampled_roughness) |
| ccl_device int | bsdf_hair_transmission_sample (const ccl_private ShaderClosure *sc, const float3, const float3 wi, const float2 rand, ccl_private Spectrum *eval, ccl_private float3 *wo, ccl_private float *pdf, ccl_private float2 *sampled_roughness) |
| ccl_device Spectrum bsdf_hair_reflection_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 43 of file bsdf_hair.h.
References ccl_device, ccl_private, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_cosf(), M_PI_2_F, M_PI_F, make_spectrum, normalize, HairBsdf::offset, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_hair_reflection_sample | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wi, | ||
| const float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf, | ||
| ccl_private float2 * | sampled_roughness ) |
Definition at line 146 of file bsdf_hair.h.
References ccl_device, ccl_private, cross, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_cosf(), fast_sincosf(), LABEL_GLOSSY, LABEL_REFLECT, M_PI_2_F, make_float2, make_spectrum, normalize, HairBsdf::offset, safe_asinf(), tanf, float2::x, and float2::y.
Referenced by bsdf_sample().
| ccl_device int bsdf_hair_reflection_setup | ( | ccl_private HairBsdf * | bsdf | ) |
Definition at line 27 of file bsdf_hair.h.
References ccl_device, ccl_private, clamp(), CLOSURE_BSDF_HAIR_REFLECTION_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by osl_closure_hair_reflection_setup(), and svm_node_closure_bsdf().
| ccl_device Spectrum bsdf_hair_transmission_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 95 of file bsdf_hair.h.
References ccl_device, ccl_private, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_cosf(), M_PI_2_F, M_PI_F, make_spectrum, normalize, HairBsdf::offset, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_hair_transmission_sample | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wi, | ||
| const float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf, | ||
| ccl_private float2 * | sampled_roughness ) |
Definition at line 201 of file bsdf_hair.h.
References ccl_device, ccl_private, cross, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_sincosf(), kernel_assert, LABEL_GLOSSY, LABEL_TRANSMIT, M_PI_2_F, M_PI_F, make_float2, make_spectrum, normalize, HairBsdf::offset, tanf, float2::x, and float2::y.
Referenced by bsdf_sample().
| ccl_device int bsdf_hair_transmission_setup | ( | ccl_private HairBsdf * | bsdf | ) |
Definition at line 35 of file bsdf_hair.h.
References ccl_device, ccl_private, clamp(), CLOSURE_BSDF_HAIR_TRANSMISSION_ID, SD_BSDF, SD_BSDF_HAS_EVAL, and SD_BSDF_HAS_TRANSMISSION.
Referenced by osl_closure_hair_transmission_setup(), and svm_node_closure_bsdf().