Generic sampling record for directions. More...
#include <mitsuba/render/common.h>
Public Member Functions  
std::string  toString () const 
Return a humanreadable description of the record. More...  
DirectionSamplingRecord ()  
Create an uninitialized position sampling record. More...  
DirectionSamplingRecord (const Vector &d, EMeasure measure=ESolidAngle)  
Create a direction sampling record filled with a specified direction. More...  
DirectionSamplingRecord (const Intersection &its, EMeasure measure=ESolidAngle)  
Create a direction sampling record from a surface intersection. More...  
Public Attributes  
Vector  d 
Sampled direction. More...  
Float  
Probability density at the sample. More...  
EMeasure  measure 
Measure associated with the density function. More...  
Generic sampling record for directions.
This sampling record is used to implement techniques that randomly draw a unit vector from a subset of the sphere and furthermore provide auxilary information about the sample.
Apart from returning the sampled direction, the responsible sampling method must annotate the record with the associated probability density and measure.

inline 
Create an uninitialized position sampling record.
The resulting data structure is meant to be used to generate a new direction sample.

inline 
Create a direction sampling record filled with a specified direction.
The resulting data structure is meant to be used to query the density of a direction sampling technique

inline 
Create a direction sampling record from a surface intersection.
This is useful to determine the hypothetical sampling density of a direction after hitting it using standard ray tracing. This happens for instance when hitting the camera aperture in bidirectional rendering techniques.
std::string mitsuba::DirectionSamplingRecord::toString  (  )  const 
Return a humanreadable description of the record.
Vector mitsuba::DirectionSamplingRecord::d 
Sampled direction.
EMeasure mitsuba::DirectionSamplingRecord::measure 
Measure associated with the density function.
Float mitsuba::DirectionSamplingRecord::pdf 
Probability density at the sample.