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

CausticMapRenderingRun Class Reference

Generates a texture with caustic effect. More...

#include <CausticMapRenderingRun.h>

Inheritance diagram for CausticMapRenderingRun:

PreComputingRun RenderingRun List of all members.

Public Member Functions

 CausticMapRenderingRun (Entity *entity)
 Constructor.
const String & getResultTextureName ()
 Returns with the created texture.
void init ()
 Runs passes which should run just once.
void setParameters ()
 Changes the value of the parameters.
void update ()
 Recalculates the passes.
 ~CausticMapRenderingRun ()
 Destructor.

Private Attributes

Entity * entity
 The owner entity.
Matrix4 g_mWorldEntityMesh
 Contains the World martix of the entity objerct (refractor).
Matrix4 g_mWorldViewProj
 Contains the WorldViewProjection martix.
TexturePtr g_pCubeMapTexture
 The texture of the CubeMap (caustic receiver).
Vector3 g_vCameraPos3f
 Contains the position of the camera.
RenderPhotonHitPassrenderPhotonHitPass
 Pass to calculate the world position of the Photon hits and create the caustic effect in the CubeMap texure.
RenderRefractObjectMapPassrenderRefractObjectMapPass
 Pass to create the refractor object with its refraction and reflection effect.

Static Private Attributes

static TexturePtr g_pPowerOfSnipetTexelTexture
 The texture of Photon hits. It is used to blur the silhouette of the Photon hits.
static RenderCubeMapColorDistancePassrenderCubeMapColorDistancePass
 Pass to calculate the ColorDistance texture for the CubeMap.
static RenderCubeMapUVPassrenderCubeMapUVPass
 Pass to calculate the UV texture for the CubeMap.
static RenderPhotonUVMapPassrenderPhotonUVMapPass
 Pass to calculate the UV positions of the Photon hits.
static RenderUmbraPassrenderUmbraPass
 Pass to calculate the shadow of the caustic generator.

Detailed Description

Generates a texture with caustic effect.

SuperClass: PreComputingRun Class: CausticMapRenderingRun The instances of this class are to generate a texture for the surface which receives caustics. The resulting texture is a PF_FLOAT32_RGBA type texture.


Constructor & Destructor Documentation

CausticMapRenderingRun Entity *  entity  ) 
 

Constructor.

Constructor.

Parameters:
entity The owner entity of an entity-bound precomputing run.

~CausticMapRenderingRun  ) 
 

Destructor.


Member Function Documentation

const String& getResultTextureName  )  [virtual]
 

Returns with the created texture.

Reimplemented from PreComputingRun.

void init  ) 
 

Runs passes which should run just once.

void setParameters  ) 
 

Changes the value of the parameters.

void update  )  [virtual]
 

Recalculates the passes.

Implements PreComputingRun.


Member Data Documentation

Entity* entity [private]
 

The owner entity.

Matrix4 g_mWorldEntityMesh [private]
 

Contains the World martix of the entity objerct (refractor).

Matrix4 g_mWorldViewProj [private]
 

Contains the WorldViewProjection martix.

TexturePtr g_pCubeMapTexture [private]
 

The texture of the CubeMap (caustic receiver).

TexturePtr g_pPowerOfSnipetTexelTexture [static, private]
 

The texture of Photon hits. It is used to blur the silhouette of the Photon hits.

Vector3 g_vCameraPos3f [private]
 

Contains the position of the camera.

RenderCubeMapColorDistancePass* renderCubeMapColorDistancePass [static, private]
 

Pass to calculate the ColorDistance texture for the CubeMap.

RenderCubeMapUVPass* renderCubeMapUVPass [static, private]
 

Pass to calculate the UV texture for the CubeMap.

RenderPhotonHitPass* renderPhotonHitPass [private]
 

Pass to calculate the world position of the Photon hits and create the caustic effect in the CubeMap texure.

RenderPhotonUVMapPass* renderPhotonUVMapPass [static, private]
 

Pass to calculate the UV positions of the Photon hits.

RenderRefractObjectMapPass* renderRefractObjectMapPass [private]
 

Pass to create the refractor object with its refraction and reflection effect.

RenderUmbraPass* renderUmbraPass [static, private]
 

Pass to calculate the shadow of the caustic generator.


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