|
@@ -0,0 +1,13 @@
|
|
|
|
+---
|
|
|
|
+title: Sprite Vertex Color Attribute
|
|
|
|
+brief: This example shows how to set and animate a vertex attribute
|
|
|
|
+scripts: vertexcolor.script, vertexcolor.vp, vertexcolor.fp
|
|
|
|
+---
|
|
|
|
+
|
|
|
|
+The `vertexcolor.script` sets the vertex attribute "mycolor", which has been specified in the material.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+The shaders specified by the material also makes use of the `mycolor` attribute to colorize the sprites.
|
|
|
|
+
|
|
|
|
+The vertex attributes can also be animated. Click the image for an animation effect.
|