# depthEffect

## Functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/xr/glimmer/depthEffect.modifier#(androidx.compose.ui.Modifier).depthEffect(androidx.xr.glimmer.DepthEffect,androidx.compose.ui.graphics.Shape)(depthEffect: https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffect?, shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)` Renders shadows for the provided `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/package-summary#(androidx.compose.ui.Modifier).depthEffect(androidx.xr.glimmer.DepthEffect,androidx.compose.ui.graphics.Shape)`. |

## Functions

### Modifier.depthEffect

Artifact: [androidx.xr.glimmer:glimmer](https://developer.android.com/jetpack/androidx/releases/xr-glimmer) [View Source](https://cs.android.com/search?q=file:androidx/xr/glimmer/DepthEffect.kt+function:depthEffect) Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
fun Modifier.depthEffect(depthEffect: DepthEffect?, shape: Shape): Modifier
```

Renders shadows for the provided `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/package-summary#(androidx.compose.ui.Modifier).depthEffect(androidx.xr.glimmer.DepthEffect,androidx.compose.ui.graphics.Shape)`.

| Parameters |
|---|---|
| `depthEffect: https://developer.android.com/reference/kotlin/androidx/xr/glimmer/DepthEffect?` | Depth effect to render shadows for. If `null`, no shadows will be rendered. |
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` of the shadows |