Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

831 B
Raw Blame
// upscale/dimming-behind-edge-live at half the render scale, where the output is composed from guides of its own
// (live.wgsl `gcompose`, `gupscale`): the emitting wall is each output pixel's own light, and its history beside the
// slab's edge follows as fast as far from it.
import type { TestMeta } from "./lib.ts";

export { default } from "./upscale-dimming-behind-edge-live.ts";

export const test: TestMeta = {
  id: "compose/dimming-behind-edge-live", features: ["dynamic-emission", "upscaler"], reference: "analytic", temporal: true,
  metric: { kind: "ratio", a: [0.5063, 0.3, 0.5313, 0.7], b: [0.8, 0.3, 0.95, 0.7], expected: 1, tolerance: 0.1 },
  scale: 0.5,
  live: 90,
  note: "a wall 4 % dimmer every frame behind a black slab's edge: its four pixels beside the edge (the second to the fifth) as far from it",
};