#include <EnvMapFinalGathering.h>
Inheritance diagram for EnvMapFinalGathering:
Public Member Functions | |
EnvMapFinalGathering (Entity *ent) | |
virtual unsigned int | getFresnelEnvironmentUpdateInterval () |
virtual void | renderSingleEntity (RenderTarget *backBuffer, CubeMapFaces cf=CUBEMAP_FACE_POSITIVE_X) |
Perform the passes necessary to render the entity to the frame buffer, with all the illumination effects the implementing FinalRenderingRun-subclass supports. This method is called by IlluminationModule::update, after all the necessary preprocessing steps have been executed. Thus, the references (or names) that had been set via the virtual set<anything> functions reference the updated results. | |
void | setEnvMapPostition (Vector3 envMapPosition) |
virtual void | setFresnelEnvironmentTextureCube (const String &fresnelEnvironmentTextureCubeName) |
Set the entity's Fresnel Environment Map. Resources possibly re-computed later must be passed by reference or name. | |
virtual void | setFresnelEnvironmentUpdateInterval (unsigned int updateIntervalNumOfFrames) |
Set the FEM udate interval desired for the owner entity. If FEM is not used, the method should have no effect. | |
void | setFresnelFactor (float fresnelFactor) |
~EnvMapFinalGathering (void) | |
Private Attributes | |
RenderTarget * | backBuffer |
Entity * | entity |
std::vector< bool > | entityVisibilityList |
EnvMapFinalGatheringPass * | envMapFinalGatheringPass |
SuperClass FinalRenderingRun
Class EnvMapFinalGathering
|
Constructor
|
|
Destructor |
|
Reimplemented from FinalRenderingRun. |
|
Perform the passes necessary to render the entity to the frame buffer, with all the illumination effects the implementing FinalRenderingRun-subclass supports. This method is called by IlluminationModule::update, after all the necessary preprocessing steps have been executed. Thus, the references (or names) that had been set via the virtual set<anything> functions reference the updated results. This method is supposed to reproduce the behaviour of rendering an object using the standard OGRE pipeline. Thus, it is forbidden to commit any of the following:
Implements FinalRenderingRun. |
|
Sets the world-space position of the environment cube-map for the EnvMap shader. This is used, because the cubemap is not regenerated in every frame.
|
|
Set the entity's Fresnel Environment Map. Resources possibly re-computed later must be passed by reference or name.
Reimplemented from FinalRenderingRun. |
|
Set the FEM udate interval desired for the owner entity. If FEM is not used, the method should have no effect.
Reimplemented from FinalRenderingRun. |
|
Sets the material's Fresnel factor for the EnvMap shader.
|
|
Pointer to the back buffer, where we render |
|
Pointer to the entity that the effect is applied on. |
|
Temporary visibility list, to store and restore the enitities' visibility information. |
|
Pointer to an EnvMapFinalGatheringPass object, which performs the actual rendering. |