1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:19:56 +00:00
openmw-tes3mp/apps/openmw/mwrender/shadow.hpp
2017-11-07 00:32:04 +00:00

28 lines
656 B
C++

#ifndef OPENMW_MWRENDER_SHADOW_H
#define OPENMW_MWRENDER_SHADOW_H
#include <osgShadow/ViewDependentShadowMap>
namespace MWRender
{
class MWShadow : public osgShadow::ViewDependentShadowMap
{
public:
static const int numberOfShadowMapsPerLight = 2;
static const bool debugHud = true;
MWShadow();
virtual void cull(osgUtil::CullVisitor& cv);
protected:
const int debugTextureUnit;
std::vector<osg::ref_ptr<osg::Camera>> debugCameras;
osg::ref_ptr<osg::Program> debugProgram;
std::vector<osg::ref_ptr<osg::Node>> debugGeometry;
};
}
#endif //OPENMW_MWRENDER_SHADOW_H