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

    Class Culling

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

    Fields

    EdgeTable

    Declaration
    public static readonly int[] EdgeTable
    Field Value
    Type Description
    Int32[]

    Methods

    AxisAlignedToWorldBounds(ref float4x4, ref AABB, out WorldBounds)

    Declaration
    public static void AxisAlignedToWorldBounds(ref float4x4 tx, ref AABB aaBounds, out WorldBounds wBounds)
    Parameters
    Type Name Description
    float4x4 tx
    AABB aaBounds
    WorldBounds wBounds

    Cull(ref WorldBoundingSphere, float4)

    Declaration
    public static Culling.CullingResult Cull(ref WorldBoundingSphere bounds, float4 plane)
    Parameters
    Type Name Description
    WorldBoundingSphere bounds
    float4 plane
    Returns
    Type Description
    Culling.CullingResult

    Cull(ref WorldBoundingSphere, ref Frustum)

    Declaration
    public static Culling.CullingResult Cull(ref WorldBoundingSphere bounds, ref Frustum f)
    Parameters
    Type Name Description
    WorldBoundingSphere bounds
    Frustum f
    Returns
    Type Description
    Culling.CullingResult

    Cull(ref WorldBounds, ref Frustum)

    Declaration
    public static Culling.CullingResult Cull(ref WorldBounds bounds, ref Frustum f)
    Parameters
    Type Name Description
    WorldBounds bounds
    Frustum f
    Returns
    Type Description
    Culling.CullingResult

    GrowBounds(ref float3, ref float3, WorldBounds)

    Declaration
    public static void GrowBounds(ref float3 bbMin, ref float3 bbMax, in WorldBounds wb)
    Parameters
    Type Name Description
    float3 bbMin
    float3 bbMax
    WorldBounds wb

    IsCulled(ref WorldBounds, ref Frustum)

    Declaration
    public static bool IsCulled(ref WorldBounds bounds, ref Frustum f)
    Parameters
    Type Name Description
    WorldBounds bounds
    Frustum f
    Returns
    Type Description
    Boolean

    MergeBounds(ref WorldBounds, ref WorldBounds)

    Declaration
    public static void MergeBounds(ref WorldBounds bounds1, ref WorldBounds bounds2)
    Parameters
    Type Name Description
    WorldBounds bounds1
    WorldBounds bounds2

    MergeSpheres(ref float4, float4)

    Declaration
    public static void MergeSpheres(ref float4 sphere1, float4 sphere2)
    Parameters
    Type Name Description
    float4 sphere1
    float4 sphere2

    PlaneFromTri(float3, float3, float3)

    Declaration
    public static float4 PlaneFromTri(float3 p0, float3 p1, float3 p2)
    Parameters
    Type Name Description
    float3 p0
    float3 p1
    float3 p2
    Returns
    Type Description
    float4

    PointInBounds(ref WorldBounds, float3)

    Declaration
    public static bool PointInBounds(ref WorldBounds bounds, float3 p)
    Parameters
    Type Name Description
    WorldBounds bounds
    float3 p
    Returns
    Type Description
    Boolean

    SelectCoordsMinMax(float3, float3, Int32)

    Declaration
    public static float3 SelectCoordsMinMax(float3 cMin, float3 cMax, int mask)
    Parameters
    Type Name Description
    float3 cMin
    float3 cMax
    Int32 mask
    Returns
    Type Description
    float3

    SphereInSphere(float4, float4)

    Declaration
    public static int SphereInSphere(float4 sphere1, float4 sphere2)
    Parameters
    Type Name Description
    float4 sphere1
    float4 sphere2
    Returns
    Type Description
    Int32

    TransformWorldBounds(float4x4, ref WorldBounds)

    Declaration
    public static void TransformWorldBounds(in float4x4 tx, ref WorldBounds b)
    Parameters
    Type Name Description
    float4x4 tx
    WorldBounds b

    WorldBoundsToAxisAligned(ref WorldBounds, out AABB)

    Declaration
    public static void WorldBoundsToAxisAligned(ref WorldBounds wBounds, out AABB aab)
    Parameters
    Type Name Description
    WorldBounds wBounds
    AABB aab
    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