volume.cpp File Reference

#include "stdafx.h"
#include "volume.h"

Go to the source code of this file.

Classes

struct  MeasuredSS

Functions

static float RdIntegral (float alphap, float A)
static float RdToAlphap (float reflectance, float A)
float PhaseIsotropic (const Vector &, const Vector &)
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)

Variables

static MeasuredSS mss []

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 ,
const Vector  
)

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.

static float RdIntegral ( float  alphap,
float  A 
) [static]

Definition at line 95 of file volume.cpp.

Referenced by RdToAlphap().

static float RdToAlphap ( float  reflectance,
float  A 
) [static]

Definition at line 102 of file volume.cpp.

References Assert, and RdIntegral().

Referenced by SubsurfaceFromDiffuse().

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().


Variable Documentation

MeasuredSS mss[] [static]

Definition at line 36 of file volume.cpp.

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