volume.h File Reference

#include "pbrt.h"
#include "spectrum.h"
#include "geometry.h"
#include "transform.h"
#include "integrator.h"

Go to the source code of this file.

Classes

class  VolumeRegion
class  DensityRegion
class  AggregateVolume
class  VolumeIntegrator

Functions

float PhaseIsotropic (const Vector &w, const Vector &wp)
float PhaseRayleigh (const Vector &w, const Vector &wp)
float PhaseMieHazy (const Vector &w, const Vector &wp)
float PhaseMieMurky (const Vector &w, const Vector &wp)
float PhaseHG (const Vector &w, const Vector &wp, float g)
float PhaseSchlick (const Vector &w, const Vector &wp, float g)
bool GetVolumeScatteringProperties (const string &name, Spectrum *sigma_a, Spectrum *sigma_prime_s)
void SubsurfaceFromDiffuse (const Spectrum &Kd, float meanPathLength, float eta, Spectrum *sigma_a, Spectrum *sigma_prime_s)

Function Documentation

bool GetVolumeScatteringProperties ( const string &  name,
Spectrum sigma_a,
Spectrum sigma_prime_s 
)

Definition at line 253 of file volume.cpp.

References RGBSpectrum::FromRGB().

Referenced by CreateSubsurfaceMaterial().

float PhaseHG ( const Vector w,
const Vector wp,
float  g 
)

Definition at line 142 of file volume.cpp.

References Dot(), and M_PI.

Referenced by HGPdf(), DensityRegion::p(), and HomogeneousVolumeDensity::p().

float PhaseIsotropic ( const Vector w,
const Vector wp 
)

Definition at line 119 of file volume.cpp.

References M_PI.

float PhaseMieHazy ( const Vector w,
const Vector wp 
)

Definition at line 130 of file volume.cpp.

References Dot(), and M_PI.

float PhaseMieMurky ( const Vector w,
const Vector wp 
)

Definition at line 136 of file volume.cpp.

References Dot(), and M_PI.

float PhaseRayleigh ( const Vector w,
const Vector wp 
)

Definition at line 124 of file volume.cpp.

References Dot(), and M_PI.

float PhaseSchlick ( const Vector w,
const Vector wp,
float  g 
)

Definition at line 149 of file volume.cpp.

References Dot(), and M_PI.

void SubsurfaceFromDiffuse ( const Spectrum Kd,
float  meanPathLength,
float  eta,
Spectrum sigma_a,
Spectrum sigma_prime_s 
)

Definition at line 266 of file volume.cpp.

References Fdr(), RGBSpectrum::FromRGB(), RdToAlphap(), and RGBSpectrum::ToRGB().

Referenced by KdSubsurfaceMaterial::GetBSSRDF().

Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3