Blender
V3.3
|
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device void | bsdf_transparent_setup (ccl_private ShaderData *sd, const float3 weight, uint32_t path_flag) |
ccl_device float3 | bsdf_transparent_eval_reflect (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf) |
ccl_device float3 | bsdf_transparent_eval_transmit (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf) |
ccl_device int | bsdf_transparent_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 *pdf) |
ccl_device float3 bsdf_transparent_eval_reflect | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 62 of file bsdf_transparent.h.
References make_float3.
Referenced by bsdf_eval().
ccl_device float3 bsdf_transparent_eval_transmit | ( | ccl_private const ShaderClosure * | sc, |
const float3 | I, | ||
const float3 | omega_in, | ||
ccl_private float * | |||
) |
Definition at line 71 of file bsdf_transparent.h.
References make_float3.
Referenced by bsdf_eval().
ccl_device int bsdf_transparent_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 80 of file bsdf_transparent.h.
References I, LABEL_TRANSMIT, LABEL_TRANSPARENT, and make_float3.
Referenced by bsdf_sample().
CCL_NAMESPACE_BEGIN ccl_device void bsdf_transparent_setup | ( | ccl_private ShaderData * | sd, |
const float3 | weight, | ||
uint32_t | path_flag | ||
) |
Definition at line 13 of file bsdf_transparent.h.
References average(), ccl_private, closure_alloc(), CLOSURE_BSDF_TRANSPARENT_ID, CLOSURE_WEIGHT_CUTOFF, fabsf, PATH_RAY_TERMINATE, SD_BSDF, SD_TRANSPARENT, and ShaderClosure.
Referenced by TransparentClosure::setup(), and svm_node_closure_bsdf().