1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 20:55:27 +08:00

More comment

This commit is contained in:
Meow J
2015-08-04 16:23:42 +08:00
parent b21ba0cf08
commit a6c571c26a
3 changed files with 18 additions and 8 deletions

View File

@@ -445,4 +445,4 @@ while(...)
2. 通过使用uniform定义一个水平偏移在顶点着色器中使用这个偏移量把三角形移动到屏幕右侧[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/shaders-exercise2)
3. 使用`out`关键字把顶点位置输出到片段着色器,把像素的颜色设置为与顶点位置相等(看看顶点位置值是如何在三角形中进行插值的)。做完这些后,尝试回答下面的问题:为什么在三角形的左下角是黑的?[参考解答](http://learnopengl.com/code_viewer.php?code=getting-started/shaders-exercise3)
[译注1]: http://learnopengl-cn.readthedocs.org/ "译者注实际上把着色器代码保存在文件中适合学习OpenGL的时候实际开发中最好把一个着色器直接储存为多个字符串这样具有更高的灵活度。"
[译注1]: http://learnopengl-cn.readthedocs.org/zh/latest/01%20Getting%20started/05%20Shaders/#_5 "译者注实际上把着色器代码保存在文件中适合学习OpenGL的时候实际开发中最好把一个着色器直接储存为多个字符串这样具有更高的灵活度。"