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

*** ** * ** ***


```
class AlphaMode
```

<br />

*** ** * ** ***

Defines the constants for a `https://developer.android.com/reference/kotlin/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 companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode#BLEND()` The material is alpha-blended with the background. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode#MASK()` The material is opaque where alpha is greater than or equal to cutoff, otherwise it is discarded. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode#OPAQUE()` The material is fully opaque and the alpha channel is ignored. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/AlphaMode#toString()()` |

## Public companion properties

### BLEND

```
val BLEND: AlphaMode
```

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

```
val MASK: AlphaMode
```

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

```
val OPAQUE: AlphaMode
```

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 functions

### toString

```
open fun toString(): String
```