[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113156":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":41,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":45,"discoverSource":46},113156,"ThreeRT","meshy-dev\u002FThreeRT","meshy-dev","Hardware ray-traced three.js: a real-time path tracer behind a three.js-style API. Rust + wgpu engine, TypeScript scene and gameplay packages.","https:\u002F\u002Fthreert.dev",null,"Rust",701,54,2,6,0,23,207,423,97,99.22,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40],"game-engine","global-illumination","graphics","metal","path-tracing","ray-tracing","real-time-rendering","rendering","rust","threejs","typescript","voxel","webgpu","wgpu","2026-11-23 15:48:14","2026-11-23 19:48:39","\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\">\n    \u003Cpicture>\n      \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"site\u002Fbrand\u002Fmark.svg\">\n      \u003Cimg src=\"site\u002Fbrand\u002Fmark-light.svg\" width=\"84\" alt=\"ThreeRT\">\n    \u003C\u002Fpicture>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">ThreeRT\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cb>Hardware ray-traced three.js.\u003C\u002Fb>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  A real-time path tracer behind a three.js-style API. Write the scene you would write in three.js,\u003Cbr>\n  and every light in it is traced on the GPU's ray-tracing hardware, at 60 fps.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmeshy-dev\u002FThreeRT\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmeshy-dev\u002FThreeRT\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=main\" alt=\"CI\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@threert\u002Fscene\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@threert\u002Fscene?label=%40threert%2Fscene&color=f97316\" alt=\"@threert\u002Fscene on npm\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue\" alt=\"MIT licence\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\u002Fdownload\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fclients-macOS%20%C2%B7%20iOS-lightgrey\" alt=\"Clients for macOS and iOS\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002Fn7vsVmAKCK\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fchat-Discord-5865F2\" alt=\"Discord\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\">\u003Cb>Website\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fthreert.app\">Apps\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\u002Fdownload\u002F\">Download\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\u002Fdocs\u002F\">Docs\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002Fn7vsVmAKCK\">Discord\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fx.com\u002FThreeRT3D\">X\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fthreert.dev\">\u003Cimg src=\"docs\u002Fimages\u002Freel.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\">\u003C\u002Fa>\n  \u003Cbr>\n  \u003Csub>ThreeRT, live on an Apple M3 Max: this repository's demos and OpenStrike, a shooter built on the engine.\u003C\u002Fsub>\n\u003C\u002Fp>\n\n## Three + RT\n\n**Three**, for the API you already know. **RT**, for the three things it adds:\n\n- **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.\n- **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.\n- **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.\n\n## Hello world looks right\n\nWrite a scene at tutorial size and leave every setting at its default.\n\n```ts\nimport { Scene, PerspectiveCamera, Mesh, BoxGeometry, MeshStandardMaterial, DirectionalLight, SkyAtmosphere } from \"@threert\u002Fscene\";\n\nexport default function build() {\n  const scene = new Scene();\n  const sun = new DirectionalLight(0xffffff, 90000).setSunAngles(28, 100); \u002F\u002F lux\n  scene.add(sun);\n  scene.environment = new SkyAtmosphere({ sun });\n\n  const plaster = new MeshStandardMaterial({ color: 0xd9d4cc, roughness: 0.92 });\n  const wall = new Mesh(new BoxGeometry(6.6, 3, 0.3), plaster);\n  wall.position.set(0, 1.5, -3.15);\n  scene.add(wall);\n  \u002F\u002F ... the rest of the room: a floor, a window, a sofa, a lamp\n\n  const camera = new PerspectiveCamera(58, 16 \u002F 9, 0.05, 200);\n  camera.position.set(-2.3, 1.45, 2.4);\n  camera.lookAt(1.0, 0.9, -1.2);\n  scene.add(camera);\n  return { scene, camera };\n}\n```\n\n| three.js, as written | ThreeRT, all defaults |\n|---|---|\n| ![A room in three.js: flat walls, no sunlight on the floor](site\u002Fmedia\u002Fhello\u002Fsun-room-three.webp) | ![The same room in ThreeRT: sunlight through the window, bounce light on the walls](site\u002Fmedia\u002Fhello\u002Fsun-room-rt.webp) |\n\nThe 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\u002Fsun-room.ts`](scenes\u002Fsun-room.ts).\n\n## Against three.js at full power\n\nThe 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.\n\n| three.js r187 | ThreeRT |\n|---|---|\n| ![Amazon Lumberyard Bistro at night in three.js](site\u002Fmedia\u002Fbistro\u002Fhero-three.webp) | ![The same frame in ThreeRT](site\u002Fmedia\u002Fbistro\u002Fhero-rt.webp) |\n| ![Beeple's Zero-Day in three.js](site\u002Fmedia\u002Fzero-day\u002Ftuned.webp) | ![The same frame in ThreeRT](site\u002Fmedia\u002Fzero-day\u002Flive.webp) |\n\n| Bistro night, 1280 × 720 | Frame cost | Error against the reference (ΔE, lower is closer) |\n|---|---|---:|\n| **ThreeRT, live** | 15.5 ms (60 fps) | **3.4** |\n| three.js, WebGPU + SSGI + SSR + TRAA | 34.7 ms (29 fps) | 10.1 |\n| three.js, WebGL tuned | 15.9 ms (60 fps) | 12.1 |\n\nThe 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\u002FCOMPARE.md`](docs\u002FCOMPARE.md).\n\n## Get started\n\n### Play and make games\n\n1. **[Download ThreeRT](https:\u002F\u002Fthreert.dev\u002Fdownload\u002F)** 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.\n2. Open an example from the app's library or from [threert.app](https:\u002F\u002Fthreert.app), where ThreeRT apps and games are published.\n3. Write your own with the `threert` command line that ships inside the Mac app:\n\n```bash\nthreert create my-game\ncd my-game\nthreert dev        # bundles on save, serves every client on your network, prints a QR code for your phone\n```\n\nThe same address in any browser shows the game as three.js. The full walk-through is at [threert.dev\u002Fdocs](https:\u002F\u002Fthreert.dev\u002Fdocs\u002F).\n\n### Packages\n\n| Package | What |\n|---|---|\n| [`@threert\u002Fscene`](packages\u002Fscene) | The three.js-style scene API: meshes, PBR materials, lights, glTF models, physics, volumes |\n| [`@threert\u002Fgameplay`](packages\u002Fgameplay) | Games: state, transactional handlers, world handlers, frame scripts; input, a HUD and a channel to the app that runs the game; deterministic and replayable |\n| [`@threert\u002Fvoxel`](packages\u002Fvoxel) | Destructible voxel levels: explosions, cuts, and pieces that break off as rigid bodies |\n\n```bash\nnpm install @threert\u002Fscene @threert\u002Fgameplay\n```\n\n`threert dev` bundles these for you. Install them from npm for types, tests, or a build pipeline of your own.\n\n### Build the engine from source\n\nThe engine is Rust and [wgpu](https:\u002F\u002Fwgpu.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:\u002F\u002Fbun.sh).\n\n```bash\nnpm install && bun scripts\u002Fsetup.ts      # assets\u002F -> the machine's shared asset store, then fetch what is missing\nnode tools\u002Fbuild-scenes.ts                # scenes\u002F*.ts + games -> out\u002Fbundles\u002F\u003Cid>.js\nbun renderer\u002Fbuild.ts                     # -> renderer\u002Ftarget\u002Frelease\u002Fthreert-render\n\nrenderer\u002Ftarget\u002Frelease\u002Fthreert-render play out\u002Fbundles\u002Flight-room.js                         # a game, in a window\nrenderer\u002Ftarget\u002Frelease\u002Fthreert-render render out\u002Fbundles\u002Fcornell-box.js -o out\u002Fcornell.png --spp 32   # a scene, to an image\nnode tools\u002Fthree\u002Fopen.ts scenes\u002Fbistro.ts # the same scene in three.js, in your browser\n```\n\nIn the window: drag to orbit, right-drag to pan, wheel to zoom, WASD\u002FQE to fly, `R` to reset, `P` for a snapshot.\n\n```bash\nnpm test && npm run typecheck && (cd renderer && cargo test --release)   # scene API, gameplay, runtime and engine tests\nnpm run test:render                                                      # the render test suite, on the GPU\n```\n\n## Demos in this repository\n\n| Demo | What | Run |\n|---|---|---|\n| **Light Room** | A small game: click coins, the floor, the balls, the crate and the walls | `threert-render play out\u002Fbundles\u002Flight-room.js` |\n| **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\u002Fbundles\u002Fkabukicho.js` |\n| **Bistro** | Amazon Lumberyard Bistro at night: a slice, the district, and a crowd of 150 walkers and 60 vans | [`games\u002Fbistro-slice`](games\u002Fbistro-slice), [`bistro-district`](games\u002Fbistro-district), [`bistro-crowd`](games\u002Fbistro-crowd) |\n| **Zero-Day** | Beeple's Zero-Day (Measure One), animated | [`games\u002Fzero-day`](games\u002Fzero-day) |\n| **Tokyo** | Shinjuku and Shiba from the PLATEAU city model, with a live time of day | [`games\u002Ftokyo`](games\u002Ftokyo), [`tools\u002Ftokyo`](tools\u002Ftokyo) |\n| **Voxel level** | A destructible voxel city: explosions, falling pieces, fire and smoke | [`games\u002Fvoxel-level`](games\u002Fvoxel-level), [`docs\u002FVOXEL.md`](docs\u002FVOXEL.md) |\n| **Playground** | A macOS editor around the live viewport: outliner, live editing, Play-in-Editor, A\u002FB against UE5 | `bun playground\u002Fbuild.ts && bun playground\u002Frun.ts` |\n\n## Repository layout\n\n| Directory | What |\n|---|---|\n| [`renderer\u002F`](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 |\n| [`packages\u002F`](packages) | `@threert\u002Fscene`, `@threert\u002Fgameplay`, `@threert\u002Fvoxel` |\n| [`scenes\u002F`](scenes), [`games\u002F`](games) | The reference catalog (Cornell box, material grid, Bistro, Zero-Day, …) and the playable content |\n| [`tests\u002F`](tests) | The render test suite (analytic and temporal checks) and the three.js compatibility set |\n| [`tools\u002F`](tools) | Bundling, benches and gates, the three.js comparison, the Tokyo pipeline |\n| [`compare\u002F`](compare) | Hello-world scenes side by side in three.js and ThreeRT |\n| [`ue5\u002F`](ue5) | UE5 reference captures (Lumen and the Path Tracer): the ground truth the renderer is measured against |\n| [`playground\u002F`](playground) | ThreeRT Playground, the macOS editor |\n| [`site\u002F`](site) | [threert.dev](https:\u002F\u002Fthreert.dev): the landing page, Download and Docs (the apps themselves are on [threert.app](https:\u002F\u002Fthreert.app)) |\n\n## Documentation\n\n- [Getting started](https:\u002F\u002Fthreert.dev\u002Fdocs\u002F): the client, a first scene, the dev loop, packages\n- [`docs\u002FRUNTIME.md`](docs\u002FRUNTIME.md): how scene code runs in the engine: setup, handlers, world handlers, frame scripts, physics\n- [`docs\u002FMATERIAL_FUNCTIONS.md`](docs\u002FMATERIAL_FUNCTIONS.md): a WGSL body on a material, run by the path tracer at every hit\n- [`docs\u002FVOXEL.md`](docs\u002FVOXEL.md): the voxel engine, measured on a destructible level\n- [`docs\u002FPORTS.md`](docs\u002FPORTS.md): a game written once for ThreeRT, and ports of it to devices the engine does not run on\n- [`docs\u002FCOMPARE.md`](docs\u002FCOMPARE.md): three.js at its strongest against ThreeRT, in frame rate and image quality\n- [`docs\u002FPARITY.md`](docs\u002FPARITY.md): Kabukichō against the same brief built in UE 5.8, and what the engine gained from it\n- [`docs\u002FARCHITECTURE.md`](docs\u002FARCHITECTURE.md), [`docs\u002FREPORT.md`](docs\u002FREPORT.md): the serverless gameplay and rendering runtime the engine was built for\n- [`docs\u002FROADMAP.md`](docs\u002FROADMAP.md): the goal, the plan, and what each step measured\n- [Scene authoring skill](.claude\u002Fskills\u002Fthreert-scene-authoring\u002FSKILL.md): photo-referenced scenes with a coding agent\n\n## Contributing\n\nIssues and pull requests are welcome. [`docs\u002FWORKFLOW.md`](docs\u002FWORKFLOW.md) covers how work lands: one PR per item, the merge gate by tier, and CI. PRs are squash-merged.\n\nThe project started inside another repository and was extracted on 2026-11-10; PR numbers #1 to #139 in the docs, and the `cloud\u002F` and `render-node\u002F` directories some of them mention, refer to that one.\n\n## Licence and credits\n\nThreeRT is under the [MIT licence](LICENSE). The clients for macOS and iOS are free to use and closed source.\n\nThe assets are not in the repository; `bun scripts\u002Fsetup.ts` fetches them. Third-party content keeps its own terms, listed in [`docs\u002FASSETS.md`](docs\u002FASSETS.md):\n\n- **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.\n- **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\u002Fcity` is from [jeantimex\u002Ftokyo](https:\u002F\u002Fgithub.com\u002Fjeantimex\u002Ftokyo) (MIT).\n- Poly Haven and Quaternius assets are CC0; the glTF sample models are Khronos'.\n- The maps in the OpenStrike clips above (cs_assault, de_inferno, de_dust2) are Counter-Strike maps, © Valve, and part of neither project.\n\nthree.js is an independent open-source project; ThreeRT is not affiliated with it.\n\n\u003Cp align=\"center\">\u003Csub>A research project from \u003Ca href=\"https:\u002F\u002Fmeshy.ai\u002F\">MeshyAI\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Fp>\n","ThreeRT 是一个基于硬件加速光线追踪的实时路径追踪渲染引擎，提供与 three.js 高度兼容的 TypeScript API。其核心采用 Rust + wgpu 构建底层渲染管线，支持 GPU 原生光线追踪（阴影、全局光照、反射、自发光），无需烘焙或传统光栅化辅助技术；同时集成游戏运行时能力，允许场景逻辑与渲染共存于同一代码中。适用于需要影视级光照真实感且保持交互帧率的 WebGPU 原生应用，如技术演示、产品可视化、轻量级光线追踪游戏及教育实验场景。","2026-11-24 04:45:00","CREATED_QUERY"]