Architectural light,
rendered in real time.
Vesper & Stone is a fictional coastal-Virginia real estate atelier. The signature moment is a low-poly glass residence that slowly rotates inside volumetric god-rays — a small, physically-based scene tuned to feel like a golden-hour studio shot. Here's exactly how it's built.
01The concept
The brief called for quiet luxury — editorial, architectural, warm-neutral. Rather than photograph real homes, the whole site is built around a single idea: a house of glass that holds the light. Every design decision serves that metaphor. Listings arrive as panes that refract on hover; sections breathe with generous whitespace; the type is set in Fraunces (an optical serif with a soft, literary voice) against Archivo for calm, grotesque body copy.
02The signature scene
The hero is a Three.js scene, not a video. A grouped set of low-poly boxes forms the residence: a stone plinth and floor slabs in a matte MeshStandardMaterial, and three glass volumes in MeshPhysicalMaterial with transmission: 1, low roughness, clearcoat, and a warm attenuationColor so light passing through the glass picks up a golden tint. Dark EdgesGeometry outlines read as window mullions.
There is no HDRI file. Instead a small procedural environment is baked with PMREMGenerator from a shader-lit sphere (warm top, dark floor). That single environment map is what makes the glass and the thin gold reveal-line reflect convincingly — real-time reflections with zero downloaded assets.
Five additive planes stand in the path of the key light, each running a tiny fragment shader (precision highp float) that fades a warm color along its width and height with a slow sin() flicker. Combined with FogExp2 and a drifting field of ~640 additive dust motes, the beams read as real god-rays without any post-processing pass.
The group auto-rotates on a slow clock and responds subtly to the pointer; the camera parallaxes toward the cursor. On scroll, GSAP pushes the building down and out as the hero copy lifts away.
03Motion & choreography
Motion is handled by GSAP + ScrollTrigger. The intro is a single orchestrated timeline — the headline words rise from behind a clip mask with yPercent:118 and a staggered power4.out. Section reveals fire once via ScrollTrigger. The neighborhoods rail is a pinned horizontal scroll, the stats count up when they enter view, the process spine draws a gold line as you descend, and primary buttons are gently magnetic. Easing is expressive throughout — custom cubic-beziers, never a flat linear fade.
04Craft & safety
The requestAnimationFrame loop is paused by an IntersectionObserver when the hero leaves the viewport and by visibilitychange when the tab is hidden — no leaked loops. devicePixelRatio is clamped to 2, dust counts drop on small screens, and WebGL creation is wrapped so a failure falls back to a styled CSS hero rather than a blank canvas. prefers-reduced-motion renders one static frame and reveals all content immediately. The loader hides on fonts-ready or load, with a hard 1.5s timeout so it can never get stuck.
05The 360° tour
The walkthrough is not a photograph. An offscreen 2D canvas paints a 2048×1024 equirectangular frame of the dusk living room — panelled plaster walls, three mullioned windows onto the water, linen drapes, a hearth with painted flame licks and rising embers, gallery wall, lamplight, a lone sailboat and evening birds against the last light — entirely from gradients in the site's own palette. The window run is mirrored faintly into the polished boards, and the sun's column carries off the water onto the wood — the two cheapest tricks that make a painted room read as a real, lit one. A final film-grain pass (a tiled noise canvas composited with overlay at 4.5%) breaks up gradient banding and matches the page's fixed grain layer. That canvas becomes a CanvasTexture mapped inside a sphere, and a camera at the sphere's centre looks around it.
// paint the room once, then live inside it
const pano = document.createElement("canvas"); // 2048 × 1024
paintDuskRoom(pano.getContext("2d")); // gradients only — no photos
const tex = new THREE.CanvasTexture(pano);
tex.colorSpace = THREE.SRGBColorSpace;
scene.add(new THREE.Mesh(
new THREE.SphereGeometry(50, 64, 44),
new THREE.MeshBasicMaterial({ map: tex, side: THREE.BackSide })
));
// drag → lon/lat (pitch clamped) → camera.lookAt(dir)
Dragging maps pointer deltas onto a longitude/latitude pair with inertia on release and the pitch clamped so you can't roll over the poles; the field of view eases a few degrees wider while the room is "in hand" and settles back on release, and after a few idle seconds the view auto-pans slowly. A small live compass chip rotates its needle from the current longitude — the water view reads due west, as it would on Linkhorn Bay. The hotspots are real DOM buttons, not sprites — they surface one by one when the tour scrolls into view, and each frame their world direction is projected through the camera (Vector3.project) and written back as CSS percentages, easing slightly smaller as they slide toward the edge of view (a one-line depth cue from the dot product) and hiding once they pass behind you. If WebGL is unavailable or prefers-reduced-motion is set, the same painted canvas is cropped into a static wide-angle still with the hotspots composited at their painted positions — never a blank frame. The tour's render loop obeys the same contract as the hero: DPR clamped to 2, paused off-screen and on hidden tabs.
06The AIV Showroom
This site is a working demonstration of an AIV Showroom — what Albright Intelligence Visuals builds for a Hampton Roads business in this industry: an immersive 360° virtual tour embedded where it sells hardest, plus a local-dominance layer (Google Business Profile, map pack, reviews) so the brand is found first, called first, booked first. Designed and built end-to-end by Fable 5.
07Reusable takeaways
- Bake your own environment. A shader-lit sphere through
PMREMGeneratorgives believable reflections with no HDRI download and full control over the palette. - Fake volumetrics cheaply. Additive planes +
FogExp2+ drifting points read as god-rays at a fraction of the cost of a real volumetric pass. - Warm the glass.
attenuationColor+attenuationDistanceon a transmissive material tint transmitted light — the difference between "glass" and "gold-hour glass." - Let type carry the luxury. One optical serif at extreme scale contrast, disciplined tracking, and lots of air out-designs any amount of decoration.
- Guard the loop. IntersectionObserver + visibility + DPR clamp + reduced-motion is the four-part contract for a 3D hero that's actually shippable.
- Paint your panoramas. A 2D canvas of gradients wrapped in a
BackSidesphere is a full 360° environment with zero downloads — and it ships in the exact brand palette. - Project hotspots, don't bake them. DOM buttons projected through the camera each frame stay focusable, styleable, and readable by screen readers — texture sprites are none of those.