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

    Class MeshHelper

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

    Methods

    AddBoxFace(ref BlobBuilderArray<LitVertex>, ref BlobBuilderArray<UInt16>, Int32, Int32, float3, ref Int32, ref Int32, Single)

    Declaration
    public static void AddBoxFace(ref BlobBuilderArray<LitVertex> vertices, ref BlobBuilderArray<ushort> indices, int side, int sign, float3 size, ref int destI, ref int destV, float uvscale)
    Parameters
    Type Name Description
    BlobBuilderArray<LitVertex> vertices
    BlobBuilderArray<UInt16> indices
    Int32 side
    Int32 sign
    float3 size
    Int32 destI
    Int32 destV
    Single uvscale

    ComputeNormals(ref BlobBuilderArray<LitVertex>, ref BlobBuilderArray<UInt16>)

    Declaration
    public static void ComputeNormals(ref BlobBuilderArray<LitVertex> vertices, ref BlobBuilderArray<ushort> indices)
    Parameters
    Type Name Description
    BlobBuilderArray<LitVertex> vertices
    BlobBuilderArray<UInt16> indices

    ComputeTangentAndBinormal(ref BlobBuilderArray<LitVertex>, ref BlobBuilderArray<UInt16>)

    Declaration
    public static void ComputeTangentAndBinormal(ref BlobBuilderArray<LitVertex> vertices, ref BlobBuilderArray<ushort> indices)
    Parameters
    Type Name Description
    BlobBuilderArray<LitVertex> vertices
    BlobBuilderArray<UInt16> indices

    CreateBoxMesh(float3)

    Declaration
    public static BlobAssetReference<LitMeshData> CreateBoxMesh(float3 size)
    Parameters
    Type Name Description
    float3 size
    Returns
    Type Description
    BlobAssetReference<LitMeshData>

    CreateDonutMesh(Single, Int32, Single, Int32)

    Declaration
    public static BlobAssetReference<LitMeshData> CreateDonutMesh(float innerR, int innerN, float outerR, int outerN)
    Parameters
    Type Name Description
    Single innerR
    Int32 innerN
    Single outerR
    Int32 outerN
    Returns
    Type Description
    BlobAssetReference<LitMeshData>

    CreatePlane(float3, float3, float3)

    Declaration
    public static BlobAssetReference<SimpleMeshData> CreatePlane(float3 org, float3 du, float3 dv)
    Parameters
    Type Name Description
    float3 org
    float3 du
    float3 dv
    Returns
    Type Description
    BlobAssetReference<SimpleMeshData>

    MakeDonut(ref BlobBuilderArray<LitVertex>, ref BlobBuilderArray<UInt16>, Single, Int32, Single, Int32)

    Declaration
    public static void MakeDonut(ref BlobBuilderArray<LitVertex> data, ref BlobBuilderArray<ushort> indices, float innerR, int innerN, float outerR, int outerN)
    Parameters
    Type Name Description
    BlobBuilderArray<LitVertex> data
    BlobBuilderArray<UInt16> indices
    Single innerR
    Int32 innerN
    Single outerR
    Int32 outerN

    SetConstant<T>(ref BlobBuilderArray<T>, T)

    Declaration
    public static void SetConstant<T>(ref BlobBuilderArray<T> values, T value)
        where T : struct
    Parameters
    Type Name Description
    BlobBuilderArray<T> values
    T value
    Type Parameters
    Name Description
    T
    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