Skip to content

Dry Caustic Room

A high-key white gallery room, seen into one corner. Rippling water light plays down both walls and across the glossy floor, with soft prismatic fringes, and there is no water anywhere. Touch the pointer to the unseen surface and slow rings spread; the caustics bend around them.

WebGL20 deps1 file · 41 KB TSXreduced-motion aware

ProAttentionminimal
Preview

Props

0.6
1
2.7
1
0.6
1
Pause control
Show sample copy

The source is part of Pro

$27/month or $179 once. See Pro

No runtime dependencies
"use client";

import { useEffect, useRef, useState } from "react";
import type { CSSProperties, ReactNode } from "react";

/**
 * DryCausticRoom: a high-key white gallery room, seen into one corner. Water
 * light plays down both walls and across the glossy floor, with soft prismatic
 * fringes, and there is no water anywhere. The light falls through an opening
 * in the ceiling; whatever water it crossed is somewhere above, out of sight.
 *
 * Move the pointer and you touch that unseen surface: slow rings spread from
 * the point of the room you are pointing at, and the caustics bend around
 * them. A click or tap drops a bigger ring. Left alone, a slow swell crosses
 * the hidden water about every 11 s and the caustics drift on nine
 * incommensurate waves, so the room never visibly loops.
 *
 * HOW IT IS MADE. One full-screen WebGL2 fragment pass, no dependencies.

  // ---------------------------------------------------------------
  // Full source available with a viberdy Pro subscription.
  // https://viberdy.dev/pricing
  // ---------------------------------------------------------------
}
Details

About this background

A white gallery room, seen into one corner: two walls, a glossy pale floor, and a square opening in the ceiling that holds a luminous recess. Water light runs down both walls in bright veins that sharpen as they fall, and lies across the floor as rings with soft magenta, cyan and amber fringes. There is no water in the room. The light has crossed some, above the opening, and that is all the room admits. It is drawn in one full-screen WebGL2 pass. Every surface point is traced back through the opening to a hidden water surface, a sum of nine incommensurate sines, and the caustic is the true focusing condition J = (1 + d hxx)(1 + d hyy) minus (d hxy) squared, taken at three depths for red, green and blue. Move the pointer and slow rings spread across that unseen surface from the spot you are pointing at, and the veins bend around them. A click or tap drops a larger ring. Left alone, a slow swell crosses about every eleven seconds and the room never visibly repeats. A calm zone flattens the caustics behind your copy, and a Pause control stops the loop.

Curator’s note

The anomaly is that the room is dry. Everything else is obedient: one motivated light, a real opening in the ceiling, caustics that come from a true focusing condition rather than a texture. The hidden water is only a height field (nine sines plus up to five ring sources) whose Hessian is summed analytically, so the pointer can disturb it and the light bends around the touch. Shimmer is slow flow, never flicker.

Pairs well with

Featured
Pro
Pro
Pro