14#ifndef OSGSHADOW_SHADOWEMAP
15#define OSGSHADOW_SHADOWEMAP 1
64 typedef std::vector< osg::ref_ptr<osg::Uniform> >
UniformList;
66 typedef std::vector< osg::ref_ptr<osg::Shader> >
ShaderList;
111 class DrawableDrawWithDepthShadowComparisonOffCallback;
META_Object(osgShadow, ShadowMap)
osg::ref_ptr< osg::Camera > makeDebugHUD()
osg::ref_ptr< osg::StateSet > _stateset
Definition ShadowMap:116
virtual void update(osg::NodeVisitor &nv)
osg::ref_ptr< osg::Program > _program
Definition ShadowMap:117
virtual void cull(osgUtil::CullVisitor &cv)
UniformList _uniformList
Definition ShadowMap:123
osg::Vec2 _ambientBias
Definition ShadowMap:128
osg::ref_ptr< osg::Light > _light
Definition ShadowMap:118
void addShader(const osg::ref_ptr< T > &shader)
Definition ShadowMap:71
void setTextureUnit(unsigned int unit)
void setLight(osg::Light *light)
const osg::Vec2s & getTextureSize() const
Definition ShadowMap:58
osg::Vec2s _textureSize
Definition ShadowMap:129
unsigned int _baseTextureUnit
Definition ShadowMap:125
void setTextureSize(const osg::Vec2s &textureSize)
unsigned int getTextureUnit() const
Definition ShadowMap:40
virtual void cleanSceneGraph()
osg::ref_ptr< osg::Camera > _camera
Definition ShadowMap:113
void setAmbientBias(const osg::Vec2 &ambientBias)
osg::ref_ptr< osg::LightSource > _ls
Definition ShadowMap:120
osg::ref_ptr< osg::Uniform > _ambientBiasUniform
Definition ShadowMap:122
void clearShaderList()
Definition ShadowMap:74
virtual ~ShadowMap(void)
Definition ShadowMap:103
void setLight(osg::LightSource *ls)
virtual void createUniforms()
osg::Vec2 _polyOffset
Definition ShadowMap:127
virtual void resizeGLObjectBuffers(unsigned int maxSize)
void addShader(osg::Shader *shader)
Definition ShadowMap:69
ShaderList _shaderList
Definition ShadowMap:124
const osg::Vec2 & getAmbientBias() const
Definition ShadowMap:52
std::vector< osg::ref_ptr< osg::Shader > > ShaderList
Definition ShadowMap:66
osg::ref_ptr< osg::Texture2D > _texture
Definition ShadowMap:115
void setPolygonOffset(const osg::Vec2 &polyOffset)
osg::ref_ptr< osg::TexGen > _texgen
Definition ShadowMap:114
virtual void releaseGLObjects(osg::State *=0) const
ShadowMap(const ShadowMap &es, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
std::vector< osg::ref_ptr< osg::Uniform > > UniformList
Definition ShadowMap:64
unsigned int _shadowTextureUnit
Definition ShadowMap:126
const osg::Vec2 & getPolygonOffset() const
Definition ShadowMap:46
virtual void createShaders()
Definition ShadowTechnique:32
Definition CullVisitor:49
@ SHALLOW_COPY
Definition CopyOp:47
Definition LightSource:25
Definition NodeVisitor:82
T * get() const
Definition ref_ptr:117
Definition ConvexPolyhedron:33
#define OSGSHADOW_EXPORT
Definition osgShadow/Export:39