示例#1
0
文件: Camera.cs 项目: shff/gk3tools
        public Camera(Math.Matrix projection)
        {
            _orientation = new Gk3Main.Math.Quaternion();
            _position    = new Gk3Main.Math.Vector3();

            _projection = projection;
        }
示例#2
0
文件: Camera.cs 项目: shff/gk3tools
        public Camera(float fov, float aspect, float near, float far, bool zNegOne)
        {
            _orientation = new Gk3Main.Math.Quaternion();
            _position    = new Gk3Main.Math.Vector3();

            _projection = Math.Matrix.PerspectiveLH(fov, aspect, near, far, zNegOne);

            _near = near;
            _far  = far;
        }