docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateNormals

    CreateNormals(OccurrenceList, double, bool, bool)

    Create normal attributes on tessellations

    Declaration
    public void CreateNormals(OccurrenceList occurrences, double sharpEdge = 45, bool overriding = true, bool useAreaWeighting = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of components to create attributes

    double sharpEdge

    Edges with an angle between their polygons greater than sharpEdge will be considered sharp. If negative, smooth normals only.

    bool overriding

    If true, override existing normals, else only create normals on meshes without normals

    bool useAreaWeighting

    If true, normal computation will be weighted using polygon areas

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)