1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/apps/openmw/mwrender/shadow.hpp

26 lines
528 B
C++
Raw Normal View History

#ifndef OPENMW_MWRENDER_SHADOW_H
#define OPENMW_MWRENDER_SHADOW_H
#include <osgShadow/ViewDependentShadowMap>
namespace MWRender
{
class MWShadow : public osgShadow::ViewDependentShadowMap
{
public:
MWShadow();
virtual void cull(osgUtil::CullVisitor& cv);
protected:
const int debugTextureUnit;
osg::ref_ptr<osg::Camera> debugCamera;
osg::ref_ptr<osg::Program> debugProgram;
osg::ref_ptr<osg::Node> debugGeometry;
};
}
#endif //OPENMW_MWRENDER_SHADOW_H