Class ProjectionHelper | Project Tiny Rendering | 0.20.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class ProjectionHelper

    Inheritance
    Object
    ProjectionHelper
    Namespace: Unity.Tiny.Rendering
    Syntax
    public static class ProjectionHelper

    Methods

    FrustumFromCube(float3, Single, ref Frustum)

    Declaration
    public static void FrustumFromCube(float3 pos, float size, ref Frustum dest)
    Parameters
    Type Name Description
    float3 pos
    Single size
    Frustum dest

    FrustumFromMatrices(float4x4, float4x4, ref Frustum)

    Declaration
    public static void FrustumFromMatrices(float4x4 projection, float4x4 view, ref Frustum dest)
    Parameters
    Type Name Description
    float4x4 projection
    float4x4 view
    Frustum dest

    NormalizePlane(float4)

    Declaration
    public static float4 NormalizePlane(float4 p)
    Parameters
    Type Name Description
    float4 p
    Returns
    Type Description
    float4

    ProjectionMatrixOrtho(Single, Single, Single, Single)

    Declaration
    public static float4x4 ProjectionMatrixOrtho(float n, float f, float size, float aspect)
    Parameters
    Type Name Description
    Single n
    Single f
    Single size
    Single aspect
    Returns
    Type Description
    float4x4

    ProjectionMatrixPerspective(Single, Single, Single, Single)

    Declaration
    public static float4x4 ProjectionMatrixPerspective(float n, float f, float fovDeg, float aspect)
    Parameters
    Type Name Description
    Single n
    Single f
    Single fovDeg
    Single aspect
    Returns
    Type Description
    float4x4
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023