01 / 05
Iridescence
Thin-film interference in a microscopic clearcoat shifts the reflected wavelengths with the viewing angle. That gives frosted quartz its pearl sky, cyan and rose sheen.
Real-time material studio
Author dispersion, transmission, and refraction in the browser. Live previews, real materials.
© Cullet LabKHR_materials_dispersion
Technical note 07
Dispersion in a single forward pass.
Real-time renderers have treated glass as one refracted ray. White light doesn't refract as one ray, which is why most web glass looks like tinted plastic.
Cullet samples three wavelengths through each transmissive surface, offset by the material's Abbe number, and recombines them in the same pass that shades the surface. No second render target, no extra draw calls.
On an M2 laptop it costs 1.6 ms per material at 1080p. On a three-year-old phone it holds 60 fps with dispersion on. The output is plain KHR_materials_dispersion, so any glTF viewer that supports the extension renders it the same way.
Chapter 01 · The vocabulary
01 / 05
Thin-film interference in a microscopic clearcoat shifts the reflected wavelengths with the viewing angle. That gives frosted quartz its pearl sky, cyan and rose sheen.
02 / 05
How much slower light travels inside the glass than in a vacuum. At 1.52, crown silica bends incoming rays sharply along every bevelled edge.
03 / 05
Each wavelength refracts by a different amount, so white studio light splits into spectral caustics across the cut edges. Cullet solves it in one pass, live, as KHR_materials_dispersion.
04 / 05
Specular transmission and subsurface scattering work together, so a thick slab passes the light around it and softens what sits behind.
05 / 05
How much the microscopic surface normals vary, which sets how tight the highlights are: a satin etched face at 0.22 under a polished clearcoat rim at 0.08.
Chapter 02 · The studio
This is a real Cullet material in a real renderer. Pick a preset or drag a dial, and the glass, the drawn preview and the exported glTF all change together.
Abbe number 69 · Frosted quartz
{
"name": "frosted-quartz",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.22
},
"extensions": {
"KHR_materials_transmission": {
"transmissionFactor": 1
},
"KHR_materials_volume": {
"thicknessFactor": 1.4
},
"KHR_materials_ior": {
"ior": 1.54
},
"KHR_materials_dispersion": {
"dispersion": 0.29
},
"KHR_materials_iridescence": {
"iridescenceFactor": 0.65,
"iridescenceIor": 1.35,
"iridescenceThicknessMinimum": 280,
"iridescenceThicknessMaximum": 680
}
}
}
Chapter 03 · The workflow
No baking, no turntable renders, no "looks different in the app". One material, authored once, rendered the same by every viewer that reads glTF.
Cut
Stack a body, a volume, a clearcoat and a thin film. Each layer is one parameter set with no baked maps, so a material stays a few kilobytes.
Preview
Every change renders live in three.js, Babylon.js and model-viewer side by side, under your HDRI or one of the eleven studio rigs.
Ship
One click writes glTF with the KHR material extensions, USDZ for Quick Look, or a typed three.js module. What you approved is what ships.
import { cullet } from "@cullet/three";
const glass = await cullet("frosted-quartz");
bottle.material = glass;
// 4.1 kB · KHR_materials_dispersionChapter 04 · The library
Each preset is tuned against the real glass it is named for, and every one is a starting point you can open in the studio above.
The everyday window glass, low dispersion and clean edges.
Product shells, bottles, UI cards
Open in studio: Crown silicaHeavy lead-free flint. Bends hard and throws rainbows off every bevel.
Jewellery, prisms, hero objects
Open in studio: Dense flintSatin-etched faces under a polished clearcoat, with a pearl sheen.
Interfaces, the Cullet hero itself
Open in studio: Frosted quartzLab glass. Thin, tough, quiet. Almost no colour fringing.
Drinkware, lab scenes, lighting
Open in studio: BorosilicateSynthetic sapphire crystal. Very high index, very low dispersion.
Watch faces, camera lenses, sensors
Open in studio: SapphireA soft body under a 280–680 nm thin film. Shifts colour as you turn it.
Packaging, cosmetics, motion design
Open in studio: Opal filmChapter 05 · The budget
Exports read by
“We used to bake glass per angle and pray. Now the bottle on the product page refracts the actual page behind it.”
“The dispersion slider sold it. Our designers tune caustics in the browser and engineering gets a typed module, not a ZIP of PNGs.”
“Four kilobytes for a sapphire watch crystal that looks right on a phone. We stopped shipping videos of our product.”
Chapter 06 · The cuts
For trying glass on a side project.
$0forever
Most seats
For designers shipping glass in production.
$24per seat / month
For teams with a material system.
Custom
Chapter 07 · Open studio
Ask for a seat and the studio opens in your browser with the six cuts loaded. Bring a glTF, or start from a cube.
Built from a free landing page template on openlanding.page.