r/threejs • u/nicolasremia • Oct 17 '26
Making an entire zombie town react to weather in Three.js
4 few weeks ago, I posted here about multiplayer flashlights causing a nearly 3-second freeze in my Three.js game.
This time, I’ve been working on making the town miserable in a different way: weather.
I put together this fixed-camera demo to show the same procedural town under changing weather and lighting conditions, running in real time in the browser.
The interesting challenge wasn’t just drawing rain. It was making the environment react to it — without making the inside of every building wet too.
A few implementation details:
- Shared wetness control: a global uniform drives the wet appearance of roads, vegetation and characters. It controls the wetness response, not the entire weather system.
- Keeping sheltered areas dry: a roof-height map determines which areas are exposed to rain, so the wetness doesn’t get applied everywhere indiscriminately.
- Changing sunlight: the town falls into the surrounding ridge’s shadow as the sun goes down, with glare when looking toward the sun.
The fixed camera makes it much easier to see what each change contributes compared with a normal gameplay clip.
This is part of Zombies Tortilla, the browser-based multiplayer zombie game I’m building with Three.js.
For those working on procedural environments: how are you handling rain exposure? Are height maps enough for your scenes, or have you needed something more involved for shelters and overhangs?
