1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Update 04 Hello Triangle.md

This commit is contained in:
Gary Wang
2016-03-24 23:10:25 +08:00
parent 940e4ac7bd
commit 3cddcda0fc

View File

@@ -531,4 +531,4 @@ glBindVertexArray(0);
- 尝试使用`glDrawArrays`以在你的数据中添加更多顶点的方式,绘制两个彼此相连的三角形:[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/hello-triangle-exercise1)
- 现在使用不同的VAO(和VBO)创建同样的2个三角形每个三角形的数据要不同(提示创建2个顶点数据数组而不是1个)[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/hello-triangle-exercise2)
- 创建个着色器程序(Shader Program),第二个程序使用不同的片段着色器,它输出黄色;绘制这两个三角形,其中一个输出为黄色:[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/hello-triangle-exercise3)
- 创建个着色器程序(Shader Program),第二个程序使用不同的片段着色器,它输出黄色;绘制这两个三角形,其中一个输出为黄色:[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/hello-triangle-exercise3)