// EXTERNAL INCLUDES
#include <sstream>
#include <iomanip>
+#include <dali/public-api/animation/constraints.h>
+#include <dali/public-api/common/stage.h>
+#include <dali/public-api/object/type-registry.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
+#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-#include <dali/integration-api/debug.h>
-
// TODO:
// pixel format / size - set from JSON
// aspect ratio property needs to be able to be constrained also for cameras, not possible currently. Therefore changing aspect ratio of GaussianBlurView won't currently work
const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f;
const char* const GAUSSIAN_BLUR_FRAGMENT_SOURCE =
- "uniform vec2 uSampleOffsets[NUM_SAMPLES];\n"
- "uniform float uSampleWeights[NUM_SAMPLES];\n"
+ "uniform mediump vec2 uSampleOffsets[NUM_SAMPLES];\n"
+ "uniform mediump float uSampleWeights[NUM_SAMPLES];\n"
"void main()\n"
"{\n"
bool blurUserImage)
: Control( CONTROL_BEHAVIOUR_NONE )
, mNumSamples(numSamples)
+ , mBlurBellCurveWidth( 0.001f )
, mPixelFormat(renderTargetPixelFormat)
, mDownsampleWidthScale(downsampleWidthScale)
, mDownsampleHeightScale(downsampleHeightScale)
, mDownsampledWidth( 0.0f )
, mDownsampledHeight( 0.0f )
, mBlurUserImage( blurUserImage )
+ , mRenderOnce( false )
, mBackgroundColor( Color::BLACK )
, mTargetSize(Vector2::ZERO)
, mLastSize(Vector2::ZERO)