Inheritance diagram for ConvolvedCubeMapRenderTechnique:
Public Member Functions | |
ConvolvedCubeMapRenderTechnique (unsigned long startFrame, unsigned long cubeMapUpdateInterval, unsigned int cubeMapResolution, unsigned int reducedCubeMapResolution, bool useDistCalc, bool useFaceAngleCalc, float distTolerance, float angleTolerance, bool updateAllFace, ElementaryRenderable *parentRenderable, TechniqueGroup *parentTechniqueGroup) | |
Constructor. | |
virtual void | update (unsigned long frameNum) |
Updates the resources in the given frame. | |
void | runChanged (RenderingRunType runType, RenderingRun *run) |
Called after one of he shared runs changes. | |
Protected Member Functions | |
virtual void | reducedCubeMapRunChanged (RenderingRun *run)=0 |
Called if the changed run is a ColorCubeMapRenderingRun. | |
virtual void | colorCubeMapRunChanged (RenderingRun *run)=0 |
Called if the changed run is a ColorCubeMapRenderingRun. | |
virtual RenderingRun * | createColorCubeMapRun ()=0 |
Creates a ColorCubeMapRenderingRun. | |
virtual RenderingRun * | createReducedCubeMapRun ()=0 |
Creates a ColorCubeMapRenderingRun. | |
Protected Attributes | |
bool | updateAllFace |
defines if all cubemap faces should be updated in a frame or only one face per frame | |
unsigned long | cubeMapUpdateInterval |
color-cubemap update frequency | |
unsigned int | cubeMapResolution |
color-cubemap resolution | |
unsigned int | reducedCubeMapResolution |
color-cubemap resolution | |
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. | |
unsigned long | startFrame |
offset in frame number used during update |
This technique defines that the final rendering of an object needs a reduced sized cubmap of the colors of the surrounding environment. This reduced sized cubemap is created with averaging the original cubemap. This reduced cubemap can easily be convolved in the final shading to acheve special effects like diffuse reflections.
|
Constructor.
|
|
Called if the changed run is a ColorCubeMapRenderingRun.
Implemented in OgreConvolvedCubeMapRenderTechnique. |
|
Creates a ColorCubeMapRenderingRun.
Implemented in OgreConvolvedCubeMapRenderTechnique. |
|
Creates a ColorCubeMapRenderingRun.
Implemented in OgreConvolvedCubeMapRenderTechnique. |
|
Called if the changed run is a ColorCubeMapRenderingRun.
Implemented in OgreConvolvedCubeMapRenderTechnique. |
|
Called after one of he shared runs changes.
Reimplemented from RenderTechnique. |
|
Updates the resources in the given frame.
Reimplemented from RenderTechnique. Reimplemented in OgreConvolvedCubeMapRenderTechnique. |
|
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.
|