From Christopher Blaesius,

"Soft shadow mapping is basically the same as hard shadow mapping beside that
it uses a different fragment shader.
So for me it makes sense that osgShadow::SoftShadowMap is derived from
osgShadow::ShadowMap, this makes it easier to maintain the two classes.
Additional SoftShadowMap also provides the same Debug methods as ShadowMap."
This commit is contained in:
Robert Osfield
2008-09-18 14:48:28 +00:00
parent 47e07244b9
commit 1d328ba0d4
3 changed files with 139 additions and 369 deletions

View File

@@ -91,9 +91,9 @@ class OSGSHADOW_EXPORT ShadowMap : public ShadowTechnique
virtual ~ShadowMap(void) {};
/** Create the managed Uniforms */
void createUniforms();
virtual void createUniforms();
void createShaders();
virtual void createShaders();
osg::ref_ptr<osg::Camera> _camera;
osg::ref_ptr<osg::TexGen> _texgen;