Blender V2.61 - r43446
Public Member Functions | Public Attributes

WestinBackscatterClosure Class Reference

List of all members.

Public Member Functions

 WestinBackscatterClosure ()
void setup ()
bool mergeable (const ClosurePrimitive *other) const
size_t memsize () const
const char * name () const
void print_on (std::ostream &out) const
float albedo (const Vec3 &omega_out) const
Color3 eval_reflect (const Vec3 &omega_out, const Vec3 &omega_in, float &pdf) const
Color3 eval_transmit (const Vec3 &omega_out, const Vec3 &omega_in, float &pdf) const
ustring sample (const Vec3 &Ng, const Vec3 &omega_out, const Vec3 &domega_out_dx, const Vec3 &domega_out_dy, float randu, float randv, Vec3 &omega_in, Vec3 &domega_in_dx, Vec3 &domega_in_dy, float &pdf, Color3 &eval) const

Public Attributes

Vec3 m_N
float m_roughness
float m_invroughness

Detailed Description

Definition at line 45 of file bsdf_westin.cpp.


Constructor & Destructor Documentation

WestinBackscatterClosure::WestinBackscatterClosure ( ) [inline]

Definition at line 50 of file bsdf_westin.cpp.


Member Function Documentation

float WestinBackscatterClosure::albedo ( const Vec3 &  omega_out) const [inline]

Definition at line 76 of file bsdf_westin.cpp.

Color3 WestinBackscatterClosure::eval_reflect ( const Vec3 &  omega_out,
const Vec3 &  omega_in,
float &  pdf 
) const [inline]

Definition at line 81 of file bsdf_westin.cpp.

References M_1_PI, and powf.

Color3 WestinBackscatterClosure::eval_transmit ( const Vec3 &  omega_out,
const Vec3 &  omega_in,
float &  pdf 
) const [inline]

Definition at line 95 of file bsdf_westin.cpp.

size_t WestinBackscatterClosure::memsize ( ) const [inline]

Definition at line 64 of file bsdf_westin.cpp.

bool WestinBackscatterClosure::mergeable ( const ClosurePrimitive *  other) const [inline]

Definition at line 58 of file bsdf_westin.cpp.

References m_N, and m_roughness.

const char* WestinBackscatterClosure::name ( ) const [inline]

Definition at line 66 of file bsdf_westin.cpp.

void WestinBackscatterClosure::print_on ( std::ostream &  out) const [inline]

Definition at line 68 of file bsdf_westin.cpp.

ustring WestinBackscatterClosure::sample ( const Vec3 &  Ng,
const Vec3 &  omega_out,
const Vec3 &  domega_out_dx,
const Vec3 &  domega_out_dy,
float  randu,
float  randv,
Vec3 &  omega_in,
Vec3 &  domega_in_dx,
Vec3 &  domega_in_dy,
float &  pdf,
Color3 &  eval 
) const [inline]

Definition at line 100 of file bsdf_westin.cpp.

References B, cosf, M_1_PI, M_PI, make_orthonormals(), powf, sinf, sqrtf, and T.

void WestinBackscatterClosure::setup ( ) [inline]

Definition at line 52 of file bsdf_westin.cpp.

References clamp, and credits_svn_gen::e.


Member Data Documentation

Definition at line 49 of file bsdf_westin.cpp.

Definition at line 47 of file bsdf_westin.cpp.

Referenced by mergeable().

Definition at line 48 of file bsdf_westin.cpp.

Referenced by mergeable().


The documentation for this class was generated from the following file: