2#include "MRViewerFwd.h"
7#include <boost/signals2/connection.hpp>
45 Vector2f shadowShift_ = Vector2f( 0.0, 0.0 );
46 Vector4f shadowColor_ = Vector4f( Color::yellow() );
47 float blurRadius_{ 40.0f };
49 float quality_{ 0.25f };
52 void postResize_(
int x,
int y );
57 void drawShadow_(
bool convX );
58 void drawTexture_(
bool scene,
bool downsample );
60 boost::signals2::connection preDrawConnection_;
61 boost::signals2::connection postDrawConnection_;
62 boost::signals2::connection postResizeConnection_;
67 QuadTextureVertexObject quadObject_;
69 FramebufferData sceneFramebuffer_;
70 FramebufferData lowSizeFramebuffer_;
71 FramebufferData convolutionXFramebuffer_;
73 bool enabled_{
false };
Definition MRShadowsGL.h:19
const Vector4f & getShadowColor() const
Definition MRShadowsGL.h:32
float getQuality() const
Definition MRShadowsGL.h:41
MRVIEWER_API ~ShadowsGL()
MRVIEWER_API void setShadowShift(const Vector2f &shift)
const Vector2f & getShadowShift() const
shift in screen space
Definition MRShadowsGL.h:29
MR_ADD_CTOR_DELETE_MOVE(ShadowsGL)
MRVIEWER_API void setBlurRadius(float radius)
MRVIEWER_API void setShadowColor(const Vector4f &color)
MRVIEWER_API void enable(bool on)
subscribe to viewer events on enable, unsubscribe on disable
float getBlurRadius() const
Definition MRShadowsGL.h:35
MRVIEWER_API void setQuality(float quality)
bool isEnabled() const
Definition MRShadowsGL.h:26
only for bindings generation
Definition MRCameraOrientationPlugin.h:8