Skip to content

Commit 64277e7

Browse files
yunsiigreggman
authored andcommitted
fix: typo
1 parent 557a75e commit 64277e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webgl/lessons/zh_cn/webgl-fundamentals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ WebGL只关注两件事:剪辑空间坐标(Clip space coordinates)和颜色。
109109

110110
<canvas id="c"></canvas>
111111

112-
然后再Javascript中查找到该元素
112+
然后在Javascript中查找到该元素
113113

114114
var canvas = document.querySelector("#c");
115115

@@ -152,7 +152,7 @@ WebGL只关注两件事:剪辑空间坐标(Clip space coordinates)和颜色。
152152
}
153153
`;
154154

155-
实际上,大多数3D引擎在运行过程中用不同形式的字符串模板、连接等等产生GLSL着色器。然而,本章实例中没有那么复杂,不需要再运行中实时生成GLSL
155+
实际上,大多数3D引擎在运行过程中用不同形式的字符串模板、连接等等产生GLSL着色器。然而,本章实例中没有那么复杂,不需要在运行中实时生成GLSL
156156

157157
> 注意: `#version 300 es` **必须位于着色器代码的第一行**。 它前面不允许有任何的注释或空行! `#version 300 es` 的意思是你想要使用WebGL2的着色器语法:GLSL ES 3.00。
158158
> 如果你没有把它放到第一行,将默认设置为GLSL ES 1.00,即WebGL1.0的语法。相比WebGL2的语法,会少很多特性。

0 commit comments

Comments
 (0)