X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fshader-intro.h;h=75fef8f5600197864d5f38328ccab4bef78627a3;hb=9d994cff127d932aa64385aba479b015563f9929;hp=a3868c84725504012580d460f2816d2cc437d8f2;hpb=01864cd4216d958c5f0e95643dbbeca7c9937716;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/programming-guide/shader-intro.h b/docs/content/programming-guide/shader-intro.h index a3868c8..75fef8f 100644 --- a/docs/content/programming-guide/shader-intro.h +++ b/docs/content/programming-guide/shader-intro.h @@ -6,38 +6,6 @@ The shader effects allow the developer to apply visual deformations on the actors. They can affect the geometry, the colors and textures of the actor. -There are some built-in shader effects in Dali Toolkit: -- \ref Dali::Toolkit::BendyEffect "Bendy", bends the geometry around a point, useful to do a page turn effect, -- \ref Dali::Toolkit::DissolveEffect "Dissolve", does a dissolve effect on the actor texture, -- \ref Dali::Toolkit::RippleEffect "Ripple", does a concentric wave effect on the actor texture. - -@image html shader-effect-ripple.png "Ripple Effect" - -
-
-

Example and Usage

-Here is an example on how to use a shader effect, using the RippleEffect. - -First create the shader effect. -@code -Dali::RippleEffect effect = Dali::RippleEffect::New(); -@endcode - -Then set the values of the uniforms. -@code -// Set the radius of the bending -effect.SetAmplitude( 45.0f ); -// Set the point around which the geometry will bend -effect.SetCenter( Vector2() ); -// Set the direction of the bending -effect.SetDirection( Vector2( 1.0f, 0.0f ) ); -@endcode - -Finally apply the shader effect to an actor: -@code -actor.SetShaderEffect( effect ); -@endcode -