}
/**
- }
+ * Sets motion blur effect to a cluster and all its children
+ *
+ * @param[in] actor Cluster control to which the effect will be applied
+ */
+ void SetMotionBlurEffect( Actor actor )
+ {
++ /*
+ // only do something if the actor and effect are valid
+ if( actor )
+ {
+ // first remove from this actor
+ RenderableActor renderable = RenderableActor::DownCast( actor );
+ if( renderable )
+ {
+ MotionBlurEffect shaderEffect = MotionBlurEffect::New();
+ shaderEffect.SetSpeedScalingFactor(0.1f);
+
+ Dali::Property::Index uModelProperty = shaderEffect.GetPropertyIndex( "uModelLastFrame" );
+ Constraint constraint = Constraint::New<Matrix>( shaderEffect, uModelProperty, EqualToConstraint() );
+ constraint.AddSource( Source( actor , Actor::Property::WORLD_MATRIX ) );
+ constraint.Apply();
+ renderable.SetShaderEffect( shaderEffect );
+ }
+ // then all children recursively
+ const unsigned int count = actor.GetChildCount();
+ for( unsigned int index = 0; index < count; ++index )
+ {
+ Actor child( actor.GetChildAt( index ) );
+ SetMotionBlurEffect( child );
+ }
++ }*/
+ }
+
+ /**
* Resets ScrollView and Clusters settings
* to reflect the new ExampleEffectType
*