X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Fshader-effect.js;h=a83df51622ebcecf694ffddb072dfe45c997c7de;hb=3e17d9f63dedb5d669409301f8d9a3d8c393f979;hp=ea1eba83599e65b1c9bce2713ccd146e225283f0;hpb=e8efa9549ccedae5b8377c9eb331aa8392895879;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/docs/content/shader-effect.js b/plugins/dali-script-v8/docs/content/shader-effect.js index ea1eba8..a83df51 100644 --- a/plugins/dali-script-v8/docs/content/shader-effect.js +++ b/plugins/dali-script-v8/docs/content/shader-effect.js @@ -168,7 +168,7 @@ var animOptions = { // if we go to 1.0 then it will go to a full box shaderAnim.animateTo( revealEffect, "uRadius", 0.5,animOptions); shaderAnim.play(); - +``` * * * ### Example of paper twisting in the wind with color (Vertex + Fragment Shader) @@ -185,7 +185,7 @@ vertices. To do this we can break the image into a grid using the gridX and grid - +``` createTwistEffect = function() { @@ -238,7 +238,7 @@ imageActor.setCullFace( dali.CULL_FACE_DISABLE ); // disable face culling so we dali.stage.add( imageActor ); // start it of tilted around the y-axis -imageActor.rotation=new dali.Rotation(90, 0, 1, 0); +imageActor.orientation=new dali.Rotation(90, 0, 1, 0); var twistEffect = createTwistEffect(); imageActor.setShaderEffect( twistEffect );