mrdoob's Custom Height Fog example for Three.js WebGPU
By @mrdoob • Curated • 164 likes on X
Open Live Demo ↗
mrdoob made the Custom Height Fog example for Three.js in a few prompts: fog that gathers near the ground, written as a custom WebGPU fog node. It is one of the official three.js examples, with the source in the repository.
More from @mrdoob
Other projects by mrdoob
137 Likes
mrdoob releases Caustic for Codevember 2026
Three.js creator Ricardo Cabello (mrdoob) released Caustic for Codevember 2026, recreating hypnotic underwater refraction and caustic lighting.
538 Likes
Codevember 2026 / 01 / Fold
Three.js creator mrdoob's dynamic origami polyhedron transformation with elegant topology matrix transformations and smooth normal reconstruction.
1,216 Likes
mrdoob's Slop New York, a drivable procedural Manhattan
Slop New York is mrdoob's GTA-style procedural Manhattan, from 125th Street to Battery Park, built with the Three.js WebGPURenderer and TSL. The latest version is more fun to drive around; the city and cars are generated at load time from a 2.2 MB download.
2,144 Likes
mrdoob makes a wooden toy maker with Fable and box3d.js
mrdoob made a toy maker with Claude Fable in a morning: snap wooden pieces together, make parts spin and watch your toy come alive. It uses box3d.js by Erin Catto and Isaac Mason for physics, and you can make your own toy or remix his.
More WebGPU Examples
Projects curated around the same time in this topic
78 Likes
Speedball GI brings real-time DDGI to Three.js with film emulation
clone2k is building Speedball GI, a dynamic global illumination system for Three.js based on DDGI and running on WebGPU. The demo adds film emulation such as halation and gate weave, and the code is on GitHub.
889 Likes
Faraz shows how to use the Three.js WebGPU inspector in R3F
I was asked by many people last week about how to use the new ThreeJS WebGPU inspector and control panel in React-Three-Fiber. Here is how I personally use it: Code: https://github.com/Faraz-Portfolio/demo-2026-r3f-inspector Demo: https://farazzshaikh.com/demos/demo-2026-r3f-inspector/ #threejs #r3f #creativecoding
70 Likes
Building Generator, an official Three.js WebGPU example
The Building Generator is an official Three.js WebGPU example that procedurally generates buildings in the browser. The three.js account featured it alongside new examples such as volumetric fire and clustered lighting, and the source is on GitHub.
70 Likes
Volumetric Fire Simulation, a new official Three.js WebGPU example
The Volumetric Fire Simulation is a new official Three.js example that simulates and raymarches fire on the GPU with the WebGPU renderer. It was announced alongside clustered lighting and a GPU-driven compute rasterizer, and the source is in the three.js repository.
220 Likes
mrdoob's Clustered Lighting example for Three.js WebGPU
mrdoob shared the new Clustered Lighting example for Three.js, joking that it looks like an Olafur Eliasson installation. Clustered lighting lets a WebGPU scene use many dynamic lights efficiently, and the source is in the three.js repository.
102 Likes
mrdoob adds LoftGeometry to Three.js with a new example
mrdoob added a LoftGeometry to the Three.js library, which builds a surface by lofting through a series of shapes, and published an official WebGPU example to try it. The code is in the three.js repository.
56 Likes
Ekim's Chladni Cymatics turns sound frequencies into patterns
ekim's Chladni Cymatics is a WebGPU web app built with Three.js that shows how audio frequencies arrange particles into Chladni patterns, the shapes sand forms on a vibrating plate. It runs in the browser and the code is on GitHub.
265 Likes
mrdoob's Light Probe Volume example loads a pre-baked Sponza grid
mrdoob added support for loading pre-baked grids to LightProbesGrid in Three.js. The official Sponza example uses a 32×16×16 probe grid of about 504 KB of VRAM to light the scene with baked indirect light on WebGPU.
Related Three.js Examples
More projects that share this one's topics
Huisky's Cold Smoke, an endless downhill ski game in one HTML file
Cold Smoke is Huisky's calm, endless downhill ski game in the browser: you carve, jump and tuck down a mountain that never repeats while the light changes from morning to night, with weather from clear skies to heavy snow. The whole game is one HTML file of about 1.6 MB, and the mountain, snow, trees, sky, aurora, skier, animals, music and wind are all generated by code, with no image, audio or model files. It renders with WebGPU and falls back to WebGL2, and was built with Claude Fable 5.2 over a few days of play-and-feedback rounds. The source is on GitHub under the MIT license.
193 Likes
Manish's project cards bend like film when you scroll fast
Scroll fast and these project cards bend like a strip of film being pulled through a projector. By @dev_manish93 . https://webgpu.com/daily/curvy-gallery-scroll-shader #threejs #glsl #webgl #shaders #creativecoding
851 Likes
Three.js + LEGO + Procedural Terrain: A LEGO World to Fly Through
Three.js + LEGO + procedural terrain = A LEGO world you can fly through I joined the Three.js Journey challenge and honestly had a great time building this project. live: http://lego-stylized-nature.vercel.appgithub https://github.com/hexianWeb/lego-stylized-nature #threejsJourney #webgpu #threejs #createive
229 Likes
Ember Flow: Curl Noise in WebGPU and TSL
Ember flow. #threejs A little bit of evening exploring Curl-noise in WebGPU & TSL. Live: https://dasprinzip.com/tinker/day40/ Get the code here: https://github.com/prinzipiell/tsl #indiedev #gamedev #creativecoding #shaders #wgsl #webgpu #glsl #webgl #3d #tsl