Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

EnvMapFinalGatheringPass Class Reference

Performs the actual rendering of the Environment Mapping Effect. More...

#include <EnvMapFinalGatheringPass.h>

Inheritance diagram for EnvMapFinalGatheringPass:

ManagedOgreRenderTexturePass List of all members.

Public Member Functions

 EnvMapFinalGatheringPass (Root *mRoot)
void setEnvMapPostition (Vector3 envMapPosition)
void setFresnelFactor (float fresnelFactor)
void update (void)
 ~EnvMapFinalGatheringPass (void)

Protected Member Functions

virtual void onRenderEnd (NameValuePairList *namedParams=0)
virtual void onRenderStart (NameValuePairList *namedParams=0)

Private Attributes

Vector3 envMapPosition
float fresnelFactor

Detailed Description

Performs the actual rendering of the Environment Mapping Effect.

SuperClass ManagedOgreRenderTexturePass

Class EnvMapFinalGatheringPass


Constructor & Destructor Documentation

EnvMapFinalGatheringPass Root *  mRoot  ) 
 

Constructor

Parameters:
mRoot The Ogre Root object

~EnvMapFinalGatheringPass void   ) 
 

Destructor


Member Function Documentation

virtual void onRenderEnd NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Runs after the render-texture object is updated place all cleanup code here.

Parameters:
namedParams Contains named parameters for rendering end.

Reimplemented from ManagedOgreRenderTexturePass.

virtual void onRenderStart NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Runs before the render-texture object is updated place all shader setup here.

Parameters:
namedParams A list of named parameters for rendering setup.

Reimplemented from ManagedOgreRenderTexturePass.

void setEnvMapPostition Vector3  envMapPosition  ) 
 

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.

Parameters:
envMapPosition The position vector

void setFresnelFactor float  fresnelFactor  ) 
 

Sets the material's Fresnel factor for the EnvMap shader.

Parameters:
fresnelFactor The Fresnel factor. 0.0f means only a small reflection in narrow angles, 1.0f complete reflection to every direction.

void update void   ) 
 

Performs the rendering


Member Data Documentation

Vector3 envMapPosition [private]
 

The world-space position of the Environment cube-map

float fresnelFactor [private]
 

The material's Fresnel factor.


The documentation for this class was generated from the following file:
Generated on Mon Apr 18 10:59:27 2005 for OGRE_IllumModule by  doxygen 1.4.2