docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BakeAOMap

    BakeAOMap(uint, int, bool, ColorAlpha?)

    Ray tracing based ambient occlusion computation

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public ImageList BakeAOMap(uint sessionId, int samples = 32, bool bentNormals = false, ColorAlpha? defaultColor = null)
    Parameters
    Type Name Description
    uint sessionId

    Baking session Id

    int samples

    Number of rays cast for occlusion detection (must be a power of two in the range [8, 4096])

    bool bentNormals

    If true, bent normals are baked in addition to AO

    ColorAlpha? defaultColor

    Color used for filling unbaked texels

    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)