Matrix4x4.Ortho 正交

static function Ortho (left : float, right : float, bottom : float, top : float, zNear : float, zFar : float) : Matrix4x4

Description描述

Creates an orthogonal projection matrix.

创建一个正交投影矩阵。

The returned matrix is such that views left to right, bottom to top area, with zNear and zFar depth clipping planes.

返回的矩阵是视口left到right,bottom到top的区域,带有zNear和zFar深度裁剪平面。

If you want to use orthogonal for pixel-correct rendering, it is better to use GL.LoadPixelMatrix, as that would apply proper half-texel offsets for Direct3D renderer.

如果你想使用正交用来像素修正渲染,最好使用GL.LoadPixelMatrix,因为它会为Direct3D渲染器运用适当的half-texel偏移。

参见: GL.LoadPixelMatrix, GL.LoadProjectionMatrix, GUI.matrix.

Page last updated: 2011-2-26