Inheritance diagram for CausticCubeMapRenderingRun:
Public Member Functions | |
CausticCubeMapRenderingRun (unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, bool updateAllFace) | |
Constructor. | |
virtual void | photonMapChanged (RenderingRun *run)=0 |
Called if the changed run is a PhotonMapRenderingRun. | |
Protected Member Functions | |
virtual void | createCausticCubeMap ()=0 |
Creates a cubemap texture used for the caustic-cubemap. | |
virtual void | updateCubeFace (int facenum)=0 |
Updates one face of the cubemap. | |
virtual bool | faceNeedsUpdate (int facenum)=0 |
Checks if a cubemap face needs to be updated. | |
virtual void | updateFrame (unsigned long frameNum) |
This function does the actual update in a frame. | |
Protected Attributes | |
bool | updateAllFace |
defines if all cubemap faces should be updated in a frame or only one face per frame | |
unsigned char | currentFace |
the number of the face to be updated | |
unsigned int | resolution |
the resolution of the cubemap texture that was created by this run |
A caustic cubemap stores caustic light spots caused by a caustic emitter object.
|
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.
Implemented in OgreCausticCubeMapRenderingRun. |
|
Called if the changed run is a PhotonMapRenderingRun.
Implemented in OgreCausticCubeMapRenderingRun. |
|
Updates one face of the cubemap.
Implemented in OgreCausticCubeMapRenderingRun. |
|
This function does the actual update in a frame.
Reimplemented from RenderingRun. |