bsdftest.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "pbrt.h"
#include "reflection.h"
#include "montecarlo.h"
#include "memory.h"
#include "api.h"
#include "paramset.h"
#include "shapes/disk.h"

Go to the source code of this file.

Typedefs

typedef void(* CreateBSDFFunc )(BSDF *bsdf)
typedef void(* GenSampleFunc )(BSDF *bsdf, const Vector &wo, Vector *wi, float *pdf, Spectrum *f)

Functions

double spectrumRedValue (const Spectrum &s)
void createBlinn0 (BSDF *bsdf)
void createBlinn05 (BSDF *bsdf)
void createBlinn2 (BSDF *bsdf)
void createBlinn30and0 (BSDF *bsdf)
void createAniso0_0 (BSDF *bsdf)
void createAniso10_10 (BSDF *bsdf)
void createAniso30_30 (BSDF *bsdf)
void createLambertian (BSDF *bsdf)
void createOrenNayar0 (BSDF *bsdf)
void createOrenNayar20 (BSDF *bsdf)
void createFresnelBlend0 (BSDF *bsdf)
void createFresnelBlend30 (BSDF *bsdf)
void createPlastic (BSDF *bsdf)
void createSubstrate (BSDF *bsdf)
void Gen_Sample_f (BSDF *bsdf, const Vector &wo, Vector *wi, float *pdf, Spectrum *f)
void Gen_CosHemisphere (BSDF *bsdf, const Vector &wo, Vector *wi, float *pdf, Spectrum *f)
void Gen_UniformHemisphere (BSDF *bsdf, const Vector &wo, Vector *wi, float *pdf, Spectrum *f)
int main (int argc, char *argv[])

Variables

static MemoryArena arena
static RNG rng

Typedef Documentation

typedef void(* CreateBSDFFunc)(BSDF *bsdf)

Definition at line 23 of file bsdftest.cpp.

typedef void(* GenSampleFunc)(BSDF *bsdf, const Vector &wo, Vector *wi, float *pdf, Spectrum *f)

Definition at line 41 of file bsdftest.cpp.


Function Documentation

void createAniso0_0 ( BSDF bsdf  ) 

Definition at line 379 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createAniso10_10 ( BSDF bsdf  ) 

Definition at line 392 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createAniso30_30 ( BSDF bsdf  ) 

Definition at line 404 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createBlinn0 ( BSDF bsdf  ) 

Definition at line 330 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createBlinn05 ( BSDF bsdf  ) 

Definition at line 341 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createBlinn2 ( BSDF bsdf  ) 

Definition at line 352 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createBlinn30and0 ( BSDF bsdf  ) 

Definition at line 363 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

Referenced by main().

void createFresnelBlend0 ( BSDF bsdf  ) 

Definition at line 443 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createFresnelBlend30 ( BSDF bsdf  ) 

Definition at line 455 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createLambertian ( BSDF bsdf  ) 

Definition at line 417 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createOrenNayar0 ( BSDF bsdf  ) 

Definition at line 425 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createOrenNayar20 ( BSDF bsdf  ) 

Definition at line 434 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createPlastic ( BSDF bsdf  ) 

Definition at line 467 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void createSubstrate ( BSDF bsdf  ) 

Definition at line 484 of file bsdftest.cpp.

References BSDF::Add(), and BSDF_ALLOC.

void Gen_CosHemisphere ( BSDF bsdf,
const Vector wo,
Vector wi,
float *  pdf,
Spectrum f 
)
void Gen_Sample_f ( BSDF bsdf,
const Vector wo,
Vector wi,
float *  pdf,
Spectrum f 
)
void Gen_UniformHemisphere ( BSDF bsdf,
const Vector wo,
Vector wi,
float *  pdf,
Spectrum f 
)
int main ( int  argc,
char *  argv[] 
)
double spectrumRedValue ( const Spectrum s  ) 

Definition at line 18 of file bsdftest.cpp.

Referenced by main().


Variable Documentation

MemoryArena arena [static]
RNG rng [static]
Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3