docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PerspectiveFov

    PerspectiveFov(float, float, float, float)

    Returns a float4x4 perspective projection matrix based on field of view.

    Declaration
    public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far)
    Parameters
    Type Name Description
    float verticalFov

    Vertical Field of view in radians.

    float aspect

    X:Y aspect ratio.

    float near

    Distance to near plane. Must be greater than zero.

    float far

    Distance to far plane. Must be greater than zero.

    Returns
    Type Description
    float4x4

    The float4x4 perspective projection matrix.

    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)