Skip to content

Commit

Permalink
fix math error
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 8, 2025
1 parent 93f238a commit 8684239
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webgl/lessons/ko/webgl-3d-orthographic.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ culling을 켰던것과 유사하게 이 기능을 켤 수 있습니다.
var right = gl.canvas.clientWidth;
var bottom = gl.canvas.clientHeight;
var top = 0;
var near = 400;
var far = -400;
var near = 200;
var far = -200;
m4.orthographic(left, right, bottom, top, near, far);
다음 글에서는 [원근감을 갖도록 하는 방법](webgl-3d-perspective.html)에 대해 이야기하겠습니다.
Expand Down
4 changes: 2 additions & 2 deletions webgl/lessons/webgl-3d-orthographic.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ our original projection function we'd call it with
var right = gl.canvas.clientWidth;
var bottom = gl.canvas.clientHeight;
var top = 0;
var near = 400;
var far = -400;
var near = 200;
var far = -200;
m4.orthographic(left, right, bottom, top, near, far);
In the next post I'll go over [how to make it have perspective](webgl-3d-perspective.html).
Expand Down
4 changes: 2 additions & 2 deletions webgl/lessons/zh_cn/webgl-3d-orthographic.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ gl.enable(gl.DEPTH_TEST)
var right = gl.canvas.clientWidth;
var bottom = gl.canvas.clientHeight;
var top = 0;
var near = 400;
var far = -400;
var near = 200;
var far = -200;
m4.orthographic(left, right, bottom, top, near, far);
下一篇将讲述[如何实现透视投影](webgl-3d-perspective.html)。
Expand Down

0 comments on commit 8684239

Please sign in to comment.