@null3d/engine 0.0.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -0
- package/THIRD-PARTY-NOTICES.txt +0 -1
- package/dist/wasm/single/null3d.js +25 -10
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +25 -10
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +114 -86
- package/docs/api/assets.md +135 -49
- package/docs/api/cameras.md +45 -12
- package/docs/api/controls.md +88 -62
- package/docs/api/debug.md +116 -41
- package/docs/api/engine.md +117 -35
- package/docs/api/feature-draws.md +23 -17
- package/docs/api/feature-effects.md +11 -11
- package/docs/api/feature-instances.md +70 -19
- package/docs/api/features.md +77 -47
- package/docs/api/geometry.md +132 -82
- package/docs/api/grass.md +55 -13
- package/docs/api/impostors.md +175 -22
- package/docs/api/input.md +24 -18
- package/docs/api/lights.md +78 -51
- package/docs/api/lines.md +41 -33
- package/docs/api/materials.md +248 -121
- package/docs/api/math.md +12 -13
- package/docs/api/objects.md +47 -22
- package/docs/api/page.md +58 -7
- package/docs/api/particles.md +33 -20
- package/docs/api/points.md +19 -31
- package/docs/api/post.md +75 -42
- package/docs/api/quality.md +42 -17
- package/docs/api/raycast.md +65 -51
- package/docs/api/reference/animation.md +10 -11
- package/docs/api/reference/assets.md +25 -22
- package/docs/api/reference/cameras.md +8 -4
- package/docs/api/reference/controls.md +134 -25
- package/docs/api/reference/debug.md +81 -14
- package/docs/api/reference/engine.md +58 -17
- package/docs/api/reference/feature-draws.md +3 -4
- package/docs/api/reference/feature-effects.md +2 -3
- package/docs/api/reference/feature-instances.md +5 -4
- package/docs/api/reference/features.md +7 -4
- package/docs/api/reference/geometry.md +287 -97
- package/docs/api/reference/grass.md +63 -3
- package/docs/api/reference/impostors.md +208 -13
- package/docs/api/reference/input.md +4 -5
- package/docs/api/reference/lights.md +13 -12
- package/docs/api/reference/lines.md +10 -11
- package/docs/api/reference/materials.md +54 -53
- package/docs/api/reference/math.md +35 -24
- package/docs/api/reference/objects.md +11 -12
- package/docs/api/reference/particles.md +31 -6
- package/docs/api/reference/points.md +6 -7
- package/docs/api/reference/post.md +21 -20
- package/docs/api/reference/quality.md +8 -5
- package/docs/api/reference/raycast.md +7 -8
- package/docs/api/reference/render.md +5 -4
- package/docs/api/reference/scene.md +52 -30
- package/docs/api/reference/sketch.md +15 -11
- package/docs/api/reference/sound.md +234 -0
- package/docs/api/reference/splats.md +42 -3
- package/docs/api/reference/sprites.md +7 -8
- package/docs/api/reference/tasks.md +16 -3
- package/docs/api/reference/terrain.md +27 -5
- package/docs/api/reference/textures.md +5 -6
- package/docs/api/reference/three-compat.md +18 -7
- package/docs/api/reference/time.md +1 -2
- package/docs/api/reference/ui.md +12 -9
- package/docs/api/reference/vertex-draws.md +5 -6
- package/docs/api/reference/water.md +153 -9
- package/docs/api/reference/wind.md +17 -4
- package/docs/api/render.md +73 -29
- package/docs/api/scene.md +164 -60
- package/docs/api/sketch.md +102 -15
- package/docs/api/sound.md +205 -0
- package/docs/api/splats.md +46 -12
- package/docs/api/sprites.md +10 -24
- package/docs/api/tasks.md +33 -24
- package/docs/api/terrain.md +42 -22
- package/docs/api/textures.md +68 -19
- package/docs/api/three-compat.md +15 -7
- package/docs/api/time.md +3 -5
- package/docs/api/ui.md +19 -23
- package/docs/api/vertex-draws.md +13 -12
- package/docs/api/water.md +262 -35
- package/docs/api/wind.md +63 -17
- package/docs/cli/null3d.md +177 -27
- package/docs/concepts/architecture.md +73 -27
- package/docs/concepts/assets.md +57 -33
- package/docs/concepts/backends.md +69 -27
- package/docs/concepts/color-management.md +54 -36
- package/docs/concepts/culling.md +68 -47
- package/docs/concepts/handles.md +14 -5
- package/docs/concepts/instances.md +74 -25
- package/docs/concepts/large-worlds.md +18 -8
- package/docs/concepts/lighting.md +155 -87
- package/docs/concepts/lod.md +126 -44
- package/docs/concepts/materials.md +58 -27
- package/docs/concepts/particle-buffer.md +48 -35
- package/docs/concepts/post-processing.md +84 -43
- package/docs/concepts/quality-preset-tables.md +56 -52
- package/docs/concepts/quality-presets.md +164 -52
- package/docs/concepts/render-graph.md +69 -29
- package/docs/concepts/render-layers.md +11 -21
- package/docs/concepts/shadows.md +105 -52
- package/docs/concepts/static-dynamic.md +22 -7
- package/docs/cookbook/index.md +164 -120
- package/docs/data/threejs-mapping.json +362 -367
- package/docs/errors/E1101.md +23 -5
- package/docs/errors/E1102.md +11 -3
- package/docs/errors/E1103.md +11 -3
- package/docs/errors/E1104.md +11 -3
- package/docs/errors/E1105.md +13 -5
- package/docs/errors/E1106.md +11 -3
- package/docs/errors/E1107.md +15 -5
- package/docs/errors/E1108.md +11 -3
- package/docs/errors/E1109.md +32 -6
- package/docs/errors/E1110.md +23 -5
- package/docs/errors/E1111.md +11 -3
- package/docs/errors/E1112.md +11 -3
- package/docs/errors/E1203.md +12 -4
- package/docs/errors/E1204.md +11 -3
- package/docs/errors/E1205.md +11 -3
- package/docs/errors/E1206.md +28 -6
- package/docs/errors/E1207.md +11 -3
- package/docs/errors/E1208.md +12 -3
- package/docs/errors/E1209.md +11 -3
- package/docs/errors/E1213.md +27 -5
- package/docs/errors/E1214.md +14 -6
- package/docs/errors/E1215.md +31 -6
- package/docs/errors/E1216.md +31 -6
- package/docs/errors/E1217.md +29 -6
- package/docs/errors/E1218.md +22 -6
- package/docs/errors/E1219.md +11 -3
- package/docs/errors/E1220.md +24 -5
- package/docs/errors/E1221.md +24 -5
- package/docs/errors/E1222.md +11 -3
- package/docs/errors/E1223.md +39 -6
- package/docs/errors/E1224.md +11 -3
- package/docs/errors/E1225.md +11 -3
- package/docs/errors/E1301.md +11 -3
- package/docs/errors/E1302.md +11 -3
- package/docs/errors/E1303.md +11 -3
- package/docs/errors/E1304.md +11 -3
- package/docs/errors/E1305.md +13 -3
- package/docs/errors/E1306.md +11 -3
- package/docs/errors/E1307.md +40 -0
- package/docs/errors/E1401.md +11 -3
- package/docs/errors/E1402.md +13 -5
- package/docs/errors/E1403.md +11 -3
- package/docs/errors/E1404.md +13 -3
- package/docs/errors/E1405.md +15 -4
- package/docs/errors/E1406.md +31 -5
- package/docs/errors/E1407.md +11 -3
- package/docs/errors/E1408.md +11 -3
- package/docs/errors/E1409.md +11 -3
- package/docs/errors/E1410.md +13 -5
- package/docs/errors/E1411.md +11 -3
- package/docs/errors/E1412.md +29 -6
- package/docs/errors/E1413.md +11 -3
- package/docs/errors/E1414.md +11 -3
- package/docs/errors/E1415.md +11 -3
- package/docs/errors/E1416.md +27 -6
- package/docs/errors/E1417.md +11 -3
- package/docs/errors/E1418.md +12 -3
- package/docs/errors/E1419.md +13 -5
- package/docs/errors/E1420.md +14 -6
- package/docs/errors/E1421.md +11 -3
- package/docs/errors/E1422.md +12 -3
- package/docs/errors/E1423.md +12 -3
- package/docs/errors/E1424.md +24 -5
- package/docs/errors/E1425.md +11 -3
- package/docs/errors/E1426.md +11 -3
- package/docs/errors/E1430.md +11 -3
- package/docs/errors/E1431.md +11 -3
- package/docs/errors/E1432.md +11 -3
- package/docs/errors/E1433.md +11 -3
- package/docs/errors/E1434.md +15 -6
- package/docs/errors/E1435.md +11 -3
- package/docs/errors/E1436.md +11 -3
- package/docs/errors/E1437.md +14 -6
- package/docs/errors/E1501.md +41 -6
- package/docs/errors/E1502.md +13 -3
- package/docs/errors/E1503.md +11 -3
- package/docs/errors/E1504.md +11 -3
- package/docs/errors/E1505.md +23 -5
- package/docs/errors/E1506.md +11 -3
- package/docs/errors/index.md +54 -30
- package/docs/getting-started/cdn.md +32 -10
- package/docs/getting-started/first-scene.md +21 -13
- package/docs/getting-started/hosting.md +152 -63
- package/docs/getting-started/install.md +44 -28
- package/docs/getting-started/network-use.md +33 -15
- package/docs/getting-started/project-structure.md +33 -12
- package/docs/getting-started/third-party-notices.md +12 -14
- package/docs/guides/accessibility.md +5 -5
- package/docs/guides/add-ons.md +86 -15
- package/docs/guides/agents.md +16 -9
- package/docs/guides/assets-pipeline.md +259 -82
- package/docs/guides/audio.md +115 -128
- package/docs/guides/baked-light-data.md +44 -23
- package/docs/guides/car-paint.md +38 -32
- package/docs/guides/content-pages.md +63 -35
- package/docs/guides/custom-passes.md +65 -22
- package/docs/guides/custom-shaders.md +59 -39
- package/docs/guides/debugging.md +74 -10
- package/docs/guides/deploying.md +85 -6
- package/docs/guides/deterministic-simulation.md +24 -17
- package/docs/guides/first-use-shaders.md +83 -45
- package/docs/guides/lens-kit.md +29 -26
- package/docs/guides/loading-screens.md +132 -47
- package/docs/guides/multiple-views.md +63 -13
- package/docs/guides/performance.md +192 -38
- package/docs/guides/phones.md +78 -15
- package/docs/guides/physics.md +7 -11
- package/docs/guides/screens.md +47 -33
- package/docs/guides/start-time.md +363 -0
- package/docs/guides/testing.md +152 -95
- package/docs/guides/ui-overlays.md +19 -14
- package/docs/guides/video-textures.md +14 -13
- package/docs/images/api/animation/character.webp +0 -0
- package/docs/images/api/animation/look-at-ring.webp +0 -0
- package/docs/images/api/animation/morph-tulips.webp +0 -0
- package/docs/images/api/animation/skeleton-lines.webp +0 -0
- package/docs/images/api/controls/gizmo-handles.webp +0 -0
- package/docs/images/api/controls/walk-and-fly.webp +0 -0
- package/docs/images/api/debug/debug-shapes.webp +0 -0
- package/docs/images/api/debug/levels-view.webp +0 -0
- package/docs/images/api/engine/transparent-canvas.webp +0 -0
- package/docs/images/api/feature-draws/feature-draw-clouds.webp +0 -0
- package/docs/images/api/feature-instances/compute-instances.webp +0 -0
- package/docs/images/api/feature-instances/instances-shadow.webp +0 -0
- package/docs/images/api/geometry/extra-shapes.webp +0 -0
- package/docs/images/api/geometry/generators.webp +0 -0
- package/docs/images/api/geometry/mesh-arrays.webp +0 -0
- package/docs/images/api/geometry/vertex-updates.webp +0 -0
- package/docs/images/api/grass/grass-grove.webp +0 -0
- package/docs/images/api/grass/grass-presets.webp +0 -0
- package/docs/images/api/grass/grass-shadow.webp +0 -0
- package/docs/images/api/impostors/impostor-handover.webp +0 -0
- package/docs/images/api/impostors/impostor-shadow.webp +0 -0
- package/docs/images/api/impostors/impostors-forest.webp +0 -0
- package/docs/images/api/lights/spot-cookies.webp +0 -0
- package/docs/images/api/lines/lines-lit.webp +0 -0
- package/docs/images/api/lines/lines-widths.webp +0 -0
- package/docs/images/api/materials/coat-and-sheen.webp +0 -0
- package/docs/images/api/materials/decals.webp +0 -0
- package/docs/images/api/materials/iridescence-and-anisotropy.webp +0 -0
- package/docs/images/api/materials/relief.webp +0 -0
- package/docs/images/api/materials/shader-inputs.webp +0 -0
- package/docs/images/api/materials/standard-grid.webp +0 -0
- package/docs/images/api/materials/subsurface.webp +0 -0
- package/docs/images/api/materials/translucency.webp +0 -0
- package/docs/images/api/objects/objects-turntable.webp +0 -0
- package/docs/images/api/particles/campfire.webp +0 -0
- package/docs/images/api/points/galaxy.webp +0 -0
- package/docs/images/api/reference/textures/texture-wrap.webp +0 -0
- package/docs/images/api/render/fullscreen-glow.webp +0 -0
- package/docs/images/api/render/reflection-mirror.webp +0 -0
- package/docs/images/api/render/security-camera.webp +0 -0
- package/docs/images/api/scene/aurora-sky-layer.webp +0 -0
- package/docs/images/api/sound/sound-demo.webp +0 -0
- package/docs/images/api/splats/splats-demo.webp +0 -0
- package/docs/images/api/sprites/sprites-lines.webp +0 -0
- package/docs/images/api/terrain/terrain-demo.webp +0 -0
- package/docs/images/api/textures/canvas-screen.webp +0 -0
- package/docs/images/api/textures/mipmaps.webp +0 -0
- package/docs/images/api/vertex-draws/rain.webp +0 -0
- package/docs/images/api/water/ocean.webp +0 -0
- package/docs/images/api/water/water-demo.webp +0 -0
- package/docs/images/api/water/water-rain.webp +0 -0
- package/docs/images/api/water/waterfall.webp +0 -0
- package/docs/images/concepts/assets/gltf-model.webp +0 -0
- package/docs/images/concepts/color-management/tone-mapped.webp +0 -0
- package/docs/images/concepts/culling/far-from-origin.webp +0 -0
- package/docs/images/concepts/instances/instances.webp +0 -0
- package/docs/images/concepts/instances/per-row-colors.webp +0 -0
- package/docs/images/concepts/large-worlds/large-world.webp +0 -0
- package/docs/images/concepts/lighting/area-lights.webp +0 -0
- package/docs/images/concepts/lighting/atmosphere.webp +0 -0
- package/docs/images/concepts/lighting/environment.webp +0 -0
- package/docs/images/concepts/lighting/light-shafts.webp +0 -0
- package/docs/images/concepts/lighting/reflection-probes.webp +0 -0
- package/docs/images/concepts/lod/forest.webp +0 -0
- package/docs/images/concepts/materials/weighted-transparency.webp +0 -0
- package/docs/images/concepts/post-processing/auto-exposure.webp +0 -0
- package/docs/images/concepts/post-processing/bounce-light.webp +0 -0
- package/docs/images/concepts/post-processing/depth-of-field.webp +0 -0
- package/docs/images/concepts/post-processing/post-effects-alley.webp +0 -0
- package/docs/images/concepts/post-processing/sharpen.webp +0 -0
- package/docs/images/concepts/post-processing/ssr-wet-street.webp +0 -0
- package/docs/images/concepts/render-layers/layers-cottages.webp +0 -0
- package/docs/images/concepts/shadows/hero-shadow.webp +0 -0
- package/docs/images/cookbook/index/picking.webp +0 -0
- package/docs/images/cookbook/index/time-of-day.webp +0 -0
- package/docs/images/errors/E1431/area-lights-no-tables.webp +0 -0
- package/docs/images/guides/custom-passes/reflection-water.webp +0 -0
- package/docs/images/guides/deterministic-simulation/replay-demo.webp +0 -0
- package/docs/images/guides/multiple-views/split-screen.webp +0 -0
- package/docs/images/guides/performance/overdraw-view.webp +0 -0
- package/docs/images/guides/testing/hold-mode-frame.webp +0 -0
- package/docs/images/index/showcase-island.webp +0 -0
- package/docs/images/porting/threejs-shaders/dissolve.webp +0 -0
- package/docs/images/shaders/builtins/builtins.webp +0 -0
- package/docs/images/shaders/surface-functions/custom-surface.webp +0 -0
- package/docs/images/shaders/surface-functions/vertex-offset.webp +0 -0
- package/docs/images/shots.json +2231 -0
- package/docs/index.md +18 -23
- package/docs/moves.json +1 -0
- package/docs/nav.json +300 -0
- package/docs/pages.md +230 -209
- package/docs/porting/react-three-fiber.md +225 -6
- package/docs/porting/threejs-loop-and-threads.md +217 -7
- package/docs/porting/threejs-mapping.md +1249 -233
- package/docs/porting/threejs-materials.md +218 -6
- package/docs/porting/threejs-overview.md +240 -7
- package/docs/porting/threejs-postprocessing.md +4 -8
- package/docs/porting/threejs-shaders.md +301 -6
- package/docs/porting/threejs-unsupported.md +83 -7
- package/docs/porting/verification.md +178 -6
- package/docs/shaders/builtins.md +15 -4
- package/docs/shaders/library.md +72 -45
- package/docs/shaders/surface-functions.md +59 -23
- package/docs/shaders/wgsl-rules.md +12 -5
- package/lib/debug/channel.d.ts +103 -0
- package/lib/debug/channel.js +269 -0
- package/lib/debug/debug.d.ts +11 -9
- package/lib/debug/draw.d.ts +11 -2
- package/lib/debug/draw.js +57 -6
- package/lib/debug/inspector.d.ts +60 -0
- package/lib/debug/inspector.js +475 -0
- package/lib/debug/overlay-look.d.ts +6 -0
- package/lib/debug/overlay-look.js +29 -7
- package/lib/debug/overlay.js +15 -11
- package/lib/debug/stats-options.d.ts +13 -0
- package/lib/debug/stats-panel.d.ts +22 -7
- package/lib/debug/stats-panel.js +80 -13
- package/lib/debug/stats.d.ts +2 -3
- package/lib/errors/codes.d.ts +17 -3
- package/lib/errors/codes.js +117 -105
- package/lib/errors/engine-error.js +25 -10
- package/lib/errors/fixes.d.ts +1 -0
- package/lib/errors/fixes.js +20 -19
- package/lib/generated/core.d.ts +1 -1
- package/lib/generated/core.js +1 -1
- package/lib/gpu/early-builds.d.ts +68 -0
- package/lib/gpu/early-builds.js +158 -0
- package/lib/gpu/pipeline-name.d.ts +6 -0
- package/lib/gpu/pipeline-name.js +23 -0
- package/lib/gpu/variants.d.ts +8 -2
- package/lib/gpu/variants.js +39 -7
- package/lib/gpu/webgl2/backend.d.ts +63 -2
- package/lib/gpu/webgl2/backend.js +226 -8
- package/lib/gpu/webgl2/programs.d.ts +18 -0
- package/lib/gpu/webgl2/programs.js +5 -2
- package/lib/gpu/webgpu/backend.d.ts +89 -2
- package/lib/gpu/webgpu/backend.js +255 -8
- package/lib/gpu/webgpu/pipelines.d.ts +13 -0
- package/lib/gpu/webgpu/pipelines.js +28 -14
- package/lib/index.d.ts +7 -5
- package/lib/index.js +3 -2
- package/lib/math/color.d.ts +5 -5
- package/lib/math/color.js +5 -5
- package/lib/math/mat4.d.ts +6 -12
- package/lib/math/mat4.js +6 -12
- package/lib/math/namespaces/quat.d.ts +3 -3
- package/lib/math/namespaces/quat.js +3 -3
- package/lib/math/quat.d.ts +8 -12
- package/lib/math/quat.js +8 -12
- package/lib/math/random.d.ts +2 -3
- package/lib/math/random.js +2 -3
- package/lib/math/types.d.ts +4 -4
- package/lib/math/vec3.d.ts +3 -6
- package/lib/math/vec3.js +3 -6
- package/lib/page/capabilities.d.ts +8 -8
- package/lib/page/capabilities.js +39 -25
- package/lib/page/check-store.d.ts +14 -2
- package/lib/page/check-store.js +34 -11
- package/lib/page/engine.d.ts +117 -31
- package/lib/page/engine.js +438 -99
- package/lib/page/first-frame.d.ts +16 -0
- package/lib/page/first-frame.js +35 -0
- package/lib/page/frame-stats.d.ts +34 -1
- package/lib/page/frame-stats.js +15 -0
- package/lib/page/label-loop.d.ts +7 -3
- package/lib/page/label-loop.js +26 -14
- package/lib/page/labels.d.ts +3 -3
- package/lib/page/pipeline-store.d.ts +25 -0
- package/lib/page/pipeline-store.js +84 -0
- package/lib/page/start-marker.d.ts +4 -1
- package/lib/page/start-marker.js +5 -2
- package/lib/page/stats-switch.js +2 -0
- package/lib/page/switches.d.ts +38 -6
- package/lib/page/switches.js +29 -5
- package/lib/quality/check.d.ts +24 -3
- package/lib/quality/check.js +21 -7
- package/lib/quality/chooser.d.ts +6 -0
- package/lib/quality/chooser.js +8 -0
- package/lib/quality/governor.d.ts +98 -6
- package/lib/quality/governor.js +250 -20
- package/lib/quality/preset-docs.d.ts +16 -1
- package/lib/quality/preset-docs.js +3 -0
- package/lib/quality/presets.d.ts +84 -7
- package/lib/quality/presets.js +94 -2
- package/lib/render/draw.d.ts +3 -2
- package/lib/render/draw.js +15 -5
- package/lib/render/load-draw.d.ts +7 -5
- package/lib/render/load-draw.js +7 -5
- package/lib/render/loss.d.ts +28 -10
- package/lib/render/loss.js +50 -22
- package/lib/render/recovery.d.ts +20 -0
- package/lib/render/recovery.js +44 -4
- package/lib/render/renderer.d.ts +85 -9
- package/lib/render/renderer.js +181 -42
- package/lib/render/scene-renderer.d.ts +19 -1
- package/lib/render/scene-renderer.js +25 -1
- package/lib/render/webgl2-renderers.js +8 -5
- package/lib/render/webgpu-renderers.js +5 -4
- package/lib/scene/animation.d.ts +28 -32
- package/lib/scene/animation.js +12 -15
- package/lib/scene/assets.d.ts +61 -86
- package/lib/scene/assets.js +103 -236
- package/lib/scene/background.d.ts +14 -18
- package/lib/scene/background.js +5 -2
- package/lib/scene/baked-light.d.ts +2 -2
- package/lib/scene/color.d.ts +3 -3
- package/lib/scene/downloads.d.ts +2 -0
- package/lib/scene/downloads.js +371 -0
- package/lib/scene/environment.d.ts +7 -7
- package/lib/scene/environment.js +1 -1
- package/lib/scene/fake-call-values.js +3 -3
- package/lib/scene/fog.d.ts +11 -4
- package/lib/scene/fog.js +8 -2
- package/lib/scene/frame-cameras.d.ts +35 -4
- package/lib/scene/frame-cameras.js +86 -10
- package/lib/scene/gltf.d.ts +33 -3
- package/lib/scene/gltf.js +78 -49
- package/lib/scene/grading.d.ts +2 -2
- package/lib/scene/grading.js +3 -3
- package/lib/scene/ktx2.d.ts +9 -1
- package/lib/scene/ktx2.js +3 -2
- package/lib/scene/level-rule.d.ts +121 -0
- package/lib/scene/level-rule.js +130 -0
- package/lib/scene/lines.d.ts +13 -17
- package/lib/scene/lines.js +3 -3
- package/lib/scene/lut.d.ts +1 -2
- package/lib/scene/lut.js +1 -2
- package/lib/scene/particles.d.ts +7 -3
- package/lib/scene/particles.js +3 -1
- package/lib/scene/picks.d.ts +2 -2
- package/lib/scene/pointer-events.d.ts +4 -7
- package/lib/scene/post.d.ts +39 -43
- package/lib/scene/post.js +4 -1
- package/lib/scene/prefab.d.ts +7 -8
- package/lib/scene/prefab.js +7 -8
- package/lib/scene/property-animation.d.ts +1 -1
- package/lib/scene/property-animation.js +1 -1
- package/lib/scene/queries.d.ts +7 -13
- package/lib/scene/resources.d.ts +238 -261
- package/lib/scene/resources.js +179 -81
- package/lib/scene/scene.d.ts +167 -120
- package/lib/scene/scene.js +243 -103
- package/lib/scene/serial-loads.d.ts +29 -0
- package/lib/scene/serial-loads.js +68 -0
- package/lib/scene/shader-preloads.d.ts +34 -0
- package/lib/scene/shader-preloads.js +38 -0
- package/lib/scene/sprites.d.ts +14 -17
- package/lib/scene/sprites.js +5 -6
- package/lib/scene/textures.d.ts +11 -12
- package/lib/scene/textures.js +9 -10
- package/lib/scene/time-of-day.d.ts +11 -7
- package/lib/scene/time-of-day.js +11 -8
- package/lib/scene/vertex-draws.d.ts +5 -4
- package/lib/scene/vertex-draws.js +7 -5
- package/lib/shader-artifact.json +1 -0
- package/lib/shared/core.d.ts +5 -0
- package/lib/shared/core.js +1 -0
- package/lib/shared/import-once.d.ts +6 -0
- package/lib/shared/import-once.js +19 -0
- package/lib/shared/labels.d.ts +5 -2
- package/lib/shared/labels.js +5 -2
- package/lib/shared/metrics.d.ts +38 -0
- package/lib/shared/metrics.js +62 -1
- package/lib/shared/permutation-words.d.ts +2 -0
- package/lib/shared/permutation-words.js +8 -0
- package/lib/shared/recording.d.ts +13 -5
- package/lib/shared/recording.js +31 -10
- package/lib/shared/run-task.js +7 -1
- package/lib/shared/sketch-data.d.ts +9 -0
- package/lib/shared/sketch-data.js +57 -0
- package/lib/shared/task-pending.d.ts +12 -0
- package/lib/shared/task-pending.js +61 -1
- package/lib/shared/tasks.js +79 -32
- package/lib/shared/version.d.ts +17 -1
- package/lib/shared/version.js +19 -1
- package/lib/shared/wasm.d.ts +12 -4
- package/lib/shared/wasm.js +50 -27
- package/lib/shared/worker-start.d.ts +7 -0
- package/lib/shared/worker-start.js +27 -0
- package/lib/sketch/define-sketch.d.ts +51 -7
- package/lib/sketch/define-sketch.js +2 -1
- package/lib/sketch/input.d.ts +2 -2
- package/lib/sketch/preset-check.d.ts +20 -6
- package/lib/sketch/preset-check.js +42 -17
- package/lib/sketch/quality.d.ts +69 -11
- package/lib/sketch/quality.js +54 -13
- package/lib/sketch/runner.d.ts +80 -9
- package/lib/sketch/runner.js +390 -52
- package/lib/sketch/ui.d.ts +5 -8
- package/lib/sketch/ui.js +4 -2
- package/lib/stats.d.ts +1 -0
- package/lib/workers/probe-worker.d.ts +5 -0
- package/lib/workers/probe-worker.js +13 -4
- package/lib/workers/protocol.d.ts +71 -13
- package/lib/workers/protocol.js +4 -0
- package/lib/workers/render-worker.js +29 -5
- package/lib/workers/sketch-worker.js +108 -16
- package/package.json +2 -2
|
@@ -0,0 +1,2231 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "index/showcase-island",
|
|
4
|
+
"pages": ["index#under the opening paragraph"],
|
|
5
|
+
"source": "scripted",
|
|
6
|
+
"images": ["webgpu/demo-island.png"],
|
|
7
|
+
"steps": "Open the examples page with ?demo=island on WebGPU, wait for the first full frame of the default view (the image test holds 0.5 s), capture the canvas at 1280x720 or larger. Fallback: the reference image as it is (320x180).",
|
|
8
|
+
"alt": "A hilly Mediterranean island with forests, a beach and a harbour town, drawn by null3D with WebGPU.",
|
|
9
|
+
"caption": "The Island showcase.",
|
|
10
|
+
"files": [
|
|
11
|
+
"examples/showcase/island/",
|
|
12
|
+
"examples/demos.ts",
|
|
13
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-island.png"
|
|
14
|
+
],
|
|
15
|
+
"verdict": "shots-index.md"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "getting-started/first-scene/turning-box",
|
|
19
|
+
"pages": ["getting-started/first-scene#Run it"],
|
|
20
|
+
"source": "scripted",
|
|
21
|
+
"steps": "bunx @null3d/cli create first-scene; cd first-scene && bun install; bunx @null3d/cli shot --time 1 --size 1280x720 --out turning-box.png. The empty template draws the same scene as the page.",
|
|
22
|
+
"alt": "A blue box turned partway round on a dark gray background, lit from the upper right.",
|
|
23
|
+
"caption": "What the four files draw after one second.",
|
|
24
|
+
"files": ["docs/getting-started/first-scene.md", "packages/cli/templates/empty/src/sketch.ts"],
|
|
25
|
+
"verdict": "shots-getting-started__first-scene.md"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "getting-started/project-structure/template-empty",
|
|
29
|
+
"pages": ["getting-started/project-structure#the template table"],
|
|
30
|
+
"source": "scripted",
|
|
31
|
+
"steps": "bunx @null3d/cli create t-empty --template empty; bun install; bunx @null3d/cli shot --time 2 --out template-empty.png. The first shot run downloads Chrome for Testing.",
|
|
32
|
+
"alt": "The empty template: a blue cube that turns, lit by a directional and an ambient light.",
|
|
33
|
+
"caption": "The empty template's first view.",
|
|
34
|
+
"files": ["packages/cli/templates/empty/src/sketch.ts"],
|
|
35
|
+
"verdict": "shots-getting-started__project-structure.md"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "getting-started/project-structure/template-product",
|
|
39
|
+
"pages": ["getting-started/project-structure#the template table"],
|
|
40
|
+
"source": "scripted",
|
|
41
|
+
"steps": "bunx @null3d/cli create t-product --template product; bun install; bunx @null3d/cli shot --time 2 --out template-product.png. The first shot run downloads Chrome for Testing.",
|
|
42
|
+
"alt": "The product template: a model on a turntable with a soft key light and its shadow.",
|
|
43
|
+
"caption": "The product template's first view.",
|
|
44
|
+
"files": ["packages/cli/templates/product/src/sketch.ts"],
|
|
45
|
+
"verdict": "shots-getting-started__project-structure.md"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "getting-started/project-structure/template-game",
|
|
49
|
+
"pages": ["getting-started/project-structure#the template table"],
|
|
50
|
+
"source": "scripted",
|
|
51
|
+
"steps": "bunx @null3d/cli create t-game --template game; bun install; bunx @null3d/cli shot --time 2 --out template-game.png. The first shot run downloads Chrome for Testing. The score is HTML over the canvas, so it does not show; do not mention it.",
|
|
52
|
+
"alt": "The game template: a player on a field among gems and rocks, seen from behind and above.",
|
|
53
|
+
"caption": "The game template's first view.",
|
|
54
|
+
"files": ["packages/cli/templates/game/src/sketch.ts"],
|
|
55
|
+
"verdict": "shots-getting-started__project-structure.md"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "getting-started/cdn/one-file-box",
|
|
59
|
+
"pages": ["getting-started/cdn#One HTML file"],
|
|
60
|
+
"source": "scripted",
|
|
61
|
+
"steps": "Use tests/pages/cdn-try.html?cdn=<CDN origin>/ with the server in tests/image/cdn-script-tag.spec.ts (it builds the CDN folder with buildCdn and serves page and build from two origins). Capture when the page sets its result (after 3 frames), not at engine.firstFrame.",
|
|
62
|
+
"alt": "An orange box on a dark blue background, drawn by one HTML file that loads null3D from a CDN.",
|
|
63
|
+
"caption": "What the one-file page draws. The test page's box is a little larger than the example's.",
|
|
64
|
+
"files": [
|
|
65
|
+
"docs/getting-started/cdn.md",
|
|
66
|
+
"tests/pages/cdn-try.html",
|
|
67
|
+
"tests/image/cdn-script-tag.spec.ts",
|
|
68
|
+
"tools/lib/cdn.ts"
|
|
69
|
+
],
|
|
70
|
+
"verdict": "shots-getting-started__cdn.md"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "getting-started/hosting/network-brotli",
|
|
74
|
+
"pages": [
|
|
75
|
+
"getting-started/hosting#Send the files with Brotli",
|
|
76
|
+
"guides/deploying#Compress with Brotli",
|
|
77
|
+
"guides/start-time#Compress every file"
|
|
78
|
+
],
|
|
79
|
+
"source": "manual",
|
|
80
|
+
"steps": "bun run build; bun run examples:build; bun run examples:preview (set the Vite plugin's http2: true to show h2). Open any demo in Chrome. DevTools Network: Disable cache, Big request rows, filter Wasm, add Protocol, Content-Encoding and Content-Type columns. Load, wait a few seconds (the preview recompresses at best quality while idle), reload. Capture the null3d_bg-<hash>.wasm row. Match the alt text to the captured numbers.",
|
|
81
|
+
"alt": "The network panel shows the engine core sent with Brotli over HTTP/2: about 0.6 MB transferred for a 2.0 MB file.",
|
|
82
|
+
"caption": "Compare the transferred size with the full size. Read the protocol column for h2.",
|
|
83
|
+
"files": ["packages/vite-plugin/src/index.ts", "packages/vite-plugin/src/compress.ts"],
|
|
84
|
+
"verdict": "shots-guides__deploying.md; shots-getting-started__hosting.md; shots-guides__start-time.md"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "getting-started/hosting/service-worker-offline",
|
|
88
|
+
"pages": ["getting-started/hosting#Keep the page isolated"],
|
|
89
|
+
"source": "manual",
|
|
90
|
+
"steps": "bun run test:packages --keep, then vite preview in the kept fresh-project folder. Load once and wait for the first frame. Dock DevTools to the side. Application > Service Workers: tick Offline, reload, open the console drawer, evaluate crossOriginIsolated. One frame shows the game, the ticked box and true.",
|
|
91
|
+
"alt": "Developer tools with Offline ticked for the service worker, the game still drawing, and the console printing true for crossOriginIsolated.",
|
|
92
|
+
"caption": "A page served from the cache stays cross-origin isolated.",
|
|
93
|
+
"files": ["tests/fixtures/fresh-project/public/sw.js"],
|
|
94
|
+
"verdict": "shots-getting-started__hosting.md"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "getting-started/network-use/network-own-origin",
|
|
98
|
+
"pages": ["getting-started/network-use#Check the claim"],
|
|
99
|
+
"source": "manual",
|
|
100
|
+
"steps": "Open the splats demo in a production preview build. Wait for the scan to stream in. Network panel: tick the third-party requests filter. Crop so the status bar shows \"0 / N requests\".",
|
|
101
|
+
"alt": "The network panel filtered to third-party requests shows 0 of several hundred requests while the splats demo streams its scan.",
|
|
102
|
+
"caption": "Every request goes to the page's own origin.",
|
|
103
|
+
"files": ["examples/splats/", "examples/lib/samples.ts"],
|
|
104
|
+
"verdict": "shots-getting-started__network-use.md"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "concepts/architecture/devtools-threads",
|
|
108
|
+
"pages": [
|
|
109
|
+
"concepts/architecture#The kinds of thread",
|
|
110
|
+
"porting/threejs-loop-and-threads#What goes where",
|
|
111
|
+
"guides/performance#Where frame time goes"
|
|
112
|
+
],
|
|
113
|
+
"source": "manual",
|
|
114
|
+
"steps": "Serve the instances demo with the isolation headers (the Vite plugin sets them). Record 2 to 3 s in the Performance panel about 5 s after load. Crop to the main, sketch, render and job tracks.",
|
|
115
|
+
"alt": "A browser performance recording: the page's main thread is nearly idle while the null3d-sketch, null3d-render and null3d-job workers do the frame's work.",
|
|
116
|
+
"caption": "Each engine thread has its own named track. The probe and glTF helper workers show only when the recording covers their work.",
|
|
117
|
+
"files": ["packages/engine/src/page/engine.ts", "examples/instances/"],
|
|
118
|
+
"verdict": "shots-concepts__architecture.md; shots-porting__threejs-loop-and-threads.md; shots-guides__performance.md",
|
|
119
|
+
"note": "On guides/performance keep it only if the section gains a sentence that says to record a trace and names the tracks. Optional on concepts/architecture: inside a technical details block."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "concepts/architecture/stats-overlay-threads",
|
|
123
|
+
"pages": [
|
|
124
|
+
"concepts/architecture#When the job workers start",
|
|
125
|
+
"api/debug#Stats overlay and frame figures",
|
|
126
|
+
"guides/performance#Measure",
|
|
127
|
+
"guides/testing#Check every rendering mode"
|
|
128
|
+
],
|
|
129
|
+
"source": "scripted",
|
|
130
|
+
"steps": "On the examples dev server (switches work only in a development build), open ?demo=instances&gpu=webgpu&stats=open in desktop Chrome. Play live for about 5 s, no hold (a held frame never shows the overlay). Capture the page clipped to the canvas with the open card at its top right.",
|
|
131
|
+
"alt": "The open stats overlay over 100,000 columns: CPU time per frame of the sketch worker and the render worker, the main thread's long tasks, and one line with the number of job workers and the busiest one's time.",
|
|
132
|
+
"caption": "The stats overlay on the instance batch demo. Figures are from one machine.",
|
|
133
|
+
"files": [
|
|
134
|
+
"packages/engine/src/debug/stats-text.ts",
|
|
135
|
+
"packages/engine/src/debug/overlay-look.ts",
|
|
136
|
+
"packages/engine/src/page/switches.ts",
|
|
137
|
+
"examples/lib/run.ts"
|
|
138
|
+
],
|
|
139
|
+
"verdict": "shots-concepts__architecture.md; shots-api__debug.md; shots-guides__performance.md; shots-guides__testing.md"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "concepts/assets/gltf-model",
|
|
143
|
+
"pages": [
|
|
144
|
+
"concepts/assets#Models and prefabs",
|
|
145
|
+
"api/assets#glTF models",
|
|
146
|
+
"guides/assets-pipeline#Optimize a model"
|
|
147
|
+
],
|
|
148
|
+
"source": "reference",
|
|
149
|
+
"images": ["webgpu/demo-gltf-model.png"],
|
|
150
|
+
"alt": "The Khronos BoomBox on a polished turntable in a dark studio.",
|
|
151
|
+
"caption": "The glTF models demo. On the assets tool page, say only that this is the model the example output describes, not the optimized file.",
|
|
152
|
+
"files": [
|
|
153
|
+
"examples/gltf-model/sketch.ts",
|
|
154
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-gltf-model.png"
|
|
155
|
+
],
|
|
156
|
+
"verdict": "shots-concepts__assets.md; shots-api__assets.md; shots-guides__assets-pipeline.md",
|
|
157
|
+
"note": "320x180. A larger capture: examples page ?demo=gltf-model&hold=2 in a development build."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "concepts/backends/three-tiers",
|
|
161
|
+
"pages": ["concepts/backends#The three tiers"],
|
|
162
|
+
"source": "reference",
|
|
163
|
+
"images": [
|
|
164
|
+
"webgpu/demo-environment.png",
|
|
165
|
+
"compat/demo-environment.png",
|
|
166
|
+
"webgl2/demo-environment.png"
|
|
167
|
+
],
|
|
168
|
+
"steps": "Join the three files in a row with a label under each.",
|
|
169
|
+
"alt": "The same sphere gallery drawn on WebGPU, WebGPU compatibility mode and WebGL2.",
|
|
170
|
+
"caption": "One sketch on each tier. Compatibility mode and WebGL2 run at most the Medium preset, so they look a little softer.",
|
|
171
|
+
"files": [
|
|
172
|
+
"examples/environment/",
|
|
173
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-environment.png",
|
|
174
|
+
"tests/image/references/chrome-real-gpu/compat/demo-environment.png",
|
|
175
|
+
"tests/image/references/chrome-real-gpu/webgl2/demo-environment.png"
|
|
176
|
+
],
|
|
177
|
+
"verdict": "shots-concepts__backends.md"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "concepts/color-management/tone-mapped",
|
|
181
|
+
"pages": ["concepts/color-management#Materials that keep their display color"],
|
|
182
|
+
"source": "reference",
|
|
183
|
+
"images": ["webgpu/demo-tone-mapped.png"],
|
|
184
|
+
"alt": "Two rows of the same seven bright colors: the top row keeps its display color, the bottom row takes the tone curve.",
|
|
185
|
+
"caption": "toneMapped: false on the top row.",
|
|
186
|
+
"files": [
|
|
187
|
+
"examples/tone-mapped/",
|
|
188
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-tone-mapped.png"
|
|
189
|
+
],
|
|
190
|
+
"verdict": "shots-concepts__color-management.md"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "concepts/color-management/tone-curves",
|
|
194
|
+
"pages": [
|
|
195
|
+
"concepts/color-management#Exposure and tone mapping",
|
|
196
|
+
"api/post#Tone mapping and exposure",
|
|
197
|
+
"api/reference/post#ToneMapping"
|
|
198
|
+
],
|
|
199
|
+
"source": "reference",
|
|
200
|
+
"images": [
|
|
201
|
+
"webgpu/tone-agx-punchy.png",
|
|
202
|
+
"webgpu/tone-agx.png",
|
|
203
|
+
"webgpu/tone-aces.png",
|
|
204
|
+
"webgpu/tone-neutral.png",
|
|
205
|
+
"webgpu/tone-none.png"
|
|
206
|
+
],
|
|
207
|
+
"steps": "Join the five full-exposure files in a row, each labeled. Do not use the -half-exposure files. Leave out reinhard and cineon here: they are not engine curves.",
|
|
208
|
+
"alt": "The same tiles of rising brightness under the agx-punchy, agx, aces, neutral and none tone curves.",
|
|
209
|
+
"caption": "Under none the bright tiles clip to flat white; the other curves roll off toward white.",
|
|
210
|
+
"files": [
|
|
211
|
+
"tests/pages/sketches/bright-sketch.ts",
|
|
212
|
+
"packages/engine/src/scene/post.ts",
|
|
213
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-agx-punchy.png",
|
|
214
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-agx.png",
|
|
215
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-aces.png",
|
|
216
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-neutral.png",
|
|
217
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-none.png"
|
|
218
|
+
],
|
|
219
|
+
"verdict": "shots-concepts__color-management.md; shots-api__post.md; shots-api__reference__post.md",
|
|
220
|
+
"note": "The api/reference/post placement needs the reference generator to print images."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "concepts/culling/far-from-origin",
|
|
224
|
+
"pages": ["concepts/culling#What this means for your sketch"],
|
|
225
|
+
"source": "reference",
|
|
226
|
+
"images": ["webgpu/demo-far-from-origin.png"],
|
|
227
|
+
"alt": "A tray of small keys and a brass wheel, drawn sharp.",
|
|
228
|
+
"caption": "2 cm keys 1,000 km from the origin, drawn without jitter.",
|
|
229
|
+
"files": [
|
|
230
|
+
"examples/far-from-origin/",
|
|
231
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-far-from-origin.png"
|
|
232
|
+
],
|
|
233
|
+
"verdict": "shots-concepts__culling.md",
|
|
234
|
+
"note": "The distance label is page HTML and is not in the reference."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "concepts/instances/instances",
|
|
238
|
+
"pages": [
|
|
239
|
+
"concepts/instances#under the opening paragraphs",
|
|
240
|
+
"concepts/static-dynamic#Dirty ranges in instance batches"
|
|
241
|
+
],
|
|
242
|
+
"source": "reference",
|
|
243
|
+
"images": ["webgpu/demo-instances.png"],
|
|
244
|
+
"alt": "A field of about 100,000 columns in one instance batch at golden hour, with hover cars streaming above it.",
|
|
245
|
+
"caption": "One dynamic batch: the sketch writes every column's height in every frame.",
|
|
246
|
+
"files": [
|
|
247
|
+
"examples/instances/sketch.ts",
|
|
248
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-instances.png"
|
|
249
|
+
],
|
|
250
|
+
"verdict": "shots-concepts__instances.md; shots-concepts__static-dynamic.md",
|
|
251
|
+
"note": "On static-dynamic place it beside the dynamic batch example. 320x180; a larger capture uses ?hold=2."
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "concepts/instances/per-row-colors",
|
|
255
|
+
"pages": ["concepts/instances#Per-row colors"],
|
|
256
|
+
"source": "reference",
|
|
257
|
+
"images": ["webgpu/row-colors.png"],
|
|
258
|
+
"alt": "Five instance batches of eight rows each, every row in its own color, beside one gray row of the same material without colors.",
|
|
259
|
+
"caption": "Row colors multiply the material's color.",
|
|
260
|
+
"files": [
|
|
261
|
+
"tests/pages/sketches/row-colors-sketch.ts",
|
|
262
|
+
"tests/image/references/chrome-real-gpu/webgpu/row-colors.png"
|
|
263
|
+
],
|
|
264
|
+
"verdict": "shots-concepts__instances.md"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "concepts/large-worlds/large-world",
|
|
268
|
+
"pages": ["concepts/large-worlds#Large-world mode"],
|
|
269
|
+
"source": "reference",
|
|
270
|
+
"images": ["webgpu/demo-large-world.png"],
|
|
271
|
+
"alt": "A road at golden hour with dashed lane marks, trees and hazy hills.",
|
|
272
|
+
"caption": "A road 6,378 km from the origin, in large-world mode.",
|
|
273
|
+
"files": [
|
|
274
|
+
"examples/large-world/",
|
|
275
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-large-world.png"
|
|
276
|
+
],
|
|
277
|
+
"verdict": "shots-concepts__large-worlds.md"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "concepts/lighting/area-lights",
|
|
281
|
+
"pages": ["concepts/lighting#Kinds of light and their units", "api/lights#Area lights"],
|
|
282
|
+
"source": "reference",
|
|
283
|
+
"images": ["webgpu/demo-area-lights.png"],
|
|
284
|
+
"alt": "Shop windows and a neon sign lit as area lights, their shapes stretched across a wet street.",
|
|
285
|
+
"caption": "Rectangle and tube lights.",
|
|
286
|
+
"files": [
|
|
287
|
+
"examples/area-lights/",
|
|
288
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-area-lights.png"
|
|
289
|
+
],
|
|
290
|
+
"verdict": "shots-concepts__lighting.md; shots-api__lights.md"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "concepts/lighting/light-shafts",
|
|
294
|
+
"pages": ["concepts/lighting#Volumetric fog", "api/scene#Volumetric fog"],
|
|
295
|
+
"source": "reference",
|
|
296
|
+
"images": ["webgpu/demo-light-shafts.png"],
|
|
297
|
+
"alt": "Sun rays through a pine wood in haze, with the trunks' shadows in the fog.",
|
|
298
|
+
"caption": "Volumetric fog takes the sun's light.",
|
|
299
|
+
"files": [
|
|
300
|
+
"examples/light-shafts/",
|
|
301
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-light-shafts.png"
|
|
302
|
+
],
|
|
303
|
+
"verdict": "shots-concepts__lighting.md; shots-api__scene.md"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": "concepts/lighting/environment",
|
|
307
|
+
"pages": ["concepts/lighting#Environment maps", "guides/assets-pipeline#Environment maps"],
|
|
308
|
+
"source": "reference",
|
|
309
|
+
"images": ["webgpu/demo-environment.png"],
|
|
310
|
+
"alt": "Plastic and metal spheres, from rough to smooth, over a polished floor, lit by the Venice sunset environment map.",
|
|
311
|
+
"caption": "Light from an environment alone. The demo filters the HDR file at load, which gives the same map as the assets env command.",
|
|
312
|
+
"files": [
|
|
313
|
+
"examples/environment/",
|
|
314
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-environment.png"
|
|
315
|
+
],
|
|
316
|
+
"verdict": "shots-concepts__lighting.md; shots-guides__assets-pipeline.md"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"id": "concepts/lighting/reflection-probes",
|
|
320
|
+
"pages": ["concepts/lighting#Reflection probes", "api/scene#Reflection probes"],
|
|
321
|
+
"source": "reference",
|
|
322
|
+
"images": ["webgpu/demo-reflection-probes.png"],
|
|
323
|
+
"alt": "A warm room and a cool room over one polished floor, each reflected in place.",
|
|
324
|
+
"caption": "Two rooms, one probe each. The demo's B key turns box projection on and off.",
|
|
325
|
+
"files": [
|
|
326
|
+
"examples/reflection-probes/",
|
|
327
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-reflection-probes.png"
|
|
328
|
+
],
|
|
329
|
+
"verdict": "shots-concepts__lighting.md; shots-api__scene.md"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"id": "concepts/lighting/atmosphere",
|
|
333
|
+
"pages": ["concepts/lighting#The physical sky", "api/scene#The physical sky"],
|
|
334
|
+
"source": "reference",
|
|
335
|
+
"images": ["webgpu/demo-atmosphere.png"],
|
|
336
|
+
"alt": "A valley at sunset under the physical sky, with rose clouds and ridges fading into the evening air.",
|
|
337
|
+
"caption": "The physical sky.",
|
|
338
|
+
"files": [
|
|
339
|
+
"examples/atmosphere/",
|
|
340
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-atmosphere.png"
|
|
341
|
+
],
|
|
342
|
+
"verdict": "shots-concepts__lighting.md; shots-api__scene.md",
|
|
343
|
+
"note": "Optional second picture for aerial perspective: webgpu/physical-sky-afternoon.png beside physical-sky-no-haze.png."
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"id": "concepts/lod/forest",
|
|
347
|
+
"pages": ["concepts/lod#under the opening paragraphs"],
|
|
348
|
+
"source": "reference",
|
|
349
|
+
"images": ["webgpu/demo-forest.png"],
|
|
350
|
+
"alt": "A dense mixed forest at golden hour, under a cloudy sky.",
|
|
351
|
+
"caption": "What you see. The levels view beside it shows what the engine picks.",
|
|
352
|
+
"files": ["examples/forest/", "tests/image/references/chrome-real-gpu/webgpu/demo-forest.png"],
|
|
353
|
+
"verdict": "shots-concepts__lod.md"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"id": "concepts/lod/forest-levels",
|
|
357
|
+
"pages": [
|
|
358
|
+
"concepts/lod#How the engine picks a level",
|
|
359
|
+
"api/geometry#Levels by hand",
|
|
360
|
+
"guides/assets-pipeline#Levels of detail"
|
|
361
|
+
],
|
|
362
|
+
"source": "scripted",
|
|
363
|
+
"steps": "Development build, WebGPU: examples page ?demo=forest&hold=2&view=levels&compile=wait. Capture the held frame. Check for magenta markers past 300 m where the understory stops.",
|
|
364
|
+
"alt": "The forest in the levels view: near trees in blue, farther ones in green, yellow and orange.",
|
|
365
|
+
"caption": "The levels debug view colors each copy by the level it draws. The forest sets its four levels by hand, not with the assets tool.",
|
|
366
|
+
"files": [
|
|
367
|
+
"examples/forest/",
|
|
368
|
+
"examples/lib/trees.ts",
|
|
369
|
+
"packages/engine/src/debug/view-names.ts"
|
|
370
|
+
],
|
|
371
|
+
"verdict": "shots-concepts__lod.md; shots-api__geometry.md; shots-guides__assets-pipeline.md"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "concepts/materials/alpha-modes",
|
|
375
|
+
"pages": [
|
|
376
|
+
"concepts/materials#Alpha modes",
|
|
377
|
+
"api/materials#Alpha modes",
|
|
378
|
+
"api/reference/materials#AlphaMode"
|
|
379
|
+
],
|
|
380
|
+
"source": "reference",
|
|
381
|
+
"images": ["webgpu/alpha-mask.png", "webgpu/alpha-hash.png"],
|
|
382
|
+
"steps": "Two panels. Show alpha to coverage only as a zoomed crop of one card edge beside the same crop from mask, or leave it out.",
|
|
383
|
+
"alt": "Ring-shaped cards cut out by alpha: hard edges with mask, a dotted pattern with hash.",
|
|
384
|
+
"caption": "The mask and hash alpha modes.",
|
|
385
|
+
"files": [
|
|
386
|
+
"tests/pages/sketches/alpha-mask-sketch.ts",
|
|
387
|
+
"tests/image/manifest.ts",
|
|
388
|
+
"tests/image/references/chrome-real-gpu/webgpu/alpha-mask.png",
|
|
389
|
+
"tests/image/references/chrome-real-gpu/webgpu/alpha-hash.png"
|
|
390
|
+
],
|
|
391
|
+
"verdict": "shots-concepts__materials.md; shots-api__materials.md"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"id": "concepts/materials/weighted-transparency",
|
|
395
|
+
"pages": ["concepts/materials#The transparent pass", "api/materials#Weighted blending"],
|
|
396
|
+
"source": "reference",
|
|
397
|
+
"images": ["webgpu/demo-weighted-transparency.png"],
|
|
398
|
+
"alt": "Crossing panes of stained glass and smoke in a pavilion, blended in any order.",
|
|
399
|
+
"caption": "Weighted blending needs no sort.",
|
|
400
|
+
"files": [
|
|
401
|
+
"examples/weighted-transparency/",
|
|
402
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-weighted-transparency.png"
|
|
403
|
+
],
|
|
404
|
+
"verdict": "shots-concepts__materials.md; shots-api__materials.md"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"id": "concepts/particle-buffer/particles-wind-field",
|
|
408
|
+
"pages": ["concepts/particle-buffer#The wind field"],
|
|
409
|
+
"source": "reference",
|
|
410
|
+
"images": ["webgpu/particles.png", "webgpu/particles-wind.png"],
|
|
411
|
+
"alt": "A row of dust carried sideways across the floor by the wind field.",
|
|
412
|
+
"caption": "Left: the field off. Right: the same scene with the field on; look at the dust row.",
|
|
413
|
+
"files": [
|
|
414
|
+
"tests/pages/sketches/particles-sketch.ts",
|
|
415
|
+
"packages/particles/src/system.ts",
|
|
416
|
+
"tests/image/references/chrome-real-gpu/webgpu/particles.png",
|
|
417
|
+
"tests/image/references/chrome-real-gpu/webgpu/particles-wind.png"
|
|
418
|
+
],
|
|
419
|
+
"verdict": "shots-concepts__particle-buffer.md"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"id": "concepts/post-processing/post-effects-alley",
|
|
423
|
+
"pages": [
|
|
424
|
+
"concepts/post-processing#under the opening diagram",
|
|
425
|
+
"guides/lens-kit#under the intro",
|
|
426
|
+
"guides/custom-passes#Custom effects",
|
|
427
|
+
"porting/threejs-postprocessing#Passes that become settings",
|
|
428
|
+
"cookbook/index#Glow and a custom effect"
|
|
429
|
+
],
|
|
430
|
+
"source": "scripted",
|
|
431
|
+
"images": ["webgpu/demo-post-effects.png"],
|
|
432
|
+
"steps": "Capture larger through the image test page: tests/pages/image.html?sketch=/examples/post-effects/sketch.ts&hold=4&gpu=webgpu&size=1280x720. For the lens kit page add a crop near the pink ring and blue tube where the streak and fringes show. Fallback: the reference.",
|
|
433
|
+
"alt": "Crates in a neon alley at night, with glowing neon, reflections in the wet ground and a yellow outline round one crate.",
|
|
434
|
+
"caption": "The post effects demo: built-in bloom, reflections and outline, and the lens kit's custom effect.",
|
|
435
|
+
"files": [
|
|
436
|
+
"examples/post-effects/sketch.ts",
|
|
437
|
+
"examples/addons/lens-kit/index.ts",
|
|
438
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-post-effects.png"
|
|
439
|
+
],
|
|
440
|
+
"verdict": "shots-concepts__post-processing.md; shots-guides__lens-kit.md; shots-guides__custom-passes.md; shots-porting__threejs-postprocessing.md; shots-cookbook__index.md"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "concepts/post-processing/bloom",
|
|
444
|
+
"pages": ["concepts/post-processing#Bloom", "api/post#Bloom"],
|
|
445
|
+
"source": "reference",
|
|
446
|
+
"images": ["webgpu/bloom-off.png", "webgpu/bloom-soft.png", "webgpu/bloom-strong.png"],
|
|
447
|
+
"alt": "The same scene without bloom, with soft bloom and with strong bloom.",
|
|
448
|
+
"caption": "Bloom off, soft and strong.",
|
|
449
|
+
"files": [
|
|
450
|
+
"tests/pages/sketches/bloom-sketch.ts",
|
|
451
|
+
"tests/image/references/chrome-real-gpu/webgpu/bloom-off.png",
|
|
452
|
+
"tests/image/references/chrome-real-gpu/webgpu/bloom-soft.png",
|
|
453
|
+
"tests/image/references/chrome-real-gpu/webgpu/bloom-strong.png"
|
|
454
|
+
],
|
|
455
|
+
"verdict": "shots-concepts__post-processing.md; shots-api__post.md"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"id": "concepts/post-processing/depth-of-field",
|
|
459
|
+
"pages": ["concepts/post-processing#Depth of field", "api/post#Depth of field"],
|
|
460
|
+
"source": "reference",
|
|
461
|
+
"images": ["webgpu/demo-camera-lens.png"],
|
|
462
|
+
"alt": "A low view across a chess board: the far king is sharp, and the near pawns and the string lights are blurred.",
|
|
463
|
+
"caption": "Depth of field in the camera lens demo.",
|
|
464
|
+
"files": [
|
|
465
|
+
"examples/camera-lens/",
|
|
466
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-camera-lens.png"
|
|
467
|
+
],
|
|
468
|
+
"verdict": "shots-concepts__post-processing.md; shots-api__post.md"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id": "concepts/post-processing/auto-exposure",
|
|
472
|
+
"pages": ["concepts/post-processing#Automatic exposure", "api/post#Automatic exposure"],
|
|
473
|
+
"source": "scripted",
|
|
474
|
+
"images": ["webgpu/demo-auto-exposure.png"],
|
|
475
|
+
"steps": "\"Adapted\": the reference (hold 6 s). \"Held\": development build, ?demo=auto-exposure&hold=6 with a hold script that presses E at 0.05 s (or open live, press E at once, capture at 6 s). Cheaper fallback: test references exposure-off.png beside exposure-dark.png.",
|
|
476
|
+
"alt": "A stone hall and a pool under a blue sky, lit after automatic exposure adapted to the scene.",
|
|
477
|
+
"caption": "The stone hall with automatic exposure on.",
|
|
478
|
+
"files": [
|
|
479
|
+
"examples/auto-exposure/",
|
|
480
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-auto-exposure.png"
|
|
481
|
+
],
|
|
482
|
+
"verdict": "shots-concepts__post-processing.md; shots-api__post.md"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"id": "concepts/post-processing/ambient-occlusion",
|
|
486
|
+
"pages": ["concepts/post-processing#Ambient occlusion", "api/post#Ambient occlusion"],
|
|
487
|
+
"source": "reference",
|
|
488
|
+
"images": ["webgpu/ao-off.png", "webgpu/ao-wide.png"],
|
|
489
|
+
"alt": "A scene without and with ambient occlusion: dark creases under the spheres and behind the boxes.",
|
|
490
|
+
"caption": "Ambient occlusion with a wider radius than the default (radius 0.8, scale 1.5).",
|
|
491
|
+
"files": [
|
|
492
|
+
"tests/pages/sketches/ao-sketch.ts",
|
|
493
|
+
"tests/image/references/chrome-real-gpu/webgpu/ao-off.png",
|
|
494
|
+
"tests/image/references/chrome-real-gpu/webgpu/ao-wide.png"
|
|
495
|
+
],
|
|
496
|
+
"verdict": "shots-concepts__post-processing.md; shots-api__post.md"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"id": "concepts/post-processing/ssr-wet-street",
|
|
500
|
+
"pages": ["concepts/post-processing#Screen-space reflections"],
|
|
501
|
+
"source": "reference",
|
|
502
|
+
"images": ["webgpu/demo-wet-street.png"],
|
|
503
|
+
"alt": "Puddles that mirror lit windows and neon signs.",
|
|
504
|
+
"caption": "Screen-space reflections in the wet street demo.",
|
|
505
|
+
"files": [
|
|
506
|
+
"examples/wet-street/",
|
|
507
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-wet-street.png"
|
|
508
|
+
],
|
|
509
|
+
"verdict": "shots-concepts__post-processing.md"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"id": "concepts/post-processing/bounce-light",
|
|
513
|
+
"pages": ["concepts/post-processing#Screen-space bounce light"],
|
|
514
|
+
"source": "scripted",
|
|
515
|
+
"images": ["webgpu/demo-bounce-light.png"],
|
|
516
|
+
"steps": "\"With\": the reference. \"Without\": open bounce-light/ live, press B once (the cycle starts on, so B turns it off), wait a few frames, capture without moving the pointer.",
|
|
517
|
+
"alt": "A room without and with bounce light: with it, the floor turns red and green near the walls.",
|
|
518
|
+
"caption": "Bounce light off and on.",
|
|
519
|
+
"files": [
|
|
520
|
+
"examples/bounce-light/",
|
|
521
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-bounce-light.png"
|
|
522
|
+
],
|
|
523
|
+
"verdict": "shots-concepts__post-processing.md"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"id": "concepts/post-processing/outline",
|
|
527
|
+
"pages": ["concepts/post-processing#Outlines", "api/post#Outlines"],
|
|
528
|
+
"source": "reference",
|
|
529
|
+
"images": ["webgpu/outline-plain.png", "webgpu/outline-hidden.png"],
|
|
530
|
+
"alt": "A box and a half-hidden ball outlined in white, then in orange with a blue line over the hidden part.",
|
|
531
|
+
"caption": "An outline, and an outline with a second color where the object is hidden.",
|
|
532
|
+
"files": [
|
|
533
|
+
"tests/pages/sketches/outline-sketch.ts",
|
|
534
|
+
"tests/image/references/chrome-real-gpu/webgpu/outline-plain.png",
|
|
535
|
+
"tests/image/references/chrome-real-gpu/webgpu/outline-hidden.png"
|
|
536
|
+
],
|
|
537
|
+
"verdict": "shots-concepts__post-processing.md; shots-api__post.md"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"id": "concepts/post-processing/vignette-and-grade",
|
|
541
|
+
"pages": ["concepts/post-processing#Color grading and the vignette"],
|
|
542
|
+
"source": "reference",
|
|
543
|
+
"images": ["webgpu/lut-cube.png", "webgpu/vignette.png"],
|
|
544
|
+
"alt": "The grading test scene with a grading table, and with a vignette.",
|
|
545
|
+
"caption": "A grading table and a vignette on the same scene.",
|
|
546
|
+
"files": [
|
|
547
|
+
"tests/image/manifest.ts",
|
|
548
|
+
"tests/image/references/chrome-real-gpu/webgpu/lut-cube.png",
|
|
549
|
+
"tests/image/references/chrome-real-gpu/webgpu/vignette.png"
|
|
550
|
+
],
|
|
551
|
+
"verdict": "shots-concepts__post-processing.md",
|
|
552
|
+
"note": "lut-vignette.png shows both at once."
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"id": "concepts/post-processing/sharpen",
|
|
556
|
+
"pages": ["concepts/post-processing#Sharpening"],
|
|
557
|
+
"source": "scripted",
|
|
558
|
+
"images": ["webgpu/sharpen.png"],
|
|
559
|
+
"steps": "Draw sharpen-sketch.ts with no query in the image page's hold mode at 320x180. Crop the same small area of that frame and of sharpen.png, enlarge 4x with nearest-neighbour scaling, put side by side.",
|
|
560
|
+
"alt": "A small patch of fine detail before and after sharpening, enlarged.",
|
|
561
|
+
"caption": "Sharpening, enlarged 4 times.",
|
|
562
|
+
"files": [
|
|
563
|
+
"tests/pages/sketches/sharpen-sketch.ts",
|
|
564
|
+
"tests/image/references/chrome-real-gpu/webgpu/sharpen.png"
|
|
565
|
+
],
|
|
566
|
+
"verdict": "shots-concepts__post-processing.md"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "concepts/post-processing/still-accumulation",
|
|
570
|
+
"pages": ["concepts/post-processing#Still-camera accumulation"],
|
|
571
|
+
"source": "reference",
|
|
572
|
+
"images": ["webgpu/antialias-none.png", "webgpu/still.png"],
|
|
573
|
+
"steps": "Crop both at the same bar or box edge, enlarge 4x with nearest-neighbour scaling, side by side.",
|
|
574
|
+
"alt": "An edge without anti-aliasing and the same edge after a still camera blends its frames, enlarged.",
|
|
575
|
+
"caption": "Still-camera accumulation, enlarged 4 times.",
|
|
576
|
+
"files": [
|
|
577
|
+
"tests/image/manifest.ts",
|
|
578
|
+
"tests/image/references/chrome-real-gpu/webgpu/antialias-none.png",
|
|
579
|
+
"tests/image/references/chrome-real-gpu/webgpu/still.png"
|
|
580
|
+
],
|
|
581
|
+
"verdict": "shots-concepts__post-processing.md"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "concepts/quality-presets/render-scale-softness",
|
|
585
|
+
"pages": [
|
|
586
|
+
"concepts/quality-presets#Dynamic resolution",
|
|
587
|
+
"concepts/post-processing#Below the whole canvas's render scale",
|
|
588
|
+
"api/quality#Render scale",
|
|
589
|
+
"guides/phones#Render scale"
|
|
590
|
+
],
|
|
591
|
+
"source": "reference",
|
|
592
|
+
"images": ["webgpu/scene.png", "webgpu/render-scale-75.png", "webgpu/render-scale-50.png"],
|
|
593
|
+
"steps": "Crop the same area of each, enlarge with nearest-neighbour scaling. The render-scale-100 test reuses scene.png. On api/quality and guides/phones the 1 and 0.5 panels are enough.",
|
|
594
|
+
"alt": "A detail of the same frame at render scales 1, 0.75 and 0.5, enlarged: tile seams and box edges soften at 0.5.",
|
|
595
|
+
"caption": "Fine lines get softer at a lower render scale.",
|
|
596
|
+
"files": [
|
|
597
|
+
"tests/pages/sketches/boxes-sketch.ts",
|
|
598
|
+
"tests/image/manifest.ts",
|
|
599
|
+
"tests/image/references/chrome-real-gpu/webgpu/scene.png",
|
|
600
|
+
"tests/image/references/chrome-real-gpu/webgpu/render-scale-75.png",
|
|
601
|
+
"tests/image/references/chrome-real-gpu/webgpu/render-scale-50.png"
|
|
602
|
+
],
|
|
603
|
+
"verdict": "shots-concepts__quality-presets.md; shots-concepts__post-processing.md; shots-api__quality.md; shots-guides__phones.md"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"id": "concepts/quality-presets/presets-side-by-side",
|
|
607
|
+
"pages": ["concepts/quality-presets#The settings of each preset"],
|
|
608
|
+
"source": "scripted",
|
|
609
|
+
"steps": "WebGPU browser, development build: examples/?demo=skyway&hold=1&preset=low, then medium, high, ultra. Join the four held frames. Not the island: it overrides the presets.",
|
|
610
|
+
"alt": "The same Skyway view at the Low, Medium, High and Ultra presets.",
|
|
611
|
+
"caption": "Each preset on one scene. Skyway also draws fewer facades and less traffic on the lighter presets.",
|
|
612
|
+
"files": ["examples/showcase/skyway/", "packages/engine/src/quality/presets.ts"],
|
|
613
|
+
"verdict": "shots-concepts__quality-presets.md; shots-concepts__quality-preset-tables.md",
|
|
614
|
+
"note": "Show it on this page only, not on the generated tables page."
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"id": "concepts/quality-preset-tables/stats-overlay-preset",
|
|
618
|
+
"pages": ["concepts/quality-preset-tables#Rules of the preset check"],
|
|
619
|
+
"source": "scripted",
|
|
620
|
+
"steps": "examples/?demo=skyway&check=fresh&stats=open, live (click the header if it stays collapsed). Wait until the preset in the heading stops changing. Capture the top-right corner with the open card.",
|
|
621
|
+
"alt": "The stats overlay heading with the GPU path, the preset the check kept and the render scale, and the frame rate against the target.",
|
|
622
|
+
"caption": "The preset that the check kept on one machine.",
|
|
623
|
+
"files": ["packages/engine/src/debug/overlay.ts", "examples/lib/run.ts"],
|
|
624
|
+
"verdict": "shots-concepts__quality-preset-tables.md",
|
|
625
|
+
"note": "The tables page is generated: the image needs a slot in tools/lib/docs.ts."
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"id": "concepts/render-graph/graph-dump",
|
|
629
|
+
"pages": ["concepts/render-graph#The text dump"],
|
|
630
|
+
"source": "scripted",
|
|
631
|
+
"steps": "Development build on WebGPU with HDR color: run the security-camera demo. In the console: (await __null3dInspector.inspect('graph')).graph. Render with dot -Tsvg and export as webp.",
|
|
632
|
+
"alt": "The render graph of the security camera demo, with its scene pass and copy pass, drawn by Graphviz.",
|
|
633
|
+
"caption": "render.dumpGraph() output, drawn as a graph.",
|
|
634
|
+
"files": [
|
|
635
|
+
"packages/engine/src/debug/channel.ts",
|
|
636
|
+
"packages/engine/src/page/engine.ts",
|
|
637
|
+
"examples/security-camera/"
|
|
638
|
+
],
|
|
639
|
+
"verdict": "shots-concepts__render-graph.md"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"id": "concepts/render-layers/layers-cottages",
|
|
643
|
+
"pages": [
|
|
644
|
+
"concepts/render-layers#under the opening paragraph",
|
|
645
|
+
"api/cameras#Layers",
|
|
646
|
+
"api/objects#Layers"
|
|
647
|
+
],
|
|
648
|
+
"source": "reference",
|
|
649
|
+
"images": ["webgpu/demo-layers.png"],
|
|
650
|
+
"alt": "Brick cottages drawn without their roof layer, so the rooms inside show, with a red map pin above each house.",
|
|
651
|
+
"caption": "The camera's mask leaves out the roof layer and draws the pin layer.",
|
|
652
|
+
"files": [
|
|
653
|
+
"examples/layers/sketch.ts",
|
|
654
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-layers.png"
|
|
655
|
+
],
|
|
656
|
+
"verdict": "shots-concepts__render-layers.md; shots-api__cameras.md; shots-api__objects.md"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"id": "concepts/render-layers/layers-two-masks",
|
|
660
|
+
"pages": ["concepts/render-layers#Setting layers"],
|
|
661
|
+
"source": "scripted",
|
|
662
|
+
"steps": "Layers demo with ?hold=1 (street and roofs) and ?hold=3 (street, roofs and pins). Avoid the edges at 2 s and 4 s. Side by side.",
|
|
663
|
+
"alt": "The same street with roofs and no pins, then with roofs and pins.",
|
|
664
|
+
"caption": "camera.setLayers changes what one camera draws.",
|
|
665
|
+
"files": ["examples/layers/sketch.ts"],
|
|
666
|
+
"verdict": "shots-concepts__render-layers.md"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"id": "concepts/shadows/cascade-count",
|
|
670
|
+
"pages": ["concepts/shadows#under the settings table"],
|
|
671
|
+
"source": "reference",
|
|
672
|
+
"images": [
|
|
673
|
+
"webgpu/shadows-cascades-1.png",
|
|
674
|
+
"webgpu/shadows-cascades-2.png",
|
|
675
|
+
"webgpu/shadows-cascades-4.png"
|
|
676
|
+
],
|
|
677
|
+
"steps": "Crop every frame to x 80-320, y 70-260. The full frames look the same at page width.",
|
|
678
|
+
"alt": "The same sphere shadow with one, two and four cascades: coarse and stepped with one, sharp with two and four.",
|
|
679
|
+
"caption": "Cascade count, cropped.",
|
|
680
|
+
"files": [
|
|
681
|
+
"tests/image/manifest.ts",
|
|
682
|
+
"tests/image/references/chrome-real-gpu/webgpu/shadows-cascades-1.png",
|
|
683
|
+
"tests/image/references/chrome-real-gpu/webgpu/shadows-cascades-2.png",
|
|
684
|
+
"tests/image/references/chrome-real-gpu/webgpu/shadows-cascades-4.png"
|
|
685
|
+
],
|
|
686
|
+
"verdict": "shots-concepts__shadows.md"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"id": "concepts/shadows/contact-shadows",
|
|
690
|
+
"pages": ["concepts/shadows#Contact shadows", "api/lights#Contact shadows"],
|
|
691
|
+
"source": "reference",
|
|
692
|
+
"images": ["webgpu/contact-shadows.png", "webgpu/contact-shadows-off.png"],
|
|
693
|
+
"steps": "Crop both to x 110-400, y 110-200 (the pebbles and the crate's base) and enlarge 2x.",
|
|
694
|
+
"alt": "Pebbles on the ground, with and without contact shadows.",
|
|
695
|
+
"caption": "Contact shadows on and off, cropped and enlarged.",
|
|
696
|
+
"files": [
|
|
697
|
+
"tests/image/manifest.ts",
|
|
698
|
+
"tests/image/references/chrome-real-gpu/webgpu/contact-shadows.png",
|
|
699
|
+
"tests/image/references/chrome-real-gpu/webgpu/contact-shadows-off.png"
|
|
700
|
+
],
|
|
701
|
+
"verdict": "shots-concepts__shadows.md; shots-api__lights.md"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"id": "concepts/shadows/hero-shadow",
|
|
705
|
+
"pages": ["concepts/shadows#A hero shadow", "api/lights#hero shadow"],
|
|
706
|
+
"source": "reference",
|
|
707
|
+
"images": ["webgpu/demo-hero-shadow.png"],
|
|
708
|
+
"alt": "A red car on a launch yard at sunset, with a sharp hero shadow beside the stone blocks' cascade shadows.",
|
|
709
|
+
"caption": "A hero shadow beside cascade shadows.",
|
|
710
|
+
"files": [
|
|
711
|
+
"examples/hero-shadow/",
|
|
712
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-hero-shadow.png"
|
|
713
|
+
],
|
|
714
|
+
"verdict": "shots-concepts__shadows.md; shots-api__lights.md",
|
|
715
|
+
"note": "Option: a second capture at about 4 s gives the same view with the hero shadow off."
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"id": "concepts/shadows/spot-point-shadows",
|
|
719
|
+
"pages": ["concepts/shadows#Spot and point light shadows"],
|
|
720
|
+
"source": "reference",
|
|
721
|
+
"images": ["webgpu/spot-shadows.png", "webgpu/point-shadows.png"],
|
|
722
|
+
"alt": "Shadows from two spot lights, and from one point light on the ground and a wall.",
|
|
723
|
+
"caption": "Spot and point light shadows.",
|
|
724
|
+
"files": [
|
|
725
|
+
"tests/image/manifest.ts",
|
|
726
|
+
"tests/image/references/chrome-real-gpu/webgpu/spot-shadows.png",
|
|
727
|
+
"tests/image/references/chrome-real-gpu/webgpu/point-shadows.png"
|
|
728
|
+
],
|
|
729
|
+
"verdict": "shots-concepts__shadows.md"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"id": "guides/multiple-views/split-screen",
|
|
733
|
+
"pages": [
|
|
734
|
+
"guides/multiple-views#A split screen",
|
|
735
|
+
"api/scene#Multiple views",
|
|
736
|
+
"api/cameras#Several cameras (beside the createView paragraph)"
|
|
737
|
+
],
|
|
738
|
+
"source": "reference",
|
|
739
|
+
"images": ["webgpu/demo-multiple-views.png"],
|
|
740
|
+
"alt": "One canvas split into a high wide view and a low view among standing stones.",
|
|
741
|
+
"caption": "Two cameras in one frame.",
|
|
742
|
+
"files": [
|
|
743
|
+
"examples/multiple-views/",
|
|
744
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-multiple-views.png"
|
|
745
|
+
],
|
|
746
|
+
"verdict": "shots-guides__multiple-views.md; shots-api__scene.md; shots-api__cameras.md"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"id": "guides/multiple-views/picture-in-picture",
|
|
750
|
+
"pages": ["guides/multiple-views#A picture in picture"],
|
|
751
|
+
"source": "scripted",
|
|
752
|
+
"steps": "Pick Inset with the demo's layout choice button (the V key also posts a toast). Hold 1 s. Alternative: webgpu/demo-look-at.png already has a picture in picture.",
|
|
753
|
+
"alt": "A wide view with a small inset of the low camera in the top-right corner.",
|
|
754
|
+
"caption": "The inset layout.",
|
|
755
|
+
"files": ["examples/multiple-views/", "examples/demos.ts"],
|
|
756
|
+
"verdict": "shots-guides__multiple-views.md"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"id": "guides/debugging/in-page-inspector",
|
|
760
|
+
"pages": ["guides/debugging#The in-page inspector", "api/debug#The in-page inspector"],
|
|
761
|
+
"source": "scripted",
|
|
762
|
+
"steps": "Dev server, live (a held page opens no panel): examples/index.html?demo=objects&inspect at 1280x720. Click the row \"crate 0\" (child of \"table\") in the tree, wait one second, capture the page.",
|
|
763
|
+
"alt": "The inspector lists the scene as a tree, with one crate outlined in the view.",
|
|
764
|
+
"caption": "The in-page inspector.",
|
|
765
|
+
"files": ["examples/objects/"],
|
|
766
|
+
"verdict": "shots-guides__debugging.md; shots-api__debug.md"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"id": "guides/custom-passes/reflection-water",
|
|
770
|
+
"pages": ["guides/custom-passes#reflection pass recipe"],
|
|
771
|
+
"source": "reference",
|
|
772
|
+
"images": ["webgpu/reflection-water.png"],
|
|
773
|
+
"alt": "Boxes and a ball mirror in rippled water through a reflection pass.",
|
|
774
|
+
"caption": "A reflection pass read by a water material.",
|
|
775
|
+
"files": [
|
|
776
|
+
"tests/pages/sketches/reflection-sketch.ts",
|
|
777
|
+
"tests/image/references/chrome-real-gpu/webgpu/reflection-water.png"
|
|
778
|
+
],
|
|
779
|
+
"verdict": "shots-guides__custom-passes.md",
|
|
780
|
+
"note": "Replaces the rejected reflection-pass shot."
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"id": "guides/baked-light-data/probe-validity",
|
|
784
|
+
"pages": ["guides/baked-light-data#after the validity paragraph"],
|
|
785
|
+
"source": "reference",
|
|
786
|
+
"images": ["webgpu/probe-grid-wall-leak.png", "webgpu/probe-grid-wall.png"],
|
|
787
|
+
"alt": "Light leaks under a partition when every probe counts as valid; with the validity mask, contact shadows stay dark.",
|
|
788
|
+
"caption": "Why the validity member matters.",
|
|
789
|
+
"files": [
|
|
790
|
+
"tests/pages/sketches/probe-grid-sketch.ts",
|
|
791
|
+
"tests/image/references/chrome-real-gpu/webgpu/probe-grid-wall-leak.png",
|
|
792
|
+
"tests/image/references/chrome-real-gpu/webgpu/probe-grid-wall.png"
|
|
793
|
+
],
|
|
794
|
+
"verdict": "shots-guides__baked-light-data.md"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": "guides/debugging/stats-overlay-card",
|
|
798
|
+
"pages": ["guides/debugging#Measure"],
|
|
799
|
+
"source": "scripted",
|
|
800
|
+
"steps": "Dev server, live: examples/index.html?demo=objects. Click the overlay header, wait 2 s, capture the card only.",
|
|
801
|
+
"alt": "The open stats card over the objects demo, with GPU steps for shadows, bloom, ambient occlusion and the vignette, and Memory by system.",
|
|
802
|
+
"caption": "The stats card.",
|
|
803
|
+
"files": ["examples/objects/", "examples/lib/run.ts"],
|
|
804
|
+
"verdict": "shots-guides__debugging.md"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"id": "guides/debugging/debug-view-wireframe",
|
|
808
|
+
"pages": ["guides/debugging#See the scene with debug drawing"],
|
|
809
|
+
"source": "scripted",
|
|
810
|
+
"steps": "Hold examples/objects/sketch.ts at 2.5 s with view=wireframe and compile=wait at 1280x720.",
|
|
811
|
+
"alt": "The objects demo in the wireframe view.",
|
|
812
|
+
"caption": "A debug view from the page address.",
|
|
813
|
+
"files": ["examples/objects/sketch.ts"],
|
|
814
|
+
"verdict": "shots-guides__debugging.md"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"id": "guides/debugging/sketch-worker-breakpoint",
|
|
818
|
+
"pages": ["guides/debugging#Logs and breakpoints in the sketch"],
|
|
819
|
+
"source": "manual",
|
|
820
|
+
"steps": "Dev server: objects demo, Sources panel, pick the \"null3d-sketch\" thread, set a breakpoint in examples/objects/sketch.ts inside its update callback.",
|
|
821
|
+
"alt": "Chrome DevTools Sources panel with the null3d-sketch thread picked and a breakpoint in the objects demo's update callback.",
|
|
822
|
+
"caption": "The sketch runs in the null3d-sketch worker.",
|
|
823
|
+
"files": ["examples/objects/sketch.ts", "packages/engine/src/page/engine.ts"],
|
|
824
|
+
"verdict": "shots-guides__debugging.md"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"id": "guides/deterministic-simulation/replay-demo",
|
|
828
|
+
"pages": ["guides/deterministic-simulation#Where the player looks"],
|
|
829
|
+
"source": "reference",
|
|
830
|
+
"images": ["webgpu/demo-replay.png"],
|
|
831
|
+
"alt": "A walled court at dusk with glowing gold orbs, seen from the player's start point in the deterministic simulation demo.",
|
|
832
|
+
"caption": "The run's start, built from the seed.",
|
|
833
|
+
"files": ["examples/replay/", "tests/image/references/chrome-real-gpu/webgpu/demo-replay.png"],
|
|
834
|
+
"verdict": "shots-guides__deterministic-simulation.md"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"id": "guides/first-use-shaders/first-use-network",
|
|
838
|
+
"pages": ["guides/first-use-shaders#after the intro"],
|
|
839
|
+
"source": "manual",
|
|
840
|
+
"steps": "Showroom demo in Chrome on WebGPU. Network filter \"shaders-\". Wait for the first frame, clear the list, double-click the car. One new row: shaders-picking-wgsl. Select it and capture.",
|
|
841
|
+
"alt": "The network panel shows a shader file that downloads on first use.",
|
|
842
|
+
"caption": "The pick shaders download only when the sketch first picks.",
|
|
843
|
+
"files": ["examples/lib/cinematic.ts", "crates/null3d-shaders/shaders.toml"],
|
|
844
|
+
"verdict": "shots-guides__first-use-shaders.md",
|
|
845
|
+
"note": "The page is generated by tools/lib/first-use-docs.ts: add the image there."
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"id": "guides/lens-kit/lens-marks",
|
|
849
|
+
"pages": ["guides/lens-kit#How the parts draw"],
|
|
850
|
+
"source": "scripted",
|
|
851
|
+
"steps": "tests/pages/image.html?sketch=/tests/pages/sketches/lens-kit-sketch.ts%3Flook%3D<look>&hold=0&gpu=webgpu&size=1280x720 for aberration, streak, grain, speed, and once with no look. Crop tight on the three bright bars for the streak; zoom a patch for the grain.",
|
|
852
|
+
"alt": "A plain checker wall, then red and blue fringes that grow toward the edges, a sideways streak on bright bars, film grain and speed blur.",
|
|
853
|
+
"caption": "The lens kit's four marks beside the plain wall.",
|
|
854
|
+
"files": ["tests/pages/sketches/lens-kit-sketch.ts"],
|
|
855
|
+
"verdict": "shots-guides__lens-kit.md"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"id": "guides/loading-screens/loading-card",
|
|
859
|
+
"pages": ["guides/loading-screens#Show progress on the page"],
|
|
860
|
+
"source": "scripted",
|
|
861
|
+
"steps": "Playwright Chromium with CDP Network.emulateNetworkConditions (about 150 ms, 200 KB/s). Open ?demo=gltf-model live. Wait until .loader__task-text reads \"Downloading scene files\" and .loader__fill is between 20% and 80%. Screenshot the canvas's parent.",
|
|
862
|
+
"alt": "A loading card over the canvas, with the row 'Downloading scene files', its byte count and a bar partway across.",
|
|
863
|
+
"caption": "Progress shown by the page.",
|
|
864
|
+
"files": ["examples/lib/progress.ts", "examples/lib/run.ts", "examples/gltf-model/"],
|
|
865
|
+
"verdict": "shots-guides__loading-screens.md"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"id": "guides/performance/overdraw-view",
|
|
869
|
+
"pages": ["guides/performance#The depth prepass"],
|
|
870
|
+
"source": "reference",
|
|
871
|
+
"images": ["webgpu/debug-view-overdraw.png"],
|
|
872
|
+
"alt": "A small test scene in the overdraw view, brighter where surfaces overlap under a see-through box.",
|
|
873
|
+
"caption": "The overdraw view.",
|
|
874
|
+
"files": [
|
|
875
|
+
"tests/pages/sketches/debug-view-sketch.ts",
|
|
876
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-overdraw.png"
|
|
877
|
+
],
|
|
878
|
+
"verdict": "shots-guides__performance.md",
|
|
879
|
+
"note": "Low value. Keep only if the page keeps the overdraw sentence."
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"id": "guides/phones/presets-low-high",
|
|
883
|
+
"pages": ["guides/phones#The preset on a phone"],
|
|
884
|
+
"source": "scripted",
|
|
885
|
+
"steps": "tests/pages/image.html?sketch=/examples/showcase/island/sketch.ts&size=1280x720&preset=low&hold=5, and the same with preset=high, both on WebGPU on one machine. Crop the same town area.",
|
|
886
|
+
"alt": "The island's town at the Low and High presets: ambient occlusion, shadow detail and edge smoothing differ.",
|
|
887
|
+
"caption": "Low against High. Do not mention pixel ratio.",
|
|
888
|
+
"files": ["examples/showcase/island/sketch.ts", "tests/image/script-runs.ts"],
|
|
889
|
+
"verdict": "shots-guides__phones.md"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"id": "guides/phones/chrome-inspect",
|
|
893
|
+
"pages": ["guides/phones#Testing on real devices"],
|
|
894
|
+
"source": "manual",
|
|
895
|
+
"steps": "Open only a null3D demo tab on the phone before the capture.",
|
|
896
|
+
"alt": "chrome://inspect on a computer, listing an Android phone and a null3D demo tab with its inspect link.",
|
|
897
|
+
"caption": "Remote debugging an Android phone.",
|
|
898
|
+
"files": [],
|
|
899
|
+
"verdict": "shots-guides__phones.md"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"id": "guides/phones/safari-develop-menu",
|
|
903
|
+
"pages": ["guides/phones#Testing on real devices"],
|
|
904
|
+
"source": "manual",
|
|
905
|
+
"alt": "Safari's Develop menu on a Mac listing a connected iPhone.",
|
|
906
|
+
"caption": "Remote debugging an iPhone.",
|
|
907
|
+
"files": [],
|
|
908
|
+
"verdict": "shots-guides__phones.md",
|
|
909
|
+
"note": "The page should say to turn on \"Show features for web developers\" in Safari's Advanced settings first."
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"id": "guides/screens/lcd-close-up",
|
|
913
|
+
"pages": ["guides/screens#The LCD look"],
|
|
914
|
+
"source": "scripted",
|
|
915
|
+
"steps": "shot --script on canvas-screen at 1280x720 with: \"0 set #camera.position=0,-1.15,3.9\" and \"1 shot lcd\". Crop to the panel.",
|
|
916
|
+
"alt": "A close view of the console screen: red, green and blue sub-pixel bars, dark row gaps and a few dead texels.",
|
|
917
|
+
"caption": "The LCD look up close.",
|
|
918
|
+
"files": ["examples/canvas-screen/"],
|
|
919
|
+
"verdict": "shots-guides__screens.md"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"id": "guides/screens/boot-glitch",
|
|
923
|
+
"pages": ["guides/screens#The LCD look (beside screen.boot())"],
|
|
924
|
+
"source": "scripted",
|
|
925
|
+
"steps": "Hold canvas-screen at 2.8 s (?hold=2.8 or shot --time 2.8) at 1280x720 or larger; crop one wall panel.",
|
|
926
|
+
"alt": "A wall panel 0.3 s into its boot: rows torn sideways, a band rolling up and the picture still dim.",
|
|
927
|
+
"caption": "screen.boot().",
|
|
928
|
+
"files": ["examples/canvas-screen/"],
|
|
929
|
+
"verdict": "shots-guides__screens.md"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"id": "guides/start-time/creek-first-frame",
|
|
933
|
+
"pages": ["guides/start-time#Draw the first frame before the large models"],
|
|
934
|
+
"source": "scripted",
|
|
935
|
+
"steps": "(1) examples/index.html?demo=creek&bench from a production build; stall the garden and plant model requests with a route that does not answer; await window.__null3dEngine.firstFrame; capture. (2) Same with &grown; await firstFrame; capture at once. Side by side.",
|
|
936
|
+
"alt": "The creek at its first frame with the cliff, water and steps, beside the same view once the statue, gate, lanterns and plants are in.",
|
|
937
|
+
"caption": "First frame, then the large models.",
|
|
938
|
+
"files": ["examples/showcase/creek/sketch.ts"],
|
|
939
|
+
"verdict": "shots-guides__start-time.md"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"id": "guides/testing/hold-mode-frame",
|
|
943
|
+
"pages": ["guides/testing#Frames that stay the same on every run", "cli/null3d#shot"],
|
|
944
|
+
"source": "scripted",
|
|
945
|
+
"images": ["webgpu/demo-hold-mode.png"],
|
|
946
|
+
"steps": "For cli/null3d use a real shot image from the repository root: bunx @null3d/cli shot --page \"/examples/?demo=hold-mode\" --time 3 --out hold-mode.png. guides/testing can use the reference.",
|
|
947
|
+
"alt": "Glossy balls bouncing in a stone pen, the frame that a hold at 3 seconds draws.",
|
|
948
|
+
"caption": "A held frame is the same on every run.",
|
|
949
|
+
"files": [
|
|
950
|
+
"examples/hold-mode/sketch.ts",
|
|
951
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-hold-mode.png"
|
|
952
|
+
],
|
|
953
|
+
"verdict": "shots-guides__testing.md; shots-cli__null3d.md"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"id": "guides/testing/save-recording",
|
|
957
|
+
"pages": ["guides/testing#Record a session that went wrong"],
|
|
958
|
+
"source": "scripted",
|
|
959
|
+
"steps": "Open ?demo=hold-mode&record, wait for the first frame, capture the page. Not the replay demo: it records its own input.",
|
|
960
|
+
"alt": "The hold mode demo with the Save recording button at the bottom left.",
|
|
961
|
+
"caption": "A page opened with ?record.",
|
|
962
|
+
"files": ["packages/engine/src/page/record-button.ts", "examples/hold-mode/"],
|
|
963
|
+
"verdict": "shots-guides__testing.md"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"id": "cookbook/index/picking",
|
|
967
|
+
"pages": ["cookbook/index#Select objects with the pointer"],
|
|
968
|
+
"source": "reference",
|
|
969
|
+
"images": ["webgpu/demo-picking.png"],
|
|
970
|
+
"alt": "Six pieces on a plinth in a dark gallery, with the red cube outlined after a click.",
|
|
971
|
+
"caption": "The picking demo.",
|
|
972
|
+
"files": [
|
|
973
|
+
"examples/picking/",
|
|
974
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-picking.png"
|
|
975
|
+
],
|
|
976
|
+
"verdict": "shots-cookbook__index.md"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"id": "cookbook/index/walk-to-click",
|
|
980
|
+
"pages": ["cookbook/index#Walk to the point that the user clicks"],
|
|
981
|
+
"source": "scripted",
|
|
982
|
+
"steps": "Put the recipe in a project's sketch.ts; bunx @null3d/cli shot --gpu webgpu --script walk.txt with lines \"0.5 pointer down 900 500\", \"0.6 pointer up\", \"1.1 shot walking\".",
|
|
983
|
+
"alt": "A yellow capsule that walks toward a white marker on a flat ground.",
|
|
984
|
+
"caption": "The recipe mid-walk.",
|
|
985
|
+
"files": ["docs/cookbook/index.md"],
|
|
986
|
+
"verdict": "shots-cookbook__index.md"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "cookbook/index/crowd",
|
|
990
|
+
"pages": ["cookbook/index#A crowd of animated characters"],
|
|
991
|
+
"source": "scripted",
|
|
992
|
+
"steps": "After a cookbook test run: /tests/pages/image.html?gpu=webgpu&hold=2&size=1280x720&sketch=/tests/test-results/skill-sketches/hold/docs-cookbook-index-a-crowd-of-animated-characters.ts",
|
|
993
|
+
"alt": "A crowd of 64 cartoon knights walking.",
|
|
994
|
+
"caption": "The crowd recipe. Start times are random, so each run differs a little.",
|
|
995
|
+
"files": ["tests/lib/skill-sketches.ts"],
|
|
996
|
+
"verdict": "shots-cookbook__index.md"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"id": "cookbook/index/time-of-day",
|
|
1000
|
+
"pages": ["cookbook/index#A sky with a moving sun and fog"],
|
|
1001
|
+
"source": "reference",
|
|
1002
|
+
"images": ["webgpu/demo-time-of-day.png"],
|
|
1003
|
+
"alt": "A lighthouse island at sunset with the sun on the horizon.",
|
|
1004
|
+
"caption": "The time of day demo.",
|
|
1005
|
+
"files": [
|
|
1006
|
+
"examples/time-of-day/",
|
|
1007
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-time-of-day.png"
|
|
1008
|
+
],
|
|
1009
|
+
"verdict": "shots-cookbook__index.md"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"id": "shaders/builtins/builtins",
|
|
1013
|
+
"pages": ["shaders/builtins#under the opening example"],
|
|
1014
|
+
"source": "reference",
|
|
1015
|
+
"images": ["webgpu/custom-builtins.png"],
|
|
1016
|
+
"alt": "Five spheres share one material. Each takes its own hue from its position and has stripes and a world-space checker. A far plane of the same material is darker.",
|
|
1017
|
+
"caption": "One material that reads frame, camera and object values. It is not the opening example.",
|
|
1018
|
+
"files": [
|
|
1019
|
+
"tests/pages/sketches/custom-builtins-sketch.ts",
|
|
1020
|
+
"tests/image/references/chrome-real-gpu/webgpu/custom-builtins.png"
|
|
1021
|
+
],
|
|
1022
|
+
"verdict": "shots-shaders__builtins.md"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"id": "shaders/library/noise-kinds",
|
|
1026
|
+
"pages": ["shaders/library#null3d::noise"],
|
|
1027
|
+
"source": "scripted",
|
|
1028
|
+
"steps": "New test page: five unlit quads in a row at 960x200, toneMapped: false, gray from value2(uv*8), perlin2(uv*8)*0.5+0.5, simplex2(uv*8)*0.5+0.5, worley2(uv*8), fbm2(uv*8, 4u)*0.5+0.5. Labels in an HTML overlay or the caption.",
|
|
1029
|
+
"alt": "Five tiles of 2D noise: value, Perlin, simplex, Worley and fractal.",
|
|
1030
|
+
"caption": "The five kinds of 2D noise.",
|
|
1031
|
+
"files": ["tools/lib/shader-library.ts", "tests/pages/shader-library.ts"],
|
|
1032
|
+
"verdict": "shots-shaders__library.md",
|
|
1033
|
+
"note": "The page is generated by tools/lib/shader-library.ts: add the image there."
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"id": "shaders/surface-functions/custom-surface",
|
|
1037
|
+
"pages": ["shaders/surface-functions#under the opening example"],
|
|
1038
|
+
"source": "reference",
|
|
1039
|
+
"images": ["webgpu/custom-surface.png"],
|
|
1040
|
+
"alt": "Two rows of spheres and planes. The top row pairs three standard materials with surface functions that keep their look. The bottom row shows surface functions that change it: glowing stripes, colored rings and a plane colored by its face.",
|
|
1041
|
+
"caption": "Top row: each pair must match. Bottom row: surface functions that change the look.",
|
|
1042
|
+
"files": [
|
|
1043
|
+
"tests/pages/sketches/custom-material-sketch.ts",
|
|
1044
|
+
"tests/image/references/chrome-real-gpu/webgpu/custom-surface.png"
|
|
1045
|
+
],
|
|
1046
|
+
"verdict": "shots-shaders__surface-functions.md"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"id": "shaders/surface-functions/vertex-offset",
|
|
1050
|
+
"pages": ["shaders/surface-functions#Vertex offsets"],
|
|
1051
|
+
"source": "reference",
|
|
1052
|
+
"images": ["webgpu/custom-vertex-offset.png"],
|
|
1053
|
+
"alt": "Two planes bent into waves, a sphere swollen in bands, and a twisted torus beside a plain one, all moved by vertex offsets.",
|
|
1054
|
+
"caption": "The wave from this section.",
|
|
1055
|
+
"files": [
|
|
1056
|
+
"tests/pages/sketches/custom-vertex-offset-sketch.ts",
|
|
1057
|
+
"tests/image/references/chrome-real-gpu/webgpu/custom-vertex-offset.png"
|
|
1058
|
+
],
|
|
1059
|
+
"verdict": "shots-shaders__surface-functions.md"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"id": "porting/threejs-postprocessing/tone-curves",
|
|
1063
|
+
"pages": ["porting/threejs-postprocessing#Delete the composer", "api/three-compat#Tone curves"],
|
|
1064
|
+
"source": "reference",
|
|
1065
|
+
"images": [
|
|
1066
|
+
"webgpu/tone-none.png",
|
|
1067
|
+
"webgpu/tone-aces.png",
|
|
1068
|
+
"webgpu/tone-agx.png",
|
|
1069
|
+
"webgpu/tone-agx-punchy.png",
|
|
1070
|
+
"webgpu/tone-neutral.png",
|
|
1071
|
+
"webgpu/tone-reinhard.png",
|
|
1072
|
+
"webgpu/tone-cineon.png"
|
|
1073
|
+
],
|
|
1074
|
+
"steps": "Tile with each curve's name. On api/three-compat the reinhard, cineon and aces panels are enough.",
|
|
1075
|
+
"alt": "The same tiles of rising brightness under none, aces, agx, agx-punchy, neutral, reinhard and cineon.",
|
|
1076
|
+
"caption": "Seven tone curves. reinhard and cineon come from @null3d/three-compat.",
|
|
1077
|
+
"files": [
|
|
1078
|
+
"tests/pages/sketches/bright-sketch.ts",
|
|
1079
|
+
"tests/pages/lib/bright-scene.ts",
|
|
1080
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-none.png",
|
|
1081
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-aces.png",
|
|
1082
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-agx.png",
|
|
1083
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-agx-punchy.png",
|
|
1084
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-neutral.png",
|
|
1085
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-reinhard.png",
|
|
1086
|
+
"tests/image/references/chrome-real-gpu/webgpu/tone-cineon.png"
|
|
1087
|
+
],
|
|
1088
|
+
"verdict": "shots-porting__threejs-postprocessing.md; shots-api__three-compat.md"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"id": "porting/threejs-postprocessing/effects-off-on",
|
|
1092
|
+
"pages": ["porting/threejs-postprocessing#Example: fog from the depth"],
|
|
1093
|
+
"source": "reference",
|
|
1094
|
+
"images": ["webgpu/effects-off.png", "webgpu/effects.png"],
|
|
1095
|
+
"alt": "A scene without and with two custom effects: a red and blue split and a depth fog.",
|
|
1096
|
+
"caption": "Both custom effects named in the caption; the fog changes the picture most.",
|
|
1097
|
+
"files": [
|
|
1098
|
+
"tests/pages/sketches/effects-sketch.ts",
|
|
1099
|
+
"tests/image/references/chrome-real-gpu/webgpu/effects-off.png",
|
|
1100
|
+
"tests/image/references/chrome-real-gpu/webgpu/effects.png"
|
|
1101
|
+
],
|
|
1102
|
+
"verdict": "shots-porting__threejs-postprocessing.md",
|
|
1103
|
+
"note": "Replaces the rejected rgb-shift shot."
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"id": "porting/threejs-overview/night-town-two-engines",
|
|
1107
|
+
"pages": ["porting/threejs-overview#after the first paragraph"],
|
|
1108
|
+
"source": "reference",
|
|
1109
|
+
"images": ["webgpu/compare-night-town-threejs.png", "webgpu/compare-night-town-null3d.png"],
|
|
1110
|
+
"steps": "Join the two into one file.",
|
|
1111
|
+
"alt": "The same rainy night town, seen from above, drawn by three.js on the left and by null3D on the right.",
|
|
1112
|
+
"caption": "Each half was written for its own engine, so it is not a line-by-line port.",
|
|
1113
|
+
"files": [
|
|
1114
|
+
"tests/pages/compare.html",
|
|
1115
|
+
"examples/compare/night-town/",
|
|
1116
|
+
"tests/image/references/chrome-real-gpu/webgpu/compare-night-town-threejs.png",
|
|
1117
|
+
"tests/image/references/chrome-real-gpu/webgpu/compare-night-town-null3d.png"
|
|
1118
|
+
],
|
|
1119
|
+
"verdict": "shots-porting__threejs-overview.md"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"id": "porting/threejs-materials/toon-and-matcap",
|
|
1123
|
+
"pages": ["porting/threejs-materials#Recipes"],
|
|
1124
|
+
"source": "scripted",
|
|
1125
|
+
"steps": "New test page with both recipes, hold 0, 640x360, tone mapping none. Draw the matcap texture in code with textures.fromData (no clay matcap file exists). Point the directional light like the toon uniform, [-0.5, -1, -0.3]. Give the toon material a base color.",
|
|
1126
|
+
"alt": "A sphere in toon bands and a sphere with a clay matcap.",
|
|
1127
|
+
"caption": "The toon and matcap recipes.",
|
|
1128
|
+
"files": ["docs/porting/threejs-materials.md"],
|
|
1129
|
+
"verdict": "shots-porting__threejs-materials.md"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"id": "porting/threejs-materials/clipping-plane",
|
|
1133
|
+
"pages": ["porting/threejs-materials#Recipes"],
|
|
1134
|
+
"source": "scripted",
|
|
1135
|
+
"steps": "New test page: torusKnot from @null3d/geometry through geometry.fromArrays, centre at y = 1.2, plane [0, -1, 0, 1.2], doubleSided material, a low light from the side.",
|
|
1136
|
+
"alt": "A torus knot cut through its middle by a clipping plane, with its shadow cut too.",
|
|
1137
|
+
"caption": "The clipping-plane recipe.",
|
|
1138
|
+
"files": ["docs/porting/threejs-materials.md", "packages/geometry/"],
|
|
1139
|
+
"verdict": "shots-porting__threejs-materials.md"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"id": "porting/threejs-shaders/dissolve",
|
|
1143
|
+
"pages": ["porting/threejs-shaders#A dissolve from TSL"],
|
|
1144
|
+
"source": "reference",
|
|
1145
|
+
"images": ["webgpu/custom-dissolve.png"],
|
|
1146
|
+
"alt": "Four spheres from whole to nearly gone, with an orange glow along the edges of the holes.",
|
|
1147
|
+
"caption": "The dissolve port at progress 0, 0.3, 0.5 and 0.7.",
|
|
1148
|
+
"files": [
|
|
1149
|
+
"tests/pages/sketches/custom-dissolve-sketch.ts",
|
|
1150
|
+
"tests/image/references/chrome-real-gpu/webgpu/custom-dissolve.png"
|
|
1151
|
+
],
|
|
1152
|
+
"verdict": "shots-porting__threejs-shaders.md"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"id": "api/debug/stats-overlay-memory",
|
|
1156
|
+
"pages": ["api/debug#GPU memory"],
|
|
1157
|
+
"source": "scripted",
|
|
1158
|
+
"steps": "As for the stats overlay shot, then click the Memory tab and wait until the whole-page line no longer reads \"measuring\".",
|
|
1159
|
+
"alt": "The stats overlay's Memory tab with GPU textures, GPU buffers and the whole-page figure.",
|
|
1160
|
+
"caption": "Memory by system in the stats overlay.",
|
|
1161
|
+
"files": ["packages/engine/src/debug/overlay-look.ts"],
|
|
1162
|
+
"verdict": "shots-api__debug.md"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"id": "api/impostors/impostors-forest",
|
|
1166
|
+
"pages": ["api/impostors#under the opening paragraph", "concepts/lod#Cards beyond the levels"],
|
|
1167
|
+
"source": "reference",
|
|
1168
|
+
"images": ["webgpu/demo-impostors.png"],
|
|
1169
|
+
"alt": "A pine forest on rolling hills at golden hour, backlit by a low sun.",
|
|
1170
|
+
"caption": "The Impostors demo: meshes near, merged cells in the middle, cards far out. The hand-overs are made to be invisible.",
|
|
1171
|
+
"files": [
|
|
1172
|
+
"examples/impostors/",
|
|
1173
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-impostors.png"
|
|
1174
|
+
],
|
|
1175
|
+
"verdict": "shots-api__impostors.md; shots-concepts__lod.md"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"id": "api/particles/campfire",
|
|
1179
|
+
"pages": [
|
|
1180
|
+
"api/particles#under the intro",
|
|
1181
|
+
"concepts/particle-buffer#under the opening paragraph"
|
|
1182
|
+
],
|
|
1183
|
+
"source": "reference",
|
|
1184
|
+
"images": ["webgpu/demo-particles.png"],
|
|
1185
|
+
"alt": "A campfire in an autumn glade at dusk, with flames, embers, fireflies and fallen leaves.",
|
|
1186
|
+
"caption": "Five particle systems in one sketch.",
|
|
1187
|
+
"files": [
|
|
1188
|
+
"examples/particles/",
|
|
1189
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-particles.png"
|
|
1190
|
+
],
|
|
1191
|
+
"verdict": "shots-api__particles.md; shots-concepts__particle-buffer.md"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"id": "api/post/ssr-wet",
|
|
1195
|
+
"pages": ["api/post#Screen-space reflections"],
|
|
1196
|
+
"source": "reference",
|
|
1197
|
+
"images": ["webgpu/ssr-off.png", "webgpu/ssr-wet.png"],
|
|
1198
|
+
"alt": "A wet floor without and with reflections of the boxes, the sphere and the bar.",
|
|
1199
|
+
"caption": "Reflections off and on.",
|
|
1200
|
+
"files": [
|
|
1201
|
+
"tests/pages/sketches/ssr-sketch.ts",
|
|
1202
|
+
"tests/image/references/chrome-real-gpu/webgpu/ssr-off.png",
|
|
1203
|
+
"tests/image/references/chrome-real-gpu/webgpu/ssr-wet.png"
|
|
1204
|
+
],
|
|
1205
|
+
"verdict": "shots-api__post.md"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"id": "api/animation/character",
|
|
1209
|
+
"pages": ["api/animation#Models from glTF files", "cookbook/index#A third-person camera"],
|
|
1210
|
+
"source": "reference",
|
|
1211
|
+
"images": ["webgpu/demo-character.png"],
|
|
1212
|
+
"alt": "A cartoon knight with a round shield walks across a cobbled courtyard.",
|
|
1213
|
+
"caption": "The animated characters demo. In the cookbook, say it is the demo, not the recipe: its camera orbits.",
|
|
1214
|
+
"files": [
|
|
1215
|
+
"examples/character/",
|
|
1216
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-character.png"
|
|
1217
|
+
],
|
|
1218
|
+
"verdict": "shots-api__animation.md; shots-cookbook__index.md"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"id": "api/animation/look-at-ring",
|
|
1222
|
+
"pages": ["api/animation#Looking at a point"],
|
|
1223
|
+
"source": "reference",
|
|
1224
|
+
"images": ["webgpu/demo-look-at.png"],
|
|
1225
|
+
"alt": "Seven knights in a ring turn their heads toward a floating wisp of light.",
|
|
1226
|
+
"caption": "Joint overrides that look at a point.",
|
|
1227
|
+
"files": [
|
|
1228
|
+
"examples/look-at/",
|
|
1229
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-look-at.png"
|
|
1230
|
+
],
|
|
1231
|
+
"verdict": "shots-api__animation.md"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"id": "api/animation/morph-tulips",
|
|
1235
|
+
"pages": ["api/animation#Morph targets", "cookbook/index#Morph targets from a model"],
|
|
1236
|
+
"source": "reference",
|
|
1237
|
+
"images": ["webgpu/demo-morph-flowers.png"],
|
|
1238
|
+
"alt": "A bed of tulips, some open and some closed, in morning sun.",
|
|
1239
|
+
"caption": "One morph target per tulip head. The targets are made in code, not loaded from a file.",
|
|
1240
|
+
"files": [
|
|
1241
|
+
"examples/morph-flowers/",
|
|
1242
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-morph-flowers.png"
|
|
1243
|
+
],
|
|
1244
|
+
"verdict": "shots-api__animation.md; shots-cookbook__index.md"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"id": "api/animation/skeleton-lines",
|
|
1248
|
+
"pages": ["api/animation#Seeing the skeleton"],
|
|
1249
|
+
"source": "reference",
|
|
1250
|
+
"images": ["webgpu/gltf-skeleton.png"],
|
|
1251
|
+
"alt": "Lines from blue to green trace the joints of a running fox; one yellow line traces a waving arm.",
|
|
1252
|
+
"caption": "debug.skeleton with the default colors and with one color.",
|
|
1253
|
+
"files": [
|
|
1254
|
+
"tests/pages/sketches/gltf-skeleton-sketch.ts",
|
|
1255
|
+
"tests/image/references/chrome-real-gpu/webgpu/gltf-skeleton.png"
|
|
1256
|
+
],
|
|
1257
|
+
"verdict": "shots-api__animation.md"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"id": "api/assets/environments-side-by-side",
|
|
1261
|
+
"pages": ["api/assets#Environments"],
|
|
1262
|
+
"source": "scripted",
|
|
1263
|
+
"steps": "Development build: ?demo=environment&hold=1, hold=5 and hold=9. Row of three labelled \"Radiance .hdr\", \"OpenEXR .exr\", \"Generated sky\".",
|
|
1264
|
+
"alt": "The same spheres lit by a Radiance .hdr file, an OpenEXR .exr file and the generated sky.",
|
|
1265
|
+
"caption": "One call takes an HDR file, an EXR file or the generated sky.",
|
|
1266
|
+
"files": ["examples/environment/"],
|
|
1267
|
+
"verdict": "shots-api__assets.md"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"id": "api/assets/devtools-network-stages",
|
|
1271
|
+
"pages": ["api/assets#staged levels"],
|
|
1272
|
+
"source": "manual",
|
|
1273
|
+
"steps": "Development server: open tests/pages/staged-levels.html?near with the Network panel open. Filter on \"staged-terrain\". Capture after the camera moves close (stage file names end in .m<N>.lod<N>.bin).",
|
|
1274
|
+
"alt": "The network panel lists the coarse model file first, then the stage files that arrive as the camera moves close.",
|
|
1275
|
+
"caption": "Stage files download as the camera comes close.",
|
|
1276
|
+
"files": ["tests/pages/staged-levels.html", "tests/pages/sketches/staged-levels-sketch.ts"],
|
|
1277
|
+
"verdict": "shots-api__assets.md"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"id": "api/cameras/lens-35-85",
|
|
1281
|
+
"pages": ["api/cameras#Focal length"],
|
|
1282
|
+
"source": "scripted",
|
|
1283
|
+
"steps": "Hold the camera-lens demo at 16 (35 mm) and at 8 (85 mm), same canvas size, no pointer input. Label \"35 mm\" and \"85 mm\".",
|
|
1284
|
+
"alt": "The same chess board at 35 mm and at 85 mm: the board keeps its size, the background narrows and the light discs grow.",
|
|
1285
|
+
"caption": "35 mm and 85 mm with the camera moved back.",
|
|
1286
|
+
"files": ["examples/camera-lens/sketch.ts"],
|
|
1287
|
+
"verdict": "shots-api__cameras.md"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"id": "api/controls/walk-and-fly",
|
|
1291
|
+
"pages": ["api/controls#First-person controls"],
|
|
1292
|
+
"source": "reference",
|
|
1293
|
+
"images": ["webgpu/demo-walk-and-fly.png"],
|
|
1294
|
+
"alt": "A ruined temple at golden hour, seen from eye height between columns.",
|
|
1295
|
+
"caption": "First-person and fly controls.",
|
|
1296
|
+
"files": [
|
|
1297
|
+
"examples/walk-and-fly/",
|
|
1298
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-walk-and-fly.png"
|
|
1299
|
+
],
|
|
1300
|
+
"verdict": "shots-api__controls.md"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"id": "api/controls/gizmo-handles",
|
|
1304
|
+
"pages": ["api/controls#Gizmos", "api/reference/controls#GizmoAxis"],
|
|
1305
|
+
"source": "reference",
|
|
1306
|
+
"images": ["webgpu/demo-gizmos.png"],
|
|
1307
|
+
"steps": "Crop to the gizmo and the sphere.",
|
|
1308
|
+
"alt": "Move handles, an arrow per axis and plane tiles, on a selected sphere on a plinth.",
|
|
1309
|
+
"caption": "The gizmo in translate mode.",
|
|
1310
|
+
"files": ["examples/gizmos/", "tests/image/references/chrome-real-gpu/webgpu/demo-gizmos.png"],
|
|
1311
|
+
"verdict": "shots-api__controls.md; shots-api__reference__controls.md",
|
|
1312
|
+
"note": "The reference page placement needs the generator to print images."
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"id": "api/controls/gizmo-modes",
|
|
1316
|
+
"pages": ["api/controls#Gizmos"],
|
|
1317
|
+
"source": "scripted",
|
|
1318
|
+
"steps": "Open ?demo=gizmos with no hold (the Mode buttons hide under hold). The sphere starts selected in Translate. Pointer off the canvas. Capture; click Rotate, wait a few frames, capture; click Scale, capture. Three crops in a row.",
|
|
1319
|
+
"alt": "The same sphere with move arrows, rotate rings and scale cubes.",
|
|
1320
|
+
"caption": "Translate, rotate and scale.",
|
|
1321
|
+
"files": ["examples/gizmos/", "examples/index.ts"],
|
|
1322
|
+
"verdict": "shots-api__controls.md"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"id": "api/debug/debug-shapes",
|
|
1326
|
+
"pages": ["api/debug#Debug drawing", "guides/debugging#See the scene with debug drawing"],
|
|
1327
|
+
"source": "reference",
|
|
1328
|
+
"images": ["webgpu/debug.png"],
|
|
1329
|
+
"alt": "A grid, a box, a sphere, two sets of axes, an arrow, a line, a camera frustum and a light, drawn as thin lines over a small scene.",
|
|
1330
|
+
"caption": "Debug drawing.",
|
|
1331
|
+
"files": [
|
|
1332
|
+
"tests/pages/sketches/debug-sketch.ts",
|
|
1333
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug.png"
|
|
1334
|
+
],
|
|
1335
|
+
"verdict": "shots-api__debug.md; shots-guides__debugging.md"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"id": "api/debug/debug-views",
|
|
1339
|
+
"pages": ["api/debug#under the views table"],
|
|
1340
|
+
"source": "reference",
|
|
1341
|
+
"images": [
|
|
1342
|
+
"webgpu/debug-view-normals.png",
|
|
1343
|
+
"webgpu/debug-view-depth.png",
|
|
1344
|
+
"webgpu/debug-view-overdraw.png",
|
|
1345
|
+
"webgpu/debug-view-wireframe.png",
|
|
1346
|
+
"webgpu/debug-view-shadows.png"
|
|
1347
|
+
],
|
|
1348
|
+
"steps": "A row in the table's order.",
|
|
1349
|
+
"alt": "One scene drawn five ways: normals, depth, overdraw, wireframe and shadows.",
|
|
1350
|
+
"caption": "The debug views.",
|
|
1351
|
+
"files": [
|
|
1352
|
+
"tests/pages/sketches/debug-view-sketch.ts",
|
|
1353
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-normals.png",
|
|
1354
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-depth.png",
|
|
1355
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-overdraw.png",
|
|
1356
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-wireframe.png",
|
|
1357
|
+
"tests/image/references/chrome-real-gpu/webgpu/debug-view-shadows.png"
|
|
1358
|
+
],
|
|
1359
|
+
"verdict": "shots-api__debug.md"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"id": "api/debug/levels-view",
|
|
1363
|
+
"pages": ["api/debug#the levels row"],
|
|
1364
|
+
"source": "reference",
|
|
1365
|
+
"images": ["webgpu/lod-levels.png"],
|
|
1366
|
+
"alt": "Copies of one mesh at growing distances, each in its level's color: blue, green, yellow and orange.",
|
|
1367
|
+
"caption": "The levels view. lod-levels-hide.png also shows the striped magenta marker.",
|
|
1368
|
+
"files": [
|
|
1369
|
+
"tests/image/manifest.ts",
|
|
1370
|
+
"tests/image/references/chrome-real-gpu/webgpu/lod-levels.png"
|
|
1371
|
+
],
|
|
1372
|
+
"verdict": "shots-api__debug.md"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"id": "api/debug/motion-view",
|
|
1376
|
+
"pages": ["api/debug#the motion row"],
|
|
1377
|
+
"source": "scripted",
|
|
1378
|
+
"steps": "Math demo with ?view=motion in hold mode. Check the capture: crop to the flock if it reads as a black frame.",
|
|
1379
|
+
"alt": "Moving drones in hues that show their direction on a black background.",
|
|
1380
|
+
"caption": "The motion view.",
|
|
1381
|
+
"files": ["examples/math/"],
|
|
1382
|
+
"verdict": "shots-api__debug.md"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"id": "api/engine/transparent-canvas",
|
|
1386
|
+
"pages": ["api/engine#A transparent canvas"],
|
|
1387
|
+
"source": "scripted",
|
|
1388
|
+
"images": ["webgpu/demo-depth-only.png"],
|
|
1389
|
+
"steps": "Capture the page with the canvas over it (the reference holds only the canvas pixels).",
|
|
1390
|
+
"alt": "Glass panes over an embedded web page that shows through a see-through canvas.",
|
|
1391
|
+
"caption": "A see-through canvas over a page, with a depth-only plane.",
|
|
1392
|
+
"files": [
|
|
1393
|
+
"examples/depth-only/",
|
|
1394
|
+
"examples/lib/run.ts",
|
|
1395
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-depth-only.png"
|
|
1396
|
+
],
|
|
1397
|
+
"verdict": "shots-api__engine.md"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"id": "api/feature-draws/feature-draw-clouds",
|
|
1401
|
+
"pages": ["api/feature-draws#A point cloud"],
|
|
1402
|
+
"source": "reference",
|
|
1403
|
+
"images": ["webgpu/feature-draw.png"],
|
|
1404
|
+
"alt": "Two clouds of colored discs: small, firm discs behind and larger, soft discs in front.",
|
|
1405
|
+
"caption": "An opaque and a blended feature draw.",
|
|
1406
|
+
"files": [
|
|
1407
|
+
"tests/pages/sketches/feature-draw-sketch.ts",
|
|
1408
|
+
"tests/image/references/chrome-real-gpu/webgpu/feature-draw.png"
|
|
1409
|
+
],
|
|
1410
|
+
"verdict": "shots-api__feature-draws.md"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"id": "api/splats/splats-demo",
|
|
1414
|
+
"pages": ["api/splats#under the intro", "api/feature-draws#Many copies of one shape"],
|
|
1415
|
+
"source": "reference",
|
|
1416
|
+
"images": ["webgpu/demo-splats.png"],
|
|
1417
|
+
"alt": "A drone scan of a priory drawn from Gaussian splats.",
|
|
1418
|
+
"caption": "The splats demo. On feature-draws, say the add-on makes the draw.",
|
|
1419
|
+
"files": ["examples/splats/", "tests/image/references/chrome-real-gpu/webgpu/demo-splats.png"],
|
|
1420
|
+
"verdict": "shots-api__splats.md; shots-api__feature-draws.md"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"id": "api/splats/splats-budget",
|
|
1424
|
+
"pages": ["api/splats#beside setBudget(count)"],
|
|
1425
|
+
"source": "reference",
|
|
1426
|
+
"images": ["webgpu/splats.png", "webgpu/splats-budget.png"],
|
|
1427
|
+
"alt": "A test cloud of 36,000 splats beside the same cloud capped at 9,000 splats.",
|
|
1428
|
+
"caption": "A lower budget draws fewer, larger splats.",
|
|
1429
|
+
"files": [
|
|
1430
|
+
"tests/pages/sketches/splats-sketch.ts",
|
|
1431
|
+
"tests/image/references/chrome-real-gpu/webgpu/splats.png",
|
|
1432
|
+
"tests/image/references/chrome-real-gpu/webgpu/splats-budget.png"
|
|
1433
|
+
],
|
|
1434
|
+
"verdict": "shots-api__splats.md"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"id": "api/feature-effects/feature-effect-before-after",
|
|
1438
|
+
"pages": ["api/feature-effects#A depth of field"],
|
|
1439
|
+
"source": "scripted",
|
|
1440
|
+
"steps": "tests/pages/image.html?gpu=webgpu&hold=0&preset=medium&size=960x540&sketch=/tests/pages/sketches/feature-effect-sketch.ts, then the same with sketch=...feature-effect-sketch.ts%3Fdof%3Doff. Side by side.",
|
|
1441
|
+
"alt": "Six posts at different distances, sharp, and blurred away from the third post.",
|
|
1442
|
+
"caption": "Without and with the feature effect.",
|
|
1443
|
+
"files": [
|
|
1444
|
+
"tests/pages/sketches/feature-effect-sketch.ts",
|
|
1445
|
+
"tests/image/feature-effect.spec.ts"
|
|
1446
|
+
],
|
|
1447
|
+
"verdict": "shots-api__feature-effects.md"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"id": "api/feature-instances/compute-instances",
|
|
1451
|
+
"pages": ["api/feature-instances#A draw of quads"],
|
|
1452
|
+
"source": "reference",
|
|
1453
|
+
"images": ["webgpu/feature-instances-compute.png"],
|
|
1454
|
+
"alt": "Six rows of seven discs that a compute pass placed and counted.",
|
|
1455
|
+
"caption": "The GPU writes the rows and the count.",
|
|
1456
|
+
"files": [
|
|
1457
|
+
"tests/pages/sketches/feature-instances-compute-sketch.ts",
|
|
1458
|
+
"tests/image/references/chrome-real-gpu/webgpu/feature-instances-compute.png"
|
|
1459
|
+
],
|
|
1460
|
+
"verdict": "shots-api__feature-instances.md"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"id": "api/feature-instances/instances-shadow",
|
|
1464
|
+
"pages": ["api/feature-instances#The count and the instances without compute"],
|
|
1465
|
+
"source": "reference",
|
|
1466
|
+
"images": ["webgpu/feature-instances-shadow.png"],
|
|
1467
|
+
"alt": "Standing discs, counted on the GPU, cast shadows on the ground.",
|
|
1468
|
+
"caption": "The page fills 64 rows but counts 42; only 42 cast shadows.",
|
|
1469
|
+
"files": [
|
|
1470
|
+
"tests/pages/sketches/feature-instances-shadow-sketch.ts",
|
|
1471
|
+
"tests/image/references/chrome-real-gpu/webgpu/feature-instances-shadow.png"
|
|
1472
|
+
],
|
|
1473
|
+
"verdict": "shots-api__feature-instances.md"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"id": "api/features/stats-steps-tab",
|
|
1477
|
+
"pages": ["api/features#Stats", "guides/add-ons#Follow the preset and show the cost"],
|
|
1478
|
+
"source": "scripted",
|
|
1479
|
+
"steps": "Chrome on WebGPU with timestamp queries: ?demo=water&stats&preset=medium (or stats=open). Wait about 5 s. Check the row reads reflectionEvery 2. For api/features click the Steps tab. Capture the card.",
|
|
1480
|
+
"alt": "The stats overlay's water row with its GPU time, reflection cadence, budget and memory, and the GPU steps list.",
|
|
1481
|
+
"caption": "An add-on's row in the stats overlay.",
|
|
1482
|
+
"files": [
|
|
1483
|
+
"packages/water/src/water.ts",
|
|
1484
|
+
"packages/engine/src/debug/overlay-look.ts",
|
|
1485
|
+
"packages/engine/src/debug/stats-text.ts"
|
|
1486
|
+
],
|
|
1487
|
+
"verdict": "shots-api__features.md; shots-guides__add-ons.md"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"id": "api/geometry/generators",
|
|
1491
|
+
"pages": ["api/geometry#Generators"],
|
|
1492
|
+
"source": "reference",
|
|
1493
|
+
"images": ["webgpu/demo-generators.png"],
|
|
1494
|
+
"alt": "Nine shapes in a 3 by 3 grid, three with a tile texture made in code and the rest plastic and metal.",
|
|
1495
|
+
"caption": "The geometry generators.",
|
|
1496
|
+
"files": [
|
|
1497
|
+
"examples/generators/",
|
|
1498
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-generators.png"
|
|
1499
|
+
],
|
|
1500
|
+
"verdict": "shots-api__geometry.md"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"id": "api/geometry/extra-shapes",
|
|
1504
|
+
"pages": ["api/geometry#Extra shapes"],
|
|
1505
|
+
"source": "reference",
|
|
1506
|
+
"images": ["webgpu/demo-extra-shapes.png"],
|
|
1507
|
+
"alt": "A torus knot, polyhedra, a lathe vase, an extruded star, a tube and a glowing flat heart, reflected in a polished floor at dusk.",
|
|
1508
|
+
"caption": "Extra shapes from @null3d/geometry.",
|
|
1509
|
+
"files": [
|
|
1510
|
+
"examples/extra-shapes/",
|
|
1511
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-extra-shapes.png"
|
|
1512
|
+
],
|
|
1513
|
+
"verdict": "shots-api__geometry.md"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"id": "api/geometry/mesh-arrays",
|
|
1517
|
+
"pages": ["api/geometry#Computing normals and tangents"],
|
|
1518
|
+
"source": "scripted",
|
|
1519
|
+
"images": ["webgpu/demo-mesh-arrays.png"],
|
|
1520
|
+
"steps": "Development build, ?demo=mesh-arrays&hold=1 on a 1280x720 canvas so the crystal's faces show. If the reference is used, drop \"hard-edged crystal\" from the alt text.",
|
|
1521
|
+
"alt": "An island with smooth normals and vertex colors beside a hard-edged crystal.",
|
|
1522
|
+
"caption": "Meshes from arrays.",
|
|
1523
|
+
"files": [
|
|
1524
|
+
"examples/mesh-arrays/",
|
|
1525
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-mesh-arrays.png"
|
|
1526
|
+
],
|
|
1527
|
+
"verdict": "shots-api__geometry.md"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"id": "api/geometry/vertex-updates",
|
|
1531
|
+
"pages": ["api/geometry#Vertices that change"],
|
|
1532
|
+
"source": "reference",
|
|
1533
|
+
"images": ["webgpu/demo-vertex-updates.png"],
|
|
1534
|
+
"alt": "Rings spread over a pool from a glowing float.",
|
|
1535
|
+
"caption": "updateVertices every frame.",
|
|
1536
|
+
"files": [
|
|
1537
|
+
"examples/vertex-updates/",
|
|
1538
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-vertex-updates.png"
|
|
1539
|
+
],
|
|
1540
|
+
"verdict": "shots-api__geometry.md"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"id": "api/grass/grass-grove",
|
|
1544
|
+
"pages": [
|
|
1545
|
+
"api/grass#under the intro",
|
|
1546
|
+
"api/wind#under the intro",
|
|
1547
|
+
"api/feature-instances#Compute instances in use"
|
|
1548
|
+
],
|
|
1549
|
+
"source": "scripted",
|
|
1550
|
+
"images": ["webgpu/demo-vegetation-wind.png"],
|
|
1551
|
+
"steps": "Capture at 1280x720 after about 2 s (?demo=vegetation-wind&stats=off or the demo test page). Use the webgpu or compat image only: WebGL2 draws grass as a plain instance batch.",
|
|
1552
|
+
"alt": "A grove of oaks, birches and firs at the edge of a grassy meadow, all swaying in one wind field.",
|
|
1553
|
+
"caption": "The plants in wind demo. On feature-instances: the grass add-on places and counts its blades with a compute pass on WebGPU.",
|
|
1554
|
+
"files": [
|
|
1555
|
+
"examples/vegetation-wind/sketch.ts",
|
|
1556
|
+
"packages/grass/src/grass.ts",
|
|
1557
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-vegetation-wind.png"
|
|
1558
|
+
],
|
|
1559
|
+
"verdict": "shots-api__grass.md; shots-api__wind.md; shots-api__feature-instances.md"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"id": "api/grass/grass-presets",
|
|
1563
|
+
"pages": ["api/grass#Grass on the ground"],
|
|
1564
|
+
"source": "scripted",
|
|
1565
|
+
"images": ["webgpu/vegetation-grass.png"],
|
|
1566
|
+
"steps": "Image test page for the vegetation-grass sketch with preset=low and preset=ultra, hold 1 s at 1280x720. Put the existing High frame in the middle.",
|
|
1567
|
+
"alt": "The same hill of grass at the Low, High and Ultra presets.",
|
|
1568
|
+
"caption": "Grass counts follow the preset.",
|
|
1569
|
+
"files": [
|
|
1570
|
+
"tests/pages/sketches/vegetation-grass-sketch.ts",
|
|
1571
|
+
"tests/image/manifest.ts",
|
|
1572
|
+
"tests/image/references/chrome-real-gpu/webgpu/vegetation-grass.png"
|
|
1573
|
+
],
|
|
1574
|
+
"verdict": "shots-api__grass.md"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"id": "api/grass/grass-shadow",
|
|
1578
|
+
"pages": ["api/grass#Near shadows and the sway distance"],
|
|
1579
|
+
"source": "reference",
|
|
1580
|
+
"images": ["webgpu/vegetation-grass-shadow.png"],
|
|
1581
|
+
"alt": "Long blade shadows on a hill under a low sun.",
|
|
1582
|
+
"caption": "Near grass shadows.",
|
|
1583
|
+
"files": [
|
|
1584
|
+
"tests/image/manifest.ts",
|
|
1585
|
+
"tests/image/references/chrome-real-gpu/webgpu/vegetation-grass-shadow.png"
|
|
1586
|
+
],
|
|
1587
|
+
"verdict": "shots-api__grass.md"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"id": "api/impostors/impostor-atlas-pair",
|
|
1591
|
+
"pages": ["api/impostors#The atlas and its cells"],
|
|
1592
|
+
"source": "scripted",
|
|
1593
|
+
"steps": "Bun script: call impostorAtlases() from examples/impostors/forest.ts (4x4 grid, 64 texels a cell). Turn rows upright with uprightImage. Color atlas over plain gray; surface atlas with alpha set to 255. Scale 2x nearest, draw the cell lines, side by side, encodePng.",
|
|
1594
|
+
"alt": "A color atlas and a surface atlas of one tree, 4 by 4 cells, side by side with the cell lines drawn.",
|
|
1595
|
+
"caption": "The two atlases a bake writes.",
|
|
1596
|
+
"files": [
|
|
1597
|
+
"examples/impostors/forest.ts",
|
|
1598
|
+
"packages/cli/src/assets/impostor.js",
|
|
1599
|
+
"packages/cli/src/png.js"
|
|
1600
|
+
],
|
|
1601
|
+
"verdict": "shots-api__impostors.md"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"id": "api/impostors/impostor-handover",
|
|
1605
|
+
"pages": ["api/impostors#Hand the near meshes over to the cards"],
|
|
1606
|
+
"source": "reference",
|
|
1607
|
+
"images": ["webgpu/impostor-handover.png"],
|
|
1608
|
+
"alt": "Three pines in the hand-over band with full crowns.",
|
|
1609
|
+
"caption": "Each pine draws as its mesh and its card at once, and no sky shows through the crowns.",
|
|
1610
|
+
"files": [
|
|
1611
|
+
"tests/pages/sketches/impostor-handover-sketch.ts",
|
|
1612
|
+
"tests/image/references/chrome-real-gpu/webgpu/impostor-handover.png"
|
|
1613
|
+
],
|
|
1614
|
+
"verdict": "shots-api__impostors.md"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"id": "api/impostors/impostor-shadow",
|
|
1618
|
+
"pages": ["api/impostors#card shadows"],
|
|
1619
|
+
"source": "reference",
|
|
1620
|
+
"images": ["webgpu/impostor-shadow.png"],
|
|
1621
|
+
"alt": "Crown-shaped shadows on the ground from a batch of cards that only the light draws.",
|
|
1622
|
+
"caption": "Card shadows from a caster-only batch.",
|
|
1623
|
+
"files": [
|
|
1624
|
+
"tests/pages/sketches/impostor-shadow-sketch.ts",
|
|
1625
|
+
"tests/image/references/chrome-real-gpu/webgpu/impostor-shadow.png"
|
|
1626
|
+
],
|
|
1627
|
+
"verdict": "shots-api__impostors.md"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"id": "api/input/picking-hover",
|
|
1631
|
+
"pages": ["api/input#Pointer events on objects"],
|
|
1632
|
+
"source": "scripted",
|
|
1633
|
+
"steps": "Open the picking demo live (not held). Click the centre of the Sphere. Move the pointer with no button onto the Torus, wait two or three frames, capture within a second, with the HTML labels. Find each piece's place just before each move: the table turns.",
|
|
1634
|
+
"alt": "The torus glows under the pointer while the sphere stays outlined with a hit dot from the last click.",
|
|
1635
|
+
"caption": "pointerenter and click handlers on objects.",
|
|
1636
|
+
"files": ["examples/picking/sketch.ts"],
|
|
1637
|
+
"verdict": "shots-api__input.md"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"id": "api/raycast/picking-hit-marker",
|
|
1641
|
+
"pages": ["api/raycast#Rays from the pointer"],
|
|
1642
|
+
"source": "scripted",
|
|
1643
|
+
"steps": "Picking demo at 1280x720. Wait until sketch time reaches 2 s. Click the pink capsule at about 33% across and 72% down. Wait one frame. Capture the page with its label overlay.",
|
|
1644
|
+
"alt": "The pink capsule outlined and lit under the pointer, with a white dot where the click's ray hit it and its label reading Capsule: selected.",
|
|
1645
|
+
"caption": "A pointer event and the point its ray hit.",
|
|
1646
|
+
"files": ["examples/picking/sketch.ts", "packages/engine/src/scene/scene.ts"],
|
|
1647
|
+
"verdict": "shots-api__raycast.md"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"id": "api/lights/lights-kinds",
|
|
1651
|
+
"pages": ["api/lights#Kinds of light"],
|
|
1652
|
+
"source": "reference",
|
|
1653
|
+
"images": [
|
|
1654
|
+
"webgpu/lights-spot.png",
|
|
1655
|
+
"webgpu/lights-rect.png",
|
|
1656
|
+
"webgpu/lights-tube.png",
|
|
1657
|
+
"webgpu/lights-hemisphere.png"
|
|
1658
|
+
],
|
|
1659
|
+
"steps": "A row with a label on each panel.",
|
|
1660
|
+
"alt": "The same floor of shapes under a spot light, a rectangle light, a tube light and a hemisphere light.",
|
|
1661
|
+
"caption": "Spot, rectangle, tube and hemisphere.",
|
|
1662
|
+
"files": [
|
|
1663
|
+
"tests/image/manifest.ts",
|
|
1664
|
+
"tests/image/references/chrome-real-gpu/webgpu/lights-spot.png",
|
|
1665
|
+
"tests/image/references/chrome-real-gpu/webgpu/lights-rect.png",
|
|
1666
|
+
"tests/image/references/chrome-real-gpu/webgpu/lights-tube.png",
|
|
1667
|
+
"tests/image/references/chrome-real-gpu/webgpu/lights-hemisphere.png"
|
|
1668
|
+
],
|
|
1669
|
+
"verdict": "shots-api__lights.md"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"id": "api/lights/spot-cookies",
|
|
1673
|
+
"pages": ["api/lights#Spot light maps"],
|
|
1674
|
+
"source": "reference",
|
|
1675
|
+
"images": ["webgpu/demo-spot-cookies.png"],
|
|
1676
|
+
"alt": "A rose window projected on a wall by a spot light, over spheres on plinths.",
|
|
1677
|
+
"caption": "A spot light with a map. Its shadows cut the projected window.",
|
|
1678
|
+
"files": [
|
|
1679
|
+
"examples/spot-cookies/",
|
|
1680
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-spot-cookies.png"
|
|
1681
|
+
],
|
|
1682
|
+
"verdict": "shots-api__lights.md"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"id": "api/lines/lines-lit",
|
|
1686
|
+
"pages": ["api/lines#Lit lines"],
|
|
1687
|
+
"source": "reference",
|
|
1688
|
+
"images": ["webgpu/lines-lit.png"],
|
|
1689
|
+
"alt": "Two helixes shaded by a sun and a red light, a glowing blue bar, and a flat magenta line that the lights do not change.",
|
|
1690
|
+
"caption": "Lit and unlit lines.",
|
|
1691
|
+
"files": [
|
|
1692
|
+
"tests/pages/sketches/lines-sketch.ts",
|
|
1693
|
+
"tests/image/references/chrome-real-gpu/webgpu/lines-lit.png"
|
|
1694
|
+
],
|
|
1695
|
+
"verdict": "shots-api__lines.md"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"id": "api/lines/lines-widths",
|
|
1699
|
+
"pages": ["api/lines#Widths in pixels and in the world"],
|
|
1700
|
+
"source": "reference",
|
|
1701
|
+
"images": ["webgpu/lines.png"],
|
|
1702
|
+
"alt": "A strip, segments, a loop, dashes and a blended line; the floor loop in world units narrows toward the back.",
|
|
1703
|
+
"caption": "Line widths in world units. Use this picture here and lines-lit under Lit lines, so no picture shows twice.",
|
|
1704
|
+
"files": [
|
|
1705
|
+
"tests/pages/sketches/lines-sketch.ts",
|
|
1706
|
+
"tests/image/references/chrome-real-gpu/webgpu/lines.png"
|
|
1707
|
+
],
|
|
1708
|
+
"verdict": "shots-api__lines.md"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"id": "api/sprites/sprites-lines",
|
|
1712
|
+
"pages": ["api/sprites#under the intro", "api/lines#under the intro"],
|
|
1713
|
+
"source": "reference",
|
|
1714
|
+
"images": ["webgpu/demo-sprites-lines.png"],
|
|
1715
|
+
"alt": "A fountain of glowing sparks over a dark pool, ringed by a neon helix and a dashed loop of lines.",
|
|
1716
|
+
"caption": "Only the sparks are sprites; the helix and the loop are lines.",
|
|
1717
|
+
"files": [
|
|
1718
|
+
"examples/sprites-lines/",
|
|
1719
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-sprites-lines.png"
|
|
1720
|
+
],
|
|
1721
|
+
"verdict": "shots-api__sprites.md; shots-api__lines.md"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"id": "api/materials/standard-grid",
|
|
1725
|
+
"pages": ["api/materials#Standard values"],
|
|
1726
|
+
"source": "reference",
|
|
1727
|
+
"images": ["webgpu/standard-grid.png"],
|
|
1728
|
+
"alt": "Fifteen spheres of one color: roughness rises left to right, metalness top to bottom.",
|
|
1729
|
+
"caption": "Roughness and metalness.",
|
|
1730
|
+
"files": [
|
|
1731
|
+
"tests/image/manifest.ts",
|
|
1732
|
+
"tests/image/references/chrome-real-gpu/webgpu/standard-grid.png"
|
|
1733
|
+
],
|
|
1734
|
+
"verdict": "shots-api__materials.md"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"id": "api/materials/coat-and-sheen",
|
|
1738
|
+
"pages": [
|
|
1739
|
+
"api/materials#Clear coat and sheen",
|
|
1740
|
+
"porting/threejs-materials#MeshPhysicalMaterial",
|
|
1741
|
+
"shaders/surface-functions#Clear coat and sheen"
|
|
1742
|
+
],
|
|
1743
|
+
"source": "reference",
|
|
1744
|
+
"images": ["webgpu/demo-coat-and-sheen.png"],
|
|
1745
|
+
"alt": "A red car on a plinth in the rain, over wet cobbles whose puddles shine with a clear coat, beside a velvet cushion with a sheen.",
|
|
1746
|
+
"caption": "Clear coat and sheen.",
|
|
1747
|
+
"files": [
|
|
1748
|
+
"examples/coat-and-sheen/car.ts",
|
|
1749
|
+
"examples/coat-and-sheen/sketch.ts",
|
|
1750
|
+
"examples/coat-and-sheen/surfaces.ts",
|
|
1751
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-coat-and-sheen.png"
|
|
1752
|
+
],
|
|
1753
|
+
"verdict": "shots-api__materials.md; shots-porting__threejs-materials.md; shots-shaders__surface-functions.md"
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"id": "api/materials/iridescence-and-anisotropy",
|
|
1757
|
+
"pages": ["api/materials#Iridescence and anisotropy"],
|
|
1758
|
+
"source": "reference",
|
|
1759
|
+
"images": ["webgpu/demo-iridescence-and-anisotropy.png"],
|
|
1760
|
+
"alt": "A beetle with a shifting film on a brushed metal plinth, among soap bubbles.",
|
|
1761
|
+
"caption": "Iridescence and anisotropy.",
|
|
1762
|
+
"files": [
|
|
1763
|
+
"examples/iridescence-and-anisotropy/",
|
|
1764
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-iridescence-and-anisotropy.png"
|
|
1765
|
+
],
|
|
1766
|
+
"verdict": "shots-api__materials.md"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"id": "api/materials/translucency",
|
|
1770
|
+
"pages": ["api/materials#Light through thin surfaces"],
|
|
1771
|
+
"source": "reference",
|
|
1772
|
+
"images": ["webgpu/demo-translucency.png"],
|
|
1773
|
+
"alt": "Backlit leaves and petals under a low sun, with a paper lantern.",
|
|
1774
|
+
"caption": "Diffuse transmission.",
|
|
1775
|
+
"files": [
|
|
1776
|
+
"examples/translucency/",
|
|
1777
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-translucency.png"
|
|
1778
|
+
],
|
|
1779
|
+
"verdict": "shots-api__materials.md"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"id": "api/materials/subsurface",
|
|
1783
|
+
"pages": ["api/materials#Light under the surface"],
|
|
1784
|
+
"source": "reference",
|
|
1785
|
+
"images": ["webgpu/demo-subsurface.png"],
|
|
1786
|
+
"alt": "Wax candles, a jade knot and a soap egg that glow softly by candlelight.",
|
|
1787
|
+
"caption": "Light under the surface. It shows on High and Ultra.",
|
|
1788
|
+
"files": [
|
|
1789
|
+
"examples/subsurface/",
|
|
1790
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-subsurface.png"
|
|
1791
|
+
],
|
|
1792
|
+
"verdict": "shots-api__materials.md",
|
|
1793
|
+
"note": "Replaces the rejected subsurface-on-off pair. For an on/off view use webgpu/subsurface.png alone."
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"id": "api/materials/decals",
|
|
1797
|
+
"pages": ["api/materials#Decals"],
|
|
1798
|
+
"source": "reference",
|
|
1799
|
+
"images": ["webgpu/demo-decals.png"],
|
|
1800
|
+
"alt": "A zebra crossing, road paint, puddles and posters on a street at dusk.",
|
|
1801
|
+
"caption": "Decals.",
|
|
1802
|
+
"files": ["examples/decals/", "tests/image/references/chrome-real-gpu/webgpu/demo-decals.png"],
|
|
1803
|
+
"verdict": "shots-api__materials.md"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"id": "api/materials/relief",
|
|
1807
|
+
"pages": ["api/materials#Relief"],
|
|
1808
|
+
"source": "reference",
|
|
1809
|
+
"images": ["webgpu/demo-relief.png"],
|
|
1810
|
+
"alt": "Hills, boulders, a brick wall and a wireframe frame drawn with displacement, parallax and bump maps.",
|
|
1811
|
+
"caption": "Relief maps.",
|
|
1812
|
+
"files": ["examples/relief/", "tests/image/references/chrome-real-gpu/webgpu/demo-relief.png"],
|
|
1813
|
+
"verdict": "shots-api__materials.md",
|
|
1814
|
+
"note": "A larger Parallax on/off pair would show depth better."
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"id": "api/materials/shader-inputs",
|
|
1818
|
+
"pages": [
|
|
1819
|
+
"api/materials#Custom materials",
|
|
1820
|
+
"guides/custom-shaders#Custom materials",
|
|
1821
|
+
"porting/threejs-shaders#Built-in values",
|
|
1822
|
+
"shaders/builtins#object"
|
|
1823
|
+
],
|
|
1824
|
+
"source": "reference",
|
|
1825
|
+
"images": ["webgpu/demo-shader-inputs.png"],
|
|
1826
|
+
"alt": "Crystals in one batch colored by their row, and stones with bands, both drawn by custom materials.",
|
|
1827
|
+
"caption": "A custom material that reads row and object values.",
|
|
1828
|
+
"files": [
|
|
1829
|
+
"examples/shader-inputs/",
|
|
1830
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-shader-inputs.png"
|
|
1831
|
+
],
|
|
1832
|
+
"verdict": "shots-api__materials.md; shots-guides__custom-shaders.md; shots-porting__threejs-shaders.md; shots-shaders__builtins.md"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"id": "api/objects/objects-turntable",
|
|
1836
|
+
"pages": ["api/objects#Parents"],
|
|
1837
|
+
"source": "reference",
|
|
1838
|
+
"images": ["webgpu/demo-objects.png"],
|
|
1839
|
+
"alt": "Six crates in six materials on a turntable on a dark studio stage.",
|
|
1840
|
+
"caption": "The objects demo moves crates between parents; a still picture cannot show it.",
|
|
1841
|
+
"files": [
|
|
1842
|
+
"examples/objects/",
|
|
1843
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-objects.png"
|
|
1844
|
+
],
|
|
1845
|
+
"verdict": "shots-api__objects.md"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"id": "api/points/galaxy",
|
|
1849
|
+
"pages": ["api/points#Create a batch", "cookbook/index#A field of stars"],
|
|
1850
|
+
"source": "reference",
|
|
1851
|
+
"images": ["webgpu/demo-galaxy.png"],
|
|
1852
|
+
"alt": "A spiral galaxy of soft glowing points.",
|
|
1853
|
+
"caption": "The galaxy demo (120,000 soft stars), not the code above it.",
|
|
1854
|
+
"files": ["examples/galaxy/", "tests/image/references/chrome-real-gpu/webgpu/demo-galaxy.png"],
|
|
1855
|
+
"verdict": "shots-api__points.md; shots-cookbook__index.md"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"id": "api/post/grades",
|
|
1859
|
+
"pages": ["api/post#Grading controls"],
|
|
1860
|
+
"source": "scripted",
|
|
1861
|
+
"steps": "Development build: ?demo=post-effects&hold=T with T = 11.17 (none), 12.39 (warm), 26.87 (cool). Row of three.",
|
|
1862
|
+
"alt": "The same alley with no grade, a warm grade and a cool grade.",
|
|
1863
|
+
"caption": "Grading controls.",
|
|
1864
|
+
"files": ["examples/post-effects/"],
|
|
1865
|
+
"verdict": "shots-api__post.md"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"id": "api/quality/presets-side-by-side",
|
|
1869
|
+
"pages": ["api/quality#intro"],
|
|
1870
|
+
"source": "scripted",
|
|
1871
|
+
"steps": "Development build on WebGPU (WebGL2 caps Ultra to Medium): examples/?demo=creek&preset=low&hold=0.5, then medium, high, ultra. Join the four.",
|
|
1872
|
+
"alt": "The creek showcase at the Low, Medium, High and Ultra presets.",
|
|
1873
|
+
"caption": "What quality.preset changes.",
|
|
1874
|
+
"files": ["examples/showcase/creek/"],
|
|
1875
|
+
"verdict": "shots-api__quality.md"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"id": "api/render/security-camera",
|
|
1879
|
+
"pages": [
|
|
1880
|
+
"api/render#Scene passes",
|
|
1881
|
+
"guides/custom-passes#Render to a texture",
|
|
1882
|
+
"cookbook/index#A screen that shows another camera"
|
|
1883
|
+
],
|
|
1884
|
+
"source": "reference",
|
|
1885
|
+
"images": ["webgpu/demo-security-camera.png"],
|
|
1886
|
+
"alt": "A monitor on a wall shows a night camera's grainy view of the yard behind it.",
|
|
1887
|
+
"caption": "A scene pass's texture on a material.",
|
|
1888
|
+
"files": [
|
|
1889
|
+
"examples/security-camera/",
|
|
1890
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-security-camera.png"
|
|
1891
|
+
],
|
|
1892
|
+
"verdict": "shots-api__render.md; shots-guides__custom-passes.md; shots-cookbook__index.md"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"id": "api/render/reflection-mirror",
|
|
1896
|
+
"pages": ["api/render#Reflection passes"],
|
|
1897
|
+
"source": "reference",
|
|
1898
|
+
"images": ["webgpu/reflection-mirror.png"],
|
|
1899
|
+
"alt": "A red box, a green box, a blue ball and a yellow post mirrored in a polished floor under a blue sky.",
|
|
1900
|
+
"caption": "A reflection pass on a mirror floor.",
|
|
1901
|
+
"files": [
|
|
1902
|
+
"tests/pages/sketches/reflection-sketch.ts",
|
|
1903
|
+
"tests/image/references/chrome-real-gpu/webgpu/reflection-mirror.png"
|
|
1904
|
+
],
|
|
1905
|
+
"verdict": "shots-api__render.md"
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"id": "api/render/fullscreen-glow",
|
|
1909
|
+
"pages": ["api/render#Full-screen passes", "guides/custom-passes#A soft outline glow"],
|
|
1910
|
+
"source": "reference",
|
|
1911
|
+
"images": ["webgpu/fullscreen-glow.png"],
|
|
1912
|
+
"alt": "A white ball with a warm orange glow around it, among colored boxes on a grey floor.",
|
|
1913
|
+
"caption": "The outline mask blurred at half size and added by an effect.",
|
|
1914
|
+
"files": [
|
|
1915
|
+
"tests/pages/sketches/fullscreen-sketch.ts",
|
|
1916
|
+
"tests/image/references/chrome-real-gpu/webgpu/fullscreen-glow.png"
|
|
1917
|
+
],
|
|
1918
|
+
"verdict": "shots-api__render.md; shots-guides__custom-passes.md"
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"id": "api/water/ocean",
|
|
1922
|
+
"pages": ["api/water#The ocean", "api/render#Compute passes"],
|
|
1923
|
+
"source": "reference",
|
|
1924
|
+
"images": ["webgpu/demo-ocean.png"],
|
|
1925
|
+
"alt": "An open sea with long swells under a cloudy evening sky.",
|
|
1926
|
+
"caption": "The water add-on fills the sea's heights with compute passes every frame.",
|
|
1927
|
+
"files": ["examples/ocean/", "tests/image/references/chrome-real-gpu/webgpu/demo-ocean.png"],
|
|
1928
|
+
"verdict": "shots-api__water.md; shots-api__render.md"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"id": "api/scene/fog",
|
|
1932
|
+
"pages": ["api/scene#Fog", "api/reference/scene#FogMode"],
|
|
1933
|
+
"source": "reference",
|
|
1934
|
+
"images": [
|
|
1935
|
+
"webgpu/fog-linear.png",
|
|
1936
|
+
"webgpu/fog-exponential.png",
|
|
1937
|
+
"webgpu/fog-exp2.png",
|
|
1938
|
+
"webgpu/fog-height.png"
|
|
1939
|
+
],
|
|
1940
|
+
"alt": "One row of towers under linear, exponential, squared exponential and height fog.",
|
|
1941
|
+
"caption": "Fog curves, each labeled.",
|
|
1942
|
+
"files": [
|
|
1943
|
+
"tests/pages/sketches/fog-sketch.ts",
|
|
1944
|
+
"bench/scenes/fog.ts",
|
|
1945
|
+
"packages/engine/src/scene/fog.ts",
|
|
1946
|
+
"tests/image/references/chrome-real-gpu/webgpu/fog-linear.png",
|
|
1947
|
+
"tests/image/references/chrome-real-gpu/webgpu/fog-exponential.png",
|
|
1948
|
+
"tests/image/references/chrome-real-gpu/webgpu/fog-exp2.png",
|
|
1949
|
+
"tests/image/references/chrome-real-gpu/webgpu/fog-height.png"
|
|
1950
|
+
],
|
|
1951
|
+
"verdict": "shots-api__scene.md; shots-api__reference__scene.md"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"id": "api/scene/aurora-sky-layer",
|
|
1955
|
+
"pages": ["api/scene#Sky layers"],
|
|
1956
|
+
"source": "reference",
|
|
1957
|
+
"images": ["webgpu/demo-aurora.png"],
|
|
1958
|
+
"alt": "Green aurora curtains over dark pines, mirrored in a frozen lake.",
|
|
1959
|
+
"caption": "A sky layer from the aurora add-on.",
|
|
1960
|
+
"files": [
|
|
1961
|
+
"examples/aurora/",
|
|
1962
|
+
"examples/addons/aurora/",
|
|
1963
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-aurora.png"
|
|
1964
|
+
],
|
|
1965
|
+
"verdict": "shots-api__scene.md"
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"id": "api/scene/probe-grid",
|
|
1969
|
+
"pages": ["api/scene#The light probe grid", "guides/baked-light-data#A probe grid"],
|
|
1970
|
+
"source": "reference",
|
|
1971
|
+
"images": ["webgpu/probe-grid-off.png", "webgpu/probe-grid.png"],
|
|
1972
|
+
"alt": "Left: a room lit by its environment alone. Right: the same room with a probe grid; the red and green walls tint the floor and spheres, and the corners darken.",
|
|
1973
|
+
"caption": "Without and with a light probe grid. The grid here was baked in the browser; a file from another bake tool gives the same result.",
|
|
1974
|
+
"files": [
|
|
1975
|
+
"tests/pages/sketches/probe-grid-sketch.ts",
|
|
1976
|
+
"tests/image/references/chrome-real-gpu/webgpu/probe-grid-off.png",
|
|
1977
|
+
"tests/image/references/chrome-real-gpu/webgpu/probe-grid.png"
|
|
1978
|
+
],
|
|
1979
|
+
"verdict": "shots-api__scene.md; shots-guides__baked-light-data.md"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"id": "api/scene/time-of-day-presets",
|
|
1983
|
+
"pages": ["api/scene#Time of day"],
|
|
1984
|
+
"source": "reference",
|
|
1985
|
+
"images": [
|
|
1986
|
+
"webgpu/time-of-day-afternoon.png",
|
|
1987
|
+
"webgpu/time-of-day-golden-hour.png",
|
|
1988
|
+
"webgpu/time-of-day-blue-hour.png",
|
|
1989
|
+
"webgpu/time-of-day-night.png"
|
|
1990
|
+
],
|
|
1991
|
+
"alt": "A row of spheres under the afternoon, golden hour, blue hour and night presets.",
|
|
1992
|
+
"caption": "Each panel names its preset. Blue hour reads dark with a red horizon.",
|
|
1993
|
+
"files": [
|
|
1994
|
+
"tests/image/manifest.ts",
|
|
1995
|
+
"tests/image/references/chrome-real-gpu/webgpu/time-of-day-afternoon.png",
|
|
1996
|
+
"tests/image/references/chrome-real-gpu/webgpu/time-of-day-golden-hour.png",
|
|
1997
|
+
"tests/image/references/chrome-real-gpu/webgpu/time-of-day-blue-hour.png",
|
|
1998
|
+
"tests/image/references/chrome-real-gpu/webgpu/time-of-day-night.png"
|
|
1999
|
+
],
|
|
2000
|
+
"verdict": "shots-api__scene.md"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"id": "api/sound/sound-demo",
|
|
2004
|
+
"pages": ["api/sound#beside the sound demo paragraph"],
|
|
2005
|
+
"source": "reference",
|
|
2006
|
+
"images": ["webgpu/demo-sound.png"],
|
|
2007
|
+
"alt": "Lightning strikes a dark moor in the rain, behind a ring of standing stones and a brook.",
|
|
2008
|
+
"caption": "The sound demo: thunder, rain and a brook.",
|
|
2009
|
+
"files": ["examples/sound/", "tests/image/references/chrome-real-gpu/webgpu/demo-sound.png"],
|
|
2010
|
+
"verdict": "shots-api__sound.md"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"id": "api/tasks/task-on-job-worker",
|
|
2014
|
+
"pages": ["api/tasks#What the engine guarantees"],
|
|
2015
|
+
"source": "manual",
|
|
2016
|
+
"steps": "Open the splats demo on a cross-origin isolated page. Wait for the scan, move the camera so the selection runs each frame. Record 2 s, expand the null3d-job-<n>, null3d-sketch and null3d-render tracks, crop to two or three frames. Say \"sketch worker\", not \"main thread\".",
|
|
2017
|
+
"alt": "A performance recording with the splats selection task on a null3d-job worker track, beside the sketch worker's and render worker's frames.",
|
|
2018
|
+
"caption": "A task runs off the sketch thread.",
|
|
2019
|
+
"files": ["examples/splats/", "packages/splats/"],
|
|
2020
|
+
"verdict": "shots-api__tasks.md"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"id": "api/terrain/terrain-demo",
|
|
2024
|
+
"pages": ["api/terrain#under the intro"],
|
|
2025
|
+
"source": "scripted",
|
|
2026
|
+
"images": ["webgpu/demo-terrain.png"],
|
|
2027
|
+
"steps": "examples page ?demo=terrain&still at 1280x720, wait about 3 s, capture.",
|
|
2028
|
+
"alt": "A hilly valley at golden hour drawn by the terrain add-on, with snow on the far ridge.",
|
|
2029
|
+
"caption": "The terrain demo.",
|
|
2030
|
+
"files": [
|
|
2031
|
+
"examples/terrain/",
|
|
2032
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-terrain.png"
|
|
2033
|
+
],
|
|
2034
|
+
"verdict": "shots-api__terrain.md"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"id": "api/terrain/terrain-wireframe",
|
|
2038
|
+
"pages": ["api/terrain#How it works (beside \"The ground is a quadtree\")"],
|
|
2039
|
+
"source": "scripted",
|
|
2040
|
+
"steps": "?demo=terrain&still&view=wireframe at 1280x720, wait about 3 s. Check the near blocks stay readable; else crop or add &preset=low.",
|
|
2041
|
+
"alt": "The terrain in wireframe: small blocks near the camera, large blocks far away.",
|
|
2042
|
+
"caption": "The quadtree of blocks.",
|
|
2043
|
+
"files": ["examples/terrain/", "packages/engine/src/page/switches.ts"],
|
|
2044
|
+
"verdict": "shots-api__terrain.md"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"id": "api/textures/canvas-screen",
|
|
2048
|
+
"pages": [
|
|
2049
|
+
"api/textures#Canvases",
|
|
2050
|
+
"guides/screens#under the intro",
|
|
2051
|
+
"cookbook/index#Screens in the world"
|
|
2052
|
+
],
|
|
2053
|
+
"source": "scripted",
|
|
2054
|
+
"images": ["webgpu/demo-canvas-screen.png"],
|
|
2055
|
+
"steps": "For a sharper picture hold canvas-screen at 1 s at 1280x720. Fallback: the reference.",
|
|
2056
|
+
"alt": "A dark wall with three glowing screens that show numbers and bar gauges, and a small console panel with a wave trace below them.",
|
|
2057
|
+
"caption": "Screens painted on canvases.",
|
|
2058
|
+
"files": [
|
|
2059
|
+
"examples/canvas-screen/",
|
|
2060
|
+
"examples/addons/screens/",
|
|
2061
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-canvas-screen.png"
|
|
2062
|
+
],
|
|
2063
|
+
"verdict": "shots-api__textures.md; shots-guides__screens.md; shots-cookbook__index.md"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"id": "api/textures/mipmaps",
|
|
2067
|
+
"pages": ["api/textures#Mip levels"],
|
|
2068
|
+
"source": "reference",
|
|
2069
|
+
"images": ["webgpu/texture-mipmaps.png"],
|
|
2070
|
+
"alt": "A checkerboard drawn smaller and smaller: with mip levels the small copies fade to gray, without them they break into stray texels. Below, two receding floors; the right one uses anisotropic filtering and stays sharp further away.",
|
|
2071
|
+
"caption": "Mip levels and anisotropic filtering.",
|
|
2072
|
+
"files": [
|
|
2073
|
+
"tests/pages/sketches/texture-mipmaps-sketch.ts",
|
|
2074
|
+
"tests/image/references/chrome-real-gpu/webgpu/texture-mipmaps.png"
|
|
2075
|
+
],
|
|
2076
|
+
"verdict": "shots-api__textures.md"
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"id": "api/three-compat/outline-plain-and-glow",
|
|
2080
|
+
"pages": ["api/three-compat#The outline"],
|
|
2081
|
+
"source": "reference",
|
|
2082
|
+
"images": ["webgpu/outline-plain.png", "webgpu/outline-compat-glow.png"],
|
|
2083
|
+
"alt": "The core's thin white outline beside the add-on's soft orange outline with glow, on the same sphere and box.",
|
|
2084
|
+
"caption": "Core outline and the add-on's glow. The colors are the test's, not the page's code.",
|
|
2085
|
+
"files": [
|
|
2086
|
+
"tests/pages/sketches/outline-sketch.ts",
|
|
2087
|
+
"tests/image/references/chrome-real-gpu/webgpu/outline-plain.png",
|
|
2088
|
+
"tests/image/references/chrome-real-gpu/webgpu/outline-compat-glow.png"
|
|
2089
|
+
],
|
|
2090
|
+
"verdict": "shots-api__three-compat.md"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"id": "api/vertex-draws/rain",
|
|
2094
|
+
"pages": ["api/vertex-draws#Rain around the camera"],
|
|
2095
|
+
"source": "reference",
|
|
2096
|
+
"images": ["webgpu/demo-rain.png"],
|
|
2097
|
+
"alt": "Thousands of thin rain streaks fall through a dark night street with one distant lamp.",
|
|
2098
|
+
"caption": "Fifty thousand rain streaks from one vertex draw.",
|
|
2099
|
+
"files": [
|
|
2100
|
+
"examples/rain/sketch.ts",
|
|
2101
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-rain.png"
|
|
2102
|
+
],
|
|
2103
|
+
"verdict": "shots-api__vertex-draws.md"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"id": "api/water/water-demo",
|
|
2107
|
+
"pages": ["api/water#under the intro"],
|
|
2108
|
+
"source": "reference",
|
|
2109
|
+
"images": ["webgpu/demo-water.png"],
|
|
2110
|
+
"alt": "A river with boulders running down a grassy valley under a hazy sky.",
|
|
2111
|
+
"caption": "The water demo.",
|
|
2112
|
+
"files": ["examples/water/", "tests/image/references/chrome-real-gpu/webgpu/demo-water.png"],
|
|
2113
|
+
"verdict": "shots-api__water.md",
|
|
2114
|
+
"note": "A larger copy: water demo with ?hold=1 at a larger size."
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"id": "api/water/water-rain",
|
|
2118
|
+
"pages": ["api/water#Rain on the surface"],
|
|
2119
|
+
"source": "reference",
|
|
2120
|
+
"images": ["webgpu/water-rain.png"],
|
|
2121
|
+
"alt": "Raindrop rings on a lake beside a pale post and a dark stone.",
|
|
2122
|
+
"caption": "Rain on the surface.",
|
|
2123
|
+
"files": [
|
|
2124
|
+
"tests/pages/sketches/water-rain-sketch.ts",
|
|
2125
|
+
"tests/image/references/chrome-real-gpu/webgpu/water-rain.png"
|
|
2126
|
+
],
|
|
2127
|
+
"verdict": "shots-api__water.md"
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"id": "api/water/waterfall",
|
|
2131
|
+
"pages": ["api/water#Waterfalls"],
|
|
2132
|
+
"source": "reference",
|
|
2133
|
+
"images": ["webgpu/water-fall.png"],
|
|
2134
|
+
"alt": "A creek falling from a cliff's lip in a white column into mist.",
|
|
2135
|
+
"caption": "A waterfall.",
|
|
2136
|
+
"files": [
|
|
2137
|
+
"tests/pages/sketches/waterfall-sketch.ts",
|
|
2138
|
+
"tests/image/references/chrome-real-gpu/webgpu/water-fall.png"
|
|
2139
|
+
],
|
|
2140
|
+
"verdict": "shots-api__water.md"
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
"id": "api/water/underwater",
|
|
2144
|
+
"pages": ["api/water#The view from under the water"],
|
|
2145
|
+
"source": "scripted",
|
|
2146
|
+
"steps": "Open the water demo with ?hold=42 (the tour's sixth shot, 1.2 m under the lake) and capture.",
|
|
2147
|
+
"alt": "The view from under a lake, tinted green-blue, with caustics on the bed.",
|
|
2148
|
+
"caption": "Under the surface.",
|
|
2149
|
+
"files": ["examples/water/valley.ts"],
|
|
2150
|
+
"verdict": "shots-api__water.md"
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
"id": "api/reference/textures/texture-wrap",
|
|
2154
|
+
"pages": ["api/reference/textures#TextureWrap"],
|
|
2155
|
+
"source": "scripted",
|
|
2156
|
+
"images": ["webgpu/textures.png"],
|
|
2157
|
+
"steps": "tests/pages/image.html?sketch=/tests/pages/sketches/textures-sketch.ts&hold=0&size=1440x810&gpu=webgpu; crop the three left squares of the bottom row.",
|
|
2158
|
+
"alt": "A grid of texture samples. The bottom row applies repeat, clamp and mirror wrap to the same picture, then shows nearest and linear filters.",
|
|
2159
|
+
"caption": "Wrap modes and the other texture checks.",
|
|
2160
|
+
"files": [
|
|
2161
|
+
"tests/pages/sketches/textures-sketch.ts",
|
|
2162
|
+
"tests/image/references/chrome-real-gpu/webgpu/textures.png"
|
|
2163
|
+
],
|
|
2164
|
+
"verdict": "shots-api__reference__textures.md",
|
|
2165
|
+
"note": "Needs the reference generator to print images."
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"id": "api/reference/ui/world-labels",
|
|
2169
|
+
"pages": ["api/reference/ui#LabelTransform"],
|
|
2170
|
+
"source": "scripted",
|
|
2171
|
+
"steps": "Development build: examples/index.html?demo=css3d-labels&hold=3.5 at 1280x720. Screenshot the demo stage (the main element), not the canvas alone, so the HTML label layer shows. Check the cards and the title show.",
|
|
2172
|
+
"alt": "Dark monoliths with HTML cards that lean with them, and a CSS3D title that stays square to the view.",
|
|
2173
|
+
"caption": "'world' labels lean with their objects; a 'billboard' label faces the camera.",
|
|
2174
|
+
"files": ["examples/css3d-labels/sketch.ts", "examples/lib/run.ts"],
|
|
2175
|
+
"verdict": "shots-api__reference__ui.md",
|
|
2176
|
+
"note": "The reference page needs the generator to print images."
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"id": "cli/null3d/test-diff",
|
|
2180
|
+
"pages": [
|
|
2181
|
+
"cli/null3d#References and results",
|
|
2182
|
+
"porting/verification#Compare the port with image tests"
|
|
2183
|
+
],
|
|
2184
|
+
"source": "scripted",
|
|
2185
|
+
"steps": "bunx @null3d/cli create shot-demo; bun install; add null3d.json {\"tests\":[{\"name\":\"start\",\"sketch\":\"src/sketch.ts\",\"hold\":1.5}]}; bunx @null3d/cli test --gpu webgpu --update-references; change the cube color #4a8cff; bunx @null3d/cli test --gpu webgpu. Side by side: tests/references/chrome-real-gpu/webgpu/start.png, test-results/null3d/chrome-real-gpu/webgpu/start.png, start-diff.png.",
|
|
2186
|
+
"alt": "A failed image test: the reference, the new image and the diff with changed pixels in red.",
|
|
2187
|
+
"caption": "What test writes when a picture changes.",
|
|
2188
|
+
"files": ["packages/cli/src/test.js", "packages/cli/src/compare.js"],
|
|
2189
|
+
"verdict": "shots-cli__null3d.md; shots-porting__verification.md"
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"id": "cli/null3d/impostor-atlas",
|
|
2193
|
+
"pages": ["cli/null3d#assets impostor"],
|
|
2194
|
+
"source": "scripted",
|
|
2195
|
+
"steps": "bunx @null3d/cli assets impostor tests/pages/assets/models/asset-card-tree.glb --out <folder> --views 25 --texels 64; show <folder>/asset-card-tree-impostor-color.png.",
|
|
2196
|
+
"alt": "A five by five grid of one tree seen from 25 directions: the impostor color atlas.",
|
|
2197
|
+
"caption": "What assets impostor writes.",
|
|
2198
|
+
"files": ["packages/cli/src/assets.js", "tests/pages/assets/models/asset-card-tree.glb"],
|
|
2199
|
+
"verdict": "shots-cli__null3d.md"
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
"id": "errors/E1224/override-pair",
|
|
2203
|
+
"pages": ["errors/E1224"],
|
|
2204
|
+
"source": "reference",
|
|
2205
|
+
"images": ["webgpu/demo-objects.png", "webgpu/demo-objects-one-material.png"],
|
|
2206
|
+
"alt": "Left: six crates in six finishes on a turntable stage. Right: the same stage with the floor and every crate drawn in one plaster material.",
|
|
2207
|
+
"caption": "What a valid one-material override changes.",
|
|
2208
|
+
"files": [
|
|
2209
|
+
"examples/objects/sketch.ts",
|
|
2210
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-objects.png",
|
|
2211
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-objects-one-material.png"
|
|
2212
|
+
],
|
|
2213
|
+
"verdict": "shots-errors__E1224.md",
|
|
2214
|
+
"note": "Error pages are generated: the image needs support in the error page code in tools/lib/docs.ts."
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
"id": "errors/E1431/area-lights-no-tables",
|
|
2218
|
+
"pages": ["errors/E1431"],
|
|
2219
|
+
"source": "scripted",
|
|
2220
|
+
"images": ["webgpu/demo-area-lights.png"],
|
|
2221
|
+
"steps": "Right half: context.route that aborts every request whose URL contains \"area-light-tables\". Open the area-lights demo on webgpu without ?hold. Wait for the first frame plus about 2 s, no pointer moves. Check the console shows E1431, capture the canvas.",
|
|
2222
|
+
"alt": "Left: a wet street lit by rectangle and tube lights. Right: the same street with the area lights dark because their tables failed to load.",
|
|
2223
|
+
"caption": "What E1431 looks like.",
|
|
2224
|
+
"files": [
|
|
2225
|
+
"examples/area-lights/",
|
|
2226
|
+
"tests/image/references/chrome-real-gpu/webgpu/demo-area-lights.png"
|
|
2227
|
+
],
|
|
2228
|
+
"verdict": "shots-errors__E1431.md",
|
|
2229
|
+
"note": "The picture is two panels: the lit street, and the same street with its area-light tables aborted. The capture tool draws the lit demo alone, so this shot waits for a person."
|
|
2230
|
+
}
|
|
2231
|
+
]
|