Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

README: what ThreeRT is, shown; the rest moved to docs/ (#47)

Evan (Yifeng) Wang2d4e88a77c59
diff --git a/README.md b/README.md
index e01d38d..ab110d4 100644
--- a/README.md
+++ b/README.md
@@ -1,107 +1,208 @@
-# ThreeRT
+<p align="center">
+ <a href="https://threert.dev">
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="site/brand/mark.svg">
+ <img src="site/brand/mark-light.svg" width="84" alt="ThreeRT">
+ </picture>
+ </a>
+</p>
+
+<h1 align="center">ThreeRT</h1>
+
+<p align="center"><b>Hardware ray-traced three.js.</b></p>
+
+<p align="center">
+ A real-time path tracer behind a three.js-style API. Write the scene you would write in three.js,<br>
+ and every light in it is traced on the GPU's ray-tracing hardware, at 60 fps.
+</p>
+
+<p align="center">
+ <a href="https://github.com/meshy-dev/ThreeRT/actions/workflows/ci.yml"><img src="https://github.com/meshy-dev/ThreeRT/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
+ <a href="https://www.npmjs.com/package/@threert/scene"><img src="https://img.shields.io/npm/v/@threert/scene?label=%40threert%2Fscene&color=f97316" alt="@threert/scene on npm"></a>
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT licence"></a>
+ <a href="https://threert.dev/download/"><img src="https://img.shields.io/badge/clients-macOS%20%C2%B7%20iOS-lightgrey" alt="Clients for macOS and iOS"></a>
+ <a href="https://discord.gg/n7vsVmAKCK"><img src="https://img.shields.io/badge/chat-Discord-5865F2" alt="Discord"></a>
+</p>
+
+<p align="center">
+ <a href="https://threert.dev"><b>Website</b></a> ·
+ <a href="https://threert.dev/showcase/">Showcase</a> ·
+ <a href="https://threert.dev/download/">Download</a> ·
+ <a href="https://threert.dev/docs/">Docs</a> ·
+ <a href="https://discord.gg/n7vsVmAKCK">Discord</a> ·
+ <a href="https://x.com/ThreeRT3D">X</a>
+</p>
+
+<p align="center">
+ <a href="https://threert.dev"><img src="docs/images/reel.webp" width="100%" alt="Twelve scenes path-traced live by ThreeRT: Bistro at night with a crowd, Tokyo at dusk, Kabukichō in the rain, a voxel city, product and interior scenes, and a first-person shooter"></a>
+ <br>
+ <sub>ThreeRT, live on an Apple M3 Max: this repository's demos and OpenStrike, a shooter built on the engine.</sub>
+</p>
+
+## Three + RT
+
+**Three**, for the API you already know. **RT**, for the three things it adds:
+
+- **Ray tracing.** Every light is traced: shadows, bounce light, reflections, and glowing surfaces that light the room. No shadow maps, no light probes, no lightmaps, no baking.
+- **Real time.** 60 fps in production scenes with the camera moving: Amazon Lumberyard Bistro and Beeple's Zero-Day, on a laptop. Not a still that converges once you stop.
+- **Runtime.** A game runtime, not only a renderer. Scene code and game logic run inside the engine, and the same file runs as plain three.js in any browser.
+
+## Hello world looks right
+
+Write a scene at tutorial size and leave every setting at its default.
+
+```ts
+import { Scene, PerspectiveCamera, Mesh, BoxGeometry, MeshStandardMaterial, DirectionalLight, SkyAtmosphere } from "@threert/scene";
+
+export default function build() {
+ const scene = new Scene();
+ const sun = new DirectionalLight(0xffffff, 90000).setSunAngles(28, 100); // lux
+ scene.add(sun);
+ scene.environment = new SkyAtmosphere({ sun });
+
+ const plaster = new MeshStandardMaterial({ color: 0xd9d4cc, roughness: 0.92 });
+ const wall = new Mesh(new BoxGeometry(6.6, 3, 0.3), plaster);
+ wall.position.set(0, 1.5, -3.15);
+ scene.add(wall);
+ // ... the rest of the room: a floor, a window, a sofa, a lamp
+
+ const camera = new PerspectiveCamera(58, 16 / 9, 0.05, 200);
+ camera.position.set(-2.3, 1.45, 2.4);
+ camera.lookAt(1.0, 0.9, -1.2);
+ scene.add(camera);
+ return { scene, camera };
+}
+```
+
+| three.js, as written | ThreeRT, all defaults |
+|---|---|
+| ![A room in three.js: flat walls, no sunlight on the floor](site/media/hello/sun-room-three.webp) | ![The same room in ThreeRT: sunlight through the window, bounce light on the walls](site/media/hello/sun-room-rt.webp) |
+
+The sun through the window, the sky, the bounce light off the floor and the lamp's glow come from tracing the scene. Light is in physical units: the sun is 90,000 lux, and an emissive surface is a light source. The whole file is [`scenes/sun-room.ts`](scenes/sun-room.ts).
+
+## Against three.js at full power
+
+The same scene file, run by both engines on the same Mac. three.js gets everything it has: shadow maps, image-based lighting and, on WebGPU, its own SSGI, SSR and TRAA.
+
+| three.js r187 | ThreeRT |
+|---|---|
+| ![Amazon Lumberyard Bistro at night in three.js](site/media/bistro/hero-three.webp) | ![The same frame in ThreeRT](site/media/bistro/hero-rt.webp) |
+| ![Beeple's Zero-Day in three.js](site/media/zero-day/tuned.webp) | ![The same frame in ThreeRT](site/media/zero-day/live.webp) |
+
+| Bistro night, 1280 × 720 | Frame cost | Error against the reference (ΔE, lower is closer) |
+|---|---|---:|
+| **ThreeRT, live** | 15.5 ms (60 fps) | **3.4** |
+| three.js, WebGPU + SSGI + SSR + TRAA | 34.7 ms (29 fps) | 10.1 |
+| three.js, WebGL tuned | 15.9 ms (60 fps) | 12.1 |
+
+The reference is an unbiased offline render (4,096 samples per pixel, no denoiser). The method, every scene, and where three.js is ahead (it draws small scenes in about 1 ms) are in [`docs/COMPARE.md`](docs/COMPARE.md).
+
+## Get started
+
+### Play and make games
-A real-time GPU path tracer for games and scenes written in a Three-like TypeScript DSL.
+1. **[Download ThreeRT](https://threert.dev/download/)** for macOS (14 or later, Apple silicon) or iPhone and iPad (iOS 17 or later). The client fetches a game's code and traces it on the device's own GPU.
+2. Open an example from the app's library or from the [Showcase](https://threert.dev/showcase/).
+3. Write your own with the `threert` command line that ships inside the Mac app:
-- **Scenes** are written with `packages/scene`, a Three-like DSL. **Gameplay** uses `packages/gameplay`: Verse-inspired transactional handlers, per-frame scripts, and world handlers that change the scene as an event arrives.
-- That code runs inside the **native renderer**, `renderer/`: Rust and wgpu, a GPU path tracer with UE5-matched shading and post, and an embedded QuickJS runtime. Scene code drives the engine API directly; there is no scene interchange format.
-- **UE5 renders are the ground truth** (`ue5/`). **three.js** is the baseline it is compared against (`tools/three`, `compare/`).
-- **The voxel engine** around it is described in [`docs/VOXEL.md`](docs/VOXEL.md).
+```bash
+threert create my-game
+cd my-game
+threert dev # bundles on save, serves every client on your network, prints a QR code for your phone
+```
-**Where this came from.** This repository was extracted on 2026-11-10 from `taichi-dev/serverless-agent-test` (main at `42a51d6`), which keeps the history before the split.
-- The PR numbers in [`docs/ROADMAP.md`](docs/ROADMAP.md) and the other docs (#1–#139) are that repository's.
-- So is the serverless gameplay platform built around the engine: the Cloudflare gateway, the rooms and the render pool (`cloud/`), and the GPU render nodes (`render-node/`, `render-container/`). The docs that describe it ([`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/REPORT.md`](docs/REPORT.md), [`docs/RUNTIME.md`](docs/RUNTIME.md)) refer to those directories there.
+The same address in any browser shows the game as three.js. The full walk-through is at [threert.dev/docs](https://threert.dev/docs/).
-## Layout
+### Packages
-| Dir | What |
+| Package | What |
|---|---|
-| `renderer/` | The engine: Rust + wgpu path tracer, live viewport, denoiser, post, embedded QuickJS (`threert-render`); `renderer/voxel-core` and `renderer/physics-core` (Rapier; both also build for wasm32); `renderer/third_party/glamx` (a patched dependency of Rapier's, see its PATCH.md) |
-| `packages/scene` | The Three-like scene DSL (`@threert/scene`) |
-| `packages/gameplay` | Games: state, transactional handlers, world handlers (`on`), frame scripts (`@threert/gameplay`) |
-| `packages/voxel` | The voxel engine's TypeScript side (`@threert/voxel`) |
-| `scenes/` | The reference catalog (Cornell box, material grid, Bistro, Zero Day, …) |
-| `games/` | Playable content: Kabukichō Night, Bistro slice / district / crowd, Zero Day, Tokyo, the voxel level, Light Room, … |
-| `tests/` | The render test suite (`tests/render`, analytic and temporal checks), three.js compatibility tests |
-| `tools/` | Bundling, benches and gates (`perf-smoke`, `bench-ghosting`, `bench-district`, `test-render`, `test-layer-b`), three.js comparison, the Tokyo pipeline (`tools/city`, `tools/tokyo`) |
-| `ue5/` | UE5 reference captures (Lumen and the Path Tracer) |
-| `playground/` | ThreeRT Playground: a macOS native editor around the live viewport |
-| `compare/` | Hello-world scenes side by side in three.js and ThreeRT |
-| `docs/` | Roadmap, workflow and merge gate, parity, material functions, voxel engine |
-| `site/` | The site (threert.dev): the landing page, Showcase, Download and Docs; static, `bun site/serve.ts` (see [`site/README.md`](site/README.md)) |
-
-## Getting started
+| [`@threert/scene`](packages/scene) | The three.js-style scene API: meshes, PBR materials, lights, glTF models, physics, volumes |
+| [`@threert/gameplay`](packages/gameplay) | Games: state, transactional handlers, world handlers, frame scripts; deterministic and replayable |
+| [`@threert/voxel`](packages/voxel) | Destructible voxel levels: explosions, cuts, and pieces that break off as rigid bodies |
+
+```bash
+npm install @threert/scene @threert/gameplay
+```
+
+`threert dev` bundles these for you. Install them from npm for types, tests, or a build pipeline of your own.
+
+### Build the engine from source
+
+The engine is Rust and [wgpu](https://wgpu.rs): hardware ray queries where the GPU has them (Metal, Vulkan), a software BVH where it does not. You need Rust, Node 24 and [Bun](https://bun.sh).
```bash
npm install && bun scripts/setup.ts # assets/ -> the machine's shared asset store, then fetch what is missing
node tools/build-scenes.ts # scenes/*.ts + games -> out/bundles/<id>.js
-bun renderer/build.ts && renderer/target/release/threert-render render out/bundles/cornell-box.js -o out/cornell.png --spp 32
-renderer/target/release/threert-render compare out/ue/lumen/cornell-box.png out/cornell.png # vs the UE5 reference
-node tools/three/open.ts scenes/bistro.ts # the same scene in three.js, in your browser (orbit, fps, what it drops)
-npm test && npm run typecheck && (cd renderer && cargo test --release) # DSL, gameplay, runtime and engine tests
-npm run test:render # the render test suite on the GPU
+bun renderer/build.ts # -> renderer/target/release/threert-render
+
+renderer/target/release/threert-render play out/bundles/light-room.js # a game, in a window
+renderer/target/release/threert-render render out/bundles/cornell-box.js -o out/cornell.png --spp 32 # a scene, to an image
+node tools/three/open.ts scenes/bistro.ts # the same scene in three.js, in your browser
```
-**Local real-time demo (native window, 60 fps):** `renderer/target/release/threert-render play out/bundles/light-room.js` runs the "Light Room" game (`games/light-room/light-room.game.ts`: Three-like DSL, transactional handlers and a frame script) in the native renderer.
-- Click coins, the floor, the balls, the crate, the knot or the walls.
-- Drag to orbit, right-drag to pan, wheel to zoom, WASD/QE to fly, `R` to reset, `P` for a snapshot.
-- Any scene works the same way: `threert-render play out/bundles/sun-room.js`.
+In the window: drag to orbit, right-drag to pan, wheel to zoom, WASD/QE to fly, `R` to reset, `P` for a snapshot.
-**Games as ES modules:** `node tools/build-runtime.ts` bundles `@threert/scene` + `@threert/gameplay` into `out/threert-runtime.js`. A game module that imports it renders with `threert-render render <game.js> --runtime out/threert-runtime.js -o out.png`.
+```bash
+npm test && npm run typecheck && (cd renderer && cargo test --release) # scene API, gameplay, runtime and engine tests
+npm run test:render # the render test suite, on the GPU
+```
-**ThreeRT Playground (macOS native editor, 60 fps):** `bun playground/build.ts && bun playground/run.ts` opens an Unreal-Editor-style client around the native real-time viewport. See [`playground/README.md`](playground/README.md).
-- A PocketJS UI: toolbar, outliner, details with live scrub editing and undo, content browser, output log, acceptance and a game panel.
-- Pixel-aligned A/B against the UE5 Lumen and Path Tracer references.
-- Play-in-Editor for games.
+## Demos in this repository
-**Kabukichō Night** (`games/kabukicho/`): an interactive Shinjuku night street, generated procedurally with the Three-like DSL and lit almost entirely by emissive signage.
-- The Ichiban-gai gate, ~120 signs, wet asphalt, shops, lamps, pedestrians and a taxi.
-- Sign typography and storefronts come from one atlas drawn by `tools/kabukicho-atlas.ts`.
-- v2 adds Poly Haven CC0 ground, facades and props (`node tools/fetch-polyhaven.ts` first), procedural windows, rain, volumetric fog and a night sky ([`docs/PARITY.md`](docs/PARITY.md)).
-- Open it in the Playground and press Play. Click signs, the gate, vending machines, lanterns, lamps or the taxi; `R` rain, `L` closing time, `V` viewpoint.
+| Demo | What | Run |
+|---|---|---|
+| **Light Room** | A small game: click coins, the floor, the balls, the crate and the walls | `threert-render play out/bundles/light-room.js` |
+| **Kabukichō Night** | A Shinjuku night street, procedural, lit almost entirely by ~120 emissive signs; rain, fog, a taxi. `R` rain, `L` closing time, `V` viewpoint | `threert-render play out/bundles/kabukicho.js` |
+| **Bistro** | Amazon Lumberyard Bistro at night: a slice, the district, and a crowd of 150 walkers and 60 vans | [`games/bistro-slice`](games/bistro-slice), [`bistro-district`](games/bistro-district), [`bistro-crowd`](games/bistro-crowd) |
+| **Zero-Day** | Beeple's Zero-Day (Measure One), animated | [`games/zero-day`](games/zero-day) |
+| **Tokyo** | Shinjuku and Shiba from the PLATEAU city model, with a live time of day | [`games/tokyo`](games/tokyo), [`tools/tokyo`](tools/tokyo) |
+| **Voxel level** | A destructible voxel city: explosions, falling pieces, fire and smoke | [`games/voxel-level`](games/voxel-level), [`docs/VOXEL.md`](docs/VOXEL.md) |
+| **Playground** | A macOS editor around the live viewport: outliner, live editing, Play-in-Editor, A/B against UE5 | `bun playground/build.ts && bun playground/run.ts` |
-**Scene code runs in the renderer** ([`docs/RUNTIME.md`](docs/RUNTIME.md)): `threert-render play out/bundles/kabukicho.js` runs the game inside the embedded QuickJS.
-- Setup builds the scene through the engine API.
-- Clicks and keys run handlers that commit game state, and world handlers (`on`) that change the scene at once.
-- The game's `frame` script (UE's Director Tick: neon flicker, wet / dry ramps, moods, power cut) derives the scene from that state every frame. Parameter changes rewrite GPU tables in place.
+## Repository layout
-**Tokyo** (`games/tokyo/`, `tools/tokyo/`): the open city, Shinjuku and Shiba, compiled by `tools/city` from public data. Live time of day uses the dynamic sky, windows switched by the clock, moonlight and the night sky.
+| Directory | What |
+|---|---|
+| [`renderer/`](renderer) | The engine: the Rust + wgpu path tracer, live viewport, denoiser, post, and an embedded QuickJS that runs scene code (`threert-render`); `voxel-core` and `physics-core` (Rapier) also build for wasm32 |
+| [`packages/`](packages) | `@threert/scene`, `@threert/gameplay`, `@threert/voxel` |
+| [`scenes/`](scenes), [`games/`](games) | The reference catalog (Cornell box, material grid, Bistro, Zero-Day, …) and the playable content |
+| [`tests/`](tests) | The render test suite (analytic and temporal checks) and the three.js compatibility set |
+| [`tools/`](tools) | Bundling, benches and gates, the three.js comparison, the Tokyo pipeline |
+| [`compare/`](compare) | Hello-world scenes side by side in three.js and ThreeRT |
+| [`ue5/`](ue5) | UE5 reference captures (Lumen and the Path Tracer): the ground truth the renderer is measured against |
+| [`playground/`](playground) | ThreeRT Playground, the macOS editor |
+| [`site/`](site) | [threert.dev](https://threert.dev): the landing page, Showcase, Download and Docs |
-**Scene authoring skill:** [`.claude/skills/threert-scene-authoring/`](.claude/skills/threert-scene-authoring/SKILL.md) covers photo-referenced scenes: the workflow, material / lighting / atmosphere values, the asset pipeline and the review / performance loop.
+## Documentation
-**How work lands:** [`docs/WORKFLOW.md`](docs/WORKFLOW.md) covers one PR per item from main, the merge gate by tier and who merges. [`docs/ROADMAP.md`](docs/ROADMAP.md) has the plan and every step's measurements.
+- [Getting started](https://threert.dev/docs/): the client, a first scene, the dev loop, packages
+- [`docs/RUNTIME.md`](docs/RUNTIME.md): how scene code runs in the engine: setup, handlers, world handlers, frame scripts, physics
+- [`docs/MATERIAL_FUNCTIONS.md`](docs/MATERIAL_FUNCTIONS.md): a WGSL body on a material, run by the path tracer at every hit
+- [`docs/VOXEL.md`](docs/VOXEL.md): the voxel engine, measured on a destructible level
+- [`docs/COMPARE.md`](docs/COMPARE.md): three.js at its strongest against ThreeRT, in frame rate and image quality
+- [`docs/PARITY.md`](docs/PARITY.md): Kabukichō against the same brief built in UE 5.8, and what the engine gained from it
+- [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/REPORT.md`](docs/REPORT.md): the serverless gameplay and rendering runtime the engine was built for
+- [`docs/ROADMAP.md`](docs/ROADMAP.md): the goal, the plan, and what each step measured
+- [Scene authoring skill](.claude/skills/threert-scene-authoring/SKILL.md): photo-referenced scenes with a coding agent
-## CI
+## Contributing
-`.github/workflows/ci.yml` runs on every push to main and every PR, as parallel jobs:
-- `ts`: `npm run typecheck`, `npm test`;
-- `renderer`: the renderer's release build;
-- `voxel`: the voxel core's wasm32 build and tests, and native / wasm32 edit determinism;
-- `physics`: the physics core's wasm32 build and tests, and native / wasm32 determinism (a script and 1,200 random worlds);
-- `wasm`: the engine library's wasm32 build;
-- `web`: the browser module's build (`renderer/web`), and the physics hello world on that module in Node (`tools/web-engine.ts`: no browser, no GPU).
+Issues and pull requests are welcome. [`docs/WORKFLOW.md`](docs/WORKFLOW.md) covers how work lands: one PR per item, the merge gate by tier, and CI. PRs are squash-merged.
-A PR runs a job only when it changes that job's inputs (the paths in the workflow's `changes` job; a change to the workflows runs them all); a push to main runs them all.
-`threert` sums them up and is the check to read before merging: it fails when a job failed or was cancelled, and passes when each one passed or was skipped by its paths.
+The project started inside another repository and was extracted on 2026-11-10; PR numbers #1 to #139 in the docs, and the `cloud/` and `render-node/` directories some of them mention, refer to that one.
-The GPU checks (`test:render`, the perf smoke, the benches, the browser test `tools/web-hello.ts`) run on a Mac, per [`docs/WORKFLOW.md`](docs/WORKFLOW.md).
+## Licence and credits
-## Assets and third-party content
+ThreeRT is under the [MIT licence](LICENSE). The clients for macOS and iOS are free to use and closed source.
-The assets are not committed: Poly Haven, Kabukichō's generated textures, Khronos and Quaternius models, the ORCA scenes and the compiled Tokyo tiles. That is ~1.8 GB, plus the 2 GB of ORCA archives.
-- They live once per machine in `<main clone>/../threert-assets`.
-- Every checkout's `assets/` is a relative link to it, made by `bun scripts/setup.ts`. Run it in each new clone or worktree; it never deletes anything.
-- Scripts run with Bun.
-- The ORCA scenes (Bistro, Zero Day) are FBX + DDS, converted to glTF by `scripts/orca.ts` (Blender headless; skipped without Blender, `brew install --cask blender`).
+The assets are not in the repository; `bun scripts/setup.ts` fetches them. Third-party content keeps its own terms, listed in [`docs/ASSETS.md`](docs/ASSETS.md):
-Third-party scenes are under Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/).
-- They were converted from FBX + DDS to glTF with PNG / JPEG textures by `scripts/orca.ts` and are otherwise unchanged.
-- Each archive's LICENSE.txt and README.txt are kept next to the glTF in `assets/orca/<scene>/`.
+- **Amazon Lumberyard Bistro**: Amazon Lumberyard (2017). **Zero-Day**: Mike Winkelmann (Beeple) and Kate Anderson (2019). Both from NVIDIA's Open Research Content Archive (ORCA), CC BY 4.0, converted from FBX to glTF.
+- **Tokyo**: the 3D city model is Project PLATEAU (MLIT Japan); elevation and aerial photos are GSI; roads and places are © OpenStreetMap contributors (ODbL). The compiler in `tools/city` is from [jeantimex/tokyo](https://github.com/jeantimex/tokyo) (MIT).
+- Poly Haven and Quaternius assets are CC0; the glTF sample models are Khronos'.
+- The maps in the OpenStrike clips above (cs_assault, de_inferno, de_dust2) are Counter-Strike maps, © Valve, and part of neither project.
-The scenes:
-- **Amazon Lumberyard Bistro**: Amazon Lumberyard (2017), Open Research Content Archive (ORCA), http://developer.nvidia.com/orca/amazon-lumberyard-bistro
-- **Zero-Day**: Mike Winkelmann (Beeple) and Kate Anderson (2019), Open Research Content Archive (ORCA), https://developer.nvidia.com/orca/beeple-zero-day
+three.js is an independent open-source project; ThreeRT is not affiliated with it.
-Tokyo:
-- The compiler in `tools/city` is imported from [jeantimex/tokyo](https://github.com/jeantimex/tokyo) (MIT, © 2026 Yong Su; [`tools/city/LICENSE`](tools/city/LICENSE)).
-- The data: the 3D city model is Project PLATEAU (MLIT Japan); elevation and aerial photos are GSI; roads and places are © OpenStreetMap contributors (ODbL).
-- Compiled tiles are a derived database under the ODbL and are not to be published.
+<p align="center"><sub>A research project from <a href="https://meshy.ai/">MeshyAI</a></sub></p>
diff --git a/docs/ASSETS.md b/docs/ASSETS.md
new file mode 100644
index 0000000..bd8592a
--- /dev/null
+++ b/docs/ASSETS.md
@@ -0,0 +1,28 @@
+# Assets and third-party content
+
+The assets are not committed: Poly Haven, Kabukichō's generated textures, Khronos and Quaternius models, the ORCA scenes and the compiled Tokyo tiles. That is ~1.8 GB, plus the 2 GB of ORCA archives.
+- They live once per machine in `<main clone>/../threert-assets`.
+- Every checkout's `assets/` is a relative link to it, made by `bun scripts/setup.ts`. Run it in each new clone or worktree; it never deletes anything.
+- Scripts run with Bun.
+- The ORCA scenes (Bistro, Zero Day) are FBX + DDS, converted to glTF by `scripts/orca.ts` (Blender headless; skipped without Blender, `brew install --cask blender`).
+
+Third-party scenes are under Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/).
+- They were converted from FBX + DDS to glTF with PNG / JPEG textures by `scripts/orca.ts` and are otherwise unchanged.
+- Each archive's LICENSE.txt and README.txt are kept next to the glTF in `assets/orca/<scene>/`.
+
+The scenes:
+- **Amazon Lumberyard Bistro**: Amazon Lumberyard (2017), Open Research Content Archive (ORCA), http://developer.nvidia.com/orca/amazon-lumberyard-bistro
+- **Zero-Day**: Mike Winkelmann (Beeple) and Kate Anderson (2019), Open Research Content Archive (ORCA), https://developer.nvidia.com/orca/beeple-zero-day
+
+Tokyo:
+- The compiler in `tools/city` is imported from [jeantimex/tokyo](https://github.com/jeantimex/tokyo) (MIT, © 2026 Yong Su; [`tools/city/LICENSE`](../tools/city/LICENSE)).
+- The data: the 3D city model is Project PLATEAU (MLIT Japan); elevation and aerial photos are GSI; roads and places are © OpenStreetMap contributors (ODbL).
+- Compiled tiles are a derived database under the ODbL and are not to be published.
+
+Other content:
+- **Damaged Helmet** and the other glTF sample models: Khronos glTF sample models, under each model's own licence.
+- **Poly Haven** textures, HDRIs and props: CC0.
+- **Quaternius** models: CC0.
+
+The engine's own code is under the MIT licence ([`LICENSE`](../LICENSE)); `renderer/third_party/` holds patched
+dependencies under their own licences (each has a PATCH.md).
diff --git a/docs/WORKFLOW.md b/docs/WORKFLOW.md
index 9909b35..f9595bd 100644
--- a/docs/WORKFLOW.md
+++ b/docs/WORKFLOW.md
@@ -130,6 +130,21 @@ highest tier any of its changes needs.
PRs are merged with `gh pr merge --squash` (the repository allows nothing else), which keeps one commit per PR on
main. Branches are kept.
+## CI
+
+`.github/workflows/ci.yml` runs on every push to main and every PR, as parallel jobs:
+- `ts`: `npm run typecheck`, `npm test`;
+- `renderer`: the renderer's release build;
+- `voxel`: the voxel core's wasm32 build and tests, and native / wasm32 edit determinism;
+- `physics`: the physics core's wasm32 build and tests, and native / wasm32 determinism (a script and 1,200 random worlds);
+- `wasm`: the engine library's wasm32 build;
+- `web`: the browser module's build (`renderer/web`), and the physics hello world on that module in Node (`tools/web-engine.ts`: no browser, no GPU).
+
+A PR runs a job only when it changes that job's inputs (the paths in the workflow's `changes` job; a change to the workflows runs them all); a push to main runs them all.
+`threert` sums them up and is the check to read before merging: it fails when a job failed or was cancelled, and passes when each one passed or was skipped by its paths.
+
+The GPU checks (`test:render`, the perf smoke, the benches, the browser test `tools/web-hello.ts`) run on a Mac, per the merge gate above.
+
## The npm packages
`@threert/scene`, `@threert/gameplay` and `@threert/voxel` are published from `packages/` with one version, the root
diff --git a/docs/images/reel.webp b/docs/images/reel.webp
new file mode 100644
index 0000000..afa50ec
Binary files /dev/null and b/docs/images/reel.webp differ