NormalMapPass Class Reference
Generates a texture of the surface normals.
More...
#include <NormalMapPass.h>
Inheritance diagram for NormalMapPass:
List of all members.
|
Public Member Functions |
| NormalMapPass (Root *mRoot, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_FLOAT32_RGBA, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false, String renderTextureName="NormapMapTexture") |
| ~NormalMapPass () |
Protected Member Functions |
void | onRenderEnd (NameValuePairList *namedParams=0) |
| Post rendering method.
|
void | onRenderStart (NameValuePairList *namedParams=0) |
| Pre rendering method.
|
Detailed Description
Generates a texture of the surface normals.
SuperClass: ManagedOgreRenderTexturePass Class: NormalMapPass The instances of this class are to generate a texture of the surface normals of the owner entity. The resulting texture is a PF_FLOAT32_RGBA type texture, where the X, Y and Z coordinates of the surface normals will be stored in the R, G and B coordinates of the render texture of this class.
Constructor & Destructor Documentation
NormalMapPass |
( |
Root * |
mRoot, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
TextureType |
texType = TEX_TYPE_2D , |
|
|
PixelFormat |
internalFormat = PF_FLOAT32_RGBA , |
|
|
const NameValuePairList * |
miscParams = 0 , |
|
|
bool |
fullScreenQuadRenderer = false , |
|
|
String |
renderTextureName = "NormapMapTexture" |
|
) |
|
|
|
- Parameters:
-
| mRoot | pointer to the Root object of the graphics engine. |
| width | the width of render texture in pixels. |
| height | the height of render texture in pixels. |
| texType | the type of render texture. Its default value is TEX_TYPE_2D. |
| internalFormat | the pixel format of the render texture. Its default value is PF_FLOAT32_RGBA. |
| miscParams | a pointer to miscelaneous parameters. Its default value is 0. |
| fullScreenQuadRenderer | a bool flag to decide on full screen rendering on a quad. Its default value is false. |
| renderTextureName | a unique name for the render texture. Its default value is "NormapMapTexture". Construtor. |
|
Member Function Documentation
void onRenderEnd |
( |
NameValuePairList * |
namedParams = 0 |
) |
[protected, virtual] |
|
|
Post rendering method.
It runs after the render-texture object is updated. Place all cleanup code here. - Parameters:
-
| namedParams | Parameter list. |
Reimplemented from ManagedOgreRenderTexturePass. |
void onRenderStart |
( |
NameValuePairList * |
namedParams = 0 |
) |
[protected, virtual] |
|
|
Pre rendering method.
It runs before the render-texture object is updated. Place all shader setup here. - Parameters:
-
| namedParams | Parameter list. |
Reimplemented from ManagedOgreRenderTexturePass. |
The documentation for this class was generated from the following file:
Generated on Mon Apr 18 10:59:27 2005 for OGRE_IllumModule by
1.4.2