Blender
V3.3
|
#include "kernel/sample/mapping.h"
Go to the source code of this file.
Classes | |
struct | DiffuseBsdf |
Typedefs | |
typedef CCL_NAMESPACE_BEGIN struct DiffuseBsdf | DiffuseBsdf |
typedef CCL_NAMESPACE_BEGIN struct DiffuseBsdf DiffuseBsdf |
ccl_device float3 bsdf_diffuse_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 29 of file bsdf_diffuse.h.
References ccl_private, blender::math::dot(), fmaxf, M_1_PI_F, make_float3, and N.
Referenced by bsdf_eval().
ccl_device float3 bsdf_diffuse_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
ccl_device int bsdf_diffuse_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 51 of file bsdf_diffuse.h.
References ccl_private, blender::math::dot(), LABEL_DIFFUSE, LABEL_REFLECT, make_float3, N, and sample_cos_hemisphere().
Referenced by bsdf_sample().
ccl_device int bsdf_diffuse_setup | ( | ccl_private DiffuseBsdf * | bsdf | ) |
Definition at line 23 of file bsdf_diffuse.h.
References CLOSURE_BSDF_DIFFUSE_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by bssrdf_setup(), shader_eval_surface(), and svm_node_closure_bsdf().
ccl_device float3 bsdf_translucent_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
ccl_device float3 bsdf_translucent_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 102 of file bsdf_diffuse.h.
References ccl_private, blender::math::dot(), fmaxf, M_1_PI_F, make_float3, and N.
Referenced by bsdf_eval().
ccl_device int bsdf_translucent_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 115 of file bsdf_diffuse.h.
References ccl_private, blender::math::dot(), LABEL_DIFFUSE, LABEL_TRANSMIT, make_float3, N, and sample_cos_hemisphere().
Referenced by bsdf_sample().
ccl_device int bsdf_translucent_setup | ( | ccl_private DiffuseBsdf * | bsdf | ) |
Definition at line 87 of file bsdf_diffuse.h.
References CLOSURE_BSDF_TRANSLUCENT_ID, SD_BSDF, and SD_BSDF_HAS_EVAL.
Referenced by svm_node_closure_bsdf().