2017-10-03 03:40:23 +01:00
|
|
|
#ifndef OPENMW_MWRENDER_SHADOW_H
|
|
|
|
#define OPENMW_MWRENDER_SHADOW_H
|
|
|
|
|
2017-10-11 20:47:19 +01:00
|
|
|
#include <osgShadow/ViewDependentShadowMap>
|
2017-10-03 03:40:23 +01:00
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
2017-10-11 20:47:19 +01:00
|
|
|
class MWShadow : public osgShadow::ViewDependentShadowMap
|
2017-10-03 03:40:23 +01:00
|
|
|
{
|
2017-10-11 20:47:19 +01:00
|
|
|
public:
|
|
|
|
MWShadow();
|
|
|
|
|
|
|
|
virtual void cull(osgUtil::CullVisitor& cv);
|
2017-10-03 03:40:23 +01:00
|
|
|
protected:
|
2017-11-03 14:33:06 +00:00
|
|
|
const int debugTextureUnit;
|
|
|
|
|
2017-10-11 20:47:19 +01:00
|
|
|
osg::ref_ptr<osg::Camera> debugCamera;
|
|
|
|
|
|
|
|
osg::ref_ptr<osg::Program> debugProgram;
|
|
|
|
|
|
|
|
osg::ref_ptr<osg::Node> debugGeometry;
|
2017-10-03 03:40:23 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_MWRENDER_SHADOW_H
|