ModifiedPhongBSDF.cpp File Reference

Physically-correct modified phong model for glossy/specular surfaces, defined at a single point on a surface in 3-space. The modified phong model has two inputs: Kd, and Ks in [0, 1] subject to Kd + Ks <= 1, where Kd and Ks represent the diffuse and specular reflectivity of the surface respectively (fraction of incoming energy that is reflected diffusely/specularly). A third input, n, represents the specular shininess of the surface, where higher values of n correspond to tighter / sharper specular highlights, and lower values of n correspond to wider / glossier highlights. More...

#include "ModifiedPhongBSDF.h"
#include <Material.h>
#include <Random.h>

Go to the source code of this file.

Enumerations

enum  { MODIFIED_PHONG_EVENT_ABSORPTION = 0, MODIFIED_PHONG_EVENT_DIFFUSE, MODIFIED_PHONG_EVENT_SPECULAR }


Detailed Description

Physically-correct modified phong model for glossy/specular surfaces, defined at a single point on a surface in 3-space. The modified phong model has two inputs: Kd, and Ks in [0, 1] subject to Kd + Ks <= 1, where Kd and Ks represent the diffuse and specular reflectivity of the surface respectively (fraction of incoming energy that is reflected diffusely/specularly). A third input, n, represents the specular shininess of the surface, where higher values of n correspond to tighter / sharper specular highlights, and lower values of n correspond to wider / glossier highlights.

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

Date:
Fall 2008
Note:
For more information, please see: E. Lafortune and Y. Willems. Using the modified Phong reflectance model for physically based rendering. Technical Report CW197, Dept of Computer Science, K.U. Leuven, 1994.
Parameters:
kd - SpectralSampleSet which scales / attenuates the overall reflectance of the material (diffuse albedo)
ks - SpectralSampleSet which scales / attenuates the overall reflectance of the material (specular albedo)
n - Wavelength-dependent shininess exponent
Note:
Also known as modified Blinn-Phong model

Definition in file ModifiedPhongBSDF.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
MODIFIED_PHONG_EVENT_ABSORPTION 
MODIFIED_PHONG_EVENT_DIFFUSE 
MODIFIED_PHONG_EVENT_SPECULAR 

Definition at line 41 of file ModifiedPhongBSDF.cpp.


Generated on 28 Feb 2009 for Milton by doxygen 1.5.6