|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | DiffuseBsdf |
Variables | |
| CCL_NAMESPACE_BEGIN typedef ccl_addr_space struct DiffuseBsdf | DiffuseBsdf |
| ccl_device float3 bsdf_diffuse_eval_reflect | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
Definition at line 60 of file bsdf_diffuse.h.
References dot(), fmaxf, M_1_PI_F, make_float3, and N.
Referenced by bsdf_eval().
| ccl_device float3 bsdf_diffuse_eval_transmit | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
| ccl_device bool bsdf_diffuse_merge | ( | const ShaderClosure * | a, |
| const ShaderClosure * | b | ||
| ) |
Definition at line 52 of file bsdf_diffuse.h.
References Freestyle::a, and isequal_float3().
Referenced by bsdf_merge().
| ccl_device int bsdf_diffuse_sample | ( | const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | I, | ||
| float3 | dIdx, | ||
| float3 | dIdy, | ||
| float | randu, | ||
| float | randv, | ||
| float3 * | eval, | ||
| float3 * | omega_in, | ||
| float3 * | domega_in_dx, | ||
| float3 * | domega_in_dy, | ||
| float * | |||
| ) |
Definition at line 81 of file bsdf_diffuse.h.
References dot(), LABEL_DIFFUSE, LABEL_REFLECT, make_float3, N, and sample_cos_hemisphere().
Referenced by bsdf_sample().
| ccl_device int bsdf_diffuse_setup | ( | DiffuseBsdf * | bsdf | ) |
Definition at line 46 of file bsdf_diffuse.h.
References CLOSURE_BSDF_DIFFUSE_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by bssrdf_setup(), shader_eval_surface(), subsurface_scatter_setup_diffuse_bsdf(), and svm_node_closure_bsdf().
| ccl_device float3 bsdf_translucent_eval_reflect | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
| ccl_device float3 bsdf_translucent_eval_transmit | ( | const ShaderClosure * | sc, |
| const float3 | I, | ||
| const float3 | omega_in, | ||
| float * | |||
| ) |
Definition at line 130 of file bsdf_diffuse.h.
References dot(), fmaxf, M_1_PI_F, make_float3, and N.
Referenced by bsdf_eval().
| ccl_device int bsdf_translucent_sample | ( | const ShaderClosure * | sc, |
| float3 | Ng, | ||
| float3 | I, | ||
| float3 | dIdx, | ||
| float3 | dIdy, | ||
| float | randu, | ||
| float | randv, | ||
| float3 * | eval, | ||
| float3 * | omega_in, | ||
| float3 * | domega_in_dx, | ||
| float3 * | domega_in_dy, | ||
| float * | |||
| ) |
Definition at line 143 of file bsdf_diffuse.h.
References dot(), LABEL_DIFFUSE, LABEL_TRANSMIT, make_float3, N, and sample_cos_hemisphere().
Referenced by bsdf_sample().
| ccl_device int bsdf_translucent_setup | ( | DiffuseBsdf * | bsdf | ) |
Definition at line 116 of file bsdf_diffuse.h.
References CLOSURE_BSDF_TRANSLUCENT_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().
| CCL_NAMESPACE_BEGIN typedef ccl_addr_space struct DiffuseBsdf DiffuseBsdf |