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.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
feat(site): three.js, down to the metal (#307)
Evan (Yifeng) Wang2b82e430541f
diff --git a/README.md b/README.mdindex df3834f..33aaac9 100644--- a/README.md+++ b/README.md@@ -9,23 +9,21 @@<h1 align="center">ThreeRT</h1>-<p align="center"><b>The native runtime for three.js — hardware path tracing at 60 fps, or a clean WebGPU app.</b></p>+<p align="center"><b>three.js, down to the metal.</b></p>-<p align="center">- One engine, two renderers: <b><code>path</code></b> traces every light on ray-tracing hardware at 60 fps,<br>- and <b><code>webgpu</code></b> (macOS & Linux, <a href="docs/RENDERING-METHODS.md">architecture</a>) runs standard three.js natively with zero path-tracer code.-</p>+<p align="center">ThreeRT is a native runtime for three.js: no browser between your scene and the GPU.</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://threert.dev/download/"><img src="https://img.shields.io/badge/clients-macOS%20%C2%B7%20iOS%20%C2%B7%20Steam%20Deck%20%C2%B7%20Android-lightgrey" alt="Clients for macOS, iOS, Steam Deck and Android"></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/blog/">Blog</a> ·<a href="https://threert.app">Apps</a> ·<a href="https://threert.dev/download/">Download</a> ·<a href="https://threert.dev/docs/">Docs</a> ·@@ -34,66 +32,39 @@</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, OpenStrike, Tokyo at dusk, Beeple's Zero-Day, a voxel city demolished, glowing balls down a staircase, a wrecking ball through a tower of glowing bricks, 400 lanterns, and product and interior scenes"></a>- <br>- <sub>ThreeRT, live on an Apple M3 Max: this repository's demos and OpenStrike, a shooter built on the engine, on its own map.</sub>+ <a href="https://threert.dev"><img src="docs/images/hero.webp" width="100%" alt="three.js, down to the metal: 45 times smaller than Electron, on a Sony PS3, ray-traced at 60 fps"></a></p>-## Three + RT+## Down to the metal-**Three**, for the API you already know. **RT**, for the three things it adds:+Take the browser out from under three.js, and three things open up.-- **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 native runtime for three.js, not only a renderer. Scene code and game logic run inside the engine: choose the `path` renderer for hardware ray tracing, the `webgpu` renderer (`node tools/build.ts --renderer webgpu`) for a clean native app with zero ray-tracing overhead, or run as plain three.js in any browser.+- **45× smaller.** `webgpu` (macOS and Linux) runs three.js r187 and its own `WebGPURenderer`, unchanged, on a native `navigator.gpu` over wgpu, with the same pixels as Chrome. A desktop app is 9.9 MB installed where its Electron build is 445 MB; a three.js wallpaper on Wayland uses 15.6 % CPU where Chromium uses 39.9 %, and none while a window covers it.+- **On a Sony PS3.** On hardware with no WebGPU and no JIT, three.js r187's scene graph runs on QuickJS and a native renderer draws it on the RSX at 1920 × 1080, with a PocketJS interface in the same frame. Experimental, 16 to 30 fps: [three.js on a Sony PS3](https://threert.dev/blog/ps3/).+- **Ray-traced, 60 fps.** On GPUs with ray-tracing hardware, `path` traces every light in a three.js-style scene: shadows, bounce light, reflections and glowing surfaces, nothing baked, at 60 fps in production scenes.-## Renderers: `path` and `webgpu`+**Three + RT:** Three, for the API you already know; RT, for ray tracing, real time, and the runtime under both.-ThreeRT stays one engine and one runtime with two renderers selected at build time (`node tools/build.ts --renderer path` or `--renderer webgpu`). They share the native runtime (`runtime/`) with one-way dependencies (`threert-path → threert-runtime ← threert-webgpu`), enforced by CI (`node tools/check-webgpu-gate.ts`) so a `webgpu` build links no ray-tracing code at all.+## Renderers: what each keeps of three.js-| | `path` | `webgpu` ([`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md)) |-|---|---|---|-| **Renderer** | Rust + wgpu compute path tracer (hardware ray queries, OIDN, DLSS / MetalFX) | Standard three.js `WebGPURenderer` over native `navigator.gpu` (wgpu) |-| **Scene API** | `@threert/scene` (physical lighting units) | Plain `three.js` + TSL node materials (+ PocketJS UI) |-| **GPU** | Ray-tracing hardware (Apple M-series, RTX, RDNA2+) | Any GPU wgpu supports (Metal, Vulkan, D3D12) |-| **Footprint** | Full ThreeRT clients | Proven at **9.9 MB installed / 4.5 MB download** (vs 445 / 170 MB Electron) |--## 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 };-}-```+Each way of running a three.js project keeps part of three.js and replaces the rest. In this repository, two renderers are selected at build time (`node tools/build.ts --renderer path` or `--renderer webgpu`). They share the native runtime (`runtime/`) with one-way dependencies (`threert-path → threert-runtime ← threert-webgpu`), enforced by CI (`node tools/check-webgpu-gate.ts`) so a `webgpu` build links no ray-tracing code at all. A third way, a native renderer for three.js's scene graph, runs on a PlayStation 3 and is built in PocketJS.-| three.js, as written | ThreeRT, all defaults |-|---|---|-|  |  |+| | `path` | `webgpu` ([`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md)) | PlayStation 3 (experimental) |+|---|---|---|---|+| **Keeps of three.js** | Its scene API, as `@threert/scene` (physical lighting units) | three.js and its `WebGPURenderer`, unchanged, + TSL node materials | The scene graph: objects, geometry, materials, lights |+| **Replaces** | The renderer, with a path tracer | The browser, with the native runtime | three.js's renderer, with a native one |+| **Renderer** | Rust + wgpu compute path tracer (hardware ray queries, OIDN, DLSS / MetalFX) | three.js r187 `WebGPURenderer` over native `navigator.gpu` (wgpu) | C on the RSX, hand-written PBR, sky and unlit shaders; three.js r187 on QuickJS (no JIT) |+| **GPU** | Ray-tracing hardware (Apple M-series, RTX, RDNA2+) | Any GPU wgpu supports (Metal, Vulkan, D3D12) | The PlayStation 3's RSX, 1920 × 1080 |+| **UI** | The game HUD | PocketJS over the 3D frame | PocketJS in the same frame |+| **Footprint** | Full ThreeRT clients | Proven at **9.9 MB installed / 4.5 MB download** (vs 445 / 170 MB Electron); also a Wayland wallpaper host (`webgpu/wallpaper`) | 16–30 fps in four demos, not yet profiled; in [PocketJS](https://github.com/pocket-nexus/pocketjs/tree/main/programs/ps3), not built by `tools/build.ts` |++### A native renderer for the scene graph-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).+three.js's `WebGPURenderer` needs WebGPU, and it does its per-frame work in JavaScript, which runs several times slower without a JIT. A PlayStation 3 has neither WebGPU nor a JIT. There the scene code still imports `three` and builds a three.js scene graph; once a frame, a small renderer walks the graph, packs each object's transform and material into typed arrays, and hands them to native code that draws on the RSX. three.js's own renderer never runs, so what lives in it does not carry over: shadows, `ShaderMaterial` and TSL, three.js's post-processing. This sits between `webgpu`, which keeps all of three.js, and a [port](docs/PORTS.md), which keeps only a game's rules. [`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md) has what it draws and what it costs.-## Against three.js at full power+## Ray-traced: 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.+On GPUs with ray-tracing hardware: 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 ||---|---|@@ -110,9 +81,23 @@ The reference is an unbiased offline render (4,096 samples per pixel, no denoise## Get started-### Play and make games+### Run three.js natively (`webgpu`, macOS and Linux)++```bash+npm install+node tools/build.ts --renderer webgpu # the runtime and the webgpu renderer; no path-tracer code is linked+node tools/check-webgpu-gate.ts --render # dependency isolation, JS layering, binary size, a headless render+```++The sample is plain three.js and TSL ([`webgpu/sample/scene.ts`](webgpu/sample/scene.ts)); the Omarchy wallpaper host is [`webgpu/wallpaper`](webgpu/wallpaper). How it is built and measured: [`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md).++### three.js on a Sony PS3++The PS3 runtime and its three.js renderer are built in [PocketJS](https://github.com/pocket-nexus/pocketjs/tree/main/programs/ps3), with PSL1GHT, for a console with custom firmware. How it works and what it measured: [three.js on a Sony PS3](https://threert.dev/blog/ps3/).++### Play and make games (`path`)-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.+1. **[Download ThreeRT](https://threert.dev/download/)** for macOS (14 or later, Apple silicon), iPhone and iPad (iOS 17 or later), Steam Deck or Android. 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 [threert.app](https://threert.app), where ThreeRT apps and games are published.3. Write your own with the `threert` command line that ships inside the Mac app:@@ -194,18 +179,21 @@ npm run test:render # the r| 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 |+| [`runtime/`](runtime) | The native runtime: the JavaScriptCore guest, web-platform globals (timers, fetch, WebSocket, storage, Canvas 2D), and the PocketJS host |+| [`webgpu/`](webgpu) | The `webgpu` renderer: `navigator.gpu` over wgpu, the sample, the headless `webgpu-shot`, and the Wayland wallpaper host || [`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 |-| [`site/`](site) | [threert.dev](https://threert.dev): the landing page, Download and Docs (the apps themselves are on [threert.app](https://threert.app)) |+| [`site/`](site) | [threert.dev](https://threert.dev): the landing page, the blog, Download and Docs (the apps themselves are on [threert.app](https://threert.app)) |## Documentation- [Getting started](https://threert.dev/docs/): the client, a first scene, the dev loop, packages-- [`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md): one runtime, two renderers (`path` and `webgpu`), crate layout and size-gate rules+- [Blog](https://threert.dev/blog/): engineering notes; the first is [three.js on a Sony PS3](https://threert.dev/blog/ps3/)+- [`docs/RENDERING-METHODS.md`](docs/RENDERING-METHODS.md): what each way of running keeps of three.js: the `path` and `webgpu` renderers, native scene-graph renderers, crate layout and size-gate rules- [`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 leveldiff --git a/docs/RENDERING-METHODS.md b/docs/RENDERING-METHODS.mdindex f54d9cb..7a5150a 100644--- a/docs/RENDERING-METHODS.md+++ b/docs/RENDERING-METHODS.md@@ -1,4 +1,4 @@-# Renderers: Path Tracer (`path`) and WebGPU (`webgpu`)+# Renderers: Path Tracer (`path`), WebGPU (`webgpu`), and native scene-graph renderers> Status: active (2026-11-28). Both the `path` renderer (`renderer/`) and the `webgpu` renderer> (`runtime/` + `webgpu/`, built via `node tools/build.ts --renderer webgpu`, gated by@@ -7,11 +7,19 @@> runs three.js r187's `WebGPURenderer` natively on PocketJS's JavaScriptCore guest> (`pocket-nexus/pocketjs#773`, `#774`, `#775`), originally proven in> `pocket-nexus/pocket-agents-island#28`, `#29`. Windows support remains planned.+> A native renderer for three.js's scene graph runs, experimentally, on a **PlayStation 3** (2026-12-02).+> It is built in PocketJS, not in this repository: [Native scene-graph renderers](#native-scene-graph-renderers).-ThreeRT is one engine and one runtime with **two renderers**, chosen per project and per build:+ThreeRT is one engine and one runtime with **two renderers** in this repository, chosen per project and+per build. They differ in what they keep of three.js: `path` keeps its scene API and replaces the renderer;+`webgpu` keeps three.js and its renderer and replaces the browser. A third way, for hardware with neither ray+tracing nor WebGPU, keeps three.js's scene graph and replaces its renderer+([below](#native-scene-graph-renderers)).| | **`path`** (Path Tracer) | **`webgpu`** (WebGPU rasterization on macOS and Linux) ||---|---|---|+| Keeps of three.js | its scene API, as `@threert/scene` | three.js and its `WebGPURenderer`, unchanged |+| Replaces | the renderer | the browser || What draws | ThreeRT's wgpu compute path tracer: hardware ray queries, OIDN, DLSS / MetalFX, the physical sky and post chain | three.js r187's own `WebGPURenderer`, running natively: `navigator.gpu` implemented over wgpu inside the engine's JavaScript guest || Scene code | `@threert/scene` (physical units) | plain `three.js` + TSL node materials || GPU | ray-tracing hardware (Apple M-series, RTX, RDNA2+) | any GPU wgpu supports (Metal, Vulkan, D3D12) |@@ -91,6 +99,50 @@ the `dlss` / `oidn` / `net` / `audio` features, and the default build stay as thThe JavaScriptCore guest and native text path live in PocketJS (`pocket-guest-jsc`,`pocket-wgpu-render`'s `TextPainter`); ThreeRT depends on them rather than copying them.+## Native scene-graph renderers++`webgpu` needs two things from a device: a GPU that wgpu drives, and a JavaScript engine fast enough for+`WebGPURenderer`'s per-frame work. A PlayStation 3 has neither: its RSX predates WebGPU's feature set, and+homebrew has no JIT (PocketJS runs QuickJS on the Cell's PPU). There a native renderer draws three.js's scene+graph instead of three.js's own renderer:++- The scene code is unchanged three.js: it imports `three` (0.187.0) and builds `Object3D`s, geometries,+ materials and lights.+- Once a frame, `RSXRenderer` (TypeScript, about 800 lines) calls `updateMatrixWorld`, walks the graph, and+ packs each object's matrix and material parameters into typed arrays. Geometry and textures are uploaded+ once and cached by id.+- Native code (`rsx3d.c`) draws them on the RSX with three hand-written shader pairs: PBR (metalness and+ roughness, an environment map, a directional, a hemisphere and three point lights, fog), a sky dome, and+ unlit points and lines. A planar mirror uses the stencil buffer.+- PocketJS draws its UI into the same 1920 × 1080 frame after the 3D pass, without a clear.++What it draws: `Mesh`, `InstancedMesh`, `Points`, `Line` and `LineSegments`; `MeshStandardMaterial`,+`MeshPhysicalMaterial`, `MeshPhongMaterial`, `MeshLambertMaterial`, `MeshBasicMaterial` and+`MeshNormalMaterial`, mapped onto the PBR or the unlit shader; ambient, hemisphere, directional and point+lights; `Fog` and `FogExp2`; `PerspectiveCamera`. What lives in three.js's renderer does not carry over:+**shadows, `ShaderMaterial`, `onBeforeCompile` and TSL, render targets and post-processing**. The mirror is+the renderer's own option, not three.js's `Reflector`.++Measured on a PlayStation 3 (CECH-2500, system software 4.81 with custom firmware), 1920 × 1080, from the+demos' own counters. "Submit" is PPU time spent writing the 3D pass's commands, not GPU time.++| Demo | Triangles | Draws | Submit | fps |+|---|---:|---:|---:|---:|+| Showroom: torus knot, PBR satellites, planar mirror | 25,990 | 26 | 0.1 ms | 20 |+| Material grid: 20 spheres, metalness × roughness, mirror | 58,886 | 43 | 0.1 ms | 26 |+| Galaxy: planet, rings, 2,400 point sprites | 5,678 | 7 | 0.1 ms | 30 |+| Instanced wave: 196 instances | 2,362 | 199 | 28.9 ms | 16 |++The RSX has no hardware instancing, so an `InstancedMesh` costs one draw and one constant upload an instance:+that is the 28.9 ms. Where the other demos' frames go (QuickJS walking the graph, the RSX shading 1080p with+a mirror pass, or waiting on vsync) is **not measured yet**, and the Cell's six SPUs are not used.++It is not a `--renderer` of this repository. It shares no crate with `runtime/`: the PS3 build is PocketJS's+(PSL1GHT, `ppu-gcc`, a C host program), and the code is in `pocket-nexus/pocketjs` (`platforms/ps3/`,+`apps/ps3-three-showcase/`). A shared interface for scene-graph renderers waits for a second device that needs+one. It sits between `webgpu`, which keeps all of three.js, and a [port](PORTS.md), which keeps a game's rules+and replaces everything else.+## Open questions- **The guest on Windows.** Linux uses JavaScriptCore from WebKitGTK. The Windows port still needsdiff --git a/docs/images/hero.webp b/docs/images/hero.webpnew file mode 100644index 0000000..6dceb1cBinary files /dev/null and b/docs/images/hero.webp differdiff --git a/docs/images/social-preview.jpg b/docs/images/social-preview.jpgnew file mode 100644index 0000000..ec9798fBinary files /dev/null and b/docs/images/social-preview.jpg differdiff --git a/site/README.md b/site/README.mdindex 5a55f24..8548a85 100644--- a/site/README.md+++ b/site/README.md@@ -48,10 +48,10 @@ Two things are asked of a visitor, on every page: **a star** on github.com/meshya page for each app at `<name>.threert.app`, `threert publish`, multiplayer rooms). threert.dev says what the engineis and proves it; the apps live there. So the site has no catalogue of its own.-Every page has the same nav, top right: **Apps** (threert.app, in the same tab and without an external-link arrow: the platform is the same product, its own nav leads back to Download and Docs here, and a new tab costs the back button on phones),-**Download**, **Docs**, then **Star** (GitHub's mark, the word and the repository's star count: `a.star`, below),+Every page has the same nav, top right: **Blog** (`blog/`), **Download**, **Docs**, then **Star** (GitHub's mark, the word and the repository's star count: `a.star`, below),Discord (discord.gg/n7vsVmAKCK) and X (x.com/ThreeRT3D) as their marks; on a phone Star is GitHub's mark alone. The-footer has the same links, over the line that says whose it is: a research project from MeshyAI (meshy.ai), © MeshyAI.+footer has the same links and **Apps** (threert.app, in the same tab and without an external-link arrow: the platform is+the same product), over the line that says whose it is: a research project from MeshyAI (meshy.ai), © MeshyAI.The markup is repeated in each page; change it in all of them (the privacy page has the three words only).| Page | What is on it |@@ -59,45 +59,56 @@ The markup is repeated in each page; change it in all of them (the privacy page| `index.html` | The landing page (below). || `download/` | The five clients, a card each (below), then how a client loads a game: `threert dev`, scan, traced and live. || `docs/` | Getting started: install the client, open an example, write a scene, the dev loop with the `threert` CLI, the package format and publishing to threert.app, links to the reference documents in `docs/` on GitHub. |+| `blog/` | The blog: an index (`blog/index.html`, a row per post, newest first) and a directory a post (`blog/ps3/`). A post is the docs article layout (contents on the left) with its own figures drawn in HTML and SVG, its own `og:image` and `og:type` article. The first: three.js on a Sony PS3. || `privacy/` | What the apps and the site do with data, including the requests the pages make to other services (below). || `showcase/` | Gone as a page: what it listed is published on threert.app. The Worker answers `/showcase`, `/showcase/` and `/showcase/index.html` with a 301 to `https://threert.app/` (old links: the npm packages' READMEs, the pages of packages built before, earlier apps); `showcase/index.html` is what is left for a host without the Worker, a page that sends the reader on. `showcase/community.json` stays where it is, served as before: ThreeRT for macOS before 0.4.0 reads it (and `play/index.json`) for its Showcase. Nothing is added to it any more: people publish with `threert publish`. |### The landing page-The buttons, in the hero and at the end, in this order of weight: **Explore apps** (filled, to threert.app), **Star on-GitHub** (outlined, with the count), and under them a line with **Download** as a link, named for the visitor's-platform by `js/site.js` (`a[data-dl]`), then the other clients in a word each (`[data-dl-others]`: "Download for-macOS · iPhone · Steam Deck · Android"). One filled button a row; three equal buttons were the thing to avoid, and-the clients do not get buttons here.--1. **Hero:** a reel behind the headline: a grid of short clips of this repository's demos (Bistro with a crowd,- Tokyo at dusk, Zero-Day, the voxel city demolished, the showreel's light-and-physics scenes, the showcase cases)- and of OpenStrike on its own map, all ThreeRT live, ray traced,- nothing compared (`media/reel/`: 4 x 3 clips for a wide screen, 2 x 4 for a phone held upright; 60 fps, an 8 s- loop). Nothing in it takes a touch, so a finger scrolling the page passes over it. Its first frame is what shows- until it plays, and where it does not: reduced motion, a data saver, autoplay refused. A button pauses it.- "Hardware ray-traced three.js."-2. **ThreeRT = Three + RT:** Ray Tracing, Real Time, Runtime.-3. **Hello world looks right:** an auto-advancing reel of three starter scenes, the ThreeRT source next to its output- (three.js as written | ThreeRT with every setting at its default).-4. **Against three.js at full power:** Bistro night and Zero-Day; the left side picks three.js WebGL, three.js WebGPU- with SSGI, or the path-traced reference; the right side is ThreeRT live.-5. **A camera move:** Bistro night as a clip under a divider (three.js | ThreeRT at 60 fps, `media/bistro/hero*.mp4`:- both sides in one file so they cannot drift; it was the Showcase page's opening) and Zero-Day's camera path, 60- poses of both engines in lockstep.-6. **What a ray finds:** four close-ups.-7. **Open source. MIT.** A strip, where the comparisons end: what is in the repository, why a star helps, the Star- button, the npm packages.-8. **One runtime, two renderers, every screen:** the `path` renderer on ray-tracing hardware, the planned `webgpu`- renderer for clean native three.js apps with zero ray-tracing code, and the same scene in any browser or WebView.-9. **Play it with a friend:** OpenStrikeRT (`https://openstrike.threert.app/`), the platform's first multiplayer game:- its cover with the words over it, two of its screenshots, three facts (rooms of up to 10, bots when alone, all of it- game code). Its pictures are copies in `media/openstrike/`.-10. **Not only games. All on threert.app:** seven apps from the platform and an eighth cell that invites the reader's- own (next section).-11. **One command puts yours online:** write three.js-style code, `threert publish`, the app's address. What it says- `threert publish` does is what https://threert.app/publish says; check there before changing it.-12. **Just light.**+One line and what it means: **three.js, down to the metal**, with no browser between three.js and the hardware. The page+is short on purpose: the first screen+says all of it, and each section after proves one card of it. Nothing on it is said twice.++**Light.** The page is unlit ink behind a sheet of glass, with light flowing under it (`js/glass.js`, one WebGL2+fragment shader on a fixed canvas behind everything). The sheet is a low-poly mesh of irregular triangles, about 96 px+each. Every triangle is a facet with its own tilt: it shows the light behind it shifted, shades across its thickness,+and now and then catches a moving glint; its edges catch the light where there is any. The light is the hero's: a warm+key behind the headline, a cool rim top right and a warm bounce under the cards, with a domain-warped flow running+through them; it moves off slower than the page scrolls, and a little warm light follows a mouse. The shader draws at+most 30 frames a second, below the screen's resolution, nothing while the tab is hidden, and one still frame under+reduced motion. Without WebGL2 the hero keeps the same light in CSS (`html:not(.glass-on) .hx::before`, `::after`).+Over the sheet: a highlight runs across "down to the metal." every 9 s; the cards have a specular top edge and glow in+their own colour on hover; each section is lit in its answer's colour behind what it shows (`#light` silver-blue,+`#far` the PlayStation 3's blue, `#traced` and the end tungsten). Warm light is tungsten, the one accent, and means+light; nothing else uses it.++The buttons, in the hero and at the end: **Explore apps** (filled, to threert.app) and **Star on GitHub** (outlined,+with the count). One filled button a row. The end adds one line of links: the repository, **Download** (named for the+visitor's platform by `js/site.js`, `a[data-dl]`) and the docs.++1. **Hero:** "three.js, down to the metal." (the headline), under it what ThreeRT is ("ThreeRT is a native runtime for+ three.js: no browser between your scene and the GPU."), the buttons, and three cards, each a picture, a few words+ and a footnote: **45× smaller** (the `webgpu` wallpaper; footnote 1), **On a Sony PS3** (footnote 2), **Ray-traced,+ 60 fps** (Bistro path-traced, on GPUs with ray-tracing hardware; footnote 3). Say "Sony PS3" or "Sony PlayStation+ 3", never "a 2006 console"; and say where tracing happens (the path renderer, ray-tracing GPUs), never that+ everything is traced. Each card leads to its section.+2. **Ship it like a native app** (`#light`, `webgpu`): one paragraph, three numbers (installed size against Electron,+ CPU against Chromium, CPU while covered), the Omarchy wallpaper (`media/webgpu/`, from doodlewind/ThreeRT-dev#8;+ the Earth is NASA's Blue Marble and Black Marble).+3. **No WebGPU. No JIT. It still runs.** (`#far`, the Sony PS3, experimental): one paragraph that says what it is and+ what it can't do yet, two frames from the console (`media/ps3/`), a link to the blog post on the port+ (`blog/ps3/`). The code is in PocketJS.+4. **Ray-traced. At 60 fps.** (`#traced`, `path`): the one comparison with three.js at full power: Bistro night+ or Zero-Day; the left side picks three.js WebGL, three.js WebGPU with SSGI, or the path-traced reference; the right+ side is ThreeRT live. Under it one line of numbers and the clients it runs in.+5. **Made with ThreeRT. On threert.app.** Seven apps from the platform and an eighth cell that invites the reader's+ own (`threert publish`).+6. **Bring your three.js.** The mark, the buttons, the line of links.++Taken off this page in the rewrite, and still in the repository: the reel (`media/reel/`, `site/tools/reel.ts`; its+still is `docs/images/reel.webp`), the hello-world reel (`media/hello/`, `media/code/`), the camera moves (`media/bistro/hero*`,+`media/*/move/`), the 3D device shelf (`js/devices.js`, `media/devices/`) and OpenStrikeRT's section+(`media/openstrike/`, still written by `site/tools/platform.ts`).### The Download page@@ -220,8 +231,9 @@ where it is served:| `js/threert.js` | The wipe comparison (and the clip that can play over its two stills), the reel behind the landing page's headline, the synced camera-move player, the code highlighter. A divider follows a finger only once it moves sideways, so scrolling past one does not move it || `js/site.js` | What the pages share: the visitor's platform (macOS, iPhone, Android, Linux x86_64), the clients released on this host, the Star buttons' count, QR codes || `js/platform.js` | threert.app on the landing page: which apps are shown, and a tile's markup (shared with `tools/platform.ts`) |-| `js/devices.js` | The 3D device rows (three.js), with a still fallback when WebGL is off |-| `brand/card.jpg` | The share card (Open Graph, 1200 x 630): the hero's headline over the reel's still, a screenshot of the page with the nav's links, the lede and the buttons hidden |+| `js/devices.js` | The 3D device rows (three.js), with a still fallback when WebGL is off (no page uses them now) |+| `js/glass.js` | The landing page's background: a sheet of glass triangles over a flowing light, one WebGL2 fragment shader on a fixed canvas; adds `glass-on` to `<html>` when it draws |+| `brand/card.jpg` | The share card (Open Graph, 1200 x 630): a screenshot of the hero (the headline, the line under it and the three cards; the nav's links, the buttons and the footnote marks hidden). The same screenshot is the README's picture (`docs/images/hero.webp`, at 2x) and GitHub's social preview (`docs/images/social-preview.jpg`, 1280 x 640, uploaded in the repository's settings: the API cannot set it) || `brand/` | The mark ("Three bounces": the three.js triangle, tilted as three.js draws it, and the closed light path inside it, which is three.js's own inner triangle) and its variants. `js/mark.js` draws it live in the lockup and on the landing page, and turns the path on hover. `avatar.svg` is the profile picture (X, Discord): the mark on black for a round crop, its triangle concentric with the circle, heavier strokes (4.2 against 3.2) so it holds at 32 px || `media/` | The renders, WebP, and the clips (the reel, the Bistro comparison), H.264. Generated; never retouched || `serve.ts`, `tools/` | Local server, static build, deploy, media and device-still generators; `tools/platform.ts` bakes threert.app's apps and OpenStrikeRT's pictures into the landing page; `tools/vendor.ts` names the npm files the pages import (three.js, qrcode-generator) |@@ -238,7 +250,7 @@ bun site/tools/media.ts # out/ -> site/media (stills, camera-move frabun site/tools/device-stills.ts # the 3D device rows -> site/media/devices (headless Chrome, software WebGL)```-The landing page's reel is recorded on the machine at hand, a clip a demo (`node tools/site-reel.ts` lists them and+The reel (off the landing page since the rewrite; kept for other uses) is recorded on the machine at hand, a clip a demo (`node tools/site-reel.ts` lists them andwhat each needs: Bistro and the Quaternius mannequin, the Tokyo tiles, `tools/voxel-level/generate.ts` at mesh,region and object granularity, Zero-Day), then laid out and encoded:diff --git a/site/blog/index.html b/site/blog/index.htmlnew file mode 100644index 0000000..5e5420e--- /dev/null+++ b/site/blog/index.html@@ -0,0 +1,84 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Blog — ThreeRT</title>+<meta name="description" content="Engineering notes from ThreeRT: what we build, how it works, and what it measured.">+<link rel="canonical" href="https://threert.dev/blog/">+<meta name="theme-color" content="#060709">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="Blog — ThreeRT">+<meta property="og:description" content="Engineering notes from ThreeRT: what we build, how it works, and what it measured.">+<meta property="og:url" content="https://threert.dev/blog/">+<meta property="og:image" content="https://threert.dev/media/ps3/og.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D">+<link rel="icon" href="../brand/favicon.svg" type="image/svg+xml">+<link rel="stylesheet" href="../css/threert.css">+<style>+ /* ---- The blog's index: one row per post, newest first ---- */+ .posts { display: grid; gap: 16px; padding-bottom: 128px; }+ .post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(70% 90% at 100% 0%, rgba(122, 162, 247, .07), transparent 60%), var(--ink-1); color: inherit; text-decoration: none; transition: border-color .3s, box-shadow .5s var(--ease); }+ .post:hover { border-color: var(--line-2); box-shadow: 0 40px 100px -50px rgba(122, 162, 247, .5); }+ .post .pic img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #000; }+ .post .t { display: grid; gap: 10px; padding-right: 12px; }+ .post small { font: 500 12px var(--font-mono); color: var(--mute); }+ .post b { font: 620 clamp(26px, 2.6vw, 36px)/1.08 var(--font-sans); letter-spacing: -.04em; color: var(--bone); }+ .post .t > span { color: var(--bone-2); font-size: 16px; line-height: 1.6; max-width: 56ch; }+ .post em { font: 500 13px var(--font-mono); font-style: normal; color: var(--bone); }+ @media (max-width: 860px) { .post { grid-template-columns: 1fr; gap: 18px; } }+</style>+</head>+<body>++<nav class="nav" aria-label="Site">+ <div class="wrap">+ <a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>+ <div class="links"><a href="../blog/" aria-current="page">Blog</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ </div>+</nav>++<header class="page-head">+ <div class="wrap">+ <span class="eyebrow">Blog</span>+ <h1 class="h-1">Notes from the metal.</h1>+ <p class="lede">What we build into ThreeRT, how it works, and what it measured.</p>+ </div>+</header>++<div class="wrap posts">+ <a class="post" href="ps3/">+ <span class="pic"><img src="../media/ps3/showroom-800.webp" width="800" height="450" alt="three.js objects on a Sony PS3, under a PocketJS overlay"></span>+ <span class="t">+ <small>December 3, 2026 · 14 min</small>+ <b>three.js on a Sony PS3</b>+ <span>A WebGL developer’s tour of the RSX: two memories, a command FIFO you write yourself, fragment uniforms that live inside the program, and how a three.js r187 scene reached it at 1920 × 1080.</span>+ <em>Read the post →</em>+ </span>+ </a>+</div>++<footer class="foot">+ <div class="wrap cols">+ <div>+ <a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="../blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p>+ </div>+ <div class="note">+ <p>The engine, <code>@threert/scene</code> and <code>@threert/gameplay</code> are open source: <a href="https://github.com/meshy-dev/ThreeRT" rel="noopener">meshy-dev/ThreeRT</a>. The clients are free to use.</p>+ <p>three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>+ </div>+ </div>+</footer>++<script type="module">+ import "../js/site.js";+</script>+</body>+</html>diff --git a/site/blog/ps3/index.html b/site/blog/ps3/index.htmlnew file mode 100644index 0000000..08fd5af--- /dev/null+++ b/site/blog/ps3/index.html@@ -0,0 +1,485 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>three.js on a Sony PS3 — ThreeRT Blog</title>+<meta name="description" content="A WebGL developer’s tour of the Sony PS3’s RSX: two memories, a command FIFO you write yourself, fragment uniforms inside the program, and how a three.js r187 scene reached it at 1920 × 1080.">+<link rel="canonical" href="https://threert.dev/blog/ps3/">+<meta name="theme-color" content="#060709">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="article">+<meta property="og:title" content="three.js on a Sony PS3 — ThreeRT Blog">+<meta property="og:description" content="A WebGL developer’s tour of the Sony PS3’s RSX: two memories, a command FIFO you write yourself, fragment uniforms inside the program, and how a three.js r187 scene reached it at 1920 × 1080.">+<meta property="og:url" content="https://threert.dev/blog/ps3/">+<meta property="og:image" content="https://threert.dev/media/ps3/og.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D">+<link rel="icon" href="../../brand/favicon.svg" type="image/svg+xml">+<link rel="stylesheet" href="../../css/threert.css">+<style>+ /* ---- A blog post: the docs article layout, plus figures drawn in HTML and SVG ---- */+ :root { --c-ps: #7aa2f7; }+ .doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 112px; }+ .toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }+ .toc a { text-decoration: none; color: var(--mute); padding: 6px 0 6px 14px; border-left: 1.5px solid var(--line); }+ .toc a:hover { color: var(--bone); border-left-color: var(--bone-2); }+ .prose { max-width: 860px; min-width: 0; }+ .prose section { padding: 0 0 64px; scroll-margin-top: 88px; }+ .prose section + section { padding-top: 56px; border-top: 1px solid var(--line); }+ .prose .num { display: block; font: 500 12.5px/1 var(--font-mono); color: var(--tungsten); margin-bottom: 14px; }+ .prose h2 { font: 620 clamp(28px, 3vw, 38px)/1.08 var(--font-sans); letter-spacing: -0.04em; }+ .prose h3 { font: 600 18px/1.3 var(--font-sans); letter-spacing: -0.015em; margin-top: 34px; }+ .prose p { margin-top: 16px; color: var(--bone-2); font-size: 16px; line-height: 1.65; max-width: 70ch; }+ .prose p a, .prose li a { color: var(--bone); }+ .prose ul { margin: 16px 0 0; padding-left: 20px; color: var(--bone-2); display: grid; gap: 10px; max-width: 70ch; line-height: 1.6; }+ .prose li b { color: var(--bone); }+ .prose .code { margin-top: 12px; font-size: 12px; line-height: 1.7; overflow-x: auto; }+ .prose .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }+ .fig { margin-top: 24px; }+ .fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #000; }+ .fig figcaption, .dg figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--mute); max-width: 80ch; }+ .post-head h1 { max-width: 18ch; }+ .intro { margin-top: 36px; }+ .intro p { font-size: 17.5px; line-height: 1.6; color: var(--bone); max-width: 66ch; }+ .intro p + p { color: var(--bone-2); font-size: 16px; }+ .intro a { color: var(--bone); }+ .then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; max-width: 76ch; }+ .then-now > div { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: #10131a; }+ .then-now > div.now { border-color: color-mix(in srgb, var(--c-ps) 55%, transparent); background: color-mix(in srgb, var(--c-ps) 9%, var(--ink-1)); }+ .then-now span { font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }+ .then-now .now span { color: var(--c-ps); }+ .then-now p { margin-top: 8px !important; font-size: 15px !important; line-height: 1.55 !important; }+ @media (max-width: 760px) { .then-now { grid-template-columns: 1fr; } }+ .kr { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); font-size: 14.5px; line-height: 1.55; max-width: 70ch; }+ .kr dt { font: 500 11.5px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }+ .kr dd { margin: 0; color: var(--bone-2); }+ .two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; margin-top: 14px; }+ .two .code { font-size: 11.5px; }+ .two .lbl { display: block; font: 500 11.5px var(--font-mono); color: var(--mute); }+ .two > div:last-child .lbl { color: var(--c-ps); }++ /* A figure drawn in the page. */+ .dg { margin: 28px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(80% 90% at 0% 0%, rgba(255, 140, 50, .05), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(122, 162, 247, .06), transparent 60%), var(--ink-1); }+ .dg .ttl { display: block; margin-bottom: 16px; font: 500 12px var(--font-mono); color: var(--bone-2); }+ .dg code { font-size: .92em; }++ /* The two stacks. */+ .stacks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }+ .stk { display: grid; gap: 6px; align-content: start; }+ .stk h4 { margin: 0 0 6px; font: 600 15px var(--font-sans); color: var(--bone); }+ .stk h4 small { display: block; margin-top: 3px; font: 500 11.5px var(--font-mono); color: var(--mute); }+ .ly { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #12151c; font-size: 13.5px; line-height: 1.35; color: var(--bone-2); }+ .ly small { display: block; margin-top: 3px; font: 500 11px var(--font-mono); color: var(--mute); }+ .ly.same, .bx.same { border-color: var(--line-2); background: #171a22; color: var(--bone); }+ .ly.ours, .bx.ours { border-color: color-mix(in srgb, var(--c-ps) 55%, transparent); background: color-mix(in srgb, var(--c-ps) 10%, var(--ink-1)); color: var(--bone); }+ .ly.you { border-color: color-mix(in srgb, var(--ember) 55%, transparent); background: color-mix(in srgb, var(--ember) 10%, var(--ink-1)); color: var(--bone); }+ .lg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px !important; font: 500 11.5px var(--font-mono) !important; color: var(--mute) !important; }+ .lg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; border: 1px solid var(--line-2); }+ .lg i.same { background: #171a22; } .lg i.ours { background: color-mix(in srgb, var(--c-ps) 35%, var(--ink-1)); } .lg i.you { background: color-mix(in srgb, var(--ember) 35%, var(--ink-1)); }++ /* The memories and the FIFO. */+ svg.mem { display: block; width: 100%; height: auto; }+ svg.mem text { font-family: var(--font-mono); }+ svg.mem .box { fill: #10131a; stroke: rgba(236, 232, 225, .16); }+ svg.mem .box.gpu { fill: color-mix(in srgb, #7aa2f7 8%, #0b0d11); stroke: color-mix(in srgb, #7aa2f7 45%, transparent); }+ svg.mem .t1 { font-size: 15px; font-weight: 600; fill: #ece8e1; font-family: var(--font-sans); }+ svg.mem .t2 { font-size: 11.5px; fill: #bdb8af; }+ svg.mem .t3 { font-size: 11px; fill: #80858e; }+ svg.mem .tape rect { stroke: rgba(236, 232, 225, .18); }+ svg.mem .done { fill: #1a1d24; } svg.mem .pend { fill: rgba(255, 140, 50, .32); stroke: rgba(255, 140, 50, .6) !important; } svg.mem .free { fill: transparent; }+ svg.mem .cell { fill: #141822; stroke: rgba(236, 232, 225, .14); }+ svg.mem .cell.hot { stroke: rgba(255, 140, 50, .7); fill: rgba(255, 140, 50, .1); }+ svg.mem .ptr { stroke: #bdb8af; stroke-width: 1.4; fill: none; }+ svg.mem .loop { stroke: #80858e; stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; }++ /* A fragment constant, patched into the program. */+ .patch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }+ .ucode { display: grid; gap: 4px; font: 500 12px/1.4 var(--font-mono); min-width: 0; }+ .ucode .row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #10131a; color: var(--bone-2); }+ .ucode .off { color: var(--mute); grid-row: span 2; }+ .ucode .hex { color: var(--mute); font-size: 11px; overflow-wrap: anywhere; }+ .ucode .slot { border-color: color-mix(in srgb, var(--ember) 65%, transparent); background: color-mix(in srgb, var(--ember) 12%, var(--ink-1)); color: var(--bone); box-shadow: 0 0 30px -8px rgba(255, 140, 50, .45); }+ .ucode .slot .hex { color: var(--tungsten); }+ .ucode .where { margin-top: 4px; font-size: 11px; color: var(--mute); }+ .steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }+ .steps2 li { counter-increment: s; position: relative; padding: 10px 12px 10px 40px; border-radius: 10px; border: 1px solid var(--line); background: #10131a; display: grid; gap: 4px; font-size: 13.5px; color: var(--bone); }+ .steps2 li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--font-mono); color: #111; background: var(--tungsten); }+ .steps2 code { font-size: 11px; color: var(--bone-2); background: none; padding: 0; overflow-wrap: anywhere; }++ /* One frame, lane by lane. */+ .lanes { display: grid; gap: 10px; }+ .lane { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; }+ .ln { font: 500 11.5px/1.35 var(--font-mono); color: var(--mute); }+ .flow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 6px; }+ .bx { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #12151c; font-size: 13px; line-height: 1.35; min-width: 0; }+ .bx b { display: block; font-weight: 600; color: var(--bone); }+ .bx small { display: block; margin-top: 3px; font: 500 10.5px/1.4 var(--font-mono); color: var(--mute); }+ .bx.gpu { border-color: color-mix(in srgb, var(--tungsten) 45%, transparent); background: color-mix(in srgb, var(--tungsten) 8%, var(--ink-1)); }+ .ar { text-align: center; color: var(--mute); font-size: 15px; }++ /* The four frames. */+ .grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }+ .grid4 figure { margin: 0; }+ .grid4 img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }+ .grid4 figcaption { margin-top: 8px; font: 500 12px/1.5 var(--font-mono); color: var(--mute); }+ .grid4 figcaption b { color: var(--bone); font-weight: 600; }+ .grid4 figcaption b:first-child { display: block; font-family: var(--font-sans); font-size: 14px; }++ @media (max-width: 960px) {+ .doc { grid-template-columns: 1fr; gap: 28px; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; } .toc a { padding: 2px 0; border-left: 0; }+ }+ @media (max-width: 760px) {+ .stacks, .patch, .two, .grid4 { grid-template-columns: minmax(0, 1fr); }+ .lane { grid-template-columns: 1fr; gap: 6px; } .flow { grid-template-columns: 1fr; } .ar { transform: rotate(90deg); }+ }+</style>+</head>+<body>++<nav class="nav" aria-label="Site">+ <div class="wrap">+ <a class="logo" href="../../" aria-label="ThreeRT home"><img src="../../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>+ <div class="links"><a href="../../blog/" aria-current="page">Blog</a><a href="../../download/">Download</a><a href="../../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ </div>+</nav>++<header class="page-head post-head">+ <div class="wrap">+ <span class="eyebrow">Blog · December 3, 2026</span>+ <h1 class="h-1">three.js on a Sony PS3.<br><span class="mute">A WebGL developer’s tour of the RSX.</span></h1>+ <p class="lede">three.js now draws on a 2006 Sony PlayStation 3: a scene written against the <code>three</code> package from npm, lit with physically based materials and a planar mirror, at 1920 × 1080, with a PocketJS interface in the same frame. The PS3 has no WebGPU and no JIT, and three.js has never had a renderer for its GPU.</p>+ </div>+</header>++<div class="wrap doc">+ <nav class="toc" aria-label="On this page">+ <a href="#premise">1 · The premise</a>+ <a href="#ps3">2 · The PS3, seen from WebGL</a>+ <a href="#triangle">3 · One triangle, five stages</a>+ <a href="#bridge">4 · From three.js to the RSX</a>+ <a href="#shaders">5 · Shaders for a 2006 GPU</a>+ <a href="#bugs">6 · Five bugs</a>+ <a href="#measured">7 · What it measured</a>+ <a href="#threert">8 · What it means for ThreeRT</a>+ <a href="../">← Blog</a>+ </nav>++ <main class="prose">+ <figure class="fig" style="margin-top:0">+ <img src="../../media/ps3/showroom.webp" srcset="../../media/ps3/showroom-800.webp 800w, ../../media/ps3/showroom.webp 1600w" sizes="(max-width: 960px) calc(100vw - 40px), 820px" width="1600" height="900" alt="A Sony PS3 frame at 1920 by 1080: a gold torus knot, PBR satellites and a mirrored floor, under a PocketJS overlay reading 20 fps, 25,990 triangles and 26 draws">+ <figcaption>Read from the RSX’s front buffer over the network at 1920 × 1080: a <code>TorusKnotGeometry</code> in a <code>MeshPhysicalMaterial</code>, three coloured <code>PointLight</code>s, an environment map, 260 additive embers, a planar mirror drawn with the stencil buffer, and the PocketJS overlay.</figcaption>+ </figure>++ <div class="intro">+ <p>Running JavaScript on old consoles is not new, and neither is three.js outside a browser tab: desktop apps have shipped it for years, with a browser inside them. What we believe is new is three.js itself on hardware where it could not run at all: the scene code you already write, unchanged, drawn by a GPU from 2006, with a small native runtime in place of a browser.</p>+ <p>This post is how we got there: what three.js needs from a machine, how the PS3 draws when you look at it from WebGL, what we built in between, the five bugs that cost us the most, and what it measured. The work is part of <a href="../../">ThreeRT</a>, the native runtime for three.js.</p>+ </div>++ <section id="premise" style="margin-top:56px">+ <span class="num">01</span>+ <h2>The premise</h2>+ <p>three.js has always come with a browser, and it is easy to think it needs one. It does not. Its scene graph, math, geometry generators, materials, lights and cameras are plain JavaScript with no DOM in them. Two things need the browser: the renderer, which speaks WebGL or WebGPU, and the JIT that keeps the renderer’s per-frame JavaScript fast.</p>+ <div class="then-now">+ <div><span>Until now</span><p>three.js ran where a browser ran. Outside the web you shipped one with it: Electron, a WebView. On a machine with no WebGL or WebGPU and no JIT, three.js did not run at all.</p></div>+ <div class="now"><span>Now</span><p><code>[email protected]</code>, imported as it is, builds the scene on the PS3’s Cell; a renderer we wrote draws it on the RSX at 1920 × 1080; PocketJS draws the interface into the same frame. Four demos run at 16 to 30 fps.</p></div>+ </div>+ <p>So we split the two. We kept everything of three.js that is plain JavaScript and replaced one thing, the renderer: once a frame, <code>RSXRenderer</code> walks the three.js scene and hands it to C code that draws on the RSX. The JavaScript runs on QuickJS, an interpreter with no JIT, on the Cell’s PowerPC core.</p>+ <p>The console is a PlayStation 3 Slim (CECH-2500) on system software 4.81 with custom firmware, which homebrew needs. What carries over, and what does not yet:</p>+ <dl class="kr"><dt>keeps</dt><dd>the scene: <code>Mesh</code>, <code>InstancedMesh</code>, <code>Points</code>, <code>Line</code>; standard, physical, Phong, Lambert, basic and normal materials; ambient, hemisphere, directional and point lights; fog</dd><dt>replaces</dt><dd><code>WebGLRenderer</code>, with <code>RSXRenderer</code> and native code</dd><dt>not yet</dt><dd>what lives inside three.js’s renderer: shadows, <code>ShaderMaterial</code> and TSL, three.js’s post-processing</dd></dl>+ </section>++ <section id="ps3">+ <span class="num">02</span>+ <h2>The PS3, seen from WebGL</h2>+ <p>If you know WebGL, you know how the PS3 rasterizes: vertex and index buffers, depth testing, fragment programs, blending. What changes is everything around them. In a browser, a driver places your memory, compiles your shaders and synchronizes with the GPU. On a PS3 there is no driver: that is your code.</p>++ <figure class="dg">+ <span class="ttl">Drawing a three.js scene, in a browser and on a PS3</span>+ <div class="stacks">+ <div class="stk">+ <h4>In a browser<small>WebGL</small></h4>+ <div class="ly same">Your three.js scene</div>+ <div class="ly">three.js <code>WebGLRenderer</code></div>+ <div class="ly">JavaScript, JIT-compiled<small>V8 or JavaScriptCore</small></div>+ <div class="ly">WebGL → GPU process → ANGLE</div>+ <div class="ly">The OS driver<small>compiles GLSL, places memory, synchronizes</small></div>+ <div class="ly">A unified-shader GPU</div>+ <div class="ly">The compositor → a window</div>+ </div>+ <div class="stk">+ <h4>On a Sony PS3<small>RSX</small></h4>+ <div class="ly same">Your three.js scene<small>[email protected], as it is</small></div>+ <div class="ly ours"><code>RSXRenderer</code><small>walks the scene, packs typed arrays</small></div>+ <div class="ly">JavaScript, interpreted<small>QuickJS on the Cell PPU, big-endian</small></div>+ <div class="ly ours">A C host writes the command FIFO<small>PSL1GHT, packets of 32-bit words</small></div>+ <div class="ly you">Your code is the driver<small>allocates VRAM, fences, flips</small></div>+ <div class="ly">The RSX<small>separate vertex and fragment units</small></div>+ <div class="ly">HDMI scanout, no compositor</div>+ </div>+ </div>+ <p class="lg"><span><i class="same"></i>the same on both</span><span><i class="ours"></i>what we wrote</span><span><i class="you"></i>the driver’s job in a browser, ours on a PS3</span></p>+ </figure>++ <h3>Two memories, and you manage both</h3>+ <p>Memory is split in two: 256 MiB of XDR for the Cell, where QuickJS, three.js and PocketJS live, and 256 MiB of GDDR3 for the RSX. You allocate GPU memory yourself (<code>rsxMemalign</code>), turn CPU pointers into the offsets the RSX understands (<code>rsxAddressToOffset</code>), order your writes with a PowerPC barrier (<code>eieio</code>) and invalidate the RSX’s vertex and texture caches when you change what is in them. Two 1080p colour buffers and a depth-and-stencil buffer take about 25 MB; the rest is for meshes, textures and glyph atlases.</p>++ <figure class="dg">+ <span class="ttl">The two memories, and the command FIFO between them</span>+ <svg class="mem" viewBox="0 0 760 300" role="img" aria-label="The Cell's XDR memory holds QuickJS, three.js, PocketJS and the command FIFO. The CPU writes packets at put; the RSX fetches them by DMA at get; the FIFO jumps back to its start when the RSX is idle. The RSX's GDDR3 holds vertex buffers, textures, fragment programs and framebuffers.">+ <defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10z" fill="#bdb8af"/></marker></defs>+ <rect x="8" y="16" width="452" height="268" rx="16" class="box"/>+ <text x="28" y="46" class="t1">Cell PPU · 3.2 GHz</text>+ <text x="28" y="66" class="t2">256 MiB XDR · QuickJS · three.js · PocketJS</text>+ <text x="28" y="122" class="t3">command FIFO · 2 MiB</text>+ <g class="tape">+ <rect x="28" y="134" width="28" height="34" class="done"/><rect x="57" y="134" width="28" height="34" class="done"/><rect x="86" y="134" width="28" height="34" class="done"/><rect x="115" y="134" width="28" height="34" class="done"/>+ <rect x="144" y="134" width="28" height="34" class="pend"/><rect x="173" y="134" width="28" height="34" class="pend"/><rect x="202" y="134" width="28" height="34" class="pend"/><rect x="231" y="134" width="28" height="34" class="pend"/><rect x="260" y="134" width="28" height="34" class="pend"/>+ <rect x="289" y="134" width="28" height="34" class="free"/><rect x="318" y="134" width="28" height="34" class="free"/><rect x="347" y="134" width="28" height="34" class="free"/><rect x="376" y="134" width="28" height="34" class="free"/><rect x="405" y="134" width="28" height="34" class="free"/>+ </g>+ <path d="M158 196 L158 174" class="ptr" marker-end="url(#ah)"/><text x="158" y="212" text-anchor="middle" class="t3">get · the RSX reads</text>+ <path d="M303 104 L303 128" class="ptr" marker-end="url(#ah)"/><text x="303" y="96" text-anchor="middle" class="t3">put · the CPU writes</text>+ <path d="M433 172 C 433 262, 28 262, 28 176" class="loop" marker-end="url(#ah)"/><text x="230" y="252" text-anchor="middle" class="t3">jump back to the start while the RSX is idle</text>+ <path d="M440 151 L 498 151" class="ptr" marker-end="url(#ah)"/><text x="469" y="142" text-anchor="middle" class="t3">DMA</text>+ <rect x="500" y="16" width="252" height="268" rx="16" class="box gpu"/>+ <text x="520" y="46" class="t1">RSX · 500 MHz</text>+ <text x="520" y="66" class="t2">256 MiB GDDR3</text>+ <rect x="520" y="90" width="212" height="34" rx="8" class="cell"/><text x="534" y="112" class="t3">vertex and index buffers</text>+ <rect x="520" y="132" width="212" height="34" rx="8" class="cell"/><text x="534" y="154" class="t3">textures, glyph atlases</text>+ <rect x="520" y="174" width="212" height="34" rx="8" class="cell hot"/><text x="534" y="196" class="t3">fragment programs</text>+ <rect x="520" y="216" width="212" height="34" rx="8" class="cell"/><text x="534" y="238" class="t3">2 × 1080p colour · Z24S8</text>+ </svg>+ <figcaption>Done words are grey, words the RSX has not reached yet are lit. The fragment programs live in GPU memory, which matters below.</figcaption>+ </figure>++ <h3>No driver: you write the command stream</h3>+ <p>There is no <code>gl.drawElements()</code> on PS3 homebrew. The CPU and the RSX share a ring of 32-bit words, the command FIFO: every graphics call writes a method header and its arguments at <code>put</code>, and the RSX’s <code>get</code> chases it. Two things follow.</p>+ <ul>+ <li><b>You own synchronization.</b> Overwrite a buffer the RSX has not read yet, or rewind the ring while <code>get</code> is behind <code>put</code>, and it reads garbage and locks the console. You fence with <code>rsxFinish</code> and an increasing reference, and present with <code>gcmSetFlip</code>.</li>+ <li><b>You own the ring’s end.</b> Write more in one frame than the segment holds without jumping back to its start (<code>rsxSetJumpCommand</code>) and you run off its end. An <code>InstancedMesh</code> taught us this; see bug 5.</li>+ </ul>++ <h3>Two shader units, and fragment constants live inside the program</h3>+ <p>The RSX comes from NVIDIA’s G70, the GeForce 7800 generation, and PSL1GHT drives it with NV40-class registers and assembly. It is the last generation before unified shaders: vertex programs (<code>!!VP2.0</code>) and fragment programs (<code>!!FP2.0</code>) run on different units with different rules. Vertex programs read constants from a bank of <code>vec4</code> registers, <code>c[…]</code>, loaded through the FIFO. Fragment programs have no such bank.</p>+ <p>A fragment “uniform” is a 16-byte slot in the program’s own machine code. The assembler leaves the slot and records where it is. To set it, you write the value into the program in GPU memory, with a DMA write ordered with your other commands (<code>rsxInlineTransfer</code>), and every 32-bit float has its two 16-bit halves swapped, because that is the order in which the fragment unit fetches words. Then you point the RSX at the program again so it does not run a stale copy.</p>++ <figure class="dg">+ <span class="ttl">Setting uTint = (1.0, 0.85, 0.4, 1.0) in a fragment program</span>+ <div class="patch">+ <div class="ucode">+ <div class="row"><span class="off">+0x00</span><span class="ins">MOV R1, c[0]</span><span class="hex">9e011700 c8011c9d c8000001 c8003fe1</span></div>+ <div class="row slot"><span class="off">+0x10</span><span class="ins">slot for <b>uTint</b></span><span class="hex">00003f80 999a3f59 cccd3ecc 00003f80</span></div>+ <div class="row"><span class="off">+0x20</span><span class="ins">MULR o[COLR], f[COL0], R1</span><span class="hex">02011e81 c8011c9d c8000001 c8003fe1</span></div>+ <div class="row"><span class="off">+0x30</span><span class="ins">END</span><span class="hex">…</span></div>+ <span class="where">the program, in GPU memory</span>+ </div>+ <ol class="steps2">+ <li><b>Swap halves</b><code>1.0 = 0x3f800000 → 0x00003f80</code><code>0.85 = 0x3f59999a → 0x999a3f59</code></li>+ <li><b>Write it into the slot</b><code>rsxInlineTransfer(ctx, fp_offset + 0x10, …)</code></li>+ <li><b>Point the RSX at the program again</b><code>rsxLoadFragmentProgramLocation(…)</code></li>+ </ol>+ </div>+ <figcaption>The instruction words are illustrative; the slot’s bytes are the real swapped values. In a browser the same thing is <code>gl.uniform4f(loc, 1, 0.85, 0.4, 1)</code>.</figcaption>+ </figure>++ <h3>Big-endian on both sides</h3>+ <p>The Cell is big-endian, and so is the RSX. QuickJS keeps a <code>Float32Array</code> in the CPU’s byte order, which is the order the RSX reads vertices and indices in. So when three.js fills a <code>BufferGeometry</code> or an <code>InstancedMesh</code>’s matrices, our bridge takes the array’s memory and copies it to the GPU as it is: no per-element conversion, no byte swapping.</p>+ </section>++ <section id="triangle">+ <span class="num">03</span>+ <h2>One triangle, five stages</h2>+ <p>The same coloured triangle, drawn both ways. Every design choice in the three.js renderer comes out of these five differences.</p>++ <h3>1 · Upload the vertices</h3>+ <div class="two">+ <div><span class="lbl">WebGL</span><pre class="code js">// The driver places and caches it.+const vbo = gl.createBuffer();+gl.bindBuffer(gl.ARRAY_BUFFER, vbo);+gl.bufferData(gl.ARRAY_BUFFER, verts,+ gl.STATIC_DRAW);</pre></div>+ <div><span class="lbl">PS3</span><pre class="code">// Aligned GPU memory, a barrier, an offset, a cache flush.+TriVert *vb = rsxMemalign(64, 3 * sizeof(TriVert));+memcpy(vb, triangle, 3 * sizeof(TriVert));+__asm__ volatile("eieio" ::: "memory");+u32 vb_off; rsxAddressToOffset(vb, &vb_off);+rsxInvalidateVertexCache(ctx);</pre></div>+ </div>++ <h3>2 · Load the shaders</h3>+ <p>GLSL compiles on the user’s machine. RSX programs are assembled before the build (<code>cgcomp -a</code>); the vertex program is sent through the FIFO, and the fragment program is copied into GPU memory, because the RSX fetches fragment instructions from there.</p>+ <div class="two">+ <div><span class="lbl">WebGL</span><pre class="code js">// GLSL, compiled at run time.+gl_Position = uMVP * vec4(aPos, 1.0);+vColor = aColor;+// …+gl_FragColor = vColor * uTint;</pre></div>+ <div><span class="lbl">PS3</span><pre class="code"># !!VP2.0: c[0..3] are the rows of uMVP+DP4 R0.x, v[0], c[0]; DP4 R0.y, v[0], c[1];+DP4 R0.z, v[0], c[2]; DP4 R0.w, v[0], c[3];+MOV o[HPOS], R0; MOV o[COL0], v[3];+# !!FP2.0: c[0] is the uTint slot+MOV R1, c[0];+MULR o[COLR], f[COL0], R1;</pre></div>+ </div>++ <h3>3 · Set the uniforms</h3>+ <p>Here the two worlds part. A vertex constant is a block load through the FIFO, cheap enough for every draw. A fragment constant is a write into the program and a reload of it.</p>+ <div class="two">+ <div><span class="lbl">WebGL</span><pre class="code js">gl.uniformMatrix4fv(locMVP, false, mvp);+gl.uniform4f(locTint, 1.0, 0.85, 0.4, 1.0);</pre></div>+ <div><span class="lbl">PS3</span><pre class="code">// Vertex: four rows into c[0..3].+rsxLoadVertexProgramParameterBlock(ctx, 0, 4, mvp_rows);+// Fragment: into the program itself, halves swapped.+for (u32 i = 0; i < tab->num; i++)+ rsxInlineTransfer(ctx, fp_off + tab->offset[i],+ swapped, 4, GCM_LOCATION_RSX);+rsxLoadFragmentProgramLocation(ctx, fp, fp_off,+ GCM_LOCATION_RSX);</pre></div>+ </div>++ <h3>4 · Draw</h3>+ <p>WebGL’s clip space has +Y up and the screen comes out right. The RSX scans out top-down with depth from 0 to 1, so a viewport with a negative Y scale maps three.js’s clip space onto it; attributes are bound by GPU offset.</p>+ <div class="two">+ <div><span class="lbl">WebGL</span><pre class="code js">gl.viewport(0, 0, 1920, 1080);+gl.vertexAttribPointer(0, 3, gl.FLOAT,+ false, 28, 0);+gl.drawArrays(gl.TRIANGLES, 0, 3);</pre></div>+ <div><span class="lbl">PS3</span><pre class="code">f32 scale[4] = { 960, -540, 0.5f, 0 };+f32 offset[4] = { 960, 540, 0.5f, 0 };+rsxSetViewport(ctx, 0, 0, 1920, 1080, 0, 1, scale, offset);+rsxBindVertexArrayAttrib(ctx, GCM_VERTEX_ATTRIB_POS, 0,+ vb_off, sizeof(TriVert), 3, GCM_VERTEX_DATA_TYPE_F32,+ GCM_LOCATION_RSX);+rsxDrawVertexArray(ctx, GCM_TYPE_TRIANGLES, 0, 3);</pre></div>+ </div>++ <h3>5 · Present</h3>+ <p>In a browser you return from <code>requestAnimationFrame</code>. On a PS3 nothing reaches the TV until you flush the FIFO, fence the RSX, rewind the ring, wait for the last flip and queue the next.</p>+ <div class="two">+ <div><span class="lbl">WebGL</span><pre class="code js">requestAnimationFrame(loop);</pre></div>+ <div><span class="lbl">PS3</span><pre class="code">rsxFlushBuffer(ctx);+rsxFinish(ctx, ++ref); // the RSX is done+rsxSetJumpCommand(ctx, begin_off); // rewind the ring+while (gcmGetFlipStatus() != 0) usleep(200);+gcmResetFlipStatus();+while (gcmSetFlip(ctx, fb) != 0) usleep(200);+rsxFlushBuffer(ctx);+gcmSetWaitFlip(ctx);+fb ^= 1;</pre></div>+ </div>+ </section>++ <section id="bridge">+ <span class="num">04</span>+ <h2>From three.js to the RSX</h2>+ <p>The showcase starts with <code>import * as THREE from "three"</code>. <code>RSXRenderer</code> (<code>platforms/ps3/three-rsx-renderer.ts</code>) walks that scene and talks to the C engine (<code>platforms/ps3/rsx3d.c</code>) through one global object, <code>globalThis.__rsx3d</code>, whose arguments are typed arrays.</p>++ <figure class="dg">+ <span class="ttl">One frame, from the three.js scene to the TV</span>+ <div class="lanes">+ <div class="lane"><span class="ln">QuickJS · Cell PPU</span>+ <div class="flow"><div class="bx same"><b>three.js scene</b><small>Scene · Mesh · InstancedMesh · Points · lights</small></div><span class="ar">→</span><div class="bx ours"><b>RSXRenderer</b><small>walk · sort · pack Float32Array</small></div><span class="ar">+</span><div class="bx same"><b>PocketJS</b><small>Solid JSX + Tailwind, 3× density</small></div></div></div>+ <div class="lane"><span class="ln">C host · PSL1GHT</span>+ <div class="flow"><div class="bx ours"><b>__rsx3d</b><small>typed arrays, read where they are</small></div><span class="ar">→</span><div class="bx ours"><b>rsx3d</b><small>GPU memory pools · constants · mirror</small></div><span class="ar">→</span><div class="bx ours"><b>rsx_driver</b><small>Z24S8 surface · FIFO rewind · flip</small></div></div></div>+ <div class="lane"><span class="ln">RSX · 1920 × 1080</span>+ <div class="flow"><div class="bx gpu"><b>Pass 1 · 3D</b><small>sky · mirror · PBR · points</small></div><span class="ar">→</span><div class="bx gpu"><b>Pass 2 · UI</b><small>over the 3D, no clear</small></div><span class="ar">→</span><div class="bx gpu"><b>Front buffer</b><small>to HDMI, and over TCP :8623</small></div></div></div>+ </div>+ <figcaption>three.js and PocketJS share the CPU; one surface takes both passes, so there is no offscreen target and no extra full-screen copy.</figcaption>+ </figure>++ <h3>Scene-wide values once a pass, per-object values per draw</h3>+ <p>A fragment constant costs a write into the program and a reload, so the renderer splits uniforms along that line. Values that are the same for the whole scene (the camera position and exposure, the directional light, three point lights, the hemisphere light, fog) are written into the PBR fragment program once a pass. Everything per object (its matrices, colour, emissive, roughness, metalness, UV transform) goes into vertex constants and reaches the fragment unit through interpolators. No fragment program is reloaded per mesh.</p>++ <h3>One call for an <code>InstancedMesh</code>, and what it still costs</h3>+ <p>QuickJS has no JIT, and calling into C once per instance with loose numbers would spend the frame on an in-order core. So for an <code>InstancedMesh</code> the renderer passes three.js’s own <code>instanceMatrix.array</code> and <code>instanceColor.array</code> to C in one call; C loads the shared material constants once and loops over the instances on the PPU.</p>+ <p>That keeps JavaScript out of the loop, but the RSX has no hardware instancing: every instance is still a draw with its own constants. With 196 instances, writing those commands takes 28.9 ms of the PPU’s time a frame, and that demo is the slowest, at 16 fps. The Cell has six SPUs doing nothing; this loop is the first thing to move onto them.</p>++ <h3>Two passes into one frame</h3>+ <p><code>rsx_driver.c</code> binds one 1920 × 1080 colour surface with a 24-bit depth and 8-bit stencil buffer and calls the scene first. Pass 1 clears colour, depth and stencil and draws the 3D scene. Pass 2 clears nothing, resets the depth, stencil and cull state, and draws the PocketJS interface over it with alpha blending. PocketJS apps that draw no 3D do not change.</p>+ </section>++ <section id="shaders">+ <span class="num">05</span>+ <h2>Shaders for a 2006 GPU</h2>+ <p>What makes a 2006 GPU look current is less how many triangles it draws than how materials answer light. Three things do most of that here.</p>+ <ul>+ <li><b>Per-pixel PBR.</b> Metalness and roughness, Schlick’s Fresnel without a <code>POW</code> (<code>x = 1 − N·V</code>, then <code>x²·x²·x</code>), a directional light with a roughness-scaled Blinn-Phong lobe and three point lights per pixel, then the ACES filmic curve, so highlights roll off instead of clipping.</li>+ <li><b>An environment map without trigonometry.</b> A 256 × 128 studio panorama (a warm softbox overhead, a cool strip at the side, a ring at the zenith) sampled along the reflection vector with a projection that needs no <code>atan2</code>: <code>t = R.x / (|R.x| + |R.z|)</code>, <code>u = R.z < 0 ? 0.75 − 0.25t : 0.25 + 0.25t</code>, <code>v = 0.5 − 0.48 R.y</code>. The two halves meet at <code>u = 0.5</code> and wrap at 0 and 1.</li>+ <li><b>A planar mirror with the stencil buffer.</b> Draw the floor into the stencil only; draw the reflectable meshes flipped below it where the stencil is set, with the winding reversed; clear depth; draw the floor over them, partly transparent.</li>+ </ul>+ </section>++ <section id="bugs">+ <span class="num">06</span>+ <h2>Five bugs</h2>+ <p>The toolchain ran on an Apple-silicon Mac (PSL1GHT in a Docker image, Rust for <code>powerpc64</code>), and every one of these happened on the console. If you write for the RSX, they may save you some days.</p>++ <h3>1 · Every fragment uniform was zero</h3>+ <p>The first three.js frame showed a sharp PocketJS overlay over a black screen. Disassembling PSL1GHT’s prebuilt <code>rsxSetFragmentProgramParameter</code> in <code>librsx.a</code> showed the value argument copied into a register that is overwritten before it is used, and a zeroed 16-byte stack buffer passed to <code>rsxInlineTransfer</code> instead: every fragment uniform, exposure and every light included, was uploaded as zeros. Our reading is that GCC 13 optimized the copy away under strict aliasing. A twelve-line replacement that copies with <code>memcpy</code> and calls <code>rsxInlineTransfer</code> itself fixed it.</p>+ <pre class="code"> 48: mr r28, r6 # r28 = the value+ d0: mr r28, r3 # overwritten before it is read+ 104: addi r5, r1, 112 # the zeroed stack buffer+ 110: bl rsxInlineTransfer</pre>++ <h3>2 · Every vertex landed on one point</h3>+ <p>With uniforms fixed the sky appeared, and no triangle did. The vertex assembler (<code>cgcomp -a -v</code>) ignores write masks on output registers: four <code>DP4 o[HPOS].x/.y/.z/.w</code> each assembled to a full <code>.xyzw</code> write, so every vertex became <code>(w, w, w, w)</code>. Computing into <code>R0.x</code> to <code>R0.w</code> and ending with <code>MOV o[HPOS], R0</code> fixed it.</p>++ <h3>3 · The fragment assembler drops what it does not know</h3>+ <p><code>cgcomp -a -f</code>, used because NVIDIA’s Cg compiler does not run on ARM64 Linux, turned <code>SUB</code> into a 16-byte no-op (write <code>ADD R0, R1, -R2</code>), dropped <code>ABS</code> (write <code>MOV R0, |R1|</code>), read inline literals such as <code>{14.0}.x</code> as <code>R0</code> (put every number in a named constant), and crashed on a blank line.</p>++ <h3>4 · The camera that never moved</h3>+ <p><code>camera.updateMatrixWorld()</code> does not update <code>camera.matrixWorldInverse</code>; <code>WebGLRenderer.render()</code> does, with <code>matrixWorldInverse.copy(matrixWorld).invert()</code>. A custom renderer that skips that line draws from the origin, looking down −Z, wherever the camera is.</p>++ <h3>5 · Off the end of the ring</h3>+ <p>The instanced demo with 400 instances locked the RSX on its first frame. Each instance writes about 58 words (its constants and a draw), and 400 of them are about 92 KB, past the end of the FIFO segment. Two fixes: the driver rewinds the ring after every frame, and <code>rsx3d.c</code> checks for space before a batch and rewinds in the middle of a frame when it must. The demo also went to 196 instances (14 × 14), and the point lights’ <code>POW</code> became repeated squaring, which freed three registers in the PBR program.</p>+ </section>++ <section id="measured">+ <span class="num">07</span>+ <h2>What it measured</h2>+ <p>Each frame below was read at 1920 × 1080 from the RSX’s front buffer over the DevShell, a TCP service on port 8623 that also reloads the app’s bundle in place and injects controller input, so we never went back to the console’s menu while working.</p>+ <div class="grid4">+ <figure><img src="../../media/ps3/showroom-800.webp" width="800" height="450" alt="The showroom: a gold torus knot over a mirrored floor" loading="lazy" decoding="async"><figcaption><b>Showroom</b> 25,990 triangles · 26 draws · planar mirror · <b>20 fps</b></figcaption></figure>+ <figure><img src="../../media/ps3/instanced.webp" width="1600" height="900" alt="The instanced wave: 196 metallic pillars in a grid" loading="lazy" decoding="async"><figcaption><b>Instanced wave</b> 196 instances · 199 draws · 28.9 ms to write them · <b>16 fps</b></figcaption></figure>+ <figure><img src="../../media/ps3/galaxy.webp" width="1600" height="900" alt="A planet with rings in front of a spiral galaxy of 2,400 points" loading="lazy" decoding="async"><figcaption><b>Galaxy</b> 5,678 triangles · 2,400 point sprites · 7 draws · <b>30 fps</b></figcaption></figure>+ <figure><img src="../../media/ps3/pbr-grid.webp" width="1600" height="900" alt="Twenty spheres from smooth to rough and from dielectric to metal" loading="lazy" decoding="async"><figcaption><b>Material grid</b> 58,886 triangles · 43 draws · mirror · <b>26 fps</b></figcaption></figure>+ </div>+ <p>None of them reaches 60. In three of the four, writing the 3D commands takes 0.1 ms, so most of the frame goes somewhere we have not measured yet: QuickJS walking the scene on the PPU, the RSX shading two million pixels of PBR (twice, where there is a mirror), or waiting for vsync. That profile is the next piece of work, and then the SPUs.</p>+ <p>With a DualShock 3: <code>L1</code> and <code>R1</code> change the scene, the sticks orbit and zoom, <code>△</code> shows wireframe, <code>○</code> turns the mirror off and on, <code>□</code> stops the orbit, <code>SELECT</code> hides the overlay.</p>+ </section>++ <section id="threert">+ <span class="num">08</span>+ <h2>What it means for ThreeRT</h2>+ <p>ThreeRT is a native runtime for three.js: no browser between your scene and the GPU. How much of three.js stays depends on the machine. On macOS and Linux, <code>webgpu</code> keeps all of it, three.js and its own <code>WebGPURenderer</code>, and replaces only the browser: a 9.9 MB app where Electron takes 445 MB. On GPUs with ray-tracing hardware, <code>path</code> replaces the renderer with a path tracer at 60 fps. The PS3 is the third case. It has no WebGPU and no JIT, so three.js keeps its scene graph and a native renderer draws it.</p>+ <p>The PS3 port is experimental, and it is built in PocketJS (<code>platforms/ps3</code>), not by ThreeRT’s tools. What it shows is how little a three.js scene needs from a machine once the browser is gone. How the three ways differ is in <a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/RENDERING-METHODS.md#native-scene-graph-renderers" rel="noopener">RENDERING-METHODS.md</a>.</p>+ <div class="acts"><a class="btn primary" href="../../"><span>three.js, down to the metal</span></a><a class="btn ghost" href="https://github.com/meshy-dev/ThreeRT" rel="noopener"><span>ThreeRT on GitHub</span></a></div>+ </section>+ </main>+</div>++<footer class="foot">+ <div class="wrap cols">+ <div>+ <a class="logo" href="../../" aria-label="ThreeRT home"><img src="../../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="../../blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="../../download/">Download</a><a href="../../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../../privacy/">Privacy</a></p>+ </div>+ <div class="note">+ <p>The engine, <code>@threert/scene</code> and <code>@threert/gameplay</code> are open source: <a href="https://github.com/meshy-dev/ThreeRT" rel="noopener">meshy-dev/ThreeRT</a>. The clients are free to use.</p>+ <p>three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>+ </div>+ </div>+</footer>++<script type="module">+ import { $$, highlight } from "../../js/threert.js";+ import { guard } from "../../js/site.js";+ guard("code", () => { for (const el of $$(".code.js")) el.innerHTML = highlight(el.textContent); });+</script>+</body>+</html>diff --git a/site/brand/card.jpg b/site/brand/card.jpgindex 530f9b0..92d99e8 100644Binary files a/site/brand/card.jpg and b/site/brand/card.jpg differdiff --git a/site/docs/index.html b/site/docs/index.htmlindex 117e805..4feeaff 100644--- a/site/docs/index.html+++ b/site/docs/index.html@@ -5,6 +5,17 @@<meta name="viewport" content="width=device-width, initial-scale=1"><title>ThreeRT Docs — getting started</title><meta name="description" content="Install the ThreeRT client (macOS, iPhone, Steam Deck, Android), open an example, write a scene with a three.js-style API, run it on a Mac and an iPhone with threert dev, and publish it to threert.app.">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="ThreeRT Docs — getting started">+<meta property="og:description" content="Install the ThreeRT client (macOS, iPhone, Steam Deck, Android), open an example, write a scene with a three.js-style API, run it on a Mac and an iPhone with threert dev, and publish it to threert.app.">+<meta property="og:url" content="https://threert.dev/docs/">+<meta property="og:image" content="https://threert.dev/brand/card.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="ThreeRT: three.js, down to the metal.">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css"><style>@@ -54,7 +65,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/" aria-current="page">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="../blog/">Blog</a><a href="../download/">Download</a><a href="../docs/" aria-current="page">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -199,7 +210,7 @@ export default defineGame({<p>The engine is open source, and its documents live with the code.</p><div class="refs"><a href="rendering/"><b>Rendering settings</b><span>Resolution, denoisers and upscalers (ThreeRT’s, MetalFX, DLSS, FSR), latency: in the clients and in code</span></a>- <a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/RENDERING-METHODS.md" rel="noopener"><b>Renderers: path and webgpu</b><span>One runtime, two renderers: hardware path tracing (path) and a clean native WebGPU build (webgpu) with zero path-tracer code</span></a>+ <a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/RENDERING-METHODS.md" rel="noopener"><b>Renderers: path, webgpu, and native scene-graph renderers</b><span>What each way of running keeps of three.js: hardware path tracing (path), three.js’s own WebGPU renderer without a browser (webgpu), and a native renderer for its scene graph on hardware with neither</span></a><a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/RUNTIME.md" rel="noopener"><b>Runtime</b><span>How scene code runs in the engine: setup, handlers, world handlers, frame scripts, physics</span></a><a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/ARCHITECTURE.md" rel="noopener"><b>Architecture</b><span>The serverless gameplay and rendering runtime the engine was built for</span></a><a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/MATERIAL_FUNCTIONS.md" rel="noopener"><b>Material functions</b><span>A WGSL body on a material, run by the path tracer at every hit</span></a>@@ -215,8 +226,8 @@ export default defineGame({<div class="wrap cols"><div><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <p style="margin-top:14px">The native runtime for three.js — hardware path tracing and WebGPU.</p>- <div class="site"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="../blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p></div><div class="note">diff --git a/site/docs/rendering/index.html b/site/docs/rendering/index.htmlindex 48abfcc..18eece1 100644--- a/site/docs/rendering/index.html+++ b/site/docs/rendering/index.html@@ -5,6 +5,17 @@<meta name="viewport" content="width=device-width, initial-scale=1"><title>ThreeRT Docs — rendering settings: resolution, denoisers, upscalers, latency</title><meta name="description" content="How ThreeRT turns a few rays a pixel into a clean picture: the quality, reconstruction, frame generation and latency settings; ThreeRT's denoiser, MetalFX, DLSS and FSR; the Graphics settings of every client; the TypeScript API and custom providers.">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="ThreeRT Docs — rendering settings: resolution, denoisers, upscalers, latency">+<meta property="og:description" content="How ThreeRT turns a few rays a pixel into a clean picture: the quality, reconstruction, frame generation and latency settings; ThreeRT's denoiser, MetalFX, DLSS and FSR; the Graphics settings of every client; the TypeScript API and custom providers.">+<meta property="og:url" content="https://threert.dev/docs/rendering/">+<meta property="og:image" content="https://threert.dev/brand/card.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="ThreeRT: three.js, down to the metal.">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="../../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../../css/threert.css"><style>@@ -69,7 +80,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../../" aria-label="ThreeRT home"><img src="../../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../../download/">Download</a><a href="../../docs/" aria-current="page">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="../../blog/">Blog</a><a href="../../download/">Download</a><a href="../../docs/" aria-current="page">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -277,8 +288,8 @@ live.register_upscaler("custom:my-scaler", MyScaler::new())?; // or register_j<div class="wrap cols"><div><a class="logo" href="../../" aria-label="ThreeRT home"><img src="../../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <p style="margin-top:14px">Hardware-accelerated ray tracing behind a three.js-style API.</p>- <div class="site"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../../download/">Download</a><a href="../../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="../../blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="../../download/">Download</a><a href="../../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../../privacy/">Privacy</a></p></div><div class="note">diff --git a/site/download/index.html b/site/download/index.htmlindex 5e0f961..4d28788 100644--- a/site/download/index.html+++ b/site/download/index.html@@ -5,6 +5,17 @@<meta name="viewport" content="width=device-width, initial-scale=1"><title>Download ThreeRT — Windows, macOS, iPhone, Steam Deck and Android</title><meta name="description" content="ThreeRT for Windows, macOS, iPhone and iPad, Steam Deck and Linux, and Android: free clients that open ThreeRT apps and games from threert.app or your own dev server and path-trace them on your GPU.">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="Download ThreeRT — Windows, macOS, iPhone, Steam Deck and Android">+<meta property="og:description" content="ThreeRT for Windows, macOS, iPhone and iPad, Steam Deck and Linux, and Android: free clients that open ThreeRT apps and games from threert.app or your own dev server and path-trace them on your GPU.">+<meta property="og:url" content="https://threert.dev/download/">+<meta property="og:image" content="https://threert.dev/brand/card.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="ThreeRT: three.js, down to the metal.">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css"><style>@@ -54,7 +65,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/" aria-current="page">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="../blog/">Blog</a><a href="../download/" aria-current="page">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -191,8 +202,8 @@<div class="wrap cols"><div><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <p style="margin-top:14px">The native runtime for three.js — hardware path tracing and WebGPU.</p>- <div class="site"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="../blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p></div><div class="note">diff --git a/site/index.html b/site/index.htmlindex 2e8734f..bc81a95 100644--- a/site/index.html+++ b/site/index.html@@ -4,78 +4,28 @@<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>ThreeRT — The native runtime for three.js</title>-<meta name="description" content="ThreeRT is the native runtime for three.js with two renderers: a real-time GPU path tracer (path) at 60 fps and a clean native WebGPU renderer (webgpu) with zero ray-tracing overhead. Open source, MIT.">+<meta name="description" content="ThreeRT is the native runtime for three.js: three.js, down to the metal. It ships 45 times smaller than Electron, runs on a Sony PlayStation 3, and path-traces at 60 fps on ray-tracing GPUs. Open source, MIT."><link rel="canonical" href="https://threert.dev/"><meta name="theme-color" content="#060709"><meta property="og:site_name" content="ThreeRT"><meta property="og:type" content="website"><meta property="og:title" content="ThreeRT — The native runtime for three.js">-<meta property="og:description" content="One native runtime for three.js: hardware path tracing at 60 fps (path) or a clean native WebGPU app (webgpu), open source. Apps and games live at threert.app.">+<meta property="og:description" content="three.js, down to the metal: a native runtime for three.js. 45 times smaller than Electron, on a Sony PS3, and ray-traced at 60 fps where the GPU can. Open source."><meta property="og:url" content="https://threert.dev/"><meta property="og:image" content="https://threert.dev/brand/card.jpg"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630">-<meta property="og:image:alt" content="Hardware ray-traced three.js: the headline over a grid of scenes ThreeRT traces live">+<meta property="og:image:alt" content="ThreeRT: three.js, down to the metal."><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="brand/favicon.svg" type="image/svg+xml">-<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","name":"ThreeRT","url":"https://threert.dev/","description":"Hardware ray-traced three.js: a real-time path tracer behind a three.js-style API. Apps and games made with it are published at threert.app.","publisher":{"@type":"Organization","name":"MeshyAI","url":"https://meshy.ai/"}},{"@type":"SoftwareSourceCode","name":"ThreeRT","description":"A real-time path tracer behind a three.js-style API: a Rust and wgpu engine, TypeScript scene and gameplay packages.","url":"https://threert.dev/","codeRepository":"https://github.com/meshy-dev/ThreeRT","license":"https://opensource.org/licenses/MIT","programmingLanguage":["Rust","TypeScript"]},{"@type":"SoftwareApplication","name":"ThreeRT","description":"The free clients that open ThreeRT apps and games and path-trace them on the device's own GPU.","url":"https://threert.dev/download/","applicationCategory":"GameApplication","operatingSystem":"macOS 14, iOS 17, SteamOS 3 and Linux x86_64, Android 10","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"}}]}</script>+<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","name":"ThreeRT","url":"https://threert.dev/","description":"The native runtime for three.js: three.js, down to the metal. Apps and games made with it are published at threert.app.","publisher":{"@type":"Organization","name":"MeshyAI","url":"https://meshy.ai/"}},{"@type":"SoftwareSourceCode","name":"ThreeRT","description":"The native runtime for three.js: a JavaScript runtime with window, input, networking and UI; a Rust and wgpu path tracer behind a three.js-style scene API; a WebGPU renderer that runs three.js's own WebGPURenderer natively; TypeScript scene and gameplay packages.","url":"https://threert.dev/","codeRepository":"https://github.com/meshy-dev/ThreeRT","license":"https://opensource.org/licenses/MIT","programmingLanguage":["Rust","TypeScript"]},{"@type":"SoftwareApplication","name":"ThreeRT","description":"The free clients that open ThreeRT apps and games and path-trace them on the device's own GPU.","url":"https://threert.dev/download/","applicationCategory":"GameApplication","operatingSystem":"macOS 14, iOS 17, SteamOS 3 and Linux x86_64, Android 10","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"}}]}</script><link rel="stylesheet" href="css/threert.css"><noscript><style>.rv { opacity: 1; transform: none; }</style></noscript>-<script type="importmap">{ "imports": { "three": "./vendor/three/three.module.js", "three/addons/": "./vendor/three/addons/" } }</script><style>- /* ---- Hero: a reel of what the engine draws, the words over its darker side ---- */- .hero { position: relative; height: min(100vh, 1000px); min-height: 640px; overflow: hidden; background: #000; }- .hero .backdrop .lab { top: auto; bottom: 32px; left: 32px; z-index: 6; }- .hero .backdrop .lab i { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }- .hero .backdrop::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(6,7,9,.93) 0%, rgba(6,7,9,.8) 30%, rgba(6,7,9,.3) 58%, rgba(6,7,9,0) 76%), linear-gradient(180deg, rgba(6,7,9,.72) 0%, rgba(6,7,9,0) 16%), linear-gradient(0deg, rgba(6,7,9,.66) 0%, rgba(6,7,9,0) 16%); }- /* A screen held upright: the words run the width, so the reel darkens from the top instead. */- @media (max-aspect-ratio: 4/5) { .hero .backdrop::after { background: linear-gradient(180deg, rgba(6,7,9,.9) 0%, rgba(6,7,9,.78) 46%, rgba(6,7,9,.28) 74%, rgba(6,7,9,.5) 100%); } .hero .backdrop .lab { left: 20px; bottom: 22px; } .hero .backdrop .pp { right: 20px; bottom: 20px; } }- .hero .copy { position: absolute; z-index: 7; left: 0; right: 0; top: 132px; pointer-events: none; }- .hero .copy .wrap { display: grid; gap: 24px; }- .hero .copy a { pointer-events: auto; }- .hero h1 .l2 { display: block; }- .hero .cta { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }- .hero .plat { margin-top: -10px; color: var(--bone-2); }- /* Over the reel, the outlined button keeps its words readable where a bright clip runs under it. */- .hero .btn.ghost { background: rgba(6, 7, 9, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }-section { padding: 128px 0; }.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }.sec-head .lede { justify-self: end; }-- /* ---- RT ---- */- .rtx .big { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }- .rtx .big h2 { font: 680 clamp(110px, 15vw, 220px)/0.8 var(--font-sans); letter-spacing: -0.07em; }- .rtx .big p { color: var(--bone-2); font-size: 17px; max-width: 32ch; padding-bottom: 10px; }- .rtx ol { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }- .rtx li { padding: 28px 32px 0 0; border-top: 1px solid var(--line-2); }- .rtx li + li { padding-left: 32px; border-left: 1px solid var(--line); }- .rtx li h3 { font: 600 clamp(30px, 3vw, 42px)/1 var(--font-sans); letter-spacing: -.045em; color: var(--bone); }- .rtx li h3 b { font-weight: 700; background: var(--ray); -webkit-background-clip: text; background-clip: text; color: transparent; }- .rtx li p { margin-top: 14px; color: var(--bone-2); font-size: 15.5px; max-width: 40ch; }-- /* ---- Hello world: an auto-advancing reel (code + output), story-style progress on top ---- */- .reel { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #08090c; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); display: grid; grid-template-columns: 0.86fr 1.14fr; }- .reel .story { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }- .reel .story .st { appearance: none; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 9px; color: var(--mute); }- .reel .story .st b { font: 600 14px var(--font-sans); letter-spacing: -.01em; color: var(--bone-2); transition: color .3s; }- .reel .story .st span { font: 500 11.5px var(--font-mono); margin-left: 8px; color: var(--mute); }- .reel .story .st i { display: block; height: 2px; border-radius: 2px; background: rgba(236, 232, 225, .14); overflow: hidden; }- .reel .story .st i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--ray); }- .reel .story .st[aria-current="true"] b { color: var(--bone); }- .reel .story .pp { appearance: none; border: 1px solid var(--line-2); background: none; color: var(--bone-2); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }- .reel .left { border-right: 1px solid var(--line); position: relative; min-width: 0; min-height: 320px; overflow: hidden; }- /* Long lines fade out before the edge and the bottom fades too: nothing is cut hard against the image. */- .reel .code { position: absolute; inset: 0 24px 0 0; border: 0; border-radius: 0; background: transparent; font-size: 11px; line-height: 1.7; padding: 18px 0 18px 20px; overflow: hidden;- -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent), linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 72px), transparent);- -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent), linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 72px), transparent); mask-composite: intersect; }- .reel .out { position: relative; display: grid; align-content: center; background: #000; }- .reel .out .cmp { border-radius: 0; transition: opacity .35s var(--ease); }- .reel .out .cmp.fade, .reel .code.fade { opacity: 0; }- .reel .code { transition: opacity .35s var(--ease); }-- /* ---- Comparison ---- */.scene-tabs { display: flex; gap: 28px; margin-bottom: 18px; }.scene-tabs button { appearance: none; border: 0; background: none; padding: 0 0 10px; cursor: pointer; font: 600 22px var(--font-sans); letter-spacing: -.02em; color: var(--mute); border-bottom: 2px solid transparent; }.scene-tabs button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--tungsten); }@@ -86,55 +36,11 @@.pick button[aria-pressed="true"] { background: rgba(236, 232, 225, .14); color: #ece8e1; }.pick button[aria-pressed="true"]::before { opacity: 1; }.pick button[data-v="ref"]::before { background: #ece8e1; }-- .motion { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }- .motion .cap { margin-top: 12px; }-- .details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }- .details h3 { margin: 18px 0 8px; }- .details p { color: var(--bone-2); font-size: 15px; max-width: 54ch; }-.tricks { text-align: center; padding: 160px 0; position: relative; overflow: hidden; }- .tricks .no { font: 600 clamp(28px, 4vw, 56px)/1.14 var(--font-sans); letter-spacing: -.04em; color: #3a3e47; }- .tricks .no s { text-decoration-thickness: 2px; text-decoration-color: var(--ember); }.tricks .yes { margin-top: 26px; font: 640 clamp(56px, 8vw, 116px)/1 var(--font-sans); letter-spacing: -.055em; }.tricks svg.mark { width: 150px; height: 150px; margin: 0 auto 40px; display: block; overflow: visible; }@media (prefers-reduced-motion: reduce) { .tricks svg.mark .pulse { display: none; } }-- /* ---- Open source: the reason to star, once the comparisons have been seen ---- */- .oss { padding: 0 0 128px; }- .oss .strip { display: grid; grid-template-columns: 1fr auto; gap: 28px 64px; align-items: center; padding: 36px 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-1); }- .oss h2 { font: 620 clamp(26px, 2.6vw, 34px)/1.08 var(--font-sans); letter-spacing: -.04em; }- .oss .strip p { margin-top: 12px; color: var(--bone-2); font-size: 15.5px; max-width: 66ch; }- .oss .act { display: grid; gap: 16px; justify-items: start; }- .oss .strip .pkgs { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12.5px/1.5 var(--font-mono); color: var(--mute); max-width: none; }- .oss .pkgs a { color: var(--bone-2); text-decoration: none; }- .oss .pkgs a:hover { color: var(--bone); }-- /* ---- OpenStrikeRT: the game's cover, the words over its darker side ---- */- .stage { position: relative; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #000; isolation: isolate; }- .stage > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }- .stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.88) 28%, rgba(6,7,9,.4) 50%, rgba(6,7,9,0) 66%), linear-gradient(0deg, rgba(6,7,9,.45) 0%, rgba(6,7,9,0) 24%); }- .stage .lab { top: 22px; left: 22px; }- .stage .lab i { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }- .stage .over { position: absolute; z-index: 2; left: 48px; bottom: 44px; width: min(470px, 44%); display: grid; gap: 20px; }- .stage .over .lede { font-size: clamp(15.5px, 1.3vw, 18px); }- .stage .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }- .stage .plat { margin-top: -8px; color: var(--bone-2); }- .plat a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }- .plat a:hover { text-decoration-color: var(--bone); }- .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }- .shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); border: 1px solid var(--line); background: #000; }- .facts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }- .facts li { padding: 26px 32px 0 0; border-top: 1px solid var(--line-2); min-width: 0; }- .facts li + li { padding-left: 32px; border-left: 1px solid var(--line); }- .facts h3 { font: 600 24px/1.1 var(--font-sans); letter-spacing: -0.03em; }- .facts p { margin-top: 12px; color: var(--bone-2); font-size: 15.5px; max-width: 42ch; }-- /* ---- threert.app: what is published there (js/platform.js builds a tile; site/tools/platform.ts bakes them) ---- */.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }- /* Every tile has the same box whatever its words (one line of title, two of summary), so a tile that changes when the- platform answers moves nothing. */.app { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line); background: var(--ink-1); text-decoration: none; transition: border-color 0.2s; }.app:hover { border-color: var(--line-2); }.app .pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }@@ -147,7 +53,6 @@.app .t em { display: block; margin-top: 12px; font: 400 11.5px/1 var(--font-mono); font-style: normal; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }.app:hover .t em { color: var(--bone-2); }.app .now { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 7px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11.5px/1 var(--font-mono); font-style: normal; color: var(--bone); }- /* The eighth cell: the reader's own app, not there yet. */.app.yours { justify-content: flex-end; background: transparent; border: 1px dashed var(--line-2); }.app.yours:hover { border-color: var(--bone-2); }.app.yours .t small { color: var(--bone-2); }@@ -156,300 +61,179 @@.more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }.more .txt { color: var(--bone-2); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }.more .txt:hover { color: var(--bone); }-- /* ---- Publish: three steps, each with the thing itself under it ---- */- /* The three things line up across the columns: a step's number, title, words and thing share the list's rows. */- .loop { grid-template-rows: repeat(4, auto); }- .loop > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }- .loop > li > :last-child { align-self: start; }- .loop .code { margin: 20px 0 0; font-size: 12px; line-height: 1.75; padding: 14px 16px; border-radius: 12px; }- .loop .code.sh { color: var(--bone); }- .loop .code.sh .c { font-style: normal; }- .loop .addr { margin-top: 20px; max-width: none; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0a0b0e; font: 500 13.5px/1.5 var(--font-mono); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }- .loop .addr span { color: var(--mute); }-- /* ---- Everywhere: one scene, a rail to two renderers, every screen ---- */- .root { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); font: 500 13px var(--font-mono); color: var(--bone); position: relative; z-index: 1; }- .root img { width: 18px; height: 18px; }- .rail { margin-left: 26px; padding-left: 44px; border-left: 1.5px solid rgba(236, 232, 225, .22); padding-top: 22px; }- .branch { position: relative; }- .branch + .branch { margin-top: 18px; }- .branch::before { content: ""; position: absolute; left: -45.5px; top: 50%; width: 44px; height: 1.5px; background: rgba(236, 232, 225, .3); }- .branch.rt-b::before { background: var(--tungsten); box-shadow: 0 0 10px color-mix(in srgb, var(--tungsten) 60%, transparent); }- .branch:last-child::after { content: ""; position: absolute; left: -48px; top: calc(50% + 1.5px); bottom: -4px; width: 8px; background: var(--ink-0); }- .tier { border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 22px 30px; background: var(--ink-1); display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; overflow: hidden; }- .tier.rt-tier { border-color: color-mix(in srgb, var(--tungsten) 45%, transparent); background: radial-gradient(70% 90% at 70% 0%, var(--halo), transparent 70%), var(--ink-1); }- .tier.wg-tier { border-color: color-mix(in srgb, var(--c-three) 40%, transparent); background: radial-gradient(70% 90% at 70% 0%, color-mix(in srgb, var(--c-three) 10%, transparent), transparent 70%), var(--ink-1); }- .wg-panel { display: grid; gap: 14px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: #0a0b0e; min-width: 0; }- .wg-panel pre { margin: 0; font: 500 12.5px/1.75 var(--font-mono); color: var(--bone); overflow-x: auto; }- .wg-panel pre .c { color: var(--mute); }- .wg-panel .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }- .wg-panel .stats div b { display: block; font: 600 19px/1.15 var(--font-sans); letter-spacing: -.03em; color: var(--bone); }- .wg-panel .stats div span { display: block; margin-top: 4px; font: 500 11.5px/1.35 var(--font-mono); color: var(--mute); }- @media (max-width: 700px) { .wg-panel .stats { grid-template-columns: 1fr; } }- .tier h3 { font: 600 28px var(--font-sans); letter-spacing: -.035em; }- .tier .req { display: block; margin-top: 8px; font: 500 12px var(--font-mono); color: var(--mute); }- .tier .sub { margin-top: 14px; color: var(--bone-2); font-size: 15px; }- .tier ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }- .tier li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; color: var(--bone-2); font-size: 14.5px; }- .tier li a { color: var(--bone); }- .tier li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--c-three); }- .rt-tier li::before { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }- .shelf3d { position: relative; height: 300px; min-width: 0; }- .shelf3d canvas { display: block; width: 100%; height: calc(100% - 46px); }- .shelf3d.fallback img { display: block; width: 100%; height: 100%; object-fit: contain; }- .dev3d-cap { position: absolute; bottom: 0; transform: translateX(-50%); margin: 0; font: 500 11.5px/1.45 var(--font-mono); color: var(--mute); text-align: center; white-space: nowrap; pointer-events: none; }- .dev3d-cap b { display: block; font: 600 13px var(--font-sans); color: var(--bone-2); letter-spacing: -.01em; }- .payoff { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-top: 40px; border-top: 1px solid var(--line); }- .payoff h3 { font: 620 clamp(30px, 3.4vw, 48px)/1.05 var(--font-sans); letter-spacing: -.045em; }- .payoff p { color: var(--bone-2); font-size: 16px; }-+ :root { --c-ps: #7aa2f7; }.tricks .cta { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }-+ .kick { display: inline-flex; align-items: center; gap: 9px; font: 500 12.5px var(--font-mono); color: var(--bone-2); }+ .kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--tungsten)); box-shadow: 0 0 8px var(--acc, var(--tungsten)); }++ /* ---- Hero: the premise, and the three things it gets you, on the first screen ---- */+ .hx { padding: 104px 0 40px; }+ .hx h1 { font-size: clamp(56px, 7.4vw, 112px); }+ .hx h1 .l2 { display: block; }+ .hx-sub { margin-top: 24px; font: 500 clamp(19px, 1.75vw, 25px)/1.4 var(--font-sans); letter-spacing: -.015em; color: var(--bone-2); max-width: 52ch; }+ .hx .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }+ .x3 { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }+ .xc { --acc: var(--tungsten); position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 22px 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; color: inherit; text-decoration: none; isolation: isolate; }+ .xc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }+ .xc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,7,9,.94) 0%, rgba(6,7,9,.6) 34%, rgba(6,7,9,0) 66%); }+ .xc:hover img { transform: scale(1.04); }+ .xc b { font: 640 clamp(28px, 2.6vw, 38px)/1.05 var(--font-sans); letter-spacing: -.04em; color: var(--bone); }+ .xc b::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 14px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }+ .xc span { margin-top: 8px; color: var(--bone-2); font-size: 15px; }++ /* ---- The three sections: words on one side, the proof on the other ---- */+ .ft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }+ .ft.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }+ .ft.flip > .tx { order: 2; }+ .ft .tx h2 { margin-top: 18px; }+ .ft .tx h2, .wide-head h2 { font-size: clamp(38px, 3.7vw, 56px); }+ .ft .tx p { margin-top: 20px; color: var(--bone-2); font-size: 17px; max-width: 46ch; }+ .ft .tx .go { display: inline-block; margin-top: 18px; font: 500 13px var(--font-mono); color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }+ .ft .tx .go:hover { border-color: var(--bone); }+ .st3 { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }+ .st3 b { display: block; font: 640 30px/1 var(--font-sans); letter-spacing: -.04em; color: var(--bone); }+ .st3 span { display: block; margin-top: 8px; font: 500 11.5px/1.45 var(--font-mono); color: var(--mute); }+ .pic1 { margin: 0; }+ .pic1 img, .pic2 img { display: block; width: 100%; height: auto; border-radius: var(--r-2); border: 1px solid var(--line); background: #000; }+ .pic2 { display: grid; gap: 12px; }+ .wide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 40px; }+ .wide-head p { color: var(--bone-2); font-size: 17px; max-width: 50ch; justify-self: end; }+ .cmp-note { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 12.5px var(--font-mono); color: var(--mute); }+ .cmp-note b { color: var(--bone); font-weight: 600; }+ .close .fine { margin-top: 18px; font: 500 13px var(--font-mono); color: var(--bone-2); }+ .close .fine a { color: var(--bone-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }+ .close .fine a:hover { color: var(--bone); }@media (max-width: 1100px) {- .sec-head, .motion, .details, .tier, .payoff, .rtx ol { grid-template-columns: 1fr; } .rtx li + li { padding-left: 0; border-left: 0; } .rtx .big { flex-direction: column; align-items: flex-start; }- .sec-head .lede { justify-self: start; }- .reel { grid-template-columns: 1fr; } .reel .left { border-right: 0; border-bottom: 1px solid var(--line); min-height: 300px; } .reel .story { grid-template-columns: 1fr 1fr 1fr auto; }- .shelf { flex-wrap: wrap; }- .oss .strip { grid-template-columns: 1fr; padding: 28px; }- .facts { grid-template-columns: 1fr; } .facts li { padding-right: 0; padding-bottom: 26px; } .facts li + li { padding-left: 0; border-left: 0; }+ .x3 { grid-template-columns: 1fr; } .xc { min-height: 220px; }+ .ft, .ft.flip, .wide-head { grid-template-columns: minmax(0, 1fr); gap: 32px; } .ft.flip > .tx { order: 0; } .wide-head p { justify-self: start; }.apps { grid-template-columns: repeat(2, 1fr); }}- /* A screen too narrow for the words to stay on the picture's darker side: they go under it. */- @media (max-width: 1100px) {- .stage::after { content: none; }- .stage .over { position: static; width: auto; max-width: 640px; padding: 30px 32px 34px; gap: 16px; }- }- @media (max-width: 700px) {- .stage .over { padding: 26px 24px 28px; }- .stage .lab { top: 14px; left: 14px; }- }- /* A phone: nothing wider than the screen (the wordmark scales with it; the left-side picker scrolls in place). */@media (max-width: 700px) {- .rtx .big h2 { font-size: 25vw; }- .pick { max-width: calc(100% - 28px); overflow-x: auto; scrollbar-width: none; }- .apps, .shots { gap: 10px; } .shots { margin-top: 10px; }- .app .t { padding: 12px 12px 13px; } .app .t small { font-size: 10.5px; margin-bottom: 7px; } .app .t b { font-size: 15.5px; } .app .t > span { display: none; } .app .t em { margin-top: 8px; font-size: 10.5px; }- .btn .w { display: none; }+ .st3 { grid-template-columns: 1fr; } .pick { max-width: calc(100% - 28px); overflow-x: auto; scrollbar-width: none; }+ .apps { gap: 10px; } .app .t { padding: 12px 12px 13px; } .app .t > span { display: none; } .btn .w { display: none; }}- @media (prefers-reduced-motion: reduce) { .app .pic img { transition: none; } .app:hover .pic img { transform: none; } }++ /* ---- Light: the page is unlit ink, and light pools where something is shown, like metal under a lamp.+ Warm light is tungsten (traced light, the brand's one accent); each answer adds its own colour. ---- */+ .hx, #light, #far, #traced, #apps { position: relative; isolation: isolate; }+ html:not(.glass-on) .hx::before { content: ""; position: absolute; inset: -12% -6% -4%; z-index: -2; pointer-events: none;+ background:+ radial-gradient(40% 52% at 18% 10%, rgba(255, 140, 50, .22), transparent 70%),+ radial-gradient(26% 34% at 44% 0%, rgba(255, 235, 196, .08), transparent 70%),+ radial-gradient(34% 46% at 92% 20%, rgba(122, 162, 247, .12), transparent 72%),+ radial-gradient(64% 32% at 50% 100%, rgba(255, 180, 84, .08), transparent 72%);+ animation: drift 26s ease-in-out infinite alternate; }+ /* What the light falls on: a die-like grid and grain, seen only where it is lit. These two layers are the light+ without WebGL2; with it, js/glass.js draws the sheet of glass behind the page instead. */+ html:not(.glass-on) .hx::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;+ background-image: linear-gradient(rgba(236, 232, 225, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 232, 225, .05) 1px, transparent 1px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");+ background-size: 56px 56px, 56px 56px, 180px 180px; background-position: -1px -1px, -1px -1px, 0 0;+ -webkit-mask-image: radial-gradient(ellipse 68% 78% at 24% 12%, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 80%), linear-gradient(180deg, transparent 0, #000 120px);+ -webkit-mask-composite: source-in;+ mask-image: radial-gradient(ellipse 68% 78% at 24% 12%, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 80%), linear-gradient(180deg, transparent 0, #000 120px);+ mask-composite: intersect; }+ @keyframes drift { from { transform: translate3d(-1.5%, -1%, 0); } to { transform: translate3d(1.5%, 1.5%, 0); } }+ /* A highlight runs across the metal now and then. */+ .hx h1 .ray-text { background: linear-gradient(100deg, transparent 42%, rgba(255, 249, 236, .92) 50%, transparent 58%) no-repeat, var(--ray);+ background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0; -webkit-background-clip: text; background-clip: text;+ animation: sheen 9s var(--ease) 1.2s infinite; }+ @keyframes sheen { 0% { background-position: 160% 0, 0 0; } 38%, 100% { background-position: -60% 0, 0 0; } }+ /* The cards: a specular top edge, and their own light when pointed at. */+ .xc { transition: box-shadow .5s var(--ease), border-color .5s var(--ease); }+ .xc::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;+ background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 30%);+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }+ .xc:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); box-shadow: 0 44px 100px -44px color-mix(in srgb, var(--acc) 60%, transparent); }+ /* Each answer, lit in its own colour behind what it shows. */+ #light::before, #far::before, #traced::before, #apps::before, .tricks.close::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }+ #light::before { background: radial-gradient(34% 56% at 76% 52%, rgba(154, 166, 184, .13), transparent 70%), radial-gradient(22% 38% at 72% 42%, rgba(122, 162, 247, .09), transparent 70%); }+ #far::before { background: radial-gradient(38% 60% at 26% 50%, rgba(122, 162, 247, .14), transparent 70%); }+ #traced::before { background: radial-gradient(54% 40% at 50% 36%, rgba(255, 140, 50, .12), transparent 70%), radial-gradient(28% 22% at 50% 12%, rgba(255, 235, 196, .05), transparent 70%); }+ #apps::before { background: radial-gradient(50% 40% at 50% 62%, rgba(255, 180, 84, .05), transparent 70%); }+ .tricks.close::before { background: radial-gradient(32% 44% at 50% 34%, rgba(255, 140, 50, .17), transparent 70%), radial-gradient(60% 28% at 50% 100%, rgba(255, 180, 84, .05), transparent 70%); }+ .pic1 img, .pic2 img { box-shadow: 0 50px 120px -56px color-mix(in srgb, var(--acc, #7aa2f7) 70%, transparent); }+ #light .pic1 { --acc: #9aa6b8; } #far .pic2 { --acc: var(--c-ps); }+ #traced .cmp { box-shadow: 0 60px 150px -70px rgba(255, 140, 50, .55); }+ /* The sheet of glass (js/glass.js): fixed behind everything, under each section's own light. */+ .glass { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }+ @media (prefers-reduced-motion: reduce) { .hx::before, .hx h1 .ray-text { animation: none; } }</style></head><body>-<nav class="nav overlay" aria-label="Site">+<canvas class="glass" id="glass" aria-hidden="true"></canvas>++<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="./" aria-label="ThreeRT home"><img src="brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="https://threert.app/" rel="noopener">Apps</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="blog/">Blog</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>-<header class="hero">- <div class="backdrop" id="hero" data-poster="media/reel/reel.webp" data-video="media/reel/reel.mp4" data-poster-tall="media/reel/reel-tall.webp" data-video-tall="media/reel/reel-tall.mp4"><div class="lab"><i></i><span>ThreeRT, live<small>this repository’s demos and OpenStrike</small></span></div></div>- <div class="copy">- <div class="wrap">- <h1 class="h-display">Hardware<span class="l2">ray-traced</span><span class="l2 ray-text">three.js.</span></h1>- <p class="lede" style="max-width:54ch">The native runtime for three.js: path-trace production scenes at 60 fps with <code>path</code>,<sup>1</sup> or ship a clean native three.js app with the planned <code>webgpu</code> renderer.</p>- <div class="cta"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore apps</span></a><a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star<span class="w"> on GitHub</span></span><b data-stars hidden></b></a></div>- <p class="plat"><a href="download/" data-dl>Download ThreeRT</a> · <span data-dl-others>macOS · iPhone · Steam Deck · Android</span></p>+<header class="hx">+ <div class="wrap">+ <h1 class="h-display">three.js,<span class="l2 ray-text">down to the metal.</span></h1>+ <p class="hx-sub">ThreeRT is a native runtime for three.js: no browser between your scene and the GPU.</p>+ <div class="cta"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore apps</span></a><a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star<span class="w"> on GitHub</span></span><b data-stars hidden></b></a></div>+ <div class="x3">+ <a class="xc" href="#light" style="--acc:#9aa6b8"><img src="media/webgpu/wallpaper-800.webp" alt="A three.js Earth as a desktop wallpaper"><b>45× smaller</b><span>A 9.9 MB desktop app. Electron: 445 MB.<sup>1</sup></span></a>+ <a class="xc" href="#far" style="--acc:var(--c-ps)"><img src="media/ps3/showroom-800.webp" alt="three.js objects on a Sony PS3"><b>On a Sony PS3</b><span>three.js scenes on PlayStation 3 hardware from 2006.<sup>2</sup></span></a>+ <a class="xc" href="#traced"><img src="media/bistro/live.webp" alt="Bistro at night, path-traced"><b>Ray-traced, 60 fps</b><span>On GPUs with ray-tracing hardware.<sup>3</sup></span></a></div></div></header>-<section id="rt">- <div class="wrap rtx">- <div class="big rv"><h2>Three<span class="ray-text">RT</span></h2><p>Three, for the API you already know. RT, for the three things it adds.</p></div>- <ol class="rv">- <li><h3><b>R</b>ay <b>T</b>racing</h3><p>Every light is traced: shadows, bounce light, reflections and glowing surfaces that light the room. No shadow maps, no light probes, no baking.</p></li>- <li><h3><b>R</b>eal <b>T</b>ime</h3><p>60 fps in production scenes, with the camera moving. Not a still that converges once you stop.</p></li>- <li><h3><b>R</b>un<b>t</b>ime</h3><p>A native runtime for three.js, not only a path tracer. Build with the <code>path</code> renderer for hardware ray tracing, the planned <code>webgpu</code> renderer for a clean native app with zero ray-tracing overhead, or run as three.js in any browser.</p></li>- </ol>+<section id="light">+ <div class="wrap ft">+ <div class="tx rv">+ <span class="kick" style="--acc:#9aa6b8"><i></i><code>webgpu</code> · macOS and Linux</span>+ <h2 class="h-1">Ship it like<br><span class="mute">a native app.</span></h2>+ <p>three.js r187 and its own <code>WebGPURenderer</code>, unchanged, on wgpu over Metal or Vulkan. The same pixels as Chrome, at a fraction of the weight, and it goes where apps go: down to the desktop wallpaper.</p>+ <div class="st3">+ <div><b>9.9 MB</b><span>installed<br>Electron: 445 MB<sup>1</sup></span></div>+ <div><b>15.6 %</b><span>CPU at 60 fps<br>Chromium: 39.9 %<sup>1</sup></span></div>+ <div><b>0 %</b><span>CPU while a window<br>covers it</span></div>+ </div>+ </div>+ <figure class="pic1 rv"><img src="media/webgpu/wallpaper.webp" srcset="media/webgpu/wallpaper-800.webp 800w, media/webgpu/wallpaper.webp 1600w" sizes="(max-width: 1100px) calc(100vw - 40px), 640px" width="1600" height="1000" alt="A three.js Earth with clouds and an atmosphere, the desktop wallpaper on Omarchy" loading="lazy" decoding="async"></figure></div></section>-<section id="hello" style="padding-top:40px">- <div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">Hello world<br><span class="mute">looks right.</span></h2>- <p class="lede">Write a scene at tutorial size and leave every setting at its default. ThreeRT gives it sky light, soft shadows, bounce light and real reflections. Left: the same scene in three.js, as written.</p>+<section id="far" style="padding-top:40px">+ <div class="wrap ft flip">+ <div class="tx rv">+ <span class="kick" style="--acc:var(--c-ps)"><i></i>Sony PS3 · experimental</span>+ <h2 class="h-1">No WebGPU. No JIT.<br><span class="mute">It still runs.</span></h2>+ <p>On a Sony PlayStation 3 from 2006, the scene is still three.js r187. A native renderer draws it on the RSX at 1920 × 1080, with the PocketJS interface in the same frame. Early days: 16 to 30 fps, and no shadows, custom shaders or post-processing yet.<sup>2</sup></p>+ <a class="go" href="blog/ps3/">How we ported it</a></div>- <div class="reel rv" id="reel">- <div class="story" id="story">- <button class="st" data-i="0"><b>Material balls<span>material-grid.ts</span></b><i></i></button>- <button class="st" data-i="1"><b>Sunlit room<span>sun-room.ts</span></b><i></i></button>- <button class="st" data-i="2"><b>glTF model<span>glb-asset.ts</span></b><i></i></button>- <button class="pp" id="reelPP" aria-label="Pause"></button>- </div>- <div class="left"><pre class="code" id="helloCode"></pre></div>- <div class="out"><div class="cmp" id="helloCmp" data-x="92"></div></div>+ <div class="pic2 rv">+ <img src="media/ps3/showroom.webp" srcset="media/ps3/showroom-800.webp 800w, media/ps3/showroom.webp 1600w" sizes="(max-width: 1100px) calc(100vw - 40px), 640px" width="1600" height="900" alt="A Sony PS3 frame: a gold torus knot and PBR spheres over a mirrored floor" loading="lazy" decoding="async">+ <img src="media/ps3/pbr-grid.webp" width="1600" height="900" alt="A Sony PS3 frame: twenty spheres from smooth to rough and from dielectric to metal" loading="lazy" decoding="async"></div></div></section>-<section id="compare" style="padding-top:40px">+<section id="traced" style="padding-top:40px"><div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">Against three.js<br><span class="mute">at full power.</span></h2>- <p class="lede">The same scene file, run by both engines. three.js gets everything it has: shadow maps, image-based lighting and, on WebGPU, its own SSGI, SSR and TRAA. ThreeRT gets the scene.</p>+ <div class="wide-head rv">+ <div><span class="kick"><i></i><code>path</code> · ray-tracing GPUs</span><h2 class="h-1" style="margin-top:18px">Ray-traced.<br><span class="mute">At 60 fps.</span></h2></div>+ <p>On GPUs with ray-tracing hardware, the path renderer traces every light in a three.js-style scene: shadows, bounce light and reflections from one method, nothing baked. Drag to compare it with three.js at full power.</p></div><div class="scene-tabs rv" id="sceneTabs"><button data-v="bistro">Bistro night</button><button data-v="zero-day">Zero-Day</button></div><div class="rv" style="position:relative"><div class="cmp" id="main" data-x="50"></div><div class="pick" id="leftPick" aria-label="Left side"><button data-v="tuned">three.js · WebGL</button><button data-v="strongest">three.js · WebGPU + SSGI</button><button data-v="ref">Path-traced reference</button></div></div>- </div>-</section>--<section id="motion" style="padding-top:40px">- <div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">Not a still.<br><span class="mute">A camera move.</span></h2>- <p class="lede">Each scene’s own camera path, both engines in lockstep. ThreeRT holds 60 fps the whole way. Bistro is a recording of it doing so, every frame as it was drawn.<sup>2</sup></p>- </div>- <div class="motion rv">- <div>- <div class="cmp" data-a="media/bistro/hero-three.webp" data-b="media/bistro/hero-rt.webp" data-video="media/bistro/hero.mp4" data-video-sm="media/bistro/hero-720.mp4" data-la="three.js" data-lb="ThreeRT · 60 fps" data-x="50"></div>- <div class="cap"><b>Bistro night</b><span>a 60 fps clip: drag the divider</span></div>- </div>- <div>- <div class="seqp" data-scene="media/zero-day" data-la="three.js · 12 fps" data-lb="ThreeRT · 60 fps"></div>- <div class="cap"><b>Zero-Day</b><span>60 poses along the path</span></div>- </div>- </div>- </div>-</section>--<section id="traced" style="padding-top:40px">- <div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">What a ray finds<br><span class="mute">that approximations can’t.</span></h2>- <p class="lede">Close-ups of the same frames. Left: three.js at its strongest. Right: ThreeRT.</p>- </div>- <div class="details">- <div class="rv">- <div class="cmp zoom" style="--z:2;--o:78% 24%" data-a="media/bistro/strongest.webp" data-b="media/bistro/live.webp" data-la="three.js" data-lb="ThreeRT" data-x="50"></div>- <h3 class="h-3">Every emitter is a light</h3>- <p>Bistro’s string lights, shop signs and lamps light the square themselves, in their own colours.</p>- </div>- <div class="rv">- <div class="cmp zoom" style="--z:1.9;--o:36% 42%" data-a="media/bistro/strongest.webp" data-b="media/bistro/live.webp" data-la="three.js" data-lb="ThreeRT" data-x="50"></div>- <h3 class="h-3">Light that bounces</h3>- <p>The shop window and the wall lamp spill warm light across the facade and the pavement.</p>- </div>- <div class="rv">- <div class="cmp zoom" style="--z:1.8;--o:46% 94%" data-a="media/zero-day/strongest.webp" data-b="media/zero-day/live.webp" data-la="three.js" data-lb="ThreeRT" data-x="50"></div>- <h3 class="h-3">Reflections of the whole world</h3>- <p>Zero-Day’s floor mirrors the machines and their lights, including the parts the camera never sees.</p>- </div>- <div class="rv">- <div class="cmp zoom" style="--z:1.9;--o:48% 30%" data-a="media/zero-day/strongest.webp" data-b="media/zero-day/live.webp" data-la="three.js" data-lb="ThreeRT" data-x="50"></div>- <h3 class="h-3">Ten thousand small lights</h3>- <p>Each of Zero-Day’s small emitters adds its own light, highlight and shadow.</p>- </div>- </div>- </div>-</section>--<section id="source" class="oss">- <div class="wrap">- <div class="strip rv">- <div>- <h2>Open source. MIT.</h2>- <p>The native runtime and path tracer (Rust and wgpu), the three.js-style scene API and the gameplay runtime are one repository, along with every comparison on this page, how it was measured, and the architecture for the <code>webgpu</code> renderer. If it is useful to you, a star helps the next three.js developer find it.</p>- </div>- <div class="act">- <a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star on GitHub</span><b data-stars hidden></b></a>- <p class="pkgs"><span>npm</span><a href="https://www.npmjs.com/package/@threert/scene" rel="noopener">@threert/scene</a><a href="https://www.npmjs.com/package/@threert/gameplay" rel="noopener">@threert/gameplay</a><a href="https://www.npmjs.com/package/@threert/voxel" rel="noopener">@threert/voxel</a></p>- </div>- </div>- </div>-</section>--<section id="everywhere" style="padding-top:40px">- <div class="wrap">- <div class="sec-head rv" style="grid-template-columns:1fr;gap:24px">- <h2 class="h-1">One runtime.<br><span class="mute">Two renderers, every screen.</span></h2>- <p class="lede" style="justify-self:start">One engine and one brand — choose the <code>path</code> renderer for 60 fps hardware ray tracing, the planned <code>webgpu</code> renderer for a clean native three.js build with zero ray-tracing code, or open the same project in any browser.</p>- </div>- <div class="rv">- <div class="root"><img src="brand/mark-small.svg" alt="">ThreeRT · one runtime, chosen per build</div>- <div class="rail">- <div class="branch rt-b">- <div class="tier rt-tier">- <div>- <h3>Path Tracer</h3><span class="req">--renderer path · hardware ray tracing</span>- <p class="sub">Every light path traced, at 60 fps.</p>- <ul><li>Dynamic resolution, MetalFX / DLSS and OIDN hold the frame rate</li><li><span>Installs like any game client: <a href="download/">macOS, iPhone, Steam Deck, Android</a></span></li></ul>- </div>- <div class="shelf3d" id="shelfNative"></div>- </div>- </div>- <div class="branch">- <div class="tier wg-tier">- <div>- <h3>WebGPU</h3><span class="req">--renderer webgpu · planned · any GPU</span>- <p class="sub">Standard three.js <code>WebGPURenderer</code> over native <code>navigator.gpu</code> (wgpu), with zero path-tracer code linked.</p>- <ul><li>One-way crates: <code>path → runtime ← webgpu</code></li><li><span>Architecture & size gate: <a href="https://github.com/meshy-dev/ThreeRT/blob/main/docs/RENDERING-METHODS.md" rel="noopener">RENDERING-METHODS.md</a></span></li></ul>- </div>- <div class="wg-panel">- <pre><span class="c">$</span> threert build --renderer webgpu <span class="c"># clean native three.js, zero RT code</span>-<span class="c">$</span> threert build --renderer path <span class="c"># hardware ray tracing (default)</span></pre>- <div class="stats">- <div><b>9.9 MB</b><span>installed (vs 445 MB Electron)</span></div>- <div><b>4.5 MB</b><span>download (vs 170 MB Electron)</span></div>- <div><b>34.7 %</b><span>CPU on M5 (vs 64.8 % Electron)</span></div>- </div>- </div>- </div>- </div>- <div class="branch">- <div class="tier">- <div>- <h3>Browser</h3><span class="req">any browser, any device</span>- <p class="sub">The same project running as three.js in any browser or in-app WebView.</p>- <ul><li>A link instead of a download</li><li>Plain three.js, with its whole ecosystem</li></ul>- </div>- <div class="shelf3d" id="shelfWeb"></div>- </div>- </div>- </div>- </div>- <div class="payoff rv" style="margin-top:72px">- <h3>From a 5 MB app <span class="ray-text">to 60 fps path tracing.</span></h3>- <p>Pick the renderer your project needs — clean native WebGPU, hardware ray tracing, or the browser — without splitting the engine or leaving three.js.</p>- </div>- </div>-</section>--<section id="play" style="padding-top:40px">- <div class="wrap">- <div class="stage rv">- <img src="media/openstrike/cover.webp" srcset="media/openstrike/cover-800.webp 800w, media/openstrike/cover.webp 1600w" sizes="(max-width: 1304px) calc(100vw - 40px), 1176px" width="1600" height="900" alt="OpenStrikeRT: a first-person view down a foundry hall, a tracer crossing it, the lamps and the sky mirrored in the polished floor" loading="lazy" decoding="async">- <div class="lab"><i></i><span>OpenStrikeRT<small id="osNow">path-traced, live</small></span></div>- <div class="over">- <h2 class="h-1">Play it<br>with a friend.</h2>- <p class="lede">OpenStrikeRT is a team shooter with every light traced: sun through the skylights onto a polished floor, the furnace’s glow, a muzzle flash that lights the hall for a frame or two. It is our first multiplayer game on threert.app.</p>- <div class="cta"><a class="btn primary" href="https://openstrike.threert.app/" rel="noopener"><span>Play OpenStrikeRT</span></a></div>- <p class="plat">Plays in <a href="download/">ThreeRT 0.4.0 or newer</a> · the browser shows a preview</p>- </div>- </div>- <div class="shots rv">- <img src="media/openstrike/shot-3.webp" width="960" height="540" alt="OpenStrikeRT: three players of the two teams in the hall, lit by its skylights and lamps" loading="lazy" decoding="async">- <img src="media/openstrike/shot-6.webp" width="960" height="540" alt="OpenStrikeRT: the furnace, its opening lighting the floor around it" loading="lazy" decoding="async">- </div>- <ol class="facts rv">- <li><h3>Up to 10 in a room</h3><p>Open it and you are in a match: the public room with the most players and a free place. Or start a private room and send its link.</p></li>- <li><h3>Nobody around? Bots.</h3><p>Alone or offline, it is practice against bots on the same map.</p></li>- <li><h3>Game code, nothing else</h3><p>TypeScript against <code>@threert/scene</code>, <code>@threert/gameplay</code> and <code>@threert/net</code>. No engine changes, no native code.</p></li>- </ol>+ <p class="cmp-note rv"><span>Bistro night, 1280 × 720</span><span><b>ThreeRT</b> 15.5 ms · ΔE 3.4</span><span>three.js, WebGPU + SSGI + SSR + TRAA: 34.7 ms · ΔE 10.1<sup>3</sup></span><span>In ThreeRT for macOS, iPhone, Steam Deck, Android</span></p></div></section><section id="apps" style="padding-top:40px"><div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">Not only games.<br><span class="mute">All on threert.app.</span></h2>- <p class="lede">threert.app is where ThreeRT apps and games are published and found. A physics lesson, a jeweller’s counter, a flat you might buy, a museum hall: each has its own address. Open it in ThreeRT, traced on your GPU, or, where it has a three.js page, play it in this browser.</p>+ <div class="wide-head rv">+ <h2 class="h-1">Made with ThreeRT.<br><span class="mute">On threert.app.</span></h2>+ <p>Apps and games, each at its own address. Open one in ThreeRT, or publish yours with <code>threert publish</code>.</p></div><div class="apps rv" id="appGrid"><!-- apps:begin (site/tools/platform.ts) -->@@ -460,35 +244,13 @@<a class="app" href="https://refraction.threert.app/" rel="noopener" data-name="refraction" data-cover="https://refraction.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/refraction.webp" width="640" height="360" alt="Refraction Bench, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · education</small><b>Refraction Bench</b><span>A straw breaks in water; a glass ball flips the arrows</span><em>refraction.threert.app</em></span></a><a class="app" href="https://moon-phases.threert.app/" rel="noopener" data-name="moon-phases" data-cover="https://moon-phases.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/moon-phases.webp" width="640" height="360" alt="Moon Phases, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · education</small><b>Moon Phases</b><span>One Sun, one light: phases and eclipses, traced</span><em>moon-phases.threert.app</em></span></a><!-- apps:end -->- <a class="app yours" href="#publish"><span class="pic"><span>$ threert publish</span></span><span class="t"><small>your-app.threert.app</small><b>Yours goes here</b><span>One command publishes a project.</span></span></a>+ <a class="app yours" href="https://threert.app/publish" rel="noopener"><span class="pic"><span>$ threert publish</span></span><span class="t"><small>your-app.threert.app</small><b>Yours goes here</b><span>One command publishes a project.</span></span></a></div>- <div class="more rv"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore threert.app</span></a><span class="plat">New, popular and playing now, with search.</span></div>+ <div class="more rv"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore threert.app</span></a></div></div></section>-<section id="publish" style="padding-top:40px">- <div class="wrap">- <div class="sec-head rv">- <h2 class="h-1">One command<br><span class="mute">puts yours online.</span></h2>- <p class="lede">Publishing gives a project an address, a page in the catalogue and a package ThreeRT opens directly. It needs a GitHub account and nothing else.</p>- </div>- <ol class="steps loop rv">- <li><h3>Write three.js-style code</h3><p>A scene is a TypeScript module against <code>@threert/scene</code>: meshes, <code>MeshStandardMaterial</code>, lights, glTF models. The light is traced, not configured.</p>- <pre class="code" id="loopCode" aria-label="A few lines of a scene">const ball = new Mesh(sphere, gold);-ball.position.set(0, 0.42, 0);-scene.add(ball);-return { scene, camera };</pre></li>- <li><h3>Run <code>threert publish</code></h3><p>In the project’s directory. It packs the project, takes a cover from ThreeRT, uploads the files that changed and prints the address. In ThreeRT for macOS, Studio has a Publish button that does the same.</p>- <pre class="code sh" aria-label="Terminal"><span class="c">$</span> threert login-<span class="c">$</span> threert publish</pre></li>- <li><h3>Share the address</h3><p>The first publish claims the name, first come, first served. Its address is the app’s page and the link ThreeRT opens. A game that uses <code>@threert/net</code> gets multiplayer rooms, and anyone can start their own project from yours with <code>threert remix</code>.</p>- <p class="addr"><span>https://</span>your-app<span>.threert.app</span></p></li>- </ol>- <div class="more rv"><a class="btn ghost" href="https://threert.app/publish" rel="noopener"><span>How publishing works</span></a><a class="txt" href="docs/">Getting started</a></div>- </div>-</section>--<section class="tricks">+<section class="tricks close"><svg class="mark rv" viewBox="0 0 64 64" aria-hidden="true" data-mark><defs><linearGradient id="ry" x1="11.59" y1="32" x2="32" y2="12.36" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:var(--ember)"/><stop offset=".5" style="stop-color:var(--tungsten)"/><stop offset="1" style="stop-color:var(--filament)"/></linearGradient><filter id="gl" x="-25%" y="-25%" width="150%" height="150%"><feGaussianBlur stdDeviation="1.4"/></filter></defs><rect width="64" height="64" fill="none" pointer-events="all"/>@@ -498,10 +260,9 @@ return { scene, camera };</pre></li><path data-ray class="pulse" d="M11.59 32 L32 12.36 L38.81 39.86 Z" fill="none" style="stroke:var(--filament)" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" pathLength="100" stroke-dasharray="9 91" filter="url(#gl)"><animate attributeName="stroke-dashoffset" from="100" to="0" dur="2.4s" repeatCount="indefinite"/></path></svg><div class="wrap">- <div class="no rv"><s>Shadow maps.</s> <s>Light probes.</s> <s>Lightmaps.</s><br><s>Screen-space GI.</s> <s>Baking.</s></div>- <div class="yes rv">Just <span class="ray-text">light</span>.</div>+ <div class="yes rv">Bring your <span class="ray-text">three.js.</span></div><div class="cta rv"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore apps</span></a><a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star<span class="w"> on GitHub</span></span><b data-stars hidden></b></a></div>- <p class="plat rv" style="margin-top:16px"><a href="download/" data-dl>Download ThreeRT</a> · <span data-dl-others>macOS · iPhone · Steam Deck · Android</span></p>+ <p class="fine rv"><a href="https://github.com/meshy-dev/ThreeRT" rel="noopener">Open source, MIT</a> · <a href="download/" data-dl>Download ThreeRT</a> · <a href="docs/">Docs</a></p></div></section>@@ -509,31 +270,31 @@ return { scene, camera };</pre></li><div class="wrap cols"><div><a class="logo" href="./" aria-label="ThreeRT home"><img src="brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <p style="margin-top:14px">The native runtime for three.js — hardware path tracing and WebGPU.</p>- <div class="site"><a href="https://threert.app/" rel="noopener">Apps</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <p style="margin-top:14px">three.js, down to the metal.</p>+ <div class="site"><a href="blog/">Blog</a><a href="https://threert.app/" rel="noopener">Apps</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="privacy/">Privacy</a></p></div><div class="note">- <p><sup>1</sup> To our knowledge. 60 fps measured on an Apple M5 MacBook at 1280 × 720 output with dynamic resolution, along each scene’s own camera path; three.js r187 in Chrome on the same machine. The reel at the top of this page is ThreeRT live on an Apple M3 Max: this repository’s demos and OpenStrike, a shooter built on the engine, each clip recorded frame by frame at 60 fps: the demos at 1280 × 720 output (render scale 0.5 to 0.75, taken to the output by the engine’s temporal upscaler), OpenStrike at 960 × 540 (render scale 0.8) with an earlier build.</p>- <p><sup>2</sup> The Bistro clip is ThreeRT live on an Apple M3 Max at 1920 × 1080 (render scale 0.5), every frame as it drew it: 14.4 ms of GPU time a frame at the median, 14.9 ms at the 95th percentile, none over 16.7 ms. three.js follows the same camera path.</p>- <p>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. Damaged Helmet: Khronos glTF sample models. Tokyo: 3D city model, Project PLATEAU (MLIT Japan); elevation and aerial photos, GSI; roads and places © OpenStreetMap contributors. three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>- <p>The pictures of OpenStrikeRT and of the apps are their covers and screenshots on <a href="https://threert.app/" rel="noopener">threert.app</a>, where each app’s page credits what it uses.</p>+ <p><sup>1</sup> The desktop app is Pocket Island on an Apple M5 at 1200 × 800 (2×), in the foreground at 60 fps, the whole process tree, against its Electron build. The wallpaper is <code>webgpu/wallpaper</code> on a ThinkPad X1 Nano (Intel Iris Xe, Vulkan, Hyprland) against Chromium 155 with WebGPU on Vulkan: the same 854 KiB bundle and 4K textures, 2160 × 1350 at 60 fps, process-tree CPU and RSS from <code>/proc</code>. Method and data: <code>docs/RENDERING-METHODS.md</code>, <code>webgpu/wallpaper/REPORT.md</code>. With a window over it, the wallpaper pauses: 0.00 % CPU, the GPU asleep 97 % of the time.</p>+ <p><sup>2</sup> A Sony PlayStation 3 (CECH-2500, system software 4.81 with custom firmware, which homebrew needs). three.js 0.187.0 runs on QuickJS on the Cell’s PPU; a native renderer draws its scene graph on the RSX at 1920 × 1080, with a PocketJS overlay in the same frame. The four demos run at 16 to 30 fps: the showroom (25,990 triangles in 26 draws, with a planar mirror) at 20, the material grid (58,886 triangles in 43 draws) at 26, 2,400 point sprites at 30, and 196 instances at 16, drawn one draw each, which costs 28.9 ms of PPU time a frame. Where the rest of a frame goes is not measured yet, and the Cell’s SPUs are not used.</p>+ <p><sup>3</sup> To our knowledge. 60 fps measured on an Apple M5 MacBook at 1280 × 720 output with dynamic resolution, along each scene’s own camera path; three.js r187 in Chrome on the same machine. The Bistro and Zero-Day comparisons, and every scene: <code>docs/COMPARE.md</code>.</p>+ <p>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. The wallpaper’s Earth: NASA Blue Marble and Black Marble. three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>+ <p>The pictures of the apps are their covers on <a href="https://threert.app/" rel="noopener">threert.app</a>, where each app’s page credits what it uses.</p></div></div></footer><script type="module">- import { $, $$, backdrop, compare, sequence, seg, reveal, highlight } from "./js/threert.js";+ import { $, $$, compare, seg, reveal } from "./js/threert.js";import { downloadButtons } from "./js/site.js";import { FEATURED, LIST, TILES, pick, tile } from "./js/platform.js";- // Sections fade in first, so a part that fails below (a missing three.js, a failed fetch) never blanks the page.+ // Sections fade in first, so a part that fails below (a failed fetch) never blanks the page.reveal();const guard = (name, f) => { try { const r = f(); if (r?.catch) r.catch((e) => console.error(`${name}:`, e)); } catch (e) { console.error(`${name}:`, e); } };// threert.app's apps, as the platform lists them now. The tiles in the page (baked by site/tools/platform.ts) stand// until the answer comes and wherever it does not; a tile changes only when its app did, and every tile has the- // same box, so nothing on the page moves. A tile keeps this site's copy of a cover for as long as the app's cover- // is the one the copy was made from.+ // same box, so nothing on the page moves.guard("apps", async () => {const r = await fetch(LIST, { signal: AbortSignal.timeout(8000) }).catch(() => null); // out of reach: the baked tilesif (!r?.ok) return;@@ -541,7 +302,7 @@ return { scene, camera };</pre></li>const slots = $$("#appGrid .app[data-name]"), local = new Map(slots.map((el) => [el.dataset.cover, $("img", el).getAttribute("src")]));// The featured game says how many are in its rooms, when anyone is.const playing = items?.find?.((a) => a?.name === FEATURED)?.stats?.playing;- if (playing > 0) $("#osNow").textContent = `${playing} playing now`;+ const now = $("#osNow"); if (playing > 0 && now) now.textContent = `${playing} playing now`;if (apps.length < Math.min(TILES, slots.length)) return; // a thin answer: the baked tiles say moreslots.forEach((el, i) => {const html = tile(apps[i], local.get(apps[i].cover) ?? apps[i].cover);@@ -551,16 +312,12 @@ return { scene, camera };</pre></li>});});- guard("publish", () => { const c = $("#loopCode"); c.innerHTML = highlight(c.textContent); });- // The download links name the visitor's platform (they lead to the download page either way).+ // The download link names the visitor's platform.guard("download", () => downloadButtons());- guard("comparisons", () => {- backdrop($("#hero"));- for (const el of $$(".details .cmp, .motion .cmp")) compare(el);- for (const el of $$(".seqp")) sequence(el);- });+ // The sheet of glass behind the page; without WebGL2 the CSS light stays.+ guard("glass", () => import("./js/glass.js").then(({ glass }) => glass($("#glass"))));// Against three.js: scene tabs above, the left side picked on the left side.guard("against three.js", () => {@@ -573,84 +330,6 @@ return { scene, camera };</pre></li>$("#leftPick").addEventListener("pointerdown", (e) => e.stopPropagation());});- // Everywhere: real-proportion 3D devices, each showing a real render (ThreeRT natively, three.js in the WebView).- // three.js loads on demand; if it can't, the rows show their stills.- const NATIVE = [- { kind: "monitor", img: "media/bistro/live.webp", name: "Desktop", req: "RTX 20 · RX 6000 and later", width: 3.3 },- { kind: "macbook", img: "media/zero-day/live.webp", name: "Mac", req: "M3 and later", width: 2.8 },- { kind: "deck", img: "media/bistro/live.webp", name: "Steam Deck", req: "all models", width: 3.3 },- { kind: "iphone", img: "media/zero-day/live.webp", name: "iPhone", req: "15 Pro and later", width: 2.3 },- ];- const WEB = [- { kind: "laptop", img: "media/bistro/tuned.webp", browser: true, name: "Any laptop", req: "WebGL · WebGPU", width: 3.0 },- { kind: "tablet", img: "media/zero-day/tuned.webp", name: "Any tablet", req: "browser or WebView", width: 2.4 },- { kind: "phone", img: "media/bistro/tuned.webp", name: "Any phone", req: "browser or WebView", width: 2.2 },- ];- const still = (el, src, list) => { el.classList.add("fallback"); el.innerHTML = `<img src="${src}" alt="${list.map((d) => d.name).join(", ")}">`; };- guard("devices", () => import("./js/devices.js").then(- ({ deviceShelf }) => {- deviceShelf($("#shelfNative"), NATIVE, { warm: true, fallback: "media/devices/native.webp" });- deviceShelf($("#shelfWeb"), WEB, { fallback: "media/devices/web.webp" });- },- (e) => { console.error("devices:", e); still($("#shelfNative"), "media/devices/native.webp", NATIVE); still($("#shelfWeb"), "media/devices/web.webp", WEB); },- ));-- // Hello world: an auto-advancing reel. Each slide shows the scene's code and sweeps from three.js to ThreeRT.- guard("hello world", async () => {- const SLIDES = ["material-grid", "sun-room", "glb-asset"], DUR = 7000;- const helloCmp = compare($("#helloCmp"));- const code = {};- // A source that fails to load leaves its slide without code, not the reel without slides.- await Promise.all(SLIDES.map(async (id) => {- try { const r = await fetch(`media/code/${id}.threert.ts`); code[id] = r.ok ? highlight((await r.text()).trim()) : ""; } catch { code[id] = ""; }- }));- for (const id of SLIDES) for (const k of ["three", "rt"]) new Image().src = `media/hello/${id}-${k}.webp`;- const sts = $$("#story .st"), pp = $("#reelPP"), codeEl = $("#helloCode"), cmpEl = $("#helloCmp");- const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;- let cur = -1, elapsed = 0, last = performance.now(), playing = !reduce, hover = false, visible = false, dragging = false, touched = false, swap = 0;- const icon = () => { pp.innerHTML = playing ? '<svg width="10" height="10" viewBox="0 0 10 10"><rect x="1" y="1" width="3" height="8" fill="currentColor"/><rect x="6" y="1" width="3" height="8" fill="currentColor"/></svg>' : '<svg width="10" height="10" viewBox="0 0 10 10"><path d="M2 1v8l7-4z" fill="currentColor"/></svg>'; pp.setAttribute("aria-label", playing ? "Pause" : "Play"); };- const show = (i) => {- cur = (i + SLIDES.length) % SLIDES.length; elapsed = 0; touched = false;- const id = SLIDES[cur];- cmpEl.classList.add("fade"); codeEl.classList.add("fade");- clearTimeout(swap); // a newer slide supersedes a swap still waiting on the fade- swap = setTimeout(() => {- helloCmp.set({ a: `media/hello/${id}-three.webp`, b: `media/hello/${id}-rt.webp`, la: "three.js", lb: "ThreeRT", x: reduce ? 45 : 92 });- codeEl.innerHTML = code[id]; codeEl.scrollTop = 0;- cmpEl.classList.remove("fade"); codeEl.classList.remove("fade");- }, 280);- sts.forEach((b, k) => b.setAttribute("aria-current", String(k === cur)));- };- // Divider keyframes over a slide: hold on three.js, sweep to reveal ThreeRT, settle in the middle.- const ease = (t) => t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2;- const sweep = (p) => p < 0.1 ? 92 : p < 0.5 ? 92 - 82 * ease((p - 0.1) / 0.4) : p < 0.8 ? 10 + 36 * ease((p - 0.5) / 0.3) : 46;- const tick = (now) => {- const dt = now - last; last = now;- if (playing && !hover && !dragging && visible && cur >= 0) {- elapsed += dt;- const p = Math.min(1, elapsed / DUR);- if (!touched) helloCmp.setX(sweep(p)); // once the reader moves the divider, the slide keeps their position- const max = codeEl.scrollHeight - codeEl.clientHeight;- if (max > 0) codeEl.scrollTop = max * Math.min(1, Math.max(0, (p - 0.15) / 0.75));- if (elapsed >= DUR) show(cur + 1);- }- sts.forEach((b, k) => b.style.setProperty("--p", `${k < cur ? 100 : k === cur ? Math.min(100, (elapsed / DUR) * 100) : 0}%`));- requestAnimationFrame(tick);- };- sts.forEach((b) => b.addEventListener("click", () => show(+b.dataset.i)));- pp.addEventListener("click", () => { playing = !playing; icon(); });- $("#reel").addEventListener("pointerenter", () => (hover = true));- $("#reel").addEventListener("pointerleave", () => (hover = false));- // The divider captures the pointer while dragging, so a drag can leave the reel: pause until it ends. Only a press- // that ends in a release (a tap or a drag) keeps the reader's position for the slide; a touch the browser turns- // into a scroll ends in pointercancel instead, and the sweep goes on.- cmpEl.addEventListener("pointerdown", () => { dragging = true; });- cmpEl.addEventListener("keydown", (e) => { if (e.key === "ArrowLeft" || e.key === "ArrowRight") touched = true; }); // keyboard slider- addEventListener("pointerup", () => { if (dragging) touched = true; dragging = false; });- addEventListener("pointercancel", () => (dragging = false));- new IntersectionObserver(([e]) => (visible = e.isIntersecting), { threshold: 0.35 }).observe($("#reel"));- icon(); show(0); requestAnimationFrame(tick);- });</script></body></html>diff --git a/site/js/glass.js b/site/js/glass.jsnew file mode 100644index 0000000..48a915e--- /dev/null+++ b/site/js/glass.js@@ -0,0 +1,184 @@+// The landing page's background: a low-poly sheet of glass over a flowing light, drawn by one fragment shader on a+// fixed canvas behind the page. Each triangle is a facet with its own tilt: it shows the light behind it shifted+// (refraction), shades across its own thickness, catches a moving glint, and its edges catch the light. The light is+// the page's own: a warm key top left, a cool rim top right, a warm bounce below, with a flow running through them;+// it scrolls away slower than the page. Without WebGL2 the page keeps its CSS light (html:not(.glass-on)); reduced+// motion draws one still frame. 30 fps at most, below the screen's resolution, and nothing while the tab is hidden.++const VERT = `#version 300 es+in vec2 p;+void main() { gl_Position = vec4(p, 0., 1.); }`;++const FRAG = `#version 300 es+precision highp float;+uniform vec2 uRes; // canvas pixels+uniform float uScale; // canvas pixels per CSS pixel+uniform float uTime; // seconds+uniform float uScroll; // page scrolled, in viewport heights+uniform vec2 uMouse; // pointer, CSS pixels in the viewport (far away when there is none)+out vec4 o;++const float CELL = 96.; // a triangle's size, CSS pixels+const vec3 INK = vec3(.024, .027, .035);+const vec3 EMBER = vec3(1., .416, .075);+const vec3 TUNGSTEN = vec3(1., .706, .329);+const vec3 FILAMENT = vec3(1., .922, .769);+const vec3 COOL = vec3(.478, .635, .969);++vec2 h22(vec2 p) { p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3))); return fract(sin(p) * 43758.5453); }+float h21(vec2 p) { return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); }+float noise(vec2 p) {+ vec2 i = floor(p), f = fract(p), u = f * f * (3. - 2. * f);+ return mix(mix(h21(i), h21(i + vec2(1, 0)), u.x), mix(h21(i + vec2(0, 1)), h21(i + vec2(1, 1)), u.x), u.y);+}+float fbm(vec2 p) {+ float a = .5, s = 0.;+ for (int i = 0; i < 4; i++) { s += a * noise(p); p = p * 2.02 + vec2(1.7, 9.2); a *= .5; }+ return s;+}++// A lattice point, moved a little: the sheet's vertices.+vec2 vtx(vec2 c) { return c + (h22(c) - .5) * .44; }++// The light behind the glass at q (viewport heights, y down), with its flow.+vec3 light(vec2 q, float t, float aspect) {+ vec2 w = vec2(fbm(q * 1.3 + vec2(0., t * .06)), fbm(q * 1.3 + vec2(5.2, -t * .05)));+ float flow = fbm(q * 1.7 + w * 2. + vec2(t * .04, -t * .03));+ float streak = smoothstep(.38, .86, flow);+ vec2 k1 = vec2((.2 + .05 * sin(t * .13)) * aspect, .1 + .05 * cos(t * .11));+ vec2 k2 = vec2((.92 + .04 * cos(t * .09)) * aspect, .24 + .06 * sin(t * .1));+ vec2 k3 = vec2((.5 + .28 * sin(t * .06)) * aspect, 1.02 + .04 * sin(t * .15));+ float g1 = exp(-dot(q - k1, q - k1) * 3.);+ float g2 = exp(-dot(q - k2, q - k2) * 4.5);+ float g3 = exp(-dot(q - k3, q - k3) * 2.6);+ vec3 warm = mix(EMBER, TUNGSTEN, clamp(flow * 1.4 - .25, 0., 1.));+ return warm * g1 * (.09 + .17 * streak) + COOL * g2 * (.045 + .09 * streak) + TUNGSTEN * g3 * (.025 + .055 * streak)+ + warm * streak * .01;+}++void main() {+ vec2 vp = uRes / uScale;+ vec2 px = vec2(gl_FragCoord.x, uRes.y - gl_FragCoord.y) / uScale;+ float aspect = vp.x / vp.y, t = uTime;++ // Which facet: the triangle of the jittered lattice around this point that holds it best.+ vec2 p = (px + vec2(0., uScroll * vp.y * .35)) / CELL;+ vec2 base = floor(p);+ float best = -1e9;+ vec3 bw = vec3(0.);+ vec2 A = vec2(0.), B = vec2(0.), C = vec2(0.), id = vec2(0.);+ for (int j = -1; j <= 1; j++) for (int i = -1; i <= 1; i++) {+ vec2 c = base + vec2(i, j);+ vec2 v00 = vtx(c), v10 = vtx(c + vec2(1, 0)), v01 = vtx(c + vec2(0, 1)), v11 = vtx(c + vec2(1, 1));+ bool diag = h21(c + 7.3) > .5;+ for (int k = 0; k < 2; k++) {+ vec2 a, b, e;+ if (diag) { if (k == 0) { a = v00; b = v10; e = v11; } else { a = v00; b = v11; e = v01; } }+ else { if (k == 0) { a = v00; b = v10; e = v01; } else { a = v10; b = v11; e = v01; } }+ vec2 v0 = b - a, v1 = e - a, v2 = p - a;+ float d00 = dot(v0, v0), d01 = dot(v0, v1), d11 = dot(v1, v1), d20 = dot(v2, v0), d21 = dot(v2, v1);+ float den = d00 * d11 - d01 * d01;+ float wb = (d11 * d20 - d01 * d21) / den, we = (d00 * d21 - d01 * d20) / den;+ vec3 w = vec3(1. - wb - we, wb, we);+ float m = min(w.x, min(w.y, w.z));+ if (m > best) { best = m; bw = w; A = a; B = b; C = e; id = c * 2. + vec2(float(k), 0.); }+ }+ }++ // Distance to the facet's nearest edge, in CSS pixels: a hairline.+ float area2 = abs((B.x - A.x) * (C.y - A.y) - (C.x - A.x) * (B.y - A.y));+ vec3 h = area2 / vec3(length(C - B), length(C - A), length(B - A));+ float dEdge = min(min(bw.x * h.x, bw.y * h.y), bw.z * h.z) * CELL;+ float edge = 1. - smoothstep(0., .9 + .8 / uScale, dEdge);++ // The facet: its tilt shifts the light it shows; its thickness shades across it.+ vec3 n = normalize(vec3((h22(id + 3.7) - .5) * .9, 1.));+ vec2 q = px / vp.y + vec2(0., uScroll * .6);+ vec3 L = light(q + n.xy * .05, t, aspect);+ vec2 qm = uMouse / vp.y;+ vec2 dm = px / vp.y + n.xy * .05 - qm;+ L += FILAMENT * exp(-dot(dm, dm) * 34.) * .05 + TUNGSTEN * exp(-dot(dm, dm) * 9.) * .025;+ float tint = .8 + .4 * h21(id + 1.3);+ float thick = dot(bw, vec3(h21(id + 2.1), h21(id + 4.7), h21(id + 6.2)));++ vec3 col = INK + L * tint * (.55 + .6 * thick);+ // A moving light catches whole facets.+ vec3 ld = normalize(vec3(.55 * sin(t * .23), .55 * cos(t * .19), 1.));+ float glint = pow(max(dot(n, normalize(ld + vec3(0., 0., 1.))), 0.), 180.);+ col += glint * (L * 1.6 + TUNGSTEN * .008);+ // The edges catch the light.+ col += edge * (L * 2.4 + vec3(.007, .008, .01));+ // Grain, so the gradients do not band.+ col += (h21(gl_FragCoord.xy + fract(t * 7.) * 91.) - .5) * .012;+ o = vec4(col, 1.);+}`;++export function glass(canvas) {+ const gl = canvas.getContext("webgl2", { alpha: false, antialias: false, depth: false, stencil: false, powerPreference: "low-power" });+ if (!gl) return false;+ const shader = (type, src) => {+ const s = gl.createShader(type);+ gl.shaderSource(s, src);+ gl.compileShader(s);+ if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) throw new Error(gl.getShaderInfoLog(s) ?? "shader");+ return s;+ };+ const prog = gl.createProgram();+ gl.attachShader(prog, shader(gl.VERTEX_SHADER, VERT));+ gl.attachShader(prog, shader(gl.FRAGMENT_SHADER, FRAG));+ gl.bindAttribLocation(prog, 0, "p");+ gl.linkProgram(prog);+ if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) throw new Error(gl.getProgramInfoLog(prog) ?? "link");+ gl.useProgram(prog);+ gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);+ gl.enableVertexAttribArray(0);+ gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);+ const u = Object.fromEntries(["uRes", "uScale", "uTime", "uScroll", "uMouse"].map((k) => [k, gl.getUniformLocation(prog, k)]));++ let scale = 1;+ const resize = () => {+ scale = Math.min(Math.max(devicePixelRatio * 0.6, 0.6), 1.25);+ canvas.width = Math.round(innerWidth * scale);+ canvas.height = Math.round(innerHeight * scale);+ gl.viewport(0, 0, canvas.width, canvas.height);+ };+ const still = matchMedia("(prefers-reduced-motion: reduce)").matches;+ const far = -1e4;+ const mouse = { x: far, y: far, tx: far, ty: far };+ if (!still) {+ addEventListener("pointermove", (e) => {+ if (e.pointerType !== "mouse") return;+ mouse.tx = e.clientX;+ mouse.ty = e.clientY;+ if (mouse.x === far) { mouse.x = mouse.tx; mouse.y = mouse.ty; }+ }, { passive: true });+ }+ const t0 = performance.now();+ const draw = (now) => {+ mouse.x += (mouse.tx - mouse.x) * 0.08;+ mouse.y += (mouse.ty - mouse.y) * 0.08;+ gl.uniform2f(u.uRes, canvas.width, canvas.height);+ gl.uniform1f(u.uScale, scale);+ gl.uniform1f(u.uTime, 14 + (still ? 0 : (now - t0) / 1000));+ gl.uniform1f(u.uScroll, scrollY / innerHeight);+ gl.uniform2f(u.uMouse, mouse.x, mouse.y);+ gl.drawArrays(gl.TRIANGLES, 0, 3);+ };++ resize();+ draw(performance.now());+ addEventListener("resize", () => { resize(); draw(performance.now()); });+ if (still) {+ addEventListener("scroll", () => requestAnimationFrame(draw), { passive: true });+ } else {+ let last = 0;+ const loop = (now) => {+ if (!document.hidden && now - last >= 33) { last = now; draw(now); }+ requestAnimationFrame(loop);+ };+ requestAnimationFrame(loop);+ }+ document.documentElement.classList.add("glass-on");+ return true;+}diff --git a/site/media/ps3/galaxy.webp b/site/media/ps3/galaxy.webpnew file mode 100644index 0000000..817c546Binary files /dev/null and b/site/media/ps3/galaxy.webp differdiff --git a/site/media/ps3/instanced.webp b/site/media/ps3/instanced.webpnew file mode 100644index 0000000..cc5c673Binary files /dev/null and b/site/media/ps3/instanced.webp differdiff --git a/site/media/ps3/og.jpg b/site/media/ps3/og.jpgnew file mode 100644index 0000000..294a07eBinary files /dev/null and b/site/media/ps3/og.jpg differdiff --git a/site/media/ps3/pbr-grid.webp b/site/media/ps3/pbr-grid.webpnew file mode 100644index 0000000..a36b3b9Binary files /dev/null and b/site/media/ps3/pbr-grid.webp differdiff --git a/site/media/ps3/showroom-800.webp b/site/media/ps3/showroom-800.webpnew file mode 100644index 0000000..716fe50Binary files /dev/null and b/site/media/ps3/showroom-800.webp differdiff --git a/site/media/ps3/showroom.webp b/site/media/ps3/showroom.webpnew file mode 100644index 0000000..2031d77Binary files /dev/null and b/site/media/ps3/showroom.webp differdiff --git a/site/media/webgpu/wallpaper-800.webp b/site/media/webgpu/wallpaper-800.webpnew file mode 100644index 0000000..c0220d6Binary files /dev/null and b/site/media/webgpu/wallpaper-800.webp differdiff --git a/site/media/webgpu/wallpaper.webp b/site/media/webgpu/wallpaper.webpnew file mode 100644index 0000000..b747d4cBinary files /dev/null and b/site/media/webgpu/wallpaper.webp differdiff --git a/site/privacy/index.html b/site/privacy/index.htmlindex da66ded..b0e0efe 100644--- a/site/privacy/index.html+++ b/site/privacy/index.html@@ -5,6 +5,17 @@<meta name="viewport" content="width=device-width, initial-scale=1"><title>Privacy — ThreeRT</title><meta name="description" content="What the ThreeRT clients (macOS, iPhone and iPad, Steam Deck and Linux, Android) and threert.dev do with your data: no accounts, no analytics, nothing collected.">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="Privacy — ThreeRT">+<meta property="og:description" content="What the ThreeRT clients (macOS, iPhone and iPad, Steam Deck and Linux, Android) and threert.dev do with your data: no accounts, no analytics, nothing collected.">+<meta property="og:url" content="https://threert.dev/privacy/">+<meta property="og:image" content="https://threert.dev/brand/card.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="ThreeRT: three.js, down to the metal.">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css"><style>@@ -21,7 +32,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="https://threert.app/" rel="noopener">Apps</a><a href="../download/">Download</a><a href="../docs/">Docs</a></div>+ <div class="links"><a href="../blog/">Blog</a><a href="../download/">Download</a><a href="../docs/">Docs</a></div></div></nav>diff --git a/site/serve.ts b/site/serve.tsindex 20f8355..1f59c39 100644--- a/site/serve.ts+++ b/site/serve.ts@@ -18,7 +18,7 @@ const port = Number(args.find((a) => /^\d+$/.test(a)) ?? process.env.PORT ?? 417// What the site is made of: the pages, their shared files, and the two generated directories. Nothing else under// site/ (tools, the worker, this file) is served.-const PAGES = new Set(["index.html", "showcase/index.html", "download/index.html", "docs/index.html", "docs/rendering/index.html", "privacy/index.html"]);+const PAGES = new Set(["index.html", "showcase/index.html", "download/index.html", "docs/index.html", "docs/rendering/index.html", "privacy/index.html", "blog/index.html", "blog/ps3/index.html"]);const DIRS = ["css/", "js/", "brand/", "media/", "releases/", "play/"];const TYPES: Record<string, string> = {".html": "text/html; charset=utf-8", ".css": "text/css; charset=utf-8", ".js": "text/javascript; charset=utf-8", ".mjs": "text/javascript; charset=utf-8",diff --git a/site/tools/build.ts b/site/tools/build.tsindex b1d219a..61626fd 100644--- a/site/tools/build.ts+++ b/site/tools/build.ts@@ -27,7 +27,7 @@ const problems: string[] = [];rmSync(out, { recursive: true, force: true });mkdirSync(out, { recursive: true });copyFileSync(join(site, "index.html"), join(out, "index.html"));-for (const d of ["showcase", "download", "docs", "privacy", "css", "js", "brand", "media"]) cpSync(join(site, d), join(out, d), { recursive: true });+for (const d of ["showcase", "download", "docs", "blog", "privacy", "css", "js", "brand", "media"]) cpSync(join(site, d), join(out, d), { recursive: true });for (const [rel, file] of Object.entries(VENDOR)) {mkdirSync(dirname(join(out, rel)), { recursive: true });copyFileSync(file, join(out, rel));