1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 12:45:29 +08:00

Add styleguide

This commit is contained in:
Meow J
2015-07-27 19:41:03 +08:00
parent 26d7793ef6
commit ef5a9a5da3
2 changed files with 47 additions and 1 deletions

View File

@@ -213,7 +213,7 @@ while(!glfwWindowShouldClose(window))
新代码和上一节的很相似。这次我们在每个循环绘制三角形前先更新uniform值。如果你成功更新uniform了你会看到你的三角形逐渐由绿变黑再变绿。
<video src="http://learnopengl.com/video/getting-started/shaders.mp4" controls="controls"/>
<video src="http://learnopengl.com/video/getting-started/shaders.mp4" controls="controls"/></video>
如果你在哪儿卡住了,[这里有源码](http://www.learnopengl.com/code_viewer.php?code=getting-started/shaders-uniform)。