|
Blender V5.3
|
#include "kernel/closure/alloc.h"#include "kernel/sample/mapping.h"#include "kernel/constants.h"#include "kernel/util/lookup_table.h"Go to the source code of this file.
Classes | |
| struct | SheenBsdf |
Functions | |
| ccl_device Spectrum | bsdf_sheen_setup (KernelGlobals kg, ccl_private ShaderData *sd, const Spectrum weight, const float3 N, const float roughness) |
| 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 86 of file bsdf_sheen.h.
References B, b, bsdf_sheen_eval(), 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(), and bsdf_sheen_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 107 of file bsdf_sheen.h.
References B, b, bsdf_sheen_sample(), 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(), and bsdf_sheen_sample().
| ccl_device Spectrum bsdf_sheen_setup | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const Spectrum | weight, | ||
| const float3 | N, | ||
| const float | roughness ) |
Definition at line 30 of file bsdf_sheen.h.
References bsdf_alloc_maybe_emission(), bsdf_sheen_setup(), ccl_device, ccl_private, clamp(), CLOSURE_BSDF_SHEEN_ID, CLOSURE_NONE_ID, dot(), fabsf, kernel_data, lookup_table_read_2D(), make_orthonormals_safe_tangent(), make_spectrum, N, reduce_max(), sheen(), SHEEN_RES_MU, SHEEN_RES_ROUGH, SR_BSDF, SR_BSDF_HAS_EVAL, and zero_spectrum.
Referenced by bsdf_sheen_setup(), osl_closure_sheen_bsdf_setup(), principled_bsdf_emission(), and svm_node_closure_bsdf().