浏览代码

Updated documentation

JCash 1 年之前
父节点
当前提交
a19ba6cab6
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 二进制
      examples/material/vertexcolor/vertexcolor-material.png
  2. 13 0
      examples/material/vertexcolor/vertexcolor.md

二进制
examples/material/vertexcolor/vertexcolor-material.png


+ 13 - 0
examples/material/vertexcolor/vertexcolor.md

@@ -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.
+
+![vertex attribute material](vertexcolor-material.png)
+
+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.