---
title: "mirrorAcrossRow"
description: "The coordinate mirrored across a horizontal line, for reading a reflection below it."
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#L1545"
---

# mirrorAcrossRow

The coordinate mirrored across a horizontal line, for reading a reflection below it.

```ts
mirrorAcrossRow(line: PropRef): (params: GpuFragmentParams) => Expr
```

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

`line` is a prop, 0–1 down the canvas in uv. Returns a function of the fragment params that gives the mirrored uv. Above the line the coordinate is still mirrored; `planarReflection` only shows the reflection below it.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `line` | `PropRef` |  |

## Example

```ts
const reflectedUV = mirrorAcrossRow(p('height'))
```

## See also

- [`planarReflection`](/docs/primitives/effects-blurs/planarreflection) — A mirror floor: the child as it is above a line, and its reflection fading out below it.
- [`depthRampBlur`](/docs/primitives/effects-blurs/depthrampblur) — The blur half of a mirror floor: blurs the child more the further a row sits below the line.

## Used by

[ReflectivePlane](/docs/components/reflectiveplane)