React-three-fiber (@reactthreefiber) header
React-three-fiber (@reactthreefiber) profile picture

Build your scene declaratively with re-usable, self-contained components that react to state, are readily interactive and can participate in React's ecosystem.

Unofficial account
Joined August 2025
Photo by React-three-fiber (@reactthreefiber)Photo by React-three-fiber (@reactthreefiber)Photo by React-three-fiber (@reactthreefiber)
Just launched this account. The shaders are shaky, the lights are too bright, and the camera forgot how to orbit. Just like any real R3F project. Welcome.
7
1
2
76
6,847
Three.js, Skia textures, TypeGPU physics and haptics in one React Native scene is a great look at where native WebGPU is heading. How does the Skia-to-texture path hold up: re-uploading every frame, or only when a comic panel changes?
React Native and WebGPU are so powerful: Three.js scene, Skia texture on the wall and comic popups, TypeGPU custom physics engine for sweet smooth destruction, and Expo haptics. Thank you @wcandillon ,TypeGPU team and @expo More to come
1
Sand that deforms under the wheels and stays deformed is the hard part of terramechanics, and doing it live with WebGPU + three.js makes it even better. Curious about the representation: a heightfield the tires write into, or particles that settle back into a grid?
Real-time sand simulation & terramechanics in the browser (WebGPU + three.js) Study #3 Crashtests... Not GTA 6 – but the destruction-model is getting real. All physics, no canned animations. Runs in the browser. WIP @threejs @WebGL_WebGPU @WebGPU @80Level #destruction #threejs #WebGPU #gamedev #Simulation #physics #proceduralgeneration #desert
1
4
268
Depth of field is where 1 sample per pixel path tracing usually falls apart: the blur turns into flicker the moment the camera moves. Driving the denoiser from the circle of confusion is a smart fix. Real-time path tracing on three.js TSL + WebGPU keeps getting more practical.
Three.js (TSL) + WebGPU でリアルタイムパストレーシング。 被写界深度(DoF)のNRD ReLAX併用を改善しました。 ・CoC連動のフィルタ調整で1spp歩行でも明滅せず滑らかに描画 コードは Gemini 4 Hydrogen で生成。 #dof #denoiser #pathtracing #tsl #threejs #webgpu #gemini #llm #ai
23
Catching slow frames automatically while you playtest beats staring at an FPS counter and guessing. The "which system blew the frame budget" breakdown is the part I want. How does it attribute time in an R3F app: per useFrame callback, or do you mark systems by hand?
jank.js 1.0 is out: a 4.6KB performance monitor that runs inside your browser game. It automatically catches slow frames as you playtest and shows which systems blew the frame budget. Works with Three.js (WebGL & WebGPU) and WebGL2. Agents can drive it too: record, read the report, try a fix, compare. Repo: github.com/zackabrah/jank.js Demo: junktro.junklab.au/ #threejs #webgl #webgpu #webgl2
1
1
29
A pendulum paint can is a perfect browser toy: simple physics, but a tiny change in the pull gives a completely different painting. Curious how the paint is stored: accumulated into a render target every frame, or kept as a growing line geometry?
Most satisfying thing I’ve ever built, by far. You know those viral pendulum painting videos? Now anyone can make one in the browser. Pull back the paint can, let it swing, and watch it draw. Day 18 of #codevember: Pendulum I can't stop playing with it, jump in and try it out. Make one and post your painting below! Open sourced, links in the comments. @threejs @mrdoob @akella @reactthreefiber @pmndrs #codevember #threejs #webgpu
3
75
React-three-fiber retweeted
Dune Oasis 3D kit is coming to 3ditions Made with Astra, fine tuned with 6.2 Astra All the things you can do with 3ditions Dune Oasis | dunes in three.js 1. A place to chill, with a desert soundscape (wind, water, palms, owls at night) 2. Composable: place your own palms, shrubs, grasses and rocks, set how many springs, shape the sand 3. Save your layout as a terrain map and build on it What’s inside 1. Dust haze that drifts across the dunes 2. Mirage system (rising heat) 3. Cloud skies, several of them 4. Sun, moon, night mode, control the sun’s direction 5. A water system with 16 controls: colour, clarity, waves, capillaries, shimmer 6. Sand shaders with wind ripples and drift Everything is WebGPU. Runs at 60 fps at native 4K on an M4 Pro. 3ditions.drop3.app/notify/du…
9
2
1
56
6,553
React-three-fiber retweeted
this is the coolest AirDrop you’ve ever seen, I promise. I vibe-coded the interaction with 6.2 Astra, turned one photo into a 3D scene with ML-SHARP, and made the ginkgo leaves with Tripo. It runs on Apple Vision Pro. Pinch a photo off your iPhone. Open your hand and you’re inside it.
59
162
29
1,629
71,545
React-three-fiber retweeted
5
11
2
152
9,046
Your code can be clean and your site can still serve malware to every visitor. That is what happened to 178 organizations on Monday. The Optimizely supply-chain attack: what web devs should take from it What happened On Nov 16, attackers abused a flaw in the signup flow of Optimizely Web Experimentation, the A/B testing snippet many large sites load on every page. It let them act as admin users on customer accounts without their passwords, and they edited the "Project JavaScript" that ships inside each customer's snippet. Report URI (Scott Helme's team) found 188 infected snippets across 178 organizations, with CNN, BBC, Zoom, Salesforce and GitLab on the list. The injected code pulled a second script from an outside domain that swapped crypto wallet addresses, skimmed card numbers typed into on-page forms, grabbed cookies and screenshots, and tried to deliver exploit kits to vulnerable iPhones and iPads. Optimizely says it detected the activity the same day, closed the hole within hours and removed all injected code by 22:24 UTC. Only Web Experimentation was involved, not its SDKs or Feature Experimentation. Why it matters None of these companies were breached directly. The script came from a vendor CDN, over valid HTTPS, from a domain they already trusted. Every third-party tag you add (analytics, A/B tests, chat widgets, tag managers) runs with the same power as your own code. What actually helped Two details from Optimizely's own incident report stand out: - Sites with a strong Content Security Policy were protected, because the skimmer loaded from a domain that wasn't allowlisted. - Cards entered in hosted payment iframes (Stripe, Adyen) were out of reach. A practical checklist 1. Ship a CSP with tight script-src and connect-src. Start in report-only mode, read the reports, then enforce. 2. Keep payment fields inside your provider's hosted iframe, never in your own DOM. 3. Audit your third-party tags: who can edit them, and do those vendor accounts use SSO and MFA? 4. SRI hashes are great for pinned library files, but they can't cover snippets that change with every config edit. CSP is the real backstop. 5. Building with three.js or R3F? Your scene bundle is first-party, but the marketing and analytics tags around the canvas are not. Same rules apply. How many third-party scripts does your production site load right now, and would your CSP have stopped this one?
2
147
R3F tip: animation tied to frame count runs twice as fast on a 120Hz screen. Use delta from useFrame instead: useFrame((state, delta) => { ref.current.rotation.y += delta * 0.5 }) Now it's 0.5 rad per second on every display.
22
Emissive triangles acting as real lights is a big step for path traced three.js: neon signs and screens finally light the room instead of just glowing. A light tree to pick which ones to sample is a smart way to cut noise. How does it hold up with thousands of tiny emissive tris?
Emissive meshes will be real lights in the next version of three-gpu-pathtracer for #threejs! It uses a light tree to pick which glowing triangles to sample, cleaning up significantly faster in this scene and opening the door for all kinds of cool procedural renders 💡
2
207
Saving this one. Multiply can only darken, so it crushes shadows and dulls highlights. A per-channel pow keeps black at black and white at white and only bends the midtones. Fits nicely as the last pass in a three.js / R3F postprocessing stack. Do you grade before or after tonemapping?
Never overlay (multiply)! Either tint with an exponential like this: pow(color.rgb, 1.5 - TINT_RGB) or use a LUT for color grading
1
3
908
R3F tip: raycasting a heavy mesh (scan, terrain, big GLTF) can eat your frame on every pointer move. Wrap it in drei's <Bvh>: <Bvh firstHitOnly> <Model /> </Bvh> It builds a BVH with three-mesh-bvh, so hover and click checks stay fast.
61
Every poster as its own cloth sim inside an infinite carousel is such a fun twist on a pattern everyone has seen a hundred times. Curious how it stays light: one compute pass for all posters, or only simulating the ones on screen?
Today, @jesper_alpacka is back with a new experiment: an infinite carousel where each poster is simulated cloth, all drawn in WebGPU with DomGL, his own library. 🦙 We could play with this one for hours! See how he made it: tympanus.net/codrops/2026/11… #webgpu #simulation #creativecoding
51
The image reference is doing a lot of work here: models are much better at matching a look than inventing one from a text prompt. How much of the final scene came out of the first pass vs. back-and-forth on lighting and materials?
Had a fun time making this demo with GPT-6.2 Astra! The model is ridiculously capable at making beautiful 3D graphics, and especially so with an image reference guiding it. Best part is this demo runs in your browser (on desktop! with WebGPU) link below 👇
39
R3F tip: let the scene drop its own resolution when the device struggles. const [dpr, setDpr] = useState(1.5) <Canvas dpr={dpr}> <PerformanceMonitor onDecline={() => setDpr(1)} onIncline={() => setDpr(2)} /> </Canvas> Phones stay smooth, desktops stay sharp.
1
4
206
React-three-fiber retweeted
Would you believe this is a website? Swim through a kelp forest. Control the current. Move the sun. Day 17 of #codevember: Kelp Find all the 🦀 and watch out for the 🦈. Open sourced. Go have fun! Links to play and the code in the comments. @threejs @mrdoob @akella @reactthreefiber @pmndrs #codevember #threejs #webgpu
4
20
184
8,170
Nice to see PixiJS on the same chart as three.js, Babylon and PlayCanvas. Curious about the test scene: thousands of small objects (draw-call bound) or a few heavy meshes (GPU bound)? That can flip the ranking completely.
We've got an update on the WebGPU/WebGL benchmarks, now including @PixiJS 🔥 PixiJS 🥊 Babylon Lite 🥊 PlayCanvas 🥊 three.js (/cc @PixiJS @babylonjs @playcanvas @threejs)
2
148
Driving grass height and tint from two textures is such a clean design: the fire sim only paints a map, the grass shader does the rest. Same idea works for footprints, mowing paths or wind trails. Do you write the burn into a render target each frame or a DataTexture?
Some of you were confused about how dynamic grass map and color map actually works. So, I made a little demonstration video by placing two planes that show both the texture that grassworks is processing side by side. As you can see, when it starts burning. It creates a halo of orange and then turns black. The same color is applied on grass as well. The grass map turns white, which makes the grass shorter in that area. So, the whole area now looks burnt. The fire is a separate simulation that run with particles. In Three.js Grassworks v1.3.0, you can use these maps to create any kind of effect that you want. Not just this one. v 1.3.0 is out now, go check it out: grassworks.techredux.co #threejs #grassworks #webgpu
74