# AlphaMode

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/AlphaMode.kt+class:androidx.xr.scenecore.AlphaMode) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class AlphaMode
```

<br />

*** ** * ** ***

Defines the constants for a `https://developer.android.com/reference/androidx/xr/scenecore/Material`'s alpha mode, which corresponds to the [glTF specification](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html).

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode#BLEND()` The material is alpha-blended with the background. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode#MASK()` The material is opaque where alpha is greater than or equal to cutoff, otherwise it is discarded. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode#OPAQUE()` The material is fully opaque and the alpha channel is ignored. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/AlphaMode#toString()()` |

## Public fields

### BLEND

```
public static final @NonNull AlphaMode BLEND
```

The material is alpha-blended with the background. Corresponds to glTF's [BLEND alpha mode](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material-alphamode).

### MASK

```
public static final @NonNull AlphaMode MASK
```

The material is opaque where alpha is greater than or equal to cutoff, otherwise it is discarded. Corresponds to glTF's [MASK alpha mode](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material-alphamode).

### OPAQUE

```
public static final @NonNull AlphaMode OPAQUE
```

The material is fully opaque and the alpha channel is ignored. Corresponds to glTF's [OPAQUE alpha mode](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material-alphamode).

## Public methods

### toString

```
public @NonNull String toString()
```