|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | HairBsdf |
Typedefs | |
| typedef CCL_NAMESPACE_BEGIN struct HairBsdf | 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 (ccl_private const ShaderClosure *sc, const float3 wi, const float3 wo, ccl_private float *pdf) |
| ccl_device Spectrum | bsdf_hair_transmission_eval (ccl_private const ShaderClosure *sc, const float3 wi, const float3 wo, ccl_private float *pdf) |
| ccl_device int | bsdf_hair_reflection_sample (ccl_private const ShaderClosure *sc, float3 Ng, float3 wi, 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 (ccl_private const ShaderClosure *sc, float3 Ng, float3 wi, float2 rand, ccl_private Spectrum *eval, ccl_private float3 *wo, ccl_private float *pdf, ccl_private float2 *sampled_roughness) |
| typedef CCL_NAMESPACE_BEGIN struct HairBsdf HairBsdf |
| ccl_device Spectrum bsdf_hair_reflection_eval | ( | ccl_private const ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 39 of file bsdf_hair.h.
References ccl_private, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_cosf(), M_PI_2_F, M_PI_F, make_spectrum, normalize(), and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_hair_reflection_sample | ( | ccl_private const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | wi, | ||
| float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf, | ||
| ccl_private float2 * | sampled_roughness ) |
Definition at line 142 of file bsdf_hair.h.
References 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 23 of file bsdf_hair.h.
References clamp(), CLOSURE_BSDF_HAIR_REFLECTION_ID, HairBsdf::roughness1, 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 | ( | ccl_private const ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 91 of file bsdf_hair.h.
References ccl_private, dot(), fabsf, fast_acosf(), fast_atan2f(), fast_cosf(), M_PI_2_F, M_PI_F, make_spectrum, normalize(), and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_hair_transmission_sample | ( | ccl_private const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | wi, | ||
| float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf, | ||
| ccl_private float2 * | sampled_roughness ) |
Definition at line 194 of file bsdf_hair.h.
References 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 31 of file bsdf_hair.h.
References 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().