コード例 #1
0
ファイル: Matrix4x4.cs プロジェクト: qipa/UnityDecompiled-2
        public static Matrix4x4 Perspective(float fov, float aspect, float zNear, float zFar)
        {
            Matrix4x4 result;

            Matrix4x4.INTERNAL_CALL_Perspective(fov, aspect, zNear, zFar, out result);
            return(result);
        }
コード例 #2
0
        /// <summary>
        ///   <para>Creates a perspective projection matrix.</para>
        /// </summary>
        /// <param name="fov"></param>
        /// <param name="aspect"></param>
        /// <param name="zNear"></param>
        /// <param name="zFar"></param>
        public static Matrix4x4 Perspective(float fov, float aspect, float zNear, float zFar)
        {
            Matrix4x4 matrix4x4;

            Matrix4x4.INTERNAL_CALL_Perspective(fov, aspect, zNear, zFar, out matrix4x4);
            return(matrix4x4);
        }