|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | ToonBsdf |
| ccl_device Spectrum bsdf_diffuse_toon_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 65 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_device, ccl_private, dot(), fmaxf, M_1_2PI_F, make_spectrum, one_minus_cos(), safe_acosf(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_diffuse_toon_sample | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | Ng, | ||
| const float3 | , | ||
| const float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 90 of file bsdf_toon.h.
References acosf, angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_device, 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 35 of file bsdf_toon.h.
References bsdf_toon_setup_common(), ccl_device, ccl_private, 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 | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | wi, | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 125 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_device, ccl_private, dot(), fmaxf, M_1_2PI_F, make_spectrum, one_minus_cos(), R, safe_acosf(), ToonBsdf::size, and zero_spectrum.
Referenced by bsdf_eval().
| ccl_device int bsdf_glossy_toon_sample | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | Ng, | ||
| const float3 | wi, | ||
| const float2 | rand, | ||
| ccl_private Spectrum * | eval, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 154 of file bsdf_toon.h.
References acosf, angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_device, 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 119 of file bsdf_toon.h.
References bsdf_toon_setup_common(), ccl_device, ccl_private, 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 | ( | const float | max_angle, |
| const float | smooth, | ||
| const float | angle ) |
Definition at line 41 of file bsdf_toon.h.
References angle(), and ccl_device.
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 | ( | const float | max_angle, |
| const float | smooth ) |
Definition at line 60 of file bsdf_toon.h.
References ccl_device, 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 25 of file bsdf_toon.h.
References ccl_device_inline, ccl_private, clamp(), M_PI_2_F, saturatef, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by bsdf_diffuse_toon_setup(), and bsdf_glossy_toon_setup().