Run a Three.js game as a native app

Keep your scene and game logic. Add a Bloom entry point that loads the web adapter before your game.

bloom/main.ts
import { configure } from "@bloomengine/web/config";
configure({
  app: "racer",
  title: "Racer",
  root: new URL("../", import.meta.url).pathname,
});
import "@bloomengine/web";
import "../src/main.ts";

Where this stands today

The bridge maps supported materials and meshes to Bloom. Custom shaders, render targets and EffectComposer need a separate rendering path.

Questions and answers

Can I keep a DOM-based HUD?

The racer port kept its DOM HUD. Its phone build needed a simpler stylesheet and less frequent updates. Test your own HUD on the target device.

Ship a Three.js game as a native app

Sources