English | 简体中文
A lab for rendering demonstrations and experiments, organised as investigations of game-engine features. Each investigation rebuilds parts of one engine feature on prepared data and shows the data involved, step by step, in an interactive viewer and in narrated videos that the lab records frame by frame.
Warning
Render Lab is at a very early stage of development. Its APIs and formats (the Investigation trait, the package
manifest, the storyboard and script vocabulary, the command line) may change a lot, without notice or migration
paths.
It uses wgpu 30.0.1 on Vulkan (or, where wgpu picks them, Direct3D 12 on Windows and Metal on macOS), winit 0.30.13, egui 0.37, and WGSL shaders.
The shared lab (the homepage, the settings, and the code an investigation builds on) and the investigations of engines whose license allows publishing code derived from them:
-
Open 3D Engine: Lighting model (
packages/o3de_lighting/src/o3de/lighting). How O3DE 26.05's Atom renderer lights a frame, with its shader code ported to WGSL and run as its default pipeline does: the depth pre-pass, tiled light culling, the sun's cascaded shadows and their screen-space buffer, the forward pass and its five targets, the material model and the BRDF of its lighting models, the BRDF texture and multiscatter compensation, image-based light and reflection probes, SSAO, transmission, and terrain. -
Godot Engine: SDFGI (
packages/godot_sdfgi/src/godot/sdfgi). How Godot 4.7's Forward+ renderer computes signed distance field global illumination, followed on the CPU at the engine's sizes: the cascades and their scrolling, voxelization, the jump-flood distance field, occlusion, light injection and bounce, probe tracing and its history, the octahedral probe maps, and the screen pass, ported to WGSL. -
Godot Engine: screen-space reflections (
packages/godot_ssr/src/godot/ssr). How Godot 4.7's Forward+ renderer reflects what is on screen, its passes ported to WGSL and mirrored on the CPU: the normal-roughness pre-pass, the half-size downsample, the Hi-Z pyramid, the trace through it, its validation and last frame's colour, the roughness filter, the bilateral resolve, and the opaque pass's blend. -
Godot Engine: VoxelGI (
packages/godot_voxelgi/src/godot/voxelgi). How Godot 4.7's Forward+ renderer computes its baked voxel global illumination, followed on the CPU at the engine's default subdivision: the bake's octree and distance field, the cells' records, the light, mip, and bounce passes, the dynamic-object path, and the per-pixel cone trace, ported to WGSL. -
Papers: ReSTIR (
packages/paper_restir/src/paper/restir). Bitterli et al.'s 2020 spatiotemporal reservoir resampling, implemented from the paper: streaming RIS of each pixel's light candidates, visibility, temporal, and spatial reuse, biased and unbiased, in WGSL passes over a room of 64 moving lights, each pass checked against a CPU mirror, and the paper's 1D example of bias redrawn.
An optional module, not provided in this repo, can add local packages of its own to packages/ (each with its own Cargo
workspace). Without it the lab runs with the public investigations alone.
See BUILD.md for requirements, offline caches, and verification. From the repository root:
cargo build --release --locked
cargo run --release -- --list
cargo run --releaseThe homepage's Play opens installed investigations; Config sets the language, theme, volumes, and display options. See Using Render Lab for the controls.
The repository includes skills written for AI coding agents, in .agents/skills/ (the Agent Skills
layout, linked from .claude/skills/ for Claude Code), with the rules every agent follows in AGENTS.md.
Each skill guides one kind of task: new-investigation, new-story (with new-story-engine and new-story-paper;
it also holds how every explanation is written), packages, render-graph, knowledge-graph, experiments, and render-lab-lamlet.
To start a new investigation, ask an agent:
Please investigate on <investigation-topic>, for <engine-name>. The source of the engine is at <engine-source-path>.
Please utilize <source-index-utility-name> for indexing code. (optional)
The agent loads new-investigation (and new-story for the narrated video) and follows its pipeline: research in the
engine's source, the package and its WGSL port, review, and validation. Only engines whose license allows publishing
derived code belong in the public repository; see AGENTS.md.
To investigate a paper instead:
Please investigate on <paper-title>. The paper is at <pdf-path>. Its source code is at <code-path>. (optional)
The agent loads new-story-paper with new-story and new-investigation: it reads the paper (its contributions, its
related work, its method), checks the authors' code against it when there is one, implements the method as the paper
describes it, and tells it in six kinds of chapter, from the introduction to the experiments run on your machine and
the references.
| Document | Contents |
|---|---|
| Build | Requirements, dependencies, local caches, verification, assets, and sound |
| Using Render Lab | Homepage, settings, viewer layout, commands, and narrated videos |
| Experiments and measurements | A/B comparison, quality metrics, GPU timings, frame graph, and headless runs |
| Prerequisites and formulas | Knowledge graph, target audience, and formulas |
| Architecture and code map | Shared lab, packages, resources, shaders, and value declarations |
| Adding an investigation | Investigation libraries, negotiation, shading, and pass chains |
| Video builder | Storyboards, checks, narration, timelines, captions, and recording |
| Experiment reports | Result tables, plots, and image grids |
Render Lab is released under the MIT License, copyright © 2026 OppositeNor and Render Lab Contributors.
Bundled fonts, the teapot mesh, the environment, the sounds, and the vendored crates keep their own terms; see
THIRD_PARTY.md.
Thanks to everyone who has helped improve Render Lab. See Acknowledgements.




