spiralBlur function
A soft blur: the mean of `taps` reads on a golden-angle spiral over the disc of `radius` (in the units of `uv`) around `uv`.
import { spiralBlur } from '@dioramajs/diorama/kit'. turn rotates the spiral; turned per pixel, the taps read as grain instead of ghost copies. One tap reads uv itself.
function spiralBlur(
read: (uv: Node<'vec2'>) => Node<'vec4'>,
uv: Node<'vec2'>,
radius: Node<'vec2'>,
taps: number,
turn?: Node<'float'>,
): Node<'vec4'>Parameters
| Name | Type | Description |
|---|---|---|
read | (uv: Node<'vec2'>) => Node<'vec4'> | |
uv | Node<'vec2'> | |
radius | Node<'vec2'> | |
taps | number | |
turn? | Node<'float'> |
Also exported from @dioramajs/effects/kit.
Defined in packages/effects/src/kit.ts.