Blender
V3.3
|
Go to the source code of this file.
ccl_device void bsdf_ashikhmin_shirley_blur | ( | ccl_private ShaderClosure * | sc, |
float | roughness | ||
) |
Definition at line 29 of file bsdf_ashikhmin_shirley.h.
References MicrofacetBsdf::alpha_x, ccl_private, fmaxf, and usdtokens::roughness().
Referenced by bsdf_blur().
ccl_device_forceinline float3 bsdf_ashikhmin_shirley_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 43 of file bsdf_ashikhmin_shirley.h.
References bsdf_ashikhmin_shirley_roughness_to_exponent(), ccl_private, blender::math::dot(), e, fabsf, fmaxf, H, I, M_PI_F, make_float3, make_orthonormals_tangent(), N, norm(), blender::math::normalize(), usdtokens::out(), powf, sqrtf, X, and Y.
Referenced by bsdf_ashikhmin_shirley_sample(), and bsdf_eval().
ccl_device float3 bsdf_ashikhmin_shirley_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 111 of file bsdf_ashikhmin_shirley.h.
References make_float3.
Referenced by bsdf_eval().
ccl_device_inline float bsdf_ashikhmin_shirley_roughness_to_exponent | ( | float | roughness | ) |
Definition at line 37 of file bsdf_ashikhmin_shirley.h.
References usdtokens::roughness().
Referenced by bsdf_ashikhmin_shirley_eval_reflect(), and bsdf_ashikhmin_shirley_sample().
ccl_device int bsdf_ashikhmin_shirley_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 133 of file bsdf_ashikhmin_shirley.h.
References bsdf_ashikhmin_shirley_eval_reflect(), bsdf_ashikhmin_shirley_roughness_to_exponent(), bsdf_ashikhmin_shirley_sample_first_quadrant(), ccl_private, cosf, blender::math::dot(), fmaxf, H, I, label, LABEL_GLOSSY, LABEL_REFLECT, LABEL_SINGULAR, M_2PI_F, M_PI_F, make_float3, make_orthonormals(), make_orthonormals_tangent(), N, powf, sinf, sqrtf, float3::x, X, float3::y, Y, and float3::z.
Referenced by bsdf_sample().
ccl_device_inline void bsdf_ashikhmin_shirley_sample_first_quadrant | ( | float | n_x, |
float | n_y, | ||
float | randu, | ||
float | randv, | ||
ccl_private float * | phi, | ||
ccl_private float * | cos_theta | ||
) |
Definition at line 120 of file bsdf_ashikhmin_shirley.h.
References atanf, cosf, M_PI_2_F, powf, sinf, sqrtf, and tanf.
Referenced by bsdf_ashikhmin_shirley_sample().
CCL_NAMESPACE_BEGIN ccl_device int bsdf_ashikhmin_shirley_setup | ( | ccl_private MicrofacetBsdf * | bsdf | ) |
Definition at line 20 of file bsdf_ashikhmin_shirley.h.
References blender::math::clamp(), CLOSURE_BSDF_ASHIKHMIN_SHIRLEY_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().