소스 검색

Updated documentation

JCash 1 년 전
부모
커밋
a19ba6cab6
2개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      examples/material/vertexcolor/vertexcolor-material.png
  2. 13 0
      examples/material/vertexcolor/vertexcolor.md

BIN
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.