docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Introduction to passthrough dimming

    Understand how Android XR dims passthrough by default, and how device type and runtime support affect dimming in your app.

    Passthrough dimming controls how much light from the physical environment the device blocks, which changes how virtual content blends with the user's surroundings. Dimming behavior can vary by runtime support, passthrough state, environment blend mode, and device type. Your app can read and request dimming levels through the scripting API. Follow best practices to make dimming comfortable and readable for users.

    To request a dimming level from your app, refer to Control passthrough dimming.

    Dimming requirements

    Your app can read and request dimming levels when both of the following conditions are true:

    • The Android XR: Camera (Passthrough) feature is enabled. For instructions, refer to Configure project settings.
    • The device runtime supports the XR_ANDROID_global_passthrough_dimming OpenXR extension.

    If you disable the Android XR: Camera (Passthrough) feature, the Android XR package doesn't enable XR_ANDROID_global_passthrough_dimming, so your app can't request dimming levels.

    Default dimming and blend modes

    When you enable the Android XR: Camera (Passthrough) feature, the Android XR package switches the environment blend mode automatically based on the passthrough state:

    • When you enable the AR Camera Manager component, the package uses Alpha blend mode.
    • When you disable the AR Camera Manager component, the package uses Opaque blend mode.

    This behavior requires both the Android XR: Camera (Passthrough) feature and the AR Camera Manager component. The Android XR package doesn't use the Additive blend mode.

    Until your app requests a dimming level, the runtime applies a default dimming level, which can vary by device runtime and blend mode. Default runtime behavior for dimming is 100% in Opaque blend mode and 0% in Alpha or Additive. After your app requests a dimming level, the runtime uses that level instead of the default.

    System settings or hardware controls can override the default dimming behavior. After such an override, the default dimming behavior no longer applies until your app restarts. The system can also reduce or override dimming for safety-related reasons, such as when the user approaches a boundary. To respond when the dimming level changes outside your own requests, refer to Respond to dimming changes.

    Dimming values are perceptual and don't correspond to a linear physical change on every device.

    Dimming device differences

    Dimming behavior can differ between optical see-through (OST) and video see-through (VST) devices, and depends on the environment blend mode in use. On both device types, dimming is only available if the device runtime supports the XR_ANDROID_global_passthrough_dimming extension.

    On OST devices, blend mode behavior can vary between devices and runtimes. For example, XREAL AURA devices can apply dimming differently depending on the environment blend mode. Because the Android XR package sets the blend mode automatically as the passthrough state changes, dimming results on OST devices depend on the following factors:

    • The passthrough state, which you control by enabling or disabling the AR Camera Manager component.
    • The resulting environment blend mode that the Android XR package sets.
    • The dimming level that your app requests.

    VST devices require Alpha blend mode.

    Galaxy XR devices don't enable the XR_ANDROID_global_passthrough_dimming extension, so dimming isn't available on those devices.

    Dimming best practices

    Dimming works to improve how virtual content blends with the physical environment. Use these best practices to make dimming feel comfortable, readable, and appropriate for the user's surroundings:

    • Check supported runtime dimming levels before relying on dimming.
    • Use the lowest dimming level that achieves the desired visual result.
    • Avoid abrupt dimming changes. Adjust dimming gradually.
    • Use dimming only when it improves readability or blending.
    • Avoid strong dimming when users need clear awareness of their surroundings.
    • Don't rely on dimming alone to communicate important state changes.
    • Remember your preferred dimming level, and request it again when needed.
    • Test dimming on target devices and in different lighting conditions.

    Additional resources

    • Control passthrough dimming
    • Set up passthrough
    • Camera components (AR Foundation)
    In This Article
    Back to top
    Copyright © 2026 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)