reflection.cpp File Reference

#include "stdafx.h"
#include "reflection.h"
#include "spectrum.h"
#include "sampler.h"
#include "montecarlo.h"
#include <stdarg.h>

Go to the source code of this file.

Classes

struct  IrregIsoProc

Defines

#define REMAP(V, MAX, COUNT)   Clamp(int((V) / (MAX) * (COUNT)), 0, (COUNT)-1)

Functions

Spectrum FrDiel (float cosi, float cost, const Spectrum &etai, const Spectrum &etat)
Spectrum FrCond (float cosi, const Spectrum &eta, const Spectrum &k)
Point BRDFRemap (const Vector &wo, const Vector &wi)

Define Documentation

#define REMAP ( V,
MAX,
COUNT   )     Clamp(int((V) / (MAX) * (COUNT)), 0, (COUNT)-1)

Referenced by RegularHalfangleBRDF::f().


Function Documentation

Point BRDFRemap ( const Vector wo,
const Vector wi 
)

Definition at line 239 of file reflection.cpp.

References CosTheta(), M_PI, SinTheta(), and SphericalPhi().

Referenced by IrregIsotropicBRDF::f(), and MeasuredMaterial::MeasuredMaterial().

Spectrum FrCond ( float  cosi,
const Spectrum eta,
const Spectrum k 
)

Definition at line 62 of file reflection.cpp.

Referenced by FresnelConductor::Evaluate().

Spectrum FrDiel ( float  cosi,
float  cost,
const Spectrum etai,
const Spectrum etat 
)

Definition at line 52 of file reflection.cpp.

Referenced by FresnelDielectric::Evaluate().

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