Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | BsdfMicrofacetGGXClosure |
struct | BsdfMicrofacetBeckmannClosure |
Typedefs | |
typedef CCL_NAMESPACE_BEGIN struct BsdfMicrofacetGGXClosure | BsdfMicrofacetGGXClosure |
typedef struct BsdfMicrofacetBeckmannClosure | BsdfMicrofacetBeckmannClosure |
Functions | |
__device void | bsdf_microfacet_ggx_setup (ShaderData *sd, ShaderClosure *sc, float ag, float eta, bool refractive) |
__device void | bsdf_microfacet_ggx_blur (ShaderClosure *sc, float roughness) |
__device float3 | bsdf_microfacet_ggx_eval_reflect (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf) |
__device float3 | bsdf_microfacet_ggx_eval_transmit (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf) |
__device float | bsdf_microfacet_ggx_albedo (const ShaderData *sd, const ShaderClosure *sc, const float3 I) |
__device int | bsdf_microfacet_ggx_sample (const ShaderData *sd, const ShaderClosure *sc, float randu, float randv, float3 *eval, float3 *omega_in, float3 *domega_in_dx, float3 *domega_in_dy, float *pdf) |
__device void | bsdf_microfacet_beckmann_setup (ShaderData *sd, ShaderClosure *sc, float ab, float eta, bool refractive) |
__device void | bsdf_microfacet_beckmann_blur (ShaderClosure *sc, float roughness) |
__device float3 | bsdf_microfacet_beckmann_eval_reflect (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf) |
__device float3 | bsdf_microfacet_beckmann_eval_transmit (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf) |
__device float | bsdf_microfacet_beckmann_albedo (const ShaderData *sd, const ShaderClosure *sc, const float3 I) |
__device int | bsdf_microfacet_beckmann_sample (const ShaderData *sd, const ShaderClosure *sc, float randu, float randv, float3 *eval, float3 *omega_in, float3 *domega_in_dx, float3 *domega_in_dy, float *pdf) |
typedef struct BsdfMicrofacetBeckmannClosure BsdfMicrofacetBeckmannClosure |
typedef CCL_NAMESPACE_BEGIN struct BsdfMicrofacetGGXClosure BsdfMicrofacetGGXClosure |
__device float bsdf_microfacet_beckmann_albedo | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I | ||
) |
Definition at line 371 of file bsdf_microfacet.h.
__device void bsdf_microfacet_beckmann_blur | ( | ShaderClosure * | sc, |
float | roughness | ||
) |
Definition at line 287 of file bsdf_microfacet.h.
References ShaderClosure::data0, and fmaxf.
Referenced by svm_bsdf_blur().
__device float3 bsdf_microfacet_beckmann_eval_reflect | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I, | ||
const float3 | omega_in, | ||
float * | |||
) |
Definition at line 294 of file bsdf_microfacet.h.
References CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID, D(), ShaderClosure::data0, dot(), expf, G, M_PI_F, make_float3(), ShaderData::N, normalize(), sqrtf, and ShaderClosure::type.
Referenced by svm_bsdf_eval().
__device float3 bsdf_microfacet_beckmann_eval_transmit | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I, | ||
const float3 | omega_in, | ||
float * | |||
) |
Definition at line 333 of file bsdf_microfacet.h.
References CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID, D(), ShaderClosure::data0, ShaderClosure::data1, dot(), expf, fabsf, G, I, M_PI_F, make_float3(), ShaderData::N, normalize(), sqrtf, and ShaderClosure::type.
Referenced by svm_bsdf_eval().
__device int bsdf_microfacet_beckmann_sample | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
float | randu, | ||
float | randv, | ||
float3 * | eval, | ||
float3 * | omega_in, | ||
float3 * | domega_in_dx, | ||
float3 * | domega_in_dy, | ||
float * | |||
) |
Definition at line 376 of file bsdf_microfacet.h.
References __RAY_DIFFERENTIALS__, CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID, cosf, D(), ShaderClosure::data0, ShaderClosure::data1, ShaderData::dI, dot(), differential3::dx, differential3::dy, expf, fabsf, fresnel_dielectric(), G, ShaderData::I, LABEL_GLOSSY, LABEL_REFLECT, LABEL_TRANSMIT, logf, M_PI_F, make_float3(), make_orthonormals(), ShaderData::N, ShaderData::Ng, R, sinf, sqrtf, T, ShaderClosure::type, and X.
Referenced by svm_bsdf_sample().
__device void bsdf_microfacet_beckmann_setup | ( | ShaderData * | sd, |
ShaderClosure * | sc, | ||
float | ab, | ||
float | eta, | ||
bool | refractive | ||
) |
Definition at line 271 of file bsdf_microfacet.h.
References clamp, CLOSURE_BSDF_MICROFACET_BECKMANN_ID, CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID, ShaderClosure::data0, ShaderClosure::data1, credits_svn_gen::e, ShaderData::flag, SD_BSDF, SD_BSDF_GLOSSY, SD_BSDF_HAS_EVAL, and ShaderClosure::type.
Referenced by svm_node_closure_bsdf(), and svm_node_glossy_setup().
__device float bsdf_microfacet_ggx_albedo | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I | ||
) |
Definition at line 142 of file bsdf_microfacet.h.
__device void bsdf_microfacet_ggx_blur | ( | ShaderClosure * | sc, |
float | roughness | ||
) |
Definition at line 62 of file bsdf_microfacet.h.
References ShaderClosure::data0, and fmaxf.
Referenced by svm_bsdf_blur().
__device float3 bsdf_microfacet_ggx_eval_reflect | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I, | ||
const float3 | omega_in, | ||
float * | |||
) |
Definition at line 69 of file bsdf_microfacet.h.
References CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, D(), ShaderClosure::data0, dot(), G, M_PI_F, make_float3(), ShaderData::N, normalize(), sqrtf, and ShaderClosure::type.
Referenced by svm_bsdf_eval().
__device float3 bsdf_microfacet_ggx_eval_transmit | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
const float3 | I, | ||
const float3 | omega_in, | ||
float * | |||
) |
Definition at line 106 of file bsdf_microfacet.h.
References CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, D(), ShaderClosure::data0, ShaderClosure::data1, dot(), fabsf, G, I, M_PI_F, make_float3(), ShaderData::N, normalize(), sqrtf, and ShaderClosure::type.
Referenced by svm_bsdf_eval().
__device int bsdf_microfacet_ggx_sample | ( | const ShaderData * | sd, |
const ShaderClosure * | sc, | ||
float | randu, | ||
float | randv, | ||
float3 * | eval, | ||
float3 * | omega_in, | ||
float3 * | domega_in_dx, | ||
float3 * | domega_in_dy, | ||
float * | |||
) |
Definition at line 147 of file bsdf_microfacet.h.
References __RAY_DIFFERENTIALS__, CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, cosf, D(), ShaderClosure::data0, ShaderClosure::data1, ShaderData::dI, dot(), differential3::dx, differential3::dy, fabsf, fresnel_dielectric(), G, ShaderData::I, LABEL_GLOSSY, LABEL_REFLECT, LABEL_TRANSMIT, M_PI_F, make_float3(), make_orthonormals(), ShaderData::N, ShaderData::Ng, R, sinf, sqrtf, T, ShaderClosure::type, and X.
Referenced by svm_bsdf_sample().
__device void bsdf_microfacet_ggx_setup | ( | ShaderData * | sd, |
ShaderClosure * | sc, | ||
float | ag, | ||
float | eta, | ||
bool | refractive | ||
) |
Definition at line 46 of file bsdf_microfacet.h.
References clamp, CLOSURE_BSDF_MICROFACET_GGX_ID, CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, ShaderClosure::data0, ShaderClosure::data1, credits_svn_gen::e, ShaderData::flag, SD_BSDF, SD_BSDF_GLOSSY, SD_BSDF_HAS_EVAL, and ShaderClosure::type.
Referenced by svm_node_closure_bsdf(), and svm_node_glossy_setup().