Skip to content

Commit 8bf68c8

Browse files
author
skywind3000
committed
丰富注释
1 parent 77167b4 commit 8bf68c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int main(void)
107107

108108
const int VARYING_COLOR = 0; // 定义一个 varying 的 key
109109

110-
// 顶点数据,由 VS 读取
110+
// 顶点数据,由 VS 读取,如有多个三角形,可每次更新 vs_input 再绘制
111111
struct { Vec4f pos; Vec4f color; } vs_input[3] = {
112112
{ { 0.0, 0.7, 0.90, 1}, {1, 0, 0, 1} },
113113
{ { -0.6, -0.2, 0.01, 1}, {0, 1, 0, 1} },

sample_01_triangle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ int main(void)
88

99
const int VARYING_COLOR = 0; // 定义一个 varying 的 key
1010

11-
// 顶点数据,由 VS 读取
11+
// 顶点数据,由 VS 读取,如有多个三角形,可每次更新 vs_input 再绘制
1212
struct { Vec4f pos; Vec4f color; } vs_input[3] = {
1313
{ { 0.0, 0.7, 0.90, 1}, {1, 0, 0, 1} },
1414
{ { -0.6, -0.2, 0.01, 1}, {0, 1, 0, 1} },

0 commit comments

Comments
 (0)