#include <lightprobe.h>
Public Member Functions | |
LightProbe () | |
Default constructor. | |
LightProbe (const std::string &filename) | |
Constructor loading a light probe from the given filename. | |
virtual | ~LightProbe () |
Destructor. | |
void | load (const std::string &filename) |
Loads a light probe from the given filename. | |
Color | getRadiance (const Vector &d) const |
Returns the radiance for direction d. | |
Protected Attributes | |
Image | mProbe |
The image where the light probe is stored. |
The light probes are stored as high-dynamic range OpenEXR (.exr) files in angular format, which represent the radiance in each world space direction. The radiance in a specific direction is returned by the getRadiance() function.