2017-10-03 02:40:23 +00:00
|
|
|
#ifndef OPENMW_MWRENDER_SHADOW_H
|
|
|
|
#define OPENMW_MWRENDER_SHADOW_H
|
|
|
|
|
2017-10-11 19:47:19 +00:00
|
|
|
#include <osgShadow/ViewDependentShadowMap>
|
2017-10-03 02:40:23 +00:00
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
2017-10-11 19:47:19 +00:00
|
|
|
class MWShadow : public osgShadow::ViewDependentShadowMap
|
2017-10-03 02:40:23 +00:00
|
|
|
{
|
2017-10-11 19:47:19 +00:00
|
|
|
public:
|
2017-11-07 00:32:04 +00:00
|
|
|
static const int numberOfShadowMapsPerLight = 2;
|
|
|
|
static const bool debugHud = true;
|
|
|
|
|
2017-10-11 19:47:19 +00:00
|
|
|
MWShadow();
|
|
|
|
|
|
|
|
virtual void cull(osgUtil::CullVisitor& cv);
|
2017-10-03 02:40:23 +00:00
|
|
|
protected:
|
2017-11-03 14:33:06 +00:00
|
|
|
const int debugTextureUnit;
|
|
|
|
|
2017-11-07 00:32:04 +00:00
|
|
|
std::vector<osg::ref_ptr<osg::Camera>> debugCameras;
|
2017-10-11 19:47:19 +00:00
|
|
|
|
|
|
|
osg::ref_ptr<osg::Program> debugProgram;
|
|
|
|
|
2017-11-07 00:32:04 +00:00
|
|
|
std::vector<osg::ref_ptr<osg::Node>> debugGeometry;
|
2017-10-03 02:40:23 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_MWRENDER_SHADOW_H
|