docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FilterAO

    FilterAO(ImageList, ImageList, double, double, double, int, bool, double)

    Filter an AO map using ATrous method

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public ImageList FilterAO(ImageList aoMaps, ImageList normalMaps, double sigmaPos = 2, double sigmaValue = 0.2, double sigmaNormal = 0.2, int levelCount = 4, bool filterLowValues = true, double lowValueThreshold = 0.01)
    Parameters
    Type Name Description
    ImageList aoMaps

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

    ImageList normalMaps

    Input Normal Maps (preferable to use World space normal maps, but Object space normal maps can be used too)

    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
    ImageList
    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)