|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | ToonBsdf |
Variables | |
| CCL_NAMESPACE_BEGIN typedef ccl_addr_space struct ToonBsdf | ToonBsdf |
| ccl_device float3 bsdf_diffuse_toon_eval_reflect | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
Definition at line 86 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), cosf, dot(), fmaxf, M_1_PI_F, M_PI_2_F, make_float3, safe_acosf(), ToonBsdf::size, ToonBsdf::smooth, and float3::x.
Referenced by bsdf_eval().
| ccl_device float3 bsdf_diffuse_toon_eval_transmit | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
| ccl_device int bsdf_diffuse_toon_sample | ( | const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | I, | ||
| float3 | dIdx, | ||
| float3 | dIdy, | ||
| float | randu, | ||
| float | randv, | ||
| float3 * | eval, | ||
| float3 * | omega_in, | ||
| float3 * | domega_in_dx, | ||
| float3 * | domega_in_dy, | ||
| float * | |||
| ) |
Definition at line 116 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), dot(), LABEL_DIFFUSE, LABEL_REFLECT, M_PI_2_F, sample_uniform_cone(), ToonBsdf::size, and ToonBsdf::smooth.
Referenced by bsdf_sample().
| ccl_device int bsdf_diffuse_toon_setup | ( | ToonBsdf * | bsdf | ) |
Definition at line 49 of file bsdf_toon.h.
References CLOSURE_BSDF_DIFFUSE_TOON_ID, saturate(), SD_BSDF, SD_BSDF_HAS_EVAL, ToonBsdf::size, and ToonBsdf::smooth.
Referenced by svm_node_closure_bsdf().
| ccl_device float3 bsdf_glossy_toon_eval_reflect | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
Definition at line 165 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), cosf, dot(), fmaxf, I, M_1_PI_F, M_PI_2_F, make_float3, R, safe_acosf(), ToonBsdf::size, and ToonBsdf::smooth.
Referenced by bsdf_eval().
| ccl_device float3 bsdf_glossy_toon_eval_transmit | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
| ccl_device int bsdf_glossy_toon_sample | ( | const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | I, | ||
| float3 | dIdx, | ||
| float3 | dIdy, | ||
| float | randu, | ||
| float | randv, | ||
| float3 * | eval, | ||
| float3 * | omega_in, | ||
| float3 * | domega_in_dx, | ||
| float3 * | domega_in_dy, | ||
| float * | |||
| ) |
Definition at line 201 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), dot(), I, LABEL_GLOSSY, LABEL_REFLECT, M_PI_2_F, R, sample_uniform_cone(), ToonBsdf::size, and ToonBsdf::smooth.
Referenced by bsdf_sample().
| ccl_device int bsdf_glossy_toon_setup | ( | ToonBsdf * | bsdf | ) |
Definition at line 156 of file bsdf_toon.h.
References CLOSURE_BSDF_GLOSSY_TOON_ID, saturate(), SD_BSDF, SD_BSDF_HAS_EVAL, ToonBsdf::size, and ToonBsdf::smooth.
Referenced by svm_node_closure_bsdf().
| ccl_device float3 bsdf_toon_get_intensity | ( | float | max_angle, |
| float | smooth, | ||
| float | angle | ||
| ) |
Definition at line 67 of file bsdf_toon.h.
References angle(), and make_float3.
Referenced by bsdf_diffuse_toon_eval_reflect(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_eval_reflect(), and bsdf_glossy_toon_sample().
| ccl_device float bsdf_toon_get_sample_angle | ( | float | max_angle, |
| float | smooth | ||
| ) |
Definition at line 81 of file bsdf_toon.h.
References fminf, and M_PI_2_F.
Referenced by bsdf_diffuse_toon_eval_reflect(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_eval_reflect(), and bsdf_glossy_toon_sample().
| ccl_device bool bsdf_toon_merge | ( | const ShaderClosure * | a, |
| const ShaderClosure * | b | ||
| ) |
Definition at line 58 of file bsdf_toon.h.
References Freestyle::a, isequal_float3(), ToonBsdf::size, and ToonBsdf::smooth.
Referenced by bsdf_merge().
| CCL_NAMESPACE_BEGIN typedef ccl_addr_space struct ToonBsdf ToonBsdf |