docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FilterAO

    FilterAO(uint, uint, double, double, double, int, bool, double)

    Filter an AO map using ATrous method

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint FilterAO(uint aoMap, uint normalMap, double sigmaPos = 10, double sigmaValue = 0.1, double sigmaNormal = 0.01, int levelCount = 4, bool filterLowValues = true, double lowValueThreshold = 0.01)
    Parameters
    Type Name Description
    uint aoMap

    Input AO Map (the alpha component must be set to 0 for unused pixels)

    uint normalMap

    Input Normal Map (preferable to use a World space normal map, but an Object space normal map can be used)

    double sigmaPos

    ATrous Sigma pos

    double sigmaValue

    ATrous Sigma value

    double sigmaNormal

    ATrous Sigma normal

    int levelCount

    Atrous #Levels

    bool filterLowValues

    Remove low values from the filtering (see: lowValuesThreshold parameter)

    double lowValueThreshold

    Threshold used if filterLowValues is enabled

    Returns
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2025 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)