2013-02-03 14:46:23 +00:00
|
|
|
#ifndef MWRENDER_REFRACTION_H
|
|
|
|
#define MWRENDER_REFRACTION_H
|
|
|
|
|
|
|
|
#include <OgrePlane.h>
|
|
|
|
#include <OgreRenderTargetListener.h>
|
|
|
|
|
|
|
|
namespace Ogre
|
|
|
|
{
|
|
|
|
class Camera;
|
|
|
|
class RenderTarget;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
|
|
|
|
class Refraction : public Ogre::RenderTargetListener
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
Refraction(Ogre::Camera* parentCamera);
|
|
|
|
~Refraction();
|
|
|
|
|
2013-02-03 18:01:59 +00:00
|
|
|
void setHeight (float height);
|
2013-02-03 14:46:23 +00:00
|
|
|
void preRenderTargetUpdate(const Ogre::RenderTargetEvent& evt);
|
|
|
|
void postRenderTargetUpdate(const Ogre::RenderTargetEvent& evt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ogre::Camera* mParentCamera;
|
|
|
|
Ogre::Camera* mCamera;
|
|
|
|
Ogre::RenderTarget* mRenderTarget;
|
|
|
|
Ogre::Plane mNearClipPlane;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|