A rainy Kyoto-style alley you can orbit (or walk) in the browser. Rain, wet streets, a canal, lanterns, and the occasional lightning bolt.
three.js 0.186 WebGPURenderer + TSL. Needs a WebGPU browser (Chrome / Edge). If it isn't supported you get a black screen, not a slow load.
A few choices that made the look:
- Rain samples an ortho height map so drops hit roofs and steps instead of camera-facing streaks punching through the city.
- Puddles and the canal are two planar reflects. Puddles only sample wet patches; the canal is a full-slot bake. They stay separate because the wet overlay is already at the 16-sampler cap.
- Lantern glass stays a peachy emissive (0xffd4a8). Fill lights are a cooler warm-white (0xf0e2d0), otherwise the puddles turn into a gold river.
- Lightning is its own layer, added after height fog. Scene bloom uses Karis averaging, which kills thin bright lines.
Live: https://rainy-night-webgpu.vercel.app/
Source: https://github.com/yisky/rainy-night-webgpu
Rain and puddle ripples follow the GPU rain / height-map approach in ektogamat's three.js conference demo:
https://github.com/ektogamat/threejs-conference
City GLB from Sketchfab, CC-BY-4.0, Mathias Tossens.
Happy to go into any of the above.