Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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`.

View as Markdown
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

NameTypeDescription
read(uv: Node<'vec2'>) => Node<'vec4'>
uvNode<'vec2'>
radiusNode<'vec2'>
tapsnumber
turn?Node<'float'>

Also exported from @dioramajs/effects/kit.

Defined in packages/effects/src/kit.ts.