*/
// EXTERNAL INCLUDES
-#include <dali/public-api/actors/image-actor.h>
#include <dali/public-api/shader-effects/shader-effect.h>
namespace Dali
/**
* @brief Set the properties for the motion blur
*
- * @param numBlurSamples Number of samples used by the shader
+ * @param[in] actor The actor that registers the uniform properties
+ * @param[in] numBlurSamples Number of samples used by the shader
*/
inline void SetMotionBlurProperties( Actor& actor, unsigned int numBlurSamples = 8 )
{
Property::Map map;
Property::Map customShader;
- customShader[ "vertex-shader" ] = vertexSource;
- customShader[ "fragment-shader" ] = fragmentSource;
+ customShader[ "vertexShader" ] = vertexSource;
+ customShader[ "fragmentShader" ] = fragmentSource;
- customShader[ "subdivide-grid-x" ] = 10;
- customShader[ "subdivide-grid-y" ] = 10;
+ customShader[ "subdivideGridX" ] = 10;
+ customShader[ "subdivideGridY" ] = 10;
// NOTE: we must turn on alpha blending for the actor (HINT_BLENDING)
- customShader[ "hints" ] = "output-is-transparent";
+ customShader[ "hints" ] = "outputIsTransparent";
map[ "shader" ] = customShader;
return map;