1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00
This commit is contained in:
Meow J
2016-07-16 14:27:35 +08:00
parent d79f4e8492
commit cb7f0a0f6e
2 changed files with 1 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ while(!glfwWindowShouldClose(window))
这里的代码对之前代码是一次非常直接的修改。这次我们在每次迭代绘制三角形前先更新uniform值。如果你正确更新了uniform你会看到你的三角形逐渐由绿变黑再变回绿色。
<video src="http://learnopengl.com/video/getting-started/shaders.mp4" controls="controls"/></video>
<video src="../../img/01/05/shaders.mp4" controls="controls"/></video>
如果你在哪儿卡住了,可以到[这里](http://www.learnopengl.com/code_viewer.php?code=getting-started/shaders-uniform)查看源码。

BIN
docs/img/01/05/shaders.mp4 Normal file

Binary file not shown.