Class Culling | Project Tiny Rendering | 0.28.0-preview.40
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(float4x4, AABB, out WorldBounds)

    Declaration
    public static void AxisAlignedToWorldBounds(in float4x4 tx, in AABB aaBounds, out WorldBounds wBounds)
    Parameters
    Type Name Description
    Unity.Mathematics.float4x4 tx
    AABB aaBounds
    WorldBounds wBounds

    Cull(WorldBoundingSphere, float4)

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

    Cull(WorldBoundingSphere, Frustum)

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

    Cull(WorldBounds, Frustum)

    Declaration
    public static Culling.CullingResult Cull(in WorldBounds bounds, in 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
    Unity.Mathematics.float3 bbMin
    Unity.Mathematics.float3 bbMax
    WorldBounds wb

    IsCulled(WorldBounds, Frustum)

    Declaration
    public static bool IsCulled(in WorldBounds bounds, in 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
    Unity.Mathematics.float4 sphere1
    Unity.Mathematics.float4 sphere2

    PlaneFromTri(float3, float3, float3)

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

    PointInBounds(WorldBounds, float3)

    Declaration
    public static bool PointInBounds(in WorldBounds bounds, float3 p)
    Parameters
    Type Name Description
    WorldBounds bounds
    Unity.Mathematics.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
    Unity.Mathematics.float3 cMin
    Unity.Mathematics.float3 cMax
    Int32 mask
    Returns
    Type Description
    Unity.Mathematics.float3

    SphereInSphere(float4, float4)

    Declaration
    public static int SphereInSphere(float4 sphere1, float4 sphere2)
    Parameters
    Type Name Description
    Unity.Mathematics.float4 sphere1
    Unity.Mathematics.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
    Unity.Mathematics.float4x4 tx
    WorldBounds b

    WorldBoundsToAxisAligned(WorldBounds, out AABB)

    Declaration
    public static void WorldBoundsToAxisAligned(in 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