Holo Foil Field
A full-bleed sheet of holographic chrome in WebGL: long draped folds reflect the kit's studio, every seam the horizon draws splits into a spectrum, and a thin film tints only the lit metal; tilting it with the pointer sweeps the colour.
WebGL20 deps1 file · 15 KB TSXreduced-motion aware
Props
"use client";
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
import type { CSSProperties, ReactNode } from "react";
/**
* HoloFoilField — a full-bleed sheet of holographic foil in WebGL2.
*
* The sheet is draped in long folds and reflects the kit's studio: where a
* fold turns the horizon toward you it draws a bright seam, split into a
* spectrum (the room is sampled apart for red, green and blue). A thin film
* on Newton's series tints only the lit metal, so the troughs stay
* graphite; the pointer tilts the room, sliding the seams and sweeping the
* colour, and a light over the pointer makes the nearest folds glint. The
* film drifts on a 44s cycle. Content goes on top as children.
*
* Without WebGL2 it falls back to a CSS foil gradient. Paused off screen
* and in hidden tabs; reduced motion stops the drift.
// ---------------------------------------------------------------
// Full source available with a viberdy Pro subscription.
// https://viberdy.dev/pricing
// ---------------------------------------------------------------
}Details
About this background
Holographic foil, done as a material rather than a rainbow. The sheet is draped in a few long folds with one pressed crease, and it reflects the same studio as the kit's chrome: a pale sky over a hot horizon over a dark floor, with a soft box above. Wherever a fold turns the horizon toward you it draws a bright seam, and because the room is sampled three times, slightly apart, for red, green and blue, each seam splits into a clean spectrum. Over the metal runs a thin film whose colour follows Newton's series (silver, champagne, magenta, cyan, green, gold, violet), carried by the brightness the metal reflects, so the troughs stay graphite and only the lit folds turn holographic. The pointer tilts the room: the seams slide along the folds, the colours sweep with them, and a light over the pointer makes the nearest folds glint. It drifts on a slow 44s cycle when nobody is steering. Put content on top as children. Without WebGL2 it falls back to a CSS foil gradient.
Curator’s note
The Liquid Chrome kit's signature surface (slot 2), cut from liquid-chrome-site, where it carries the artist's statement. Pro: a WebGL2 shader with a draped heightfield, the kit's studio reflected three times for dispersion, a thin-film palette lookup and a pointer light, with a CSS fallback.


