黑糖

黑糖

会一点点代码,喜欢自己动手。

Joined 10/30/2026
1
Projects
0
Collaboration requests
0
Iterated
0
Likes
0
Saves
0
Views
0
Comments
Developer Toolsclaude-code

ThreeRT

Hardware ray-traced three.js: write the scene you already know, and every light is traced on the GPU at 60 fps.

ThreeRT is a real-time path tracer that wears three.js clothes. You write the scene you would write in three.js — the same Scene, Mesh, lights and materials — and every light in it is traced on the GPU's ray-tracing hardware instead of faked with shadow maps and light probes. Shadows, bounce light, reflections and glowing surfaces that light the room all come from the trace, with no baking step. The project publishes its own head-to-head numbers. On the Amazon Lumberyard Bistro night scene at 1280 by 720, ThreeRT renders live at 15.5 milliseconds a frame — 60 fps — and lands 3.4 Delta E from an unbiased offline reference render. The same scene in three.js with WebGPU, SSGI, SSR and TRAA takes 34.7 milliseconds (29 fps) at Delta E 10.1, and tuned WebGL three.js matches the frame rate but sits at Delta E 12.1. Small scenes are the one place three.js stays ahead, drawing in about a millisecond. It is more than a renderer: scene code and game logic run inside the engine as a game runtime, and the same file also runs as plain three.js in any browser. The npm package is @threert/scene, the engine is Rust with wgpu and the scene code is TypeScript, and there are ready apps for iPhone, macOS, Windows, Steam Deck and Android — including OpenStrike, a shooter built on the engine. ThreeRT needs a GPU with ray-tracing hardware, so it is not for every laptop. It is free under the MIT license, has 657 stars and 50 forks on GitHub, was created on 10 November 2026, and was last pushed on 21 November 2026.