Inheritance diagram for OgreDepthShadowMapRenderingRun:
Public Member Functions | |
OgreDepthShadowMapRenderingRun (OgreSharedRuns *sharedRuns, String name, Light *light, unsigned int resolutionX, unsigned int resolutionY, String materialName) | |
Constructor. | |
String | getDepthMapTextureName () |
returns the depth shadow map texture created by this run | |
void | refreshLight () |
Refreshes light camera matrices, called in each update. | |
Matrix4 | getLightViewMatrix () |
retuns the view matrix of the camera from which the depth shadow map was created | |
Matrix4 | getLightViewProjMatrix () |
retuns the concatenation of the view and projection matrices of the camera from which the depth shadow map was created | |
Protected Member Functions | |
void | updateFrame (unsigned long frameNum) |
This function does the actual update in a frame. | |
void | createDepthMap () |
Creates the depth map texture (2D or CUBE according to light type). | |
void | updateDepthCubeFace (int facenum) |
Updates one face of the depth cubemap (used only in case of point lights). | |
void | updateDepthMap () |
Updates the depth map (in case of directional and spot lights). | |
Protected Attributes | |
Light * | light |
the light source this depth shadow map belongs to | |
Camera * | depthMapCamera |
pointer to the camera of the lightsource | |
String | materialName |
the name of the material to be used when rendering the depth shadow map | |
OgreSharedRuns * | sharedRuns |
a pointer to the OgreSharedRuns this run belongs to | |
String | name |
the name of the depth shadow map texture that was created by this run | |
Texture * | depthMapTexture |
a pointer to the depth shadow texture that was created by this run |
|
Constructor.
|
|
Updates one face of the depth cubemap (used only in case of point lights).
Implements DepthShadowMapRenderingRun. |
|
This function does the actual update in a frame.
Implements DepthShadowMapRenderingRun. |