|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | DiffuseBsdf |
Functions | |
| ccl_device int | bsdf_diffuse_setup (ccl_private DiffuseBsdf *bsdf) |
| ccl_device Spectrum | bsdf_diffuse_eval (const ccl_private ShaderClosure *sc, const float3, const float3 wo, ccl_private float *pdf) |
| ccl_device int | bsdf_diffuse_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 int | bsdf_translucent_setup (ccl_private DiffuseBsdf *bsdf) |
| ccl_device Spectrum | bsdf_translucent_eval (const ccl_private ShaderClosure *sc, const float3, const float3 wo, ccl_private float *pdf) |
| ccl_device int | bsdf_translucent_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_diffuse_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 30 of file bsdf_diffuse.h.
References ccl_device, ccl_private, dot(), fmaxf, M_1_PI_F, make_spectrum, and N.
Referenced by bsdf_eval().
| ccl_device int bsdf_diffuse_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 43 of file bsdf_diffuse.h.
References ccl_device, ccl_private, dot(), LABEL_DIFFUSE, LABEL_REFLECT, make_spectrum, N, sample_cos_hemisphere(), and zero_spectrum.
Referenced by bsdf_sample().
| ccl_device int bsdf_diffuse_setup | ( | ccl_private DiffuseBsdf * | bsdf | ) |
Definition at line 24 of file bsdf_diffuse.h.
References ccl_device, ccl_private, CLOSURE_BSDF_DIFFUSE_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by bssrdf_setup(), osl_closure_diffuse_setup(), surface_shader_eval(), and svm_node_closure_bsdf().
| ccl_device Spectrum bsdf_translucent_eval | ( | const ccl_private ShaderClosure * | sc, |
| const float3 | , | ||
| const float3 | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 75 of file bsdf_diffuse.h.
References ccl_device, ccl_private, dot(), fmaxf, M_1_PI_F, make_spectrum, and N.
Referenced by bsdf_eval().
| ccl_device int bsdf_translucent_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 88 of file bsdf_diffuse.h.
References ccl_device, ccl_private, dot(), LABEL_DIFFUSE, LABEL_TRANSMIT, make_spectrum, N, sample_cos_hemisphere(), and zero_spectrum.
Referenced by bsdf_sample().
| ccl_device int bsdf_translucent_setup | ( | ccl_private DiffuseBsdf * | bsdf | ) |
Definition at line 69 of file bsdf_diffuse.h.
References ccl_device, ccl_private, CLOSURE_BSDF_TRANSLUCENT_ID, SD_BSDF, SD_BSDF_HAS_EVAL, and SD_BSDF_HAS_TRANSMISSION.
Referenced by osl_closure_translucent_setup(), and svm_node_closure_bsdf().