Dali 3D User Interface Engine
Shader Effect Animation

The uniforms of a shader can be animated using the Animation::AnimateTo functions.

For example, to animate the center point of the Bendy shader effect:

//...
Vector2 newPosition( 0.0f, 0.0f );
animation.AnimateTo( Property(shaderEffect, shaderEffect.GetPositionPropertyName()), newPosition );

To animate a uniform of a custom shader effect, the developer must use the name of the uniform:

//...
// Set the initial value for the uniform
shaderEffect.SetUniform( "myUniform", -0.5f );
//...
// Animate the uniform to a value
animation.AnimateTo( Property(shaderEffect, "myUniform"), 0.5f );
Dali Docs Home
Read more about Dali