Inheritance diagram for OgrePhotonMapRenderingRun:
Public Member Functions | |
OgrePhotonMapRenderingRun (OgreSharedRuns *sharedRuns, String name, unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, String materialName, bool useDistance) | |
Constructor. | |
String | getPhotonMapTextureName () |
returns the name of the resulting photon hit map | |
void | refreshLight () |
Refreshes light camera matrices, called in each update. | |
Protected Member Functions | |
void | updateFrame (unsigned long frameNum) |
This function does the actual update in a frame. | |
void | createPhotonMap () |
Creates a photon hit map. | |
Protected Attributes | |
String | materialName |
the name of the material should be used when rendering the choton hit map | |
Light * | light |
pointer to the nearest light source from the caster object | |
Camera * | photonMapCamera |
the created photon hit map texture | |
bool | useDistance |
tells if a distance cubemap impostor should be used in photon hit calculation (recommended) | |
OgreSharedRuns * | sharedRuns |
a pointer to the OgreSharedRuns this run belongs to | |
String | name |
the name of the photonmap texture that was created by this run | |
Texture * | photonMapTexture |
a pointer to the photonmap texture that was created by this run | |
unsigned int | resolution |
the resolution of the photonmap texture that was created by this run |
|
Constructor.
|
|
Refreshes light camera matrices, called in each update. TODO: search nearest light, set light params |
|
This function does the actual update in a frame.
Implements PhotonMapRenderingRun. |