1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +00:00
OpenMW/apps/openmw/mwrender/shadow.hpp

28 lines
581 B
C++

#ifndef OPENMW_MWRENDER_SHADOW_H
#define OPENMW_MWRENDER_SHADOW_H
#include <osgShadow/ViewDependentShadowMap>
namespace MWRender
{
class MWShadow : public osgShadow::ViewDependentShadowMap
{
public:
MWShadow();
const static int baseShadowTextureUnit = 7;
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