Understanding the Structure of a Photon

[ LiB ]

Understanding the Structure of a Photon

In order to save the illumination separated from the geometry in the scene, the photon structure is required. The photon structure is stored on surfaces in the scene. Remember that photons represent incoming illumination from your light sources. Each photon tells you where the energy is flowing and carries a portion of the light source wattage.

Here is the structure of this simple photon:

 typedef struct {    cVector3 tPosition;    color3 tPower;    cVector3 tDirection; } photon_t; 

[ LiB ]


Focus On Photon Mapping
Focus On Photon Mapping (Premier Press Game Development)
ISBN: 1592000088
EAN: 2147483647
Year: 2005
Pages: 128
Authors: Marlon John

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net