Holographic foil materials for your own three.js scenes, made to be handed to an AI agent
open sourceMITself-hostablefree
holospot brings the physically based holographic materials of holo.spot, a browser simulator of trading-card foils, stickers, cloth and flags, to your own three.js scenes. Instead of a moving gradient it works out, per pixel and per wavelength, how a grooved diffraction surface sends each lamp's light to the eye, so rainbow foil, cracked-ice shards, glitter, sparkle, kinetic spirals, foil embossing and volume holograms with a 3D subject inside look like the real material. It's one ES module on top of a WebGLRenderer: apply a material to any mesh with its real-world size and render through it, or paste a look designed on holo.spot. The repository is written for coding agents, with an AGENTS.md manual and a screenshot tool so an agent can check its work, and can render stills and video frame by frame. It's MIT licensed; the engine code is holo.spot's own, copied unchanged.
Problems it solves
- make a 3D object on my website look like real holographic foil that shifts colour as it tilts
- a trading card on my page that tilts under the cursor with a rainbow holo effect
- most holo effects are just a moving gradient and look fake
- put my logo on a card in gold foil with a hologram sticker in a three.js scene
- make a hologram with my own 3D model floating inside it
- render a looping video of a spinning object in cracked-ice foil
- glitter or sparkle material for a product model on a shop page
- ask my coding agent to add a holographic material to my three.js scene
Features
- seven materials: Prism Rainbow, Gold Shatter, Nebula Glitter, Sky Sparkle, Gilded Vortex, Volume Hologram and Foil Emboss
- spectral diffraction rendering per pixel and per wavelength, lit by studio lamps with real spectra
- apply to any mesh or group in an existing three.js scene and composite it in
- paste settings copied from holo.spot's Copy settings button
- volume holograms with seven bundled subjects or one baked from your own model or logo
- paper cards with foil-stamped logos and up to six elements, including hologram stickers
- still images and video rendered frame by frame at any size
- three quality levels for laptops and phones
- AGENTS.md manual and a screenshot tool for AI coding agents
- loadable from a CDN in an import map, with three.js r170 or newer as its only dependency
Limitations
- Doesn't support three.js's WebGPU renderer: it needs THREE.WebGLRenderer1