Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::efx::ShadowMapProjection Class Reference

#include <ShadowMapProjection.h>

Inheritance diagram for kge::efx::ShadowMapProjection:
kge::efx::Effect kge::efx::XPSM

Classes

struct  MeshMatrix

Public Member Functions

 ShadowMapProjection (int ShadowMapSize, sn::SceneManager *pSmgr)
 Constructor.
virtual ~ShadowMapProjection ()
 Destructor.
virtual void AddNodes (sn::SceneNode *pNodes)
 Add nodes of mesh that effect influencing on it.
virtual void PreRender (float elapsedTime=0.0f)
 The works must to do before rendering the object.
virtual void Render ()
 The works must to do after rendering the object.
virtual void PostRenderEverything ()
 The works must to do after rendering all of the scene nodes.
virtual bool Init ()
 Inits the shadow map.
virtual const char * GetShaderCode ()
virtual math::MatrixGetMatrix ()
virtual void OnReset ()
 For internal use.
- Public Member Functions inherited from kge::efx::Effect
 Effect ()
 Constructor.
virtual ~Effect ()
 Destructor.

Public Attributes

gfx::Texturem_pShadowMap
 The shadow map texture.
gfx::Colorf m_cShadowColor

Protected Member Functions

void AddMeshes (std::vector< MeshMatrix > &Alpha, std::vector< MeshMatrix > &NoAlpha, sn::SceneNode *mesh)

Protected Attributes

char * m_pShaderCode
sn::SceneManagerm_pSmgr
 The scene manager pointer.
sn::Cameram_pActiveCamera
sn::Cameram_pShadowCamera
gfx::Rendererm_pRen
gfx::Shaderm_pVertexShader
 The vertex shader for rendering shadow map.
gfx::Shaderm_pPixelShader
 The pixel shader for rendering shadow map.
gfx::Shaderm_pVertexShader2
 The vertex shader for rendering shadow map with alpha test.
gfx::Shaderm_pPixelShader2
 The pixel shader for rendering shadow map with alpha test.
gfx::Shaderm_pVertexShader3
 The vertex shader for rendering shadow map with instancing.
gfx::Shaderm_pVertexShader4
 The vertex shader for rendering shadow map with instancing & alpha test.
gfx::ShaderHandle m_shMatWVP
 Shader handle for world view projection matrix.
gfx::ShaderHandle m_shMatWVP2
gfx::ShaderHandle m_shMatWVP3
gfx::ShaderHandle m_shMatWVP4
gfx::ShaderInstancem_pShaderInstance
gfx::ShaderInstancem_pShaderInstance2
gfx::ShaderInstancem_pShaderInstance3
gfx::ShaderInstancem_pShaderInstance4
gfx::Materialm_pMaterial
 The shadow material.
gfx::Materialm_pMaterial2
gfx::Materialm_pMaterial3
gfx::Materialm_pMaterial4
core::RectI m_ViewPort
 The view port for rendering in shadow map.
math::Matrixm_pProj
math::Matrixm_pOrtho
math::Matrixm_pBiasMatrix
math::Matrixm_pBiasFinal
math::Matrixm_pFinal
math::Frustumm_pFrustum
int m_iShadowMapSize
- Protected Attributes inherited from kge::efx::Effect
std::vector< sn::SceneNode * > m_arrNodes

Detailed Description

Definition at line 28 of file ShadowMapProjection.h.

Constructor & Destructor Documentation

kge::efx::ShadowMapProjection::ShadowMapProjection ( int  ShadowMapSize,
sn::SceneManager pSmgr 
)

Constructor.

virtual kge::efx::ShadowMapProjection::~ShadowMapProjection ( )
virtual

Destructor.

Member Function Documentation

void kge::efx::ShadowMapProjection::AddMeshes ( std::vector< MeshMatrix > &  Alpha,
std::vector< MeshMatrix > &  NoAlpha,
sn::SceneNode mesh 
)
protected
virtual void kge::efx::ShadowMapProjection::AddNodes ( sn::SceneNode pNodes)
virtual

Add nodes of mesh that effect influencing on it.

Reimplemented from kge::efx::Effect.

virtual math::Matrix* kge::efx::ShadowMapProjection::GetMatrix ( )
inlinevirtual

Definition at line 55 of file ShadowMapProjection.h.

virtual const char* kge::efx::ShadowMapProjection::GetShaderCode ( )
virtual
virtual bool kge::efx::ShadowMapProjection::Init ( )
virtual

Inits the shadow map.

Reimplemented in kge::efx::XPSM.

virtual void kge::efx::ShadowMapProjection::OnReset ( )
virtual

For internal use.

Reimplemented from kge::efx::Effect.

virtual void kge::efx::ShadowMapProjection::PostRenderEverything ( )
virtual

The works must to do after rendering all of the scene nodes.

Implements kge::efx::Effect.

Reimplemented in kge::efx::XPSM.

virtual void kge::efx::ShadowMapProjection::PreRender ( float  elapsedTime = 0.0f)
virtual

The works must to do before rendering the object.

Implements kge::efx::Effect.

Reimplemented in kge::efx::XPSM.

virtual void kge::efx::ShadowMapProjection::Render ( )
virtual

The works must to do after rendering the object.

Implements kge::efx::Effect.

Reimplemented in kge::efx::XPSM.

Member Data Documentation

