docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PerspectiveMatrix

    PerspectiveMatrix(double, double, double, double)

    Create a perspective matrix from a fovX, an aspect ratio, a near, and a far clipping distance

    Declaration
    public Matrix4 PerspectiveMatrix(double fovX, double aspectRatio, double nearClipDistance, double farClipDistance)
    Parameters
    Type Name Description
    double fovX

    The field of view on the x axis

    double aspectRatio

    The aspect ratio foxX/fovY

    double nearClipDistance

    The near clipping distance

    double farClipDistance

    The far clipping distance

    Returns
    Type Description
    Matrix4
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)