Skip to content

Commit 57a9628

Browse files
alicialicsgreggman
authored andcommitted
fix glsl program syntax error
1 parent 23f9872 commit 57a9628

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

webgl/lessons/ja/webgl-shaders-and-glsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ varyingを利用するには、対(つい)になるvaryingを
315315

316316
void main() {
317317
+ // 「クリップ空間座標の値」(-1 ~ +1) から「色空間座標の値」(0 ~ 1)へ変換する。
318-
+ vec4 color = v_positionWithOffset * 0.5 + 0.5
318+
+ vec4 color = v_positionWithOffset * 0.5 + 0.5;
319319
+ gl_FragColor = color;
320320
}
321321

webgl/lessons/ko/webgl-shaders-and-glsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ WebGL이 픽셀을 그릴 때 이 값들 사이를 보간하고 프래그먼트
281281

282282
void main() {
283283
+ // 클립 공간에서 (-1 <-> +1) color space로 (0 -> 1) 변환
284-
+ vec4 color = v_positionWithOffset * 0.5 + 0.5
284+
+ vec4 color = v_positionWithOffset * 0.5 + 0.5;
285285
+ gl_FragColor = color;
286286
}
287287

webgl/lessons/ru/webgl-shaders-and-glsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ varying-переменную во фрагментный шейдер.
281281

282282
void main() {
283283
+ // конвертация из координат пространства отсечения (-1 <-> +1) в цвет (0 -> 1).
284-
+ vec4 color = v_positionWithOffset * 0.5 + 0.5
284+
+ vec4 color = v_positionWithOffset * 0.5 + 0.5;
285285
+ gl_FragColor = color;
286286
}
287287

webgl/lessons/webgl-shaders-and-glsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Fragment shader
277277

278278
void main() {
279279
+ // convert from clip space (-1 <-> +1) to color space (0 -> 1).
280-
+ vec4 color = v_positionWithOffset * 0.5 + 0.5
280+
+ vec4 color = v_positionWithOffset * 0.5 + 0.5;
281281
+ gl_FragColor = color;
282282
}
283283

webgl/lessons/zh_cn/webgl-shaders-and-glsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ TOC: WebGL 着色器和GLSL
262262

263263
void main() {
264264
+ // 从裁剪空间 (-1 <-> +1) 转换到颜色空间 (0 -> 1).
265-
+ vec4 color = v_positionWithOffset * 0.5 + 0.5
265+
+ vec4 color = v_positionWithOffset * 0.5 + 0.5;
266266
+ gl_FragColor = color;
267267
}
268268

0 commit comments

Comments
 (0)