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

FilteringPass Class Reference

Filters the shadow. More...

#include <FilteringPass.h>

Inheritance diagram for FilteringPass:

ManagedOgreRenderTexturePass List of all members.

Public Member Functions

 FilteringPass (Root *mRoot, const String &renderTextureName, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_X8R8G8B8, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false)
 Constructor.
 ~FilteringPass ()
 Destructor.

Protected Member Functions

float * getLightPos3f ()
 Returns the value of g_vLightPos3f.
Matrix4 getLightViewTexBias ()
 Returns the value of g_mLightViewTexBias matrix.
int getnumberOfSamples ()
 Returns the value of numberOfSamples.
Matrix4 getWorldViewProj ()
 Returns the value of g_mWorldViewProj matrix.
void onRenderEnd (NameValuePairList *namedParams=0)
void onRenderStart (NameValuePairList *namedParams=0)
void setLightPos3f (int nos)
 Sets the value of numberOfSamples.
void setLightPos3f (float *vector3)
 Sets the value of g_vLightPos3f.
void setLightViewTexBias (Matrix4 matrix4)
 Sets the value of g_mLightViewTexBias matrix.
void setWorldViewProj (Matrix4 matrix4)
 Sets the value of g_mWorldViewProj matrix.

Private Attributes

Matrix4 g_mLightViewTexBias
 Contains the light view transformation matrix with bias.
Matrix4 g_mWorldViewProj
 Contains the WoldViewProj matrix.
float * g_vLightPos3f
 Contains the position of the Light.
int numberOfSamples
 Contains the number of samples to be used.

Detailed Description

Filters the shadow.

SuperClass: ManagedOgreRenderTexturePass Class: FilteringPass The instances of this class are to filter the hard shadow based on previously generated information. The resulting texture is a PF_FLOAT32_RGBA type texture


Constructor & Destructor Documentation

FilteringPass Root *  mRoot,
const String &  renderTextureName,
unsigned int  width,
unsigned int  height,
TextureType  texType = TEX_TYPE_2D,
PixelFormat  internalFormat = PF_X8R8G8B8,
const NameValuePairList *  miscParams = 0,
bool  fullScreenQuadRenderer = false
 

Constructor.

Constructor.

Parameters:
mRoot Root, The root class of the Ogre system.
renderTextureName String, The target of the rendering.
width int, The width of the texture.
height int, The height of the texture.
texType TextureType, Texure type.
internalFormat PixelFormat, Format of the pixel.
miscParams NameValuePairList, Pairs for names and values.
fullScreenQuadRenderer bool, Do we render a full screen quad.

~FilteringPass  )  [inline]
 

Destructor.


Member Function Documentation

float* getLightPos3f  )  [protected]
 

Returns the value of g_vLightPos3f.

Matrix4 getLightViewTexBias  )  [protected]
 

Returns the value of g_mLightViewTexBias matrix.

int getnumberOfSamples  )  [protected]
 

Returns the value of numberOfSamples.

Matrix4 getWorldViewProj  )  [protected]
 

Returns the value of g_mWorldViewProj matrix.

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.

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 setLightPos3f int  nos  )  [protected]
 

Sets the value of numberOfSamples.

Parameters:
nos Contains the new value of numberOfSamples.

void setLightPos3f float *  vector3  )  [protected]
 

Sets the value of g_vLightPos3f.

Parameters:
vector3 Contains the new value of g_vLightPos3f.

void setLightViewTexBias Matrix4  matrix4  )  [protected]
 

Sets the value of g_mLightViewTexBias matrix.

Parameters:
matrix4 Contains the new value of g_mLightViewTexBias matrix.

void setWorldViewProj Matrix4  matrix4  )  [protected]
 

Sets the value of g_mWorldViewProj matrix.

Parameters:
matrix4 Contains the new value of g_mWorldViewProj matrix.


Member Data Documentation

Matrix4 g_mLightViewTexBias [private]
 

Contains the light view transformation matrix with bias.

Matrix4 g_mWorldViewProj [private]
 

Contains the WoldViewProj matrix.

float* g_vLightPos3f [private]
 

Contains the position of the Light.

int numberOfSamples [private]
 

Contains the number of samples to be used.


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