mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-22 20:25:28 +08:00
Add styleguide
This commit is contained in:
@@ -213,7 +213,7 @@ while(!glfwWindowShouldClose(window))
|
|||||||
|
|
||||||
新代码和上一节的很相似。这次,我们在每个循环绘制三角形前先更新uniform值。如果你成功更新uniform了,你会看到你的三角形逐渐由绿变黑再变绿。
|
新代码和上一节的很相似。这次,我们在每个循环绘制三角形前先更新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)。
|
如果你在哪儿卡住了,[这里有源码](http://www.learnopengl.com/code_viewer.php?code=getting-started/shaders-uniform)。
|
||||||
|
|
||||||
|
46
styleguide.md
Normal file
46
styleguide.md
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# 校对指南(Styleguide)
|
||||||
|
|
||||||
|
- **对照原文**
|
||||||
|
- 使用中文的标点符号: 逗号,双引号
|
||||||
|
- 使用英文的标点符号: 括号(去讨论下剩下的,像句号之类的)
|
||||||
|
- 文本中常量/代码用``加注为代码
|
||||||
|
- 代码块不使用Tab标注,改为用```式标注
|
||||||
|
- 每一节标题使用`#` (h1)标题(到后面会有几节有很多小节的,太小的标题不明显)
|
||||||
|
- 根据原文标题大小逐渐递增标题
|
||||||
|
- 注意"#"后标题前要空格
|
||||||
|
- 专有名词在对照表里找翻译,需要用括号标注原文
|
||||||
|
- 原文单词按照标题大写规则大写首字母
|
||||||
|
- 尽量大部分都翻译掉
|
||||||
|
- 在Markdown文件中如需插入图片或者代码,请与正文空一行
|
||||||
|
|
||||||
|
例:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
[text]
|
||||||
|
|
||||||
|
[img]
|
||||||
|
|
||||||
|
[text]
|
||||||
|
```
|
||||||
|
|
||||||
|
- 翻译注释
|
||||||
|
- 原文中的斜体一律用加粗表示(中文并不存在斜体)
|
||||||
|
- 每一节前面加上
|
||||||
|
|
||||||
|
```
|
||||||
|
原文 | [英文标题](原文地址)
|
||||||
|
---|---
|
||||||
|
作者 | 作者
|
||||||
|
翻译 | 翻译
|
||||||
|
校对 | 校对
|
||||||
|
```
|
||||||
|
|
||||||
|
- 公式用[http://latex2png.com/](http://latex2png.com/)转换,文本中的公式Resolution为150,单独的公式为200
|
||||||
|
- 视频用Video标签添加
|
||||||
|
|
||||||
|
```html
|
||||||
|
<video src="url" controls="controls">
|
||||||
|
</video>
|
||||||
|
```
|
||||||
|
|
||||||
|
**如果有不全的继续加**
|
Reference in New Issue
Block a user