One shader source
Every material is authored in TSL. The same code compiles to WGSL on WebGPU and GLSL on the WebGL2 fallback — one codebase, two backends.
Browser · WebGPU · Rust/WASM · no install
APEX is an open-world superpower simulation built against a 16.67 ms frame budget. Terrain generates in Rust, physics runs in a worker, shaders are written once in TSL and compile to both WGSL and GLSL.
Every material is authored in TSL. The same code compiles to WGSL on WebGPU and GLSL on the WebGL2 fallback — one codebase, two backends.
A deterministic Rust core compiled to WASM, mirrored in TypeScript so a clean clone runs without a toolchain, and kept honest by a differential parity test.
Rapier runs in a worker. The page owns the clock and sends one step per 1/60 s; the worker never reads a timer of its own.
630 conifers and rocks placed by rejection sampling on the same height function the physics collides against — nothing floats, nothing grows in the sea or on a cliff. Two draw calls.
A quadtree of chunks around the player, doubling in size with distance, built nearest-first against a per-frame budget with pooled buffers.
At four kilometres the world rebases under the player, in the renderer and in every physics body, so f32 never has to hold a kilometre-scale position.
A figure built from primitives at boot with a procedural gait, a flight pose and a lean into speed. Five draw calls, zero downloaded assets, palette sampled from a photograph.
Every sound is synthesised — no samples. The ambient bed follows the weather and rises with altitude, and anything behind terrain arrives duller through a raycast occlusion test.
Cloud is a diffuser, not a filter: the key drops and greys, the sky fill comes up to carry the scene, and the dome and fog take the weather's own colour. A storm is not a grey fog under a blue sky.
Eleven keyframes carry sun colour, key intensity, sky colour and exposure from midnight to midnight. Golden hour is a moment you can point at in the table, not an accident of two colours mixing.
The active objective has a beacon — a column of light with a turning ring, visible through foliage, fading as you arrive. The HUD carries the distance; the world carries the place.
One ability at boot, one per mission after that. The HUD carries the distance to the marker and a locked power cannot be cast — progression is the objective flow, not a menu.
A stateless pool integrated in the vertex shader from origin, velocity and birth. Five powers cast through one path, each landing a real impulse on the physics bodies and the people it touches.
Frame time, CPU, worker round-trip, draw calls against budget, chunk build cost. A feature that does not fit the budget does not ship.
| # | Batch | Metric that closes it | Status |
|---|---|---|---|
| 1 | Rendering spine, dual core, physics worker | CPU < 8 ms, draws < 100 | done |
| 2 | Streamed terrain, LOD, scatter, floating origin | 60 FPS across biomes, no chunk > 20 ms | done |
| 3 | Character feel: slopes, flight, CCD | no step/render jitter | done |
| 4 | Superpower VFX framework | 100K particles at 60 FPS | done |
| 5 | Atmosphere, ocean, post-processing | no single effect > 1 ms | done |
| 6 | Hardening and mobile preset | 60 FPS desktop, 30 FPS mobile | done |
| 7 | Content, NPC AI, missions | the world feels authored | done |
| 8 | Networking and persistence | optional | done |
Frame-rate gates are unverified: the build environment has no GPU, so Chromium runs a software rasteriser. Everything that can be measured without one is in METRICS.md.
APEX is free, offline-capable and has no account, no telemetry and no server. If it is useful to you, you can put something in the pot — it buys GPU time and coffee, in that order.