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

    Class ProjectionHelper

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

    Methods

    FrustumFromAABB(AABB, out Frustum)

    Declaration
    public static void FrustumFromAABB(AABB b, out Frustum dest)
    Parameters
    Type Name Description
    AABB b
    Frustum dest

    FrustumFromCube(float3, Single, out Frustum)

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

    FrustumFromMatrices(float4x4, float4x4, out Frustum)

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

    FrustumVertexOrtho(Int32, Single, Single, Single)

    Declaration
    public static float3 FrustumVertexOrtho(int idx, float size, float near, float far)
    Parameters
    Type Name Description
    Int32 idx
    Single size
    Single near
    Single far
    Returns
    Type Description
    float3

    FrustumVertexPerspective(Int32, Single, Single, Single, Single)

    Declaration
    public static float3 FrustumVertexPerspective(int idx, float w, float h, float near, float far)
    Parameters
    Type Name Description
    Int32 idx
    Single w
    Single h
    Single near
    Single far
    Returns
    Type Description
    float3

    InitPlane(float3, float3)

    Declaration
    public static float4 InitPlane(float3 pos, float3 normal)
    Parameters
    Type Name Description
    float3 pos
    float3 normal
    Returns
    Type Description
    float4

    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

    ProjectionMatrixUnitOrthoOffset(float2, Single)

    Declaration
    public static float4x4 ProjectionMatrixUnitOrthoOffset(float2 offset, float invsize)
    Parameters
    Type Name Description
    float2 offset
    Single invsize
    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