mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
40 lines
709 B
C++
40 lines
709 B
C++
|
#ifndef GAME_SHADOWS_H
|
||
|
#define GAME_SHADOWS_H
|
||
|
|
||
|
// forward declares
|
||
|
namespace Ogre
|
||
|
{
|
||
|
class SceneManager;
|
||
|
class PSSMShadowCameraSetup;
|
||
|
}
|
||
|
namespace OEngine{
|
||
|
namespace Render{
|
||
|
class OgreRenderer;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace MWRender
|
||
|
{
|
||
|
class Shadows
|
||
|
{
|
||
|
public:
|
||
|
Shadows(OEngine::Render::OgreRenderer* rend);
|
||
|
|
||
|
void recreate();
|
||
|
|
||
|
Ogre::PSSMShadowCameraSetup* getPSSMSetup();
|
||
|
float getShadowFar() const;
|
||
|
float getFadeStart() const;
|
||
|
|
||
|
protected:
|
||
|
OEngine::Render::OgreRenderer* mRendering;
|
||
|
Ogre::SceneManager* mSceneMgr;
|
||
|
|
||
|
Ogre::PSSMShadowCameraSetup* mPSSMSetup;
|
||
|
float mShadowFar;
|
||
|
float mFadeStart;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|