17 #ifndef OSGSHADOW_DEBUGSHADOWMAP
18 #define OSGSHADOW_DEBUGSHADOWMAP 1
20 #include <osgShadow/ViewDependentShadowTechnique>
21 #include <osgShadow/ConvexPolyhedron>
22 #include <osg/MatrixTransform>
24 #include <osg/Geometry>
78 void setDebugDump(
const std::string & debugDumpFile ) { _debugDump = debugDumpFile; }
85 class DrawableDrawWithDepthShadowComparisonOffCallback;
155 virtual void cull( );
157 virtual void createDebugHUD(
void );
159 virtual void cullDebugGeometry( );
161 virtual void updateDebugGeometry(
const osg::Camera * screenCam,
164 void setDebugPolytope(
const char * name,
169 bool DebugBoundingBox(
const osg::BoundingBox & bb,
const char * name =
"" );
170 bool DebugPolytope(
const osg::Polytope & p,
const char * name =
"" );
171 bool DebugMatrix(
const osg::Matrix & m,
const char * name =
"" );
173 static osg::Vec3d computeShadowTexelToPixelError
179 static void displayShadowTexelToPixelErrors
184 void dump(
const std::string & filename );
osg::Vec2s _viewportOrigin
osg::ref_ptr< osg::Camera > _cameraDebugHUD
void setDebugDump(const std::string &debugDumpFile)
ConvexPolyhedron _polytope
#define META_ViewDependentShadowTechniqueData(ShadowTechnique, TechniqueData)
std::string * getDebugDump()
bool getDebugDraw(void) const
osg::ref_ptr< osg::Camera > _camera
osg::ref_ptr< osg::Texture > _texture
#define META_Object(library, name)
std::map< std::string, PolytopeGeometry > PolytopeGeometryMap
osg::Vec2s _viewportOrigin
PolytopeGeometryMap _polytopeGeometryMap
std::map< std::string, osg::Matrix > _matrixMap
osg::Matrixd _viewProjection
osg::observer_ptr< osg::Camera > _viewCamera
osg::ref_ptr< osg::Shader > _depthColorFragmentShader
std::string * _debugDumpPtr
std::map< std::string, osg::BoundingBox > _boundingBoxMap
std::map< std::string, osg::Polytope > _polytopeMap
osg::ref_ptr< osg::Shader > _depthColorFragmentShader
void setDebugDraw(bool draw)
std::string getDebugDump(void) const
ViewDependentShadowTechnique BaseClass