Inheritance diagram for ReducedCubeMapRenderingRun:
Public Member Functions | |
ReducedCubeMapRenderingRun (unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, bool useDistCalc, bool useFaceAngleCalc, float distTolerance, float angleTolerance, bool updateAllFace) | |
Constructor. | |
Protected Member Functions | |
virtual void | createReducedCubeMap ()=0 |
Creates the reduced size cubemap texture. | |
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 | |
bool | useDistCalc |
a flag to skip cube face update if object is far away or too small. | |
bool | useFaceAngleCalc |
a flag to skip cube face update the face is neglible. | |
float | distTolerance |
A value used in face skip test. | |
float | angleTolerance |
A value used in face skip test. |
The resulting cubemap is a lower resolution variation of a color cube map. It is created with averaging the original cubemap. The lower resolution cubemap can be convolved faster and can efficiently be used in effects like diffuse reflection.
|
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 OgreReducedCubeMapRenderingRun. |
|
Updates one face of the cubemap.
Implemented in OgreReducedCubeMapRenderingRun. |
|
This function does the actual update in a frame.
Reimplemented from RenderingRun. |
|
A value used in face skip test. The higher this value gets the more precise, but slower the method will be. |
|
A value used in face skip test. The higher this value gets the more precise, but slower the method will be. |
|
a flag to skip cube face update if object is far away or too small.
|
|
a flag to skip cube face update the face is neglible.
|