gfx::Colorf kge::efx::ShadowMapProjection::m_cShadowColor

Definition at line 61 of file ShadowMapProjection.h.

int kge::efx::ShadowMapProjection::m_iShadowMapSize
protected

Definition at line 107 of file ShadowMapProjection.h.

sn::Camera* kge::efx::ShadowMapProjection::m_pActiveCamera
protected

Definition at line 69 of file ShadowMapProjection.h.

math::Matrix * kge::efx::ShadowMapProjection::m_pBiasFinal
protected

Definition at line 99 of file ShadowMapProjection.h.

math::Matrix * kge::efx::ShadowMapProjection::m_pBiasMatrix
protected

Definition at line 99 of file ShadowMapProjection.h.

math::Matrix * kge::efx::ShadowMapProjection::m_pFinal
protected

Definition at line 99 of file ShadowMapProjection.h.

math::Frustum* kge::efx::ShadowMapProjection::m_pFrustum
protected

Definition at line 105 of file ShadowMapProjection.h.

gfx::Material* kge::efx::ShadowMapProjection::m_pMaterial
protected

The shadow material.

Definition at line 92 of file ShadowMapProjection.h.

gfx::Material * kge::efx::ShadowMapProjection::m_pMaterial2
protected

Definition at line 92 of file ShadowMapProjection.h.

gfx::Material * kge::efx::ShadowMapProjection::m_pMaterial3
protected

Definition at line 92 of file ShadowMapProjection.h.

gfx::Material * kge::efx::ShadowMapProjection::m_pMaterial4
protected

Definition at line 92 of file ShadowMapProjection.h.

math::Matrix * kge::efx::ShadowMapProjection::m_pOrtho
protected

Definition at line 99 of file ShadowMapProjection.h.

gfx::Shader * kge::efx::ShadowMapProjection::m_pPixelShader
protected

The pixel shader for rendering shadow map.

Definition at line 75 of file ShadowMapProjection.h.

gfx::Shader * kge::efx::ShadowMapProjection::m_pPixelShader2
protected

The pixel shader for rendering shadow map with alpha test.

Definition at line 75 of file ShadowMapProjection.h.

math::Matrix* kge::efx::ShadowMapProjection::m_pProj
protected

Definition at line 99 of file ShadowMapProjection.h.

gfx::Renderer* kge::efx::ShadowMapProjection::m_pRen
protected

Definition at line 72 of file ShadowMapProjection.h.

char* kge::efx::ShadowMapProjection::m_pShaderCode
protected

Definition at line 65 of file ShadowMapProjection.h.

gfx::ShaderInstance* kge::efx::ShadowMapProjection::m_pShaderInstance
protected

Definition at line 87 of file ShadowMapProjection.h.

gfx::ShaderInstance * kge::efx::ShadowMapProjection::m_pShaderInstance2
protected

Definition at line 87 of file ShadowMapProjection.h.

gfx::ShaderInstance * kge::efx::ShadowMapProjection::m_pShaderInstance3
protected

Definition at line 87 of file ShadowMapProjection.h.

gfx::ShaderInstance * kge::efx::ShadowMapProjection::m_pShaderInstance4
protected

Definition at line 87 of file ShadowMapProjection.h.

sn::Camera* kge::efx::ShadowMapProjection::m_pShadowCamera
protected

Definition at line 70 of file ShadowMapProjection.h.

gfx::Texture* kge::efx::ShadowMapProjection::m_pShadowMap

The shadow map texture.

Definition at line 60 of file ShadowMapProjection.h.

sn::SceneManager* kge::efx::ShadowMapProjection::m_pSmgr
protected

The scene manager pointer.

Definition at line 67 of file ShadowMapProjection.h.

gfx::Shader* kge::efx::ShadowMapProjection::m_pVertexShader
protected

The vertex shader for rendering shadow map.

Definition at line 75 of file ShadowMapProjection.h.

gfx::Shader * kge::efx::ShadowMapProjection::m_pVertexShader2
protected

The vertex shader for rendering shadow map with alpha test.

Definition at line 75 of file ShadowMapProjection.h.

gfx::Shader * kge::efx::ShadowMapProjection::m_pVertexShader3
protected

The vertex shader for rendering shadow map with instancing.

Definition at line 75 of file ShadowMapProjection.h.

gfx::Shader * kge::efx::ShadowMapProjection::m_pVertexShader4
protected

The vertex shader for rendering shadow map with instancing & alpha test.

Definition at line 75 of file ShadowMapProjection.h.

gfx::ShaderHandle kge::efx::ShadowMapProjection::m_shMatWVP
protected

Shader handle for world view projection matrix.

Definition at line 82 of file ShadowMapProjection.h.

gfx::ShaderHandle kge::efx::ShadowMapProjection::m_shMatWVP2
protected

Definition at line 82 of file ShadowMapProjection.h.

gfx::ShaderHandle kge::efx::ShadowMapProjection::m_shMatWVP3
protected

Definition at line 82 of file ShadowMapProjection.h.

gfx::ShaderHandle kge::efx::ShadowMapProjection::m_shMatWVP4
protected

Definition at line 82 of file ShadowMapProjection.h.

core::RectI kge::efx::ShadowMapProjection::m_ViewPort
protected

The view port for rendering in shadow map.

Definition at line 97 of file ShadowMapProjection.h.


The documentation for this class was generated from the following file: