Examples
Every example is a TypeScript file in the repository, run on its page by the engine. Open one and read the file that made it.
Path tracing
First sceneA floor, a lamp, a mirror ball and a matte one: the scene the front page draws.
Cornell boxThe reference scene, the one CI holds to the CPU oracle.
MaterialsDiffuse spheres in four colours and a mirror, under one wide light.
Coloured lightsThree area lights, red, green and blue: coloured shadows.
LightsThree lights of one size, with powers 1, 4 and 16: each bounce picks a light in proportion to its power.
Stanford bunnyA glTF mesh of 69,451 triangles on a floor, under one area light: the loader and the BVH.
Sponza atriumA glTF atrium of 227,327 triangles in 22 meshes, lit through its open roof: a camera inside a large scene. Press W A S D to move and F to switch to orbit. Model by Frank Meinl (Crytek), CC BY 3.0.
DeterminismOne seed, one image: two renders of one seed differ in no float, and another seed in many.


