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

TranslucentClosure Class Reference

List of all members.

Public Member Functions

 TranslucentClosure ()
void setup ()
bool mergeable (const ClosurePrimitive *other) const
size_t memsize () const
const char * name () const
void print_on (std::ostream &out) const
Color3 eval_reflect (const Vec3 &omega_out, const Vec3 &omega_in, float &pdf) const
float albedo (const Vec3 &omega_out) 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

Detailed Description

Definition at line 106 of file bsdf_diffuse.cpp.


Constructor & Destructor Documentation

TranslucentClosure::TranslucentClosure ( ) [inline]

Definition at line 110 of file bsdf_diffuse.cpp.


Member Function Documentation

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

Definition at line 133 of file bsdf_diffuse.cpp.

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

Definition at line 128 of file bsdf_diffuse.cpp.

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

Definition at line 138 of file bsdf_diffuse.cpp.

References M_1_PI, and max.

size_t TranslucentClosure::memsize ( ) const [inline]

Definition at line 119 of file bsdf_diffuse.cpp.

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

Definition at line 114 of file bsdf_diffuse.cpp.

References m_N.

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

Definition at line 121 of file bsdf_diffuse.cpp.

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

Definition at line 123 of file bsdf_diffuse.cpp.

ustring TranslucentClosure::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 145 of file bsdf_diffuse.cpp.

References sample_cos_hemisphere().

void TranslucentClosure::setup ( ) [inline]

Definition at line 112 of file bsdf_diffuse.cpp.


Member Data Documentation

Definition at line 108 of file bsdf_diffuse.cpp.

Referenced by mergeable().


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