docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertNormalMap

    ConvertNormalMap(OccurrenceList, uint, int, bool, bool, bool, bool, bool, int, int)

    Convert an existing normal map between Object-space and Tangent-space

    Declaration
    public uint ConvertNormalMap(OccurrenceList partOccurrences, uint normalMap, int uvChannel = 0, bool sourceIsObjectSpace = true, bool destinationIsObjectSpace = false, bool sourceIsRightHanded = true, bool destinationIsRightHanded = true, bool replaceMap = true, int resolution = -1, int padding = 1)
    Parameters
    Type Name Description
    OccurrenceList partOccurrences

    Occurrences of components using the given map

    uint normalMap

    Source normal map to convert

    int uvChannel

    UV channel used on the given map

    bool sourceIsObjectSpace

    If True, consider the given normalMap in Object-space representation, else Tangent-space

    bool destinationIsObjectSpace

    If True, convert the given normalMap to Object-space representation, else Tangent-space

    bool sourceIsRightHanded

    Considers source normal map as part of a right-handed coordinates system

    bool destinationIsRightHanded

    Generate destination normal map as part of a right-handed coordinates system

    bool replaceMap

    If true, the given normalMap will be replaced by the converted one

    int resolution

    New map resolution (if replaceMap=false), if resolution=-1, the input resolution will be used

    int padding

    Number of pixels to add for padding. A negative value means that the texture will be filled, and the padding for uv island is the absolute value

    Returns
    Type Description
    uint
    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)