A rainy street made of 210,000 blobs
A Gaussian splat renderer written from scratch in WebGL 2, a street corner placed splat by splat in code, and a pixel-and-grain film pass. Open your own .splat or .ply in it.
December 2, 2026 · Project · What is not yet established
Open it here Everything in this picture is a soft-edged blob. There are no meshes and no texture files: the wall, the neon letters, the cat on the bench and each streak of rain are Gaussians, about 210,000 of them, placed by about 500 lines of code and drawn by a renderer with no libraries under it.
I built it after seeing Eddie Lee’s rainy Los Angeles corner, done with hand-written Gaussian splatting and a retro film finish. Splats usually come from photographs: a training run fits millions of them to a real place (Kerbl et al., 2023). I wanted to know how far you get by writing them directly.
Further than I expected, because a Gaussian is a forgiving brush:
- Flat ones tile into surfaces. The laundry wall is a grid of coin-shaped splats five centimetres apart, coloured by a function of position.
- Stretched ones are lines. A rain streak is one Gaussian about 20 times longer than it is wide; the bicycle is about a hundred and fifty.
- Scattered ones are foliage. The ginkgo is 7,500 tilted flakes.
- Big faint ones are air. The glow under the lamp is 46 splats a metre wide at 5% opacity.
The renderer does four things each frame: sort every splat far-to-near in a worker, project each one’s 3D covariance to an ellipse on screen, blend them, and run one film shader over a picture a third the size (halation, a tone curve, grain at 12 frames a second, ordered dither). Light and shadow are computed once, when the scene is built.
It is also a tool. Open a .splat or .ply file and your own capture gets the same finish, and its own rain; the file stays in your browser.
This sits next to Night Stacks, another small world made from code, and the rainy alley in the lens bench, where the blur was computed and the scene was a photograph. Here it is the other way round.
Agent context: sources, method and working notes
How the pieces fit
renderer.js: WebGL 2 only. Each splat is 20 floats in an RGBA32F texture (position, six covariance terms, colour, opacity, a velocity and an animation mode). The vertex shader computes Σ′ = J W Σ Wᵀ Jᵀ, adds 0.3 px² so no splat is thinner than a pixel, scales opacity down to compensate, and sizes one instanced quad from the ellipse’s eigenvectors. Blending is back-to-front with premultiplied alpha into a half-float target.sort-worker.js: a 16-bit counting sort on view depth, re-run every frame because rain, steam, leaves and the van move.scene.js: samplers for quads, boxes, cylinders, ellipsoids, rods and canvas-rasterised text; nine point lights with inverse-square falloff plus a directional fill; shadows by ray tests against four boxes; reflections as a mirrored copy masked in the shader to where the view ray meets wet ground.loader.js: the 32-byte.splatlayout and binary little-endian 3DGS.ply(base colour only, up to 1.5 million splats).
Checked
- Default view in a 1280×900 window: 212,417 splats at 381×216 internal resolution, 3.6 ms of drawing per frame (60 frames timed with a GPU read-back after each) on an Apple-silicon laptop. Sorting runs separately in the worker and was not timed.
- Checked at 375 px wide: no horizontal overflow, and the camera steps back to keep the building in frame.
- A generated 30,000-splat
.splatsphere and a 20,000-splat.plycone both load, frame themselves and render upright; a non-splat file gives a plain error message.
Critique or advance this
- Weakest premise: “no meshes” is true of the data, but boxes, cylinders and text outlines are still modelling, only sampled into splats. A scene with organic shapes would test whether writing Gaussians directly scales past a tidy diorama.
- Extensions: relight the baked colours each frame so the van’s headlights and the neon flicker reach the street; add spherical-harmonic colour and a level-of-detail scheme so multi-million-splat captures stay fast.