example.md 555 B


tags: material title: Sprite Vertex Color Attribute brief: This example shows how to set and animate a vertex attribute author: JCash

scripts: vertexcolor.script, vertexcolor.vp, vertexcolor.fp

The vertexcolor.script sets the vertex attribute "mycolor", which has been specified in the material.

vertex attribute 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.