Blender V2.61 - r43446
Classes | Typedefs | Functions

bsdf_westin.h File Reference

Go to the source code of this file.

Classes

struct  BsdfWestinBackscatterClosure
struct  BsdfWestinSheenClosure

Typedefs

typedef CCL_NAMESPACE_BEGIN
struct
BsdfWestinBackscatterClosure 
BsdfWestinBackscatterClosure
typedef struct
BsdfWestinSheenClosure 
BsdfWestinSheenClosure

Functions

__device void bsdf_westin_backscatter_setup (ShaderData *sd, ShaderClosure *sc, float roughness)
__device void bsdf_westin_backscatter_blur (ShaderClosure *sc, float roughness)
__device float3 bsdf_westin_backscatter_eval_reflect (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
__device float3 bsdf_westin_backscatter_eval_transmit (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
__device float bsdf_westin_backscatter_albedo (const ShaderData *sd, const ShaderClosure *sc, const float3 I)
__device int bsdf_westin_backscatter_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_westin_sheen_setup (ShaderData *sd, ShaderClosure *sc, float edginess)
__device void bsdf_westin_sheen_blur (ShaderClosure *sc, float roughness)
__device float3 bsdf_westin_sheen_eval_reflect (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
__device float3 bsdf_westin_sheen_eval_transmit (const ShaderData *sd, const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
__device float bsdf_westin_sheen_albedo (const ShaderData *sd, const ShaderClosure *sc, const float3 I)
__device int bsdf_westin_sheen_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 BsdfWestinBackscatterClosure BsdfWestinBackscatterClosure

Function Documentation

__device float bsdf_westin_backscatter_albedo ( const ShaderData sd,
const ShaderClosure sc,
const float3  I 
)

Definition at line 84 of file bsdf_westin.h.

__device void bsdf_westin_backscatter_blur ( ShaderClosure sc,
float  roughness 
)

Definition at line 55 of file bsdf_westin.h.

References ShaderClosure::data0, and min.

Referenced by svm_bsdf_blur().

__device float3 bsdf_westin_backscatter_eval_reflect ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)

Definition at line 62 of file bsdf_westin.h.

References ShaderClosure::data0, dot(), M_1_PI_F, make_float3(), ShaderData::N, and powf.

Referenced by svm_bsdf_eval().

__device float3 bsdf_westin_backscatter_eval_transmit ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)

Definition at line 79 of file bsdf_westin.h.

References make_float3().

Referenced by svm_bsdf_eval().

__device int bsdf_westin_backscatter_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_westin_backscatter_setup ( ShaderData sd,
ShaderClosure sc,
float  roughness 
)
__device float bsdf_westin_sheen_albedo ( const ShaderData sd,
const ShaderClosure sc,
const float3  I 
)

Definition at line 173 of file bsdf_westin.h.

__device void bsdf_westin_sheen_blur ( ShaderClosure sc,
float  roughness 
)

Definition at line 147 of file bsdf_westin.h.

Referenced by svm_bsdf_blur().

__device float3 bsdf_westin_sheen_eval_reflect ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)

Definition at line 151 of file bsdf_westin.h.

References ShaderClosure::data0, dot(), M_1_PI_F, make_float3(), ShaderData::N, and powf.

Referenced by svm_bsdf_eval().

__device float3 bsdf_westin_sheen_eval_transmit ( const ShaderData sd,
const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float *  pdf 
)

Definition at line 168 of file bsdf_westin.h.

References make_float3().

Referenced by svm_bsdf_eval().

__device int bsdf_westin_sheen_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_westin_sheen_setup ( ShaderData sd,
ShaderClosure sc,
float  edginess 
)