7#include <boost/signals2/connection.hpp>
48 Vector2f shadowShift_ = Vector2f( 0.0, 0.0 );
50 float blurRadius_{ 40.0f };
52 float quality_{ 0.25f };
55 void postResize_(
int x,
int y );
60 void drawShadow_(
bool convX );
61 void drawTexture_(
bool scene,
bool downsample );
63 boost::signals2::connection preDrawConnection_;
64 boost::signals2::connection postDrawConnection_;
65 boost::signals2::connection postResizeConnection_;
70 QuadTextureVertexObject quadObject_;
72 FramebufferData sceneFramebuffer_;
73 FramebufferData lowSizeFramebuffer_;
74 FramebufferData convolutionXFramebuffer_;
76 bool enabled_{
false };
const Vector4f & getShadowColor() const
Definition MRShadowsGL.h:35
float getQuality() const
Definition MRShadowsGL.h:44
void setQuality(float quality)
ShadowsGL(ShadowsGL &&) noexcept=delete
const Vector2f & getShadowShift() const
shift in screen space
Definition MRShadowsGL.h:32
void setShadowColor(const Vector4f &color)
static constexpr Color yellow() noexcept
Definition MRColor.h:34
ShadowsGL()
out-of-line to keep the GL members of this class out of the modules using it
void enable(bool on)
subscribe to viewer events on enable, unsubscribe on disable
float getBlurRadius() const
Definition MRShadowsGL.h:38
void setShadowShift(const Vector2f &shift)
void setBlurRadius(float radius)
bool isEnabled() const
Definition MRShadowsGL.h:29
only for bindings generation
Definition MRCameraOrientationPlugin.h:8