---
title: "featherMask"
description: "A round mask that is solid inside a radius and fades out at its edge."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "light"
categorySlug: "light"
categoryTitle: "Light"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/light.ts#L386"
---

# featherMask

A round mask that is solid inside a radius and fades out at its edge.

```ts
featherMask(slots: {radius: ArgSpec; feather: ArgSpec}): LightPart
```

Import `light` from `shaders/std` and use `light.featherMask`.

Returns 1 inside, fading to 0 at `radius` (in the frame's distance unit). `feather` is the fraction of the radius spent fading: 0 is a hard edge, 1 fades all the way from the center. Multiply it with a pattern in `modulate` to give a light an outer edge.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{radius: ArgSpec; feather: ArgSpec}` |  |

## Example

```ts
modulate(rayLobes({count: 12, spin: -1, sharpness: 4}), featherMask({radius: p('radius'), feather: p('feather')}))
```

## See also

- [`glowPoint`](/docs/primitives/light/glowpoint) — A soft glow at the center of a radial frame with no hard edge.
- [`modulate`](/docs/primitives/light/modulate) — Multiply light parts drawn in the same frame, such as a mask over a pattern.

## Used by

[SunBurst](/docs/components/sunburst)