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.

最后修改:2011年2月26日 Saturday 16:12

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。