Blender V2.61 - r43446
Classes | Typedefs | Functions

bsdf_microfacet.h File Reference

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 Documentation

typedef CCL_NAMESPACE_BEGIN struct BsdfMicrofacetGGXClosure BsdfMicrofacetGGXClosure

Function Documentation

__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 *  pdf 
)
__device float3 bsdf_microfacet_beckmann_eval_transmit ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)
__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 
)
__device void bsdf_microfacet_beckmann_setup ( ShaderData sd,
ShaderClosure sc,
float  ab,
float  eta,
bool  refractive 
)
__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 *  pdf 
)
__device float3 bsdf_microfacet_ggx_eval_transmit ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)
__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_ggx_setup ( ShaderData sd,
ShaderClosure sc,
float  ag,
float  eta,
bool  refractive 
)