---
title: "refractedTaps"
description: "The child seen through a flute frame, with edge handling and a color split when `aberration` is above 0."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.blurs"
categorySlug: "effects-blurs"
categoryTitle: "Blurs, glows & screens"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/blurs.ts#L1260"
---

# refractedTaps

The child seen through a flute frame, with edge handling and a color split when `aberration` is above 0.

```ts
refractedTaps(
  frame: GatherFrame,
  opts: {aberration: PropRef; edges: PropRef},
): SampleStage
```

Import `effects` from `shaders/std` and use `effects.blurs.refractedTaps`.

`edges` is a prop with `transform: transformEdges` and `compileTime: true`. `aberration` is the same prop the frame uses; give it a recompile rule that fires when it crosses 0. Returns straight alpha, so close the stack with `{resultAlpha: 'straight'}`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `frame` | `GatherFrame` |  |
| `opts` | `{aberration: PropRef; edges: PropRef}` |  |

## Example

```ts
effect: gatherStack(refractedTaps(flute, {aberration: p('aberration'), edges: p('edges')}), [fluteHighlight(flute, {lightAngle: 30, highlight: 0.2, softness: 0.3, color: p('highlightColor')})], {resultAlpha: 'straight'})
```

## See also

- [`fluteFrame`](/docs/primitives/effects-blurs/fluteframe) — The geometry of fluted (reeded) glass over the child: where each pixel reads through the glass, how far its colors split, and the slope of the flute at that point.
- [`fluteHighlight`](/docs/primitives/effects-blurs/flutehighlight) — A specular highlight running along each flute, added on top of the child's color.
- [`crispTap`](/docs/primitives/effects-blurs/crisptap) — One clean sample of the child at a frame's warped coordinate.

## Used by

[FlutedGlass](/docs/components/flutedglass)