---
title: "radialMask"
description: "An amount that is 0 near a center and grows to 1 with distance, for an effect's strength."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "mask"
categorySlug: "mask"
categoryTitle: "Masks"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/mask.ts#L124"
---

# radialMask

An amount that is 0 near a center and grows to 1 with distance, for an effect's strength.

```ts
radialMask(slots: {center: PropRef; radius: PropRef; falloff: PropRef}): Scalar
```

Import `mask` from `shaders/std` and use `mask.radialMask`.

Coverage stays 0 inside `radius` and reaches 1 at `radius + falloff`, measured in uv with the aspect corrected so the ring is round. Every slot takes a prop: `center` is a position prop, `radius` and `falloff` are numbers in uv. Chain `.times(p('intensity'))` to scale it.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{center: PropRef; radius: PropRef; falloff: PropRef}` |  |

## Example

```ts
effect: tintToward(p('color'), {amount: radialMask({center: p('center'), radius: p('radius'), falloff: p('falloff')}).times(p('intensity'))})
```

> **Tip.** Also exported at the top level of `shaders/std`, so `radialMask` works without the `mask.` prefix.

## See also

- [`softDisc`](/docs/primitives/mask/softdisc) — A filled disc with a soft, shaped edge.

## Used by

[Vignette](/docs/components/vignette)