Blender
V3.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 float3 bsdf_diffuse_toon_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 52 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, cosf, blender::math::dot(), fmaxf, M_1_PI_F, M_PI_2_F, make_float3, safe_acosf(), ToonBsdf::size, smooth(), and float3::x.
Referenced by bsdf_eval().
ccl_device float3 bsdf_diffuse_toon_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
ccl_device int bsdf_diffuse_toon_sample | ( | ccl_private const ShaderClosure * | sc, |
float3 | Ng, | ||
float3 | I, | ||
float3 | dIdx, | ||
float3 | dIdy, | ||
float | randu, | ||
float | randv, | ||
ccl_private float3 * | eval, | ||
ccl_private float3 * | omega_in, | ||
ccl_private float3 * | domega_in_dx, | ||
ccl_private float3 * | domega_in_dy, | ||
ccl_private float * | |||
) |
Definition at line 83 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, blender::math::dot(), LABEL_DIFFUSE, LABEL_REFLECT, M_PI_2_F, make_float3, sample_uniform_cone(), ToonBsdf::size, and smooth().
Referenced by bsdf_sample().
ccl_device int bsdf_diffuse_toon_setup | ( | ccl_private ToonBsdf * | bsdf | ) |
Definition at line 24 of file bsdf_toon.h.
References CLOSURE_BSDF_DIFFUSE_TOON_ID, saturatef(), SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().
ccl_device float3 bsdf_glossy_toon_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 138 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, cosf, blender::math::dot(), fmaxf, I, M_1_PI_F, M_PI_2_F, make_float3, R, safe_acosf(), ToonBsdf::size, and smooth().
Referenced by bsdf_eval().
ccl_device float3 bsdf_glossy_toon_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
ccl_device int bsdf_glossy_toon_sample | ( | ccl_private const ShaderClosure * | sc, |
float3 | Ng, | ||
float3 | I, | ||
float3 | dIdx, | ||
float3 | dIdy, | ||
float | randu, | ||
float | randv, | ||
ccl_private float3 * | eval, | ||
ccl_private float3 * | omega_in, | ||
ccl_private float3 * | domega_in_dx, | ||
ccl_private float3 * | domega_in_dy, | ||
ccl_private float * | |||
) |
Definition at line 175 of file bsdf_toon.h.
References angle(), bsdf_toon_get_intensity(), bsdf_toon_get_sample_angle(), ccl_private, blender::math::dot(), I, LABEL_GLOSSY, LABEL_REFLECT, M_PI_2_F, make_float3, R, sample_uniform_cone(), ToonBsdf::size, and smooth().
Referenced by bsdf_sample().
ccl_device int bsdf_glossy_toon_setup | ( | ccl_private ToonBsdf * | bsdf | ) |
Definition at line 129 of file bsdf_toon.h.
References CLOSURE_BSDF_GLOSSY_TOON_ID, saturatef(), SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().
ccl_device float3 bsdf_toon_get_intensity | ( | float | max_angle, |
float | smooth, | ||
float | angle | ||
) |
Definition at line 33 of file bsdf_toon.h.
References angle(), make_float3, and smooth().
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 47 of file bsdf_toon.h.
References fminf, M_PI_2_F, and smooth().
Referenced by bsdf_diffuse_toon_eval_reflect(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_eval_reflect(), and bsdf_glossy_toon_sample().