Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CSimpleInterimShadowTechnique Class Reference

#include <SimpleInterimShadowTechnique.h>

Inheritance diagram for CSimpleInterimShadowTechnique:

Public Member Functions

 CSimpleInterimShadowTechnique (const CSimpleInterimShadowTechnique &es, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgShadow, CSimpleInterimShadowTechnique)
 
void SetLightNumber (const uint Light)
 
void SetShadowTextureUnit (const uint Unit)
 
void SetShadowTextureResolution (const uint ShadowTextureResolution)
 
uint GetShadowTextureResolution ()
 
void SetRecalculateEveryFrame (const bool RecalculateEveryFrame)
 
bool GetRecalculateEveryFrame () const
 
void SetShadowDarkness (const float Darkness)
 
float GetShadowDarkness ()
 
void SetShadowSphereRadius (const float ShadowSphereRadius)
 
float GetShadowSphereRadius ()
 
void SetHeightField3d (vtHeightField3d *pHeightField3d)
 
void AddMainSceneTextureUnit (const uint Unit, const uint Mode)
 
void RemoveMainSceneTextureUnit (const uint Unit)
 
void ForceShadowUpdate ()
 
void AddLodGridToIgnore (vtLodGrid *pLodGrid)
 
virtual void init ()
 
virtual void update (osg::NodeVisitor &nv)
 
virtual void cull (osgUtil::CullVisitor &cv)
 
virtual void cleanSceneGraph ()
 
osg::ref_ptr< osg::Camera > makeDebugHUD ()
 

Protected Member Functions

std::string GenerateFragmentShaderSource ()
 

Protected Attributes

osg::ref_ptr< osg::Camera > m_pCamera
 
osg::ref_ptr< osg::TexGen > m_pTexgen
 
osg::ref_ptr< osg::Texture2D > m_pTexture
 
osg::ref_ptr< osg::StateSet > m_pStateset
 
osg::ref_ptr< osg::Material > m_pMaterial
 
uint m_LightNumber
 
uint m_ShadowTextureUnit
 
uint m_ShadowTextureResolution
 
bool m_RecalculateEveryFrame
 
float m_PolygonOffsetFactor
 
float m_PolygonOffsetUnits
 
float m_ShadowDarkness
 
float m_ShadowSphereRadius
 
std::vector< vtLodGrid * > m_LodGridsToIgnore
 
std::map< uint, uint > m_MainSceneTextureUnits
 
vtHeightField3dm_pHeightField3d
 
osg::Vec3 m_OldBoundingSphereCentre
 
osg::Vec3 m_OldSunPos
 
bool m_UsingFrameBuffer
 

Detailed Description

CSimpleInterimShadowTechnique provides an implementation of a depth map shadow tuned to the needs of VTP.


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