Inheritance diagram for OgreCausticCubeMapRenderingRun:
Public Member Functions | |
OgreCausticCubeMapRenderingRun (OgreSharedRuns *sharedRuns, String name, unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, String materialName, unsigned char photonMapTexId, bool updateAllFace) | |
Constructor. | |
String & | getCausticCubeMapTextureName () |
returns the name of the resulting caustic cubemap texture | |
void | photonMapChanged (RenderingRun *run) |
Called if the changed run is a PhotonMapRenderingRun. | |
Protected Member Functions | |
void | createCausticCubeMap () |
Creates a cubemap texture used for the caustic-cubemap. | |
void | updateCubeFace (int facenum) |
Updates one face of the cubemap. | |
bool | faceNeedsUpdate (int facenum) |
Checks if a cubemap face needs to be updated. | |
Protected Attributes | |
unsigned char | photonMapTexId |
the texture unit state id of the caustic map generation material where the photonhit map should be bound to | |
OgreSharedRuns * | sharedRuns |
a pointer to the OgreSharedRuns this run belongs to | |
String | name |
the name of the cubemap texture that was created by this run | |
Texture * | causticCubemapTexture |
a pointer to the cubemap texture that was created by this run | |
String | materialName |
the name of the material that should be used when rendering the caustic cubemap |
|
Constructor.
|
|
Checks if a cubemap face needs to be updated. If the object we are updating the cubemap for is far from the camera, or too small, or the given cubemapface does not have significant effect on the rendering the face can be skipped.
Implements CausticCubeMapRenderingRun. |
|
Called if the changed run is a PhotonMapRenderingRun.
Implements CausticCubeMapRenderingRun. |
|
Updates one face of the cubemap.
Implements CausticCubeMapRenderingRun. |