Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | OrenNayarBsdf |
Typedefs | |
typedef CCL_NAMESPACE_BEGIN struct OrenNayarBsdf | OrenNayarBsdf |
Functions | |
ccl_device float3 | bsdf_oren_nayar_get_intensity (ccl_private const ShaderClosure *sc, float3 n, float3 v, float3 l) |
ccl_device int | bsdf_oren_nayar_setup (ccl_private OrenNayarBsdf *bsdf) |
ccl_device float3 | bsdf_oren_nayar_eval_reflect (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf) |
ccl_device float3 | bsdf_oren_nayar_eval_transmit (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf) |
ccl_device int | bsdf_oren_nayar_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 *pdf) |
typedef CCL_NAMESPACE_BEGIN struct OrenNayarBsdf OrenNayarBsdf |
ccl_device float3 bsdf_oren_nayar_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 50 of file bsdf_oren_nayar.h.
References bsdf_oren_nayar_get_intensity(), ccl_private, blender::math::dot(), I, M_1_PI_F, and make_float3.
Referenced by bsdf_eval().
ccl_device float3 bsdf_oren_nayar_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
ccl_device float3 bsdf_oren_nayar_get_intensity | ( | ccl_private const ShaderClosure * | sc, |
float3 | n, | ||
float3 | v, | ||
float3 | l | ||
) |
Definition at line 18 of file bsdf_oren_nayar.h.
References ccl_private, blender::math::dot(), l, make_float3, max, t, and v.
Referenced by bsdf_oren_nayar_eval_reflect(), and bsdf_oren_nayar_sample().
ccl_device int bsdf_oren_nayar_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 75 of file bsdf_oren_nayar.h.
References bsdf_oren_nayar_get_intensity(), ccl_private, blender::math::dot(), I, LABEL_DIFFUSE, LABEL_REFLECT, make_float3, and sample_uniform_hemisphere().
Referenced by bsdf_sample().
ccl_device int bsdf_oren_nayar_setup | ( | ccl_private OrenNayarBsdf * | bsdf | ) |
Definition at line 34 of file bsdf_oren_nayar.h.
References CLOSURE_BSDF_OREN_NAYAR_ID, M_PI_F, saturatef(), SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().