|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | SheenBsdf |
Functions | |
| ccl_device int | bsdf_sheen_setup (KernelGlobals kg, const ccl_private ShaderData *sd, ccl_private SheenBsdf *bsdf) |
| ccl_device Spectrum | bsdf_sheen_eval (const ccl_private ShaderClosure *sc, const float3, const float3 wo, ccl_private float *pdf) |
| ccl_device int | bsdf_sheen_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) |
| ccl_device Spectrum bsdf_sheen_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 56 of file bsdf_sheen.h.
References B, b, ccl_device, ccl_private, fmaxf, M_1_PI_F, make_spectrum, N, sqr, T, to_local(), float3::x, float3::y, and float3::z.
Referenced by bsdf_eval().
| ccl_device int bsdf_sheen_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 77 of file bsdf_sheen.h.
References B, b, ccl_device, ccl_private, dot(), LABEL_DIFFUSE, LABEL_REFLECT, M_1_PI_F, make_float3(), make_spectrum, N, normalize, safe_sqrtf(), sample_uniform_disk(), sqr, T, to_global(), float2::x, float3::x, float2::y, float3::y, float3::z, and zero_spectrum.
Referenced by bsdf_sample().
| ccl_device int bsdf_sheen_setup | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd, | ||
| ccl_private SheenBsdf * | bsdf ) |
Definition at line 27 of file bsdf_sheen.h.
References ccl_device, ccl_private, clamp(), CLOSURE_BSDF_SHEEN_ID, CLOSURE_NONE_ID, dot(), fabsf, kernel_data, lookup_table_read_2D(), make_orthonormals_safe_tangent(), SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by osl_closure_sheen_bsdf_setup(), osl_closure_sheen_setup(), and svm_node_closure_bsdf().