---
title: "revealShadow"
description: "The shadow on the surface a peel reveals, just inside the crease."
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#L1413"
---

# revealShadow

The shadow on the surface a peel reveals, just inside the crease.

```ts
revealShadow(frame: GatherFrame, opts: {amount: ArgSpec; shadow: ArgSpec}): PeelShade
```

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

`amount` is the same peel amount the frame uses. `shadow` (0–1) is the shadow's strength.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `frame` | `GatherFrame` |  |
| `opts` | `{amount: ArgSpec; shadow: ArgSpec}` |  |

## Example

```ts
revealShadow(peel, {amount: p('amount'), shadow: p('shadow')})
```

## See also

- [`peelFrame`](/docs/primitives/effects-blurs/peelframe) — The geometry of a page curling up from one corner: where the curl reads the child from, how far it has turned, and how far each pixel is from the crease.
- [`peelCompose`](/docs/primitives/effects-blurs/peelcompose) — A finished page peel: the cast shadows, the flat page and the lit curl, layered back to front.
- [`overhangShadow`](/docs/primitives/effects-blurs/overhangshadow) — The shadow a lifted curl casts on the flat page just past the crease.

## Used by

[PagePeel](/docs/components/pagepeel)