Skip to content

Commit 8684239

Browse files
committed
fix math error
1 parent 93f238a commit 8684239

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

webgl/lessons/ko/webgl-3d-orthographic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ culling을 켰던것과 유사하게 이 기능을 켤 수 있습니다.
623623
var right = gl.canvas.clientWidth;
624624
var bottom = gl.canvas.clientHeight;
625625
var top = 0;
626-
var near = 400;
627-
var far = -400;
626+
var near = 200;
627+
var far = -200;
628628
m4.orthographic(left, right, bottom, top, near, far);
629629
630630
다음 글에서는 [원근감을 갖도록 하는 방법](webgl-3d-perspective.html)에 대해 이야기하겠습니다.

webgl/lessons/webgl-3d-orthographic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,8 @@ our original projection function we'd call it with
651651
var right = gl.canvas.clientWidth;
652652
var bottom = gl.canvas.clientHeight;
653653
var top = 0;
654-
var near = 400;
655-
var far = -400;
654+
var near = 200;
655+
var far = -200;
656656
m4.orthographic(left, right, bottom, top, near, far);
657657
658658
In the next post I'll go over [how to make it have perspective](webgl-3d-perspective.html).

webgl/lessons/zh_cn/webgl-3d-orthographic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ gl.enable(gl.DEPTH_TEST)
569569
var right = gl.canvas.clientWidth;
570570
var bottom = gl.canvas.clientHeight;
571571
var top = 0;
572-
var near = 400;
573-
var far = -400;
572+
var near = 200;
573+
var far = -200;
574574
m4.orthographic(left, right, bottom, top, near, far);
575575
576576
下一篇将讲述[如何实现透视投影](webgl-3d-perspective.html)。

0 commit comments

Comments
 (0)