将任意矩阵加载到当前投影矩阵。
此函数会重写当前摄像机的投影参数,因此,绝大多数情况下,您希望 使用 GL.PushMatrix 和 GL.PopMatrix 保存和恢复投影矩阵。
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
public Matrix4x4 projMtrx = Matrix4x4.identity;
void OnPostRender() {
GL.PushMatrix();
GL.LoadProjectionMatrix(projMtrx);
GL.PopMatrix();
}
}
另请参阅:GL.LoadOrtho。