X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Fshader-effect.js;h=98e9c17f5ed8acd845eb2191b6c6604721b304af;hb=refs%2Fchanges%2F36%2F36536%2F6;hp=a83df51622ebcecf694ffddb072dfe45c997c7de;hpb=070dc0823710d9776fb368151f0a9e4d82bdf158;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 a83df51..98e9c17 100644 --- a/plugins/dali-script-v8/docs/content/shader-effect.js +++ b/plugins/dali-script-v8/docs/content/shader-effect.js @@ -5,7 +5,13 @@ Shader effects provide a visual effect for actors. -For a Custom shader you can provide the vertex and fragment shader code as strings. +You can create a type-registered shader effect by its type name. +``` +// create a new shader effect +var shader = new dali.ShaderEffect("BlindEffect"); +``` + +Alternatively you can create a Custom shader by providing the vertex and fragment shader code as strings. Each shader is provided with default uniforms and attributes. For a vertex shader this part contains the following code: ```