|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | ToonBsdf |
Typedefs | |
| typedef CCL_NAMESPACE_BEGIN struct ToonBsdf | ToonBsdf |
| typedef CCL_NAMESPACE_BEGIN struct ToonBsdf ToonBsdf |
| ccl_device Spectrum bsdf_diffuse_toon_eval | ( | ccl_private const ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 59 of file bsdf_toon.h.
References bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, dot(), fmaxf, make_spectrum, one_minus_cos(), safe_acosf(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_diffuse_toon_sample | ( | ccl_private const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | wi, | ||
| float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 84 of file bsdf_toon.h.
References acosf, bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, dot(), LABEL_DIFFUSE, LABEL_NONE, LABEL_REFLECT, make_spectrum, one_minus_cos(), sample_uniform_cone(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_sample().
| ccl_device int bsdf_diffuse_toon_setup | ( | ccl_private ToonBsdf * | bsdf | ) |
Definition at line 31 of file bsdf_toon.h.
References bsdf_toon_setup_common(), and CLOSURE_BSDF_DIFFUSE_TOON_ID.
Referenced by osl_closure_diffuse_toon_setup(), and svm_node_closure_bsdf().
| ccl_device Spectrum bsdf_glossy_toon_eval | ( | ccl_private const ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 119 of file bsdf_toon.h.
References bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, dot(), fmaxf, make_spectrum, one_minus_cos(), R, safe_acosf(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_glossy_toon_sample | ( | ccl_private const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | wi, | ||
| float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 148 of file bsdf_toon.h.
References acosf, bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, dot(), LABEL_GLOSSY, LABEL_NONE, LABEL_REFLECT, make_spectrum, one_minus_cos(), R, sample_uniform_cone(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_sample().
| ccl_device int bsdf_glossy_toon_setup | ( | ccl_private ToonBsdf * | bsdf | ) |
Definition at line 113 of file bsdf_toon.h.
References bsdf_toon_setup_common(), and CLOSURE_BSDF_GLOSSY_TOON_ID.
Referenced by osl_closure_glossy_toon_setup(), and svm_node_closure_bsdf().
| ccl_device float bsdf_toon_get_intensity | ( | float | max_angle, |
| float | smooth, | ||
| float | angle ) |
Definition at line 37 of file bsdf_toon.h.
Referenced by bsdf_diffuse_toon_eval(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_eval(), and bsdf_glossy_toon_sample().
| ccl_device float bsdf_toon_get_sample_angle | ( | float | max_angle, |
| float | smooth ) |
Definition at line 54 of file bsdf_toon.h.
References fminf, and M_PI_2_F.
Referenced by bsdf_diffuse_toon_eval(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_eval(), and bsdf_glossy_toon_sample().
| ccl_device_inline int bsdf_toon_setup_common | ( | ccl_private ToonBsdf * | bsdf | ) |
Definition at line 21 of file bsdf_toon.h.
References clamp(), M_PI_2_F, saturatef, SD_BSDF, SD_BSDF_HAS_EVAL, and ToonBsdf::size.
Referenced by bsdf_diffuse_toon_setup(), and bsdf_glossy_toon_setup().