@null3d/engine 0.0.0-stage → 0.0.0
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/LICENSE-APACHE +176 -0
- package/LICENSE-MIT +21 -0
- package/THIRD-PARTY-NOTICES.txt +638 -0
- package/dist/wasm/single/null3d.js +3959 -0
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +3975 -0
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +536 -0
- package/docs/api/assets.md +384 -0
- package/docs/api/cameras.md +159 -0
- package/docs/api/controls.md +317 -0
- package/docs/api/debug.md +445 -0
- package/docs/api/engine.md +248 -0
- package/docs/api/feature-draws.md +172 -0
- package/docs/api/feature-effects.md +137 -0
- package/docs/api/feature-instances.md +154 -0
- package/docs/api/features.md +324 -0
- package/docs/api/geometry.md +326 -0
- package/docs/api/grass.md +114 -0
- package/docs/api/impostors.md +163 -0
- package/docs/api/input.md +245 -0
- package/docs/api/lights.md +290 -0
- package/docs/api/lines.md +180 -0
- package/docs/api/materials.md +876 -0
- package/docs/api/math.md +130 -0
- package/docs/api/objects.md +155 -0
- package/docs/api/page.md +97 -0
- package/docs/api/particles.md +217 -0
- package/docs/api/points.md +152 -0
- package/docs/api/post.md +495 -0
- package/docs/api/quality.md +195 -0
- package/docs/api/raycast.md +288 -0
- package/docs/api/reference/animation.md +158 -0
- package/docs/api/reference/assets.md +335 -0
- package/docs/api/reference/cameras.md +135 -0
- package/docs/api/reference/controls.md +411 -0
- package/docs/api/reference/debug.md +571 -0
- package/docs/api/reference/engine.md +635 -0
- package/docs/api/reference/feature-draws.md +94 -0
- package/docs/api/reference/feature-effects.md +32 -0
- package/docs/api/reference/feature-instances.md +63 -0
- package/docs/api/reference/features.md +361 -0
- package/docs/api/reference/geometry.md +777 -0
- package/docs/api/reference/grass.md +131 -0
- package/docs/api/reference/impostors.md +277 -0
- package/docs/api/reference/input.md +121 -0
- package/docs/api/reference/lights.md +257 -0
- package/docs/api/reference/lines.md +84 -0
- package/docs/api/reference/materials.md +375 -0
- package/docs/api/reference/math.md +229 -0
- package/docs/api/reference/objects.md +103 -0
- package/docs/api/reference/particles.md +336 -0
- package/docs/api/reference/points.md +57 -0
- package/docs/api/reference/post.md +244 -0
- package/docs/api/reference/quality.md +209 -0
- package/docs/api/reference/raycast.md +94 -0
- package/docs/api/reference/render.md +238 -0
- package/docs/api/reference/scene.md +540 -0
- package/docs/api/reference/sketch.md +121 -0
- package/docs/api/reference/splats.md +214 -0
- package/docs/api/reference/sprites.md +71 -0
- package/docs/api/reference/tasks.md +92 -0
- package/docs/api/reference/terrain.md +160 -0
- package/docs/api/reference/textures.md +153 -0
- package/docs/api/reference/three-compat.md +60 -0
- package/docs/api/reference/time.md +25 -0
- package/docs/api/reference/ui.md +52 -0
- package/docs/api/reference/vertex-draws.md +55 -0
- package/docs/api/reference/water.md +359 -0
- package/docs/api/reference/wind.md +106 -0
- package/docs/api/render.md +497 -0
- package/docs/api/scene.md +595 -0
- package/docs/api/sketch.md +170 -0
- package/docs/api/splats.md +257 -0
- package/docs/api/sprites.md +185 -0
- package/docs/api/tasks.md +106 -0
- package/docs/api/terrain.md +130 -0
- package/docs/api/textures.md +272 -0
- package/docs/api/three-compat.md +102 -0
- package/docs/api/time.md +134 -0
- package/docs/api/ui.md +146 -0
- package/docs/api/vertex-draws.md +171 -0
- package/docs/api/water.md +303 -0
- package/docs/api/wind.md +375 -0
- package/docs/cli/null3d.md +528 -0
- package/docs/concepts/architecture.md +174 -0
- package/docs/concepts/assets.md +145 -0
- package/docs/concepts/backends.md +195 -0
- package/docs/concepts/color-management.md +145 -0
- package/docs/concepts/culling.md +227 -0
- package/docs/concepts/handles.md +93 -0
- package/docs/concepts/instances.md +285 -0
- package/docs/concepts/large-worlds.md +126 -0
- package/docs/concepts/lighting.md +592 -0
- package/docs/concepts/lod.md +254 -0
- package/docs/concepts/materials.md +128 -0
- package/docs/concepts/particle-buffer.md +201 -0
- package/docs/concepts/post-processing.md +442 -0
- package/docs/concepts/quality-preset-tables.md +91 -0
- package/docs/concepts/quality-presets.md +312 -0
- package/docs/concepts/render-graph.md +217 -0
- package/docs/concepts/render-layers.md +125 -0
- package/docs/concepts/shadows.md +466 -0
- package/docs/concepts/static-dynamic.md +113 -0
- package/docs/cookbook/index.md +664 -0
- package/docs/data/threejs-mapping.json +2118 -0
- package/docs/errors/E1101.md +23 -0
- package/docs/errors/E1102.md +23 -0
- package/docs/errors/E1103.md +23 -0
- package/docs/errors/E1104.md +23 -0
- package/docs/errors/E1105.md +23 -0
- package/docs/errors/E1106.md +23 -0
- package/docs/errors/E1107.md +23 -0
- package/docs/errors/E1108.md +23 -0
- package/docs/errors/E1109.md +23 -0
- package/docs/errors/E1110.md +23 -0
- package/docs/errors/E1111.md +23 -0
- package/docs/errors/E1112.md +23 -0
- package/docs/errors/E1203.md +23 -0
- package/docs/errors/E1204.md +23 -0
- package/docs/errors/E1205.md +23 -0
- package/docs/errors/E1206.md +23 -0
- package/docs/errors/E1207.md +23 -0
- package/docs/errors/E1208.md +23 -0
- package/docs/errors/E1209.md +23 -0
- package/docs/errors/E1213.md +23 -0
- package/docs/errors/E1214.md +23 -0
- package/docs/errors/E1215.md +23 -0
- package/docs/errors/E1216.md +23 -0
- package/docs/errors/E1217.md +23 -0
- package/docs/errors/E1218.md +23 -0
- package/docs/errors/E1219.md +23 -0
- package/docs/errors/E1220.md +23 -0
- package/docs/errors/E1221.md +23 -0
- package/docs/errors/E1222.md +23 -0
- package/docs/errors/E1223.md +23 -0
- package/docs/errors/E1224.md +23 -0
- package/docs/errors/E1225.md +23 -0
- package/docs/errors/E1301.md +23 -0
- package/docs/errors/E1302.md +23 -0
- package/docs/errors/E1303.md +23 -0
- package/docs/errors/E1304.md +23 -0
- package/docs/errors/E1305.md +23 -0
- package/docs/errors/E1306.md +23 -0
- package/docs/errors/E1401.md +23 -0
- package/docs/errors/E1402.md +23 -0
- package/docs/errors/E1403.md +23 -0
- package/docs/errors/E1404.md +23 -0
- package/docs/errors/E1405.md +23 -0
- package/docs/errors/E1406.md +23 -0
- package/docs/errors/E1407.md +23 -0
- package/docs/errors/E1408.md +23 -0
- package/docs/errors/E1409.md +23 -0
- package/docs/errors/E1410.md +23 -0
- package/docs/errors/E1411.md +23 -0
- package/docs/errors/E1412.md +23 -0
- package/docs/errors/E1413.md +23 -0
- package/docs/errors/E1414.md +23 -0
- package/docs/errors/E1415.md +23 -0
- package/docs/errors/E1416.md +23 -0
- package/docs/errors/E1417.md +23 -0
- package/docs/errors/E1418.md +23 -0
- package/docs/errors/E1419.md +23 -0
- package/docs/errors/E1420.md +23 -0
- package/docs/errors/E1421.md +23 -0
- package/docs/errors/E1422.md +23 -0
- package/docs/errors/E1423.md +23 -0
- package/docs/errors/E1424.md +23 -0
- package/docs/errors/E1425.md +23 -0
- package/docs/errors/E1426.md +23 -0
- package/docs/errors/E1430.md +23 -0
- package/docs/errors/E1431.md +23 -0
- package/docs/errors/E1432.md +23 -0
- package/docs/errors/E1433.md +23 -0
- package/docs/errors/E1434.md +23 -0
- package/docs/errors/E1435.md +23 -0
- package/docs/errors/E1436.md +23 -0
- package/docs/errors/E1437.md +23 -0
- package/docs/errors/E1501.md +23 -0
- package/docs/errors/E1502.md +23 -0
- package/docs/errors/E1503.md +23 -0
- package/docs/errors/E1504.md +23 -0
- package/docs/errors/E1505.md +23 -0
- package/docs/errors/E1506.md +23 -0
- package/docs/errors/index.md +92 -0
- package/docs/getting-started/cdn.md +219 -0
- package/docs/getting-started/first-scene.md +129 -0
- package/docs/getting-started/hosting.md +359 -0
- package/docs/getting-started/install.md +111 -0
- package/docs/getting-started/network-use.md +88 -0
- package/docs/getting-started/project-structure.md +69 -0
- package/docs/getting-started/third-party-notices.md +92 -0
- package/docs/guides/accessibility.md +96 -0
- package/docs/guides/add-ons.md +159 -0
- package/docs/guides/agents.md +66 -0
- package/docs/guides/assets-pipeline.md +504 -0
- package/docs/guides/audio.md +163 -0
- package/docs/guides/baked-light-data.md +176 -0
- package/docs/guides/car-paint.md +121 -0
- package/docs/guides/content-pages.md +234 -0
- package/docs/guides/custom-passes.md +585 -0
- package/docs/guides/custom-shaders.md +290 -0
- package/docs/guides/debugging.md +162 -0
- package/docs/guides/deploying.md +15 -0
- package/docs/guides/deterministic-simulation.md +226 -0
- package/docs/guides/first-use-shaders.md +57 -0
- package/docs/guides/lens-kit.md +134 -0
- package/docs/guides/loading-screens.md +218 -0
- package/docs/guides/multiple-views.md +83 -0
- package/docs/guides/performance.md +402 -0
- package/docs/guides/phones.md +127 -0
- package/docs/guides/physics.md +202 -0
- package/docs/guides/screens.md +123 -0
- package/docs/guides/testing.md +227 -0
- package/docs/guides/ui-overlays.md +182 -0
- package/docs/guides/video-textures.md +110 -0
- package/docs/index.md +45 -0
- package/docs/pages.md +239 -0
- package/docs/porting/react-three-fiber.md +15 -0
- package/docs/porting/threejs-loop-and-threads.md +15 -0
- package/docs/porting/threejs-mapping.md +295 -0
- package/docs/porting/threejs-materials.md +15 -0
- package/docs/porting/threejs-overview.md +15 -0
- package/docs/porting/threejs-postprocessing.md +256 -0
- package/docs/porting/threejs-shaders.md +15 -0
- package/docs/porting/threejs-unsupported.md +15 -0
- package/docs/porting/verification.md +15 -0
- package/docs/shaders/builtins.md +129 -0
- package/docs/shaders/library.md +1350 -0
- package/docs/shaders/surface-functions.md +625 -0
- package/docs/shaders/wgsl-rules.md +126 -0
- package/levels/pieces.d.ts +178 -0
- package/levels/pieces.js +759 -0
- package/levels/planner.d.ts +126 -0
- package/levels/planner.js +682 -0
- package/lib/debug/debug.d.ts +178 -0
- package/lib/debug/debug.js +4 -0
- package/lib/debug/draw.d.ts +137 -0
- package/lib/debug/draw.js +672 -0
- package/lib/debug/frame-target.d.ts +11 -0
- package/lib/debug/frame-target.js +31 -0
- package/lib/debug/overlay-look.d.ts +162 -0
- package/lib/debug/overlay-look.js +1365 -0
- package/lib/debug/overlay.d.ts +68 -0
- package/lib/debug/overlay.js +195 -0
- package/lib/debug/page-meters.d.ts +139 -0
- package/lib/debug/page-meters.js +267 -0
- package/lib/debug/sketch-debug.d.ts +41 -0
- package/lib/debug/sketch-debug.js +86 -0
- package/lib/debug/stats-options.d.ts +15 -0
- package/lib/debug/stats-options.js +3 -0
- package/lib/debug/stats-panel.d.ts +94 -0
- package/lib/debug/stats-panel.js +123 -0
- package/lib/debug/stats-text.d.ts +169 -0
- package/lib/debug/stats-text.js +126 -0
- package/lib/debug/stats.d.ts +196 -0
- package/lib/debug/stats.js +252 -0
- package/lib/debug/view-names.d.ts +15 -0
- package/lib/debug/view-names.js +22 -0
- package/lib/errors/checks.d.ts +24 -0
- package/lib/errors/checks.js +38 -0
- package/lib/errors/codes.d.ts +15 -0
- package/lib/errors/codes.js +483 -0
- package/lib/errors/core-failure.d.ts +19 -0
- package/lib/errors/core-failure.js +127 -0
- package/lib/errors/engine-error-core.d.ts +21 -0
- package/lib/errors/engine-error-core.js +39 -0
- package/lib/errors/engine-error.d.ts +38 -0
- package/lib/errors/engine-error.js +117 -0
- package/lib/errors/fixes.d.ts +88 -0
- package/lib/errors/fixes.js +85 -0
- package/lib/errors/message.d.ts +4 -0
- package/lib/errors/message.js +10 -0
- package/lib/generated/core.d.ts +657 -0
- package/lib/generated/core.js +659 -0
- package/lib/generated/gpu.d.ts +412 -0
- package/lib/generated/gpu.js +414 -0
- package/lib/generated/shader-features.d.ts +8 -0
- package/lib/generated/shader-permutations.d.ts +6 -0
- package/lib/generated/shader-permutations.js +9 -0
- package/lib/generated/shaders-environment-glsl.d.ts +11 -0
- package/lib/generated/shaders-environment-wgsl.d.ts +11 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders-probe-glsl.d.ts +11 -0
- package/lib/generated/shaders-probe-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-wgsl.d.ts +11 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders.d.ts +1146 -0
- package/lib/gpu/canvas-release.d.ts +20 -0
- package/lib/gpu/canvas-release.js +67 -0
- package/lib/gpu/completion.d.ts +35 -0
- package/lib/gpu/completion.js +256 -0
- package/lib/gpu/device-shaders.d.ts +69 -0
- package/lib/gpu/device-shaders.js +177 -0
- package/lib/gpu/effect-join.d.ts +83 -0
- package/lib/gpu/effect-join.js +134 -0
- package/lib/gpu/effect-joiner.d.ts +14 -0
- package/lib/gpu/effect-joiner.js +165 -0
- package/lib/gpu/environment-steps.d.ts +135 -0
- package/lib/gpu/environment-steps.js +210 -0
- package/lib/gpu/environment-words.d.ts +14 -0
- package/lib/gpu/environment-words.js +19 -0
- package/lib/gpu/environment.d.ts +4 -0
- package/lib/gpu/environment.js +8 -0
- package/lib/gpu/float-bits.d.ts +2 -0
- package/lib/gpu/float-bits.js +9 -0
- package/lib/gpu/line-vertices.d.ts +1 -0
- package/lib/gpu/line-vertices.js +14 -0
- package/lib/gpu/memory.d.ts +19 -0
- package/lib/gpu/memory.js +50 -0
- package/lib/gpu/particle-records.d.ts +1 -0
- package/lib/gpu/particle-records.js +15 -0
- package/lib/gpu/probe-steps.d.ts +22 -0
- package/lib/gpu/probe-steps.js +43 -0
- package/lib/gpu/readback.d.ts +32 -0
- package/lib/gpu/readback.js +163 -0
- package/lib/gpu/variants.d.ts +16 -0
- package/lib/gpu/variants.js +67 -0
- package/lib/gpu/vertex-format.d.ts +46 -0
- package/lib/gpu/vertex-format.js +111 -0
- package/lib/gpu/webgl2/backend.d.ts +653 -0
- package/lib/gpu/webgl2/backend.js +2746 -0
- package/lib/gpu/webgl2/call-timing.d.ts +34 -0
- package/lib/gpu/webgl2/call-timing.js +143 -0
- package/lib/gpu/webgl2/context.d.ts +31 -0
- package/lib/gpu/webgl2/context.js +111 -0
- package/lib/gpu/webgl2/depth.d.ts +25 -0
- package/lib/gpu/webgl2/depth.js +30 -0
- package/lib/gpu/webgl2/environment.d.ts +65 -0
- package/lib/gpu/webgl2/environment.js +572 -0
- package/lib/gpu/webgl2/gpu-timer.d.ts +25 -0
- package/lib/gpu/webgl2/gpu-timer.js +93 -0
- package/lib/gpu/webgl2/probes.d.ts +38 -0
- package/lib/gpu/webgl2/probes.js +117 -0
- package/lib/gpu/webgl2/programs.d.ts +220 -0
- package/lib/gpu/webgl2/programs.js +484 -0
- package/lib/gpu/webgpu/backend.d.ts +373 -0
- package/lib/gpu/webgpu/backend.js +1565 -0
- package/lib/gpu/webgpu/buffer-reads.d.ts +42 -0
- package/lib/gpu/webgpu/buffer-reads.js +95 -0
- package/lib/gpu/webgpu/culled-counts.d.ts +79 -0
- package/lib/gpu/webgpu/culled-counts.js +259 -0
- package/lib/gpu/webgpu/draw-path-probe.d.ts +37 -0
- package/lib/gpu/webgpu/draw-path-probe.js +187 -0
- package/lib/gpu/webgpu/environment.d.ts +36 -0
- package/lib/gpu/webgpu/environment.js +735 -0
- package/lib/gpu/webgpu/first-pass.d.ts +13 -0
- package/lib/gpu/webgpu/first-pass.js +61 -0
- package/lib/gpu/webgpu/gpu-timer.d.ts +67 -0
- package/lib/gpu/webgpu/gpu-timer.js +328 -0
- package/lib/gpu/webgpu/indirect-arguments.d.ts +42 -0
- package/lib/gpu/webgpu/indirect-arguments.js +156 -0
- package/lib/gpu/webgpu/pipelines.d.ts +251 -0
- package/lib/gpu/webgpu/pipelines.js +1999 -0
- package/lib/gpu/webgpu/probes.d.ts +27 -0
- package/lib/gpu/webgpu/probes.js +190 -0
- package/lib/gpu/webgpu/reusable.d.ts +74 -0
- package/lib/gpu/webgpu/reusable.js +212 -0
- package/lib/gpu/webgpu/staging.d.ts +79 -0
- package/lib/gpu/webgpu/staging.js +238 -0
- package/lib/gpu/webgpu/upload-routes.d.ts +55 -0
- package/lib/gpu/webgpu/upload-routes.js +128 -0
- package/lib/index.d.ts +119 -0
- package/lib/index.js +53 -0
- package/lib/math/color.d.ts +18 -0
- package/lib/math/color.js +71 -0
- package/lib/math/create-math.d.ts +101 -0
- package/lib/math/create-math.js +207 -0
- package/lib/math/hex.d.ts +8 -0
- package/lib/math/hex.js +38 -0
- package/lib/math/index.d.ts +2 -0
- package/lib/math/index.js +11 -0
- package/lib/math/mat4.d.ts +28 -0
- package/lib/math/mat4.js +212 -0
- package/lib/math/math.d.ts +16 -0
- package/lib/math/math.js +42 -0
- package/lib/math/namespaces/math.d.ts +7 -0
- package/lib/math/namespaces/math.js +14 -0
- package/lib/math/namespaces/quat.d.ts +20 -0
- package/lib/math/namespaces/quat.js +30 -0
- package/lib/math/namespaces/vec3.d.ts +4 -0
- package/lib/math/namespaces/vec3.js +8 -0
- package/lib/math/quat.d.ts +40 -0
- package/lib/math/quat.js +228 -0
- package/lib/math/random.d.ts +17 -0
- package/lib/math/random.js +58 -0
- package/lib/math/types.d.ts +43 -0
- package/lib/math/types.js +4 -0
- package/lib/math/vec3.d.ts +46 -0
- package/lib/math/vec3.js +190 -0
- package/lib/page/abortable.d.ts +2 -0
- package/lib/page/abortable.js +19 -0
- package/lib/page/browser-check.d.ts +8 -0
- package/lib/page/browser-check.js +23 -0
- package/lib/page/canvas-watch.d.ts +34 -0
- package/lib/page/canvas-watch.js +141 -0
- package/lib/page/capabilities.d.ts +201 -0
- package/lib/page/capabilities.js +395 -0
- package/lib/page/check-store.d.ts +42 -0
- package/lib/page/check-store.js +146 -0
- package/lib/page/display.d.ts +2 -0
- package/lib/page/display.js +25 -0
- package/lib/page/early-core.d.ts +1 -0
- package/lib/page/early-core.js +23 -0
- package/lib/page/engine.d.ts +865 -0
- package/lib/page/engine.js +2136 -0
- package/lib/page/frame-stats.d.ts +369 -0
- package/lib/page/frame-stats.js +374 -0
- package/lib/page/gamepads.d.ts +37 -0
- package/lib/page/gamepads.js +123 -0
- package/lib/page/held-input.d.ts +19 -0
- package/lib/page/held-input.js +54 -0
- package/lib/page/hold.d.ts +186 -0
- package/lib/page/hold.js +49 -0
- package/lib/page/input-ring.d.ts +13 -0
- package/lib/page/input-ring.js +25 -0
- package/lib/page/input.d.ts +6 -0
- package/lib/page/input.js +159 -0
- package/lib/page/isolation-check.d.ts +14 -0
- package/lib/page/isolation-check.js +21 -0
- package/lib/page/label-loop.d.ts +76 -0
- package/lib/page/label-loop.js +410 -0
- package/lib/page/labels.d.ts +56 -0
- package/lib/page/labels.js +102 -0
- package/lib/page/limits.d.ts +321 -0
- package/lib/page/limits.js +323 -0
- package/lib/page/loader.d.ts +78 -0
- package/lib/page/loader.js +149 -0
- package/lib/page/main-thread.d.ts +10 -0
- package/lib/page/main-thread.js +41 -0
- package/lib/page/memory-pool.d.ts +26 -0
- package/lib/page/memory-pool.js +69 -0
- package/lib/page/ownership.d.ts +65 -0
- package/lib/page/ownership.js +166 -0
- package/lib/page/permutation-recording.d.ts +26 -0
- package/lib/page/permutation-recording.js +32 -0
- package/lib/page/pointer-lock.d.ts +14 -0
- package/lib/page/pointer-lock.js +60 -0
- package/lib/page/preferences.d.ts +2 -0
- package/lib/page/preferences.js +11 -0
- package/lib/page/record-button.d.ts +5 -0
- package/lib/page/record-button.js +60 -0
- package/lib/page/start-marker.d.ts +44 -0
- package/lib/page/start-marker.js +116 -0
- package/lib/page/stats-switch.d.ts +16 -0
- package/lib/page/stats-switch.js +38 -0
- package/lib/page/stop-jobs.d.ts +37 -0
- package/lib/page/stop-jobs.js +87 -0
- package/lib/page/switches.d.ts +317 -0
- package/lib/page/switches.js +142 -0
- package/lib/page/videos.d.ts +70 -0
- package/lib/page/videos.js +244 -0
- package/lib/quality/budget.d.ts +14 -0
- package/lib/quality/budget.js +25 -0
- package/lib/quality/check.d.ts +98 -0
- package/lib/quality/check.js +70 -0
- package/lib/quality/chooser.d.ts +92 -0
- package/lib/quality/chooser.js +100 -0
- package/lib/quality/device-hints.d.ts +8 -0
- package/lib/quality/device-hints.js +18 -0
- package/lib/quality/governor.d.ts +479 -0
- package/lib/quality/governor.js +1063 -0
- package/lib/quality/preset-docs.d.ts +387 -0
- package/lib/quality/preset-docs.js +176 -0
- package/lib/quality/presets.d.ts +744 -0
- package/lib/quality/presets.js +586 -0
- package/lib/render/direct-loop.d.ts +4 -0
- package/lib/render/direct-loop.js +52 -0
- package/lib/render/draw.d.ts +65 -0
- package/lib/render/draw.js +101 -0
- package/lib/render/load-draw.d.ts +10 -0
- package/lib/render/load-draw.js +16 -0
- package/lib/render/loop.d.ts +241 -0
- package/lib/render/loop.js +566 -0
- package/lib/render/loss.d.ts +35 -0
- package/lib/render/loss.js +99 -0
- package/lib/render/pacer.d.ts +24 -0
- package/lib/render/pacer.js +51 -0
- package/lib/render/recovery.d.ts +62 -0
- package/lib/render/recovery.js +120 -0
- package/lib/render/refresh.d.ts +38 -0
- package/lib/render/refresh.js +111 -0
- package/lib/render/renderer.d.ts +116 -0
- package/lib/render/renderer.js +156 -0
- package/lib/render/scene-renderer.d.ts +117 -0
- package/lib/render/scene-renderer.js +192 -0
- package/lib/render/shader-salt.d.ts +5 -0
- package/lib/render/shader-salt.js +31 -0
- package/lib/render/webgl2-renderers.d.ts +11 -0
- package/lib/render/webgl2-renderers.js +224 -0
- package/lib/render/webgpu-renderers.d.ts +10 -0
- package/lib/render/webgpu-renderers.js +253 -0
- package/lib/scene/addon-debug-views.d.ts +30 -0
- package/lib/scene/addon-debug-views.js +63 -0
- package/lib/scene/animation.d.ts +551 -0
- package/lib/scene/animation.js +1428 -0
- package/lib/scene/area-light-tables.d.ts +32 -0
- package/lib/scene/area-light-tables.js +89 -0
- package/lib/scene/assets.d.ts +400 -0
- package/lib/scene/assets.js +869 -0
- package/lib/scene/background.d.ts +242 -0
- package/lib/scene/background.js +467 -0
- package/lib/scene/baked-light.d.ts +60 -0
- package/lib/scene/baked-light.js +300 -0
- package/lib/scene/builtin-environments.d.ts +36 -0
- package/lib/scene/builtin-environments.js +43 -0
- package/lib/scene/chunk-rows.d.ts +81 -0
- package/lib/scene/chunk-rows.js +146 -0
- package/lib/scene/color.d.ts +22 -0
- package/lib/scene/color.js +45 -0
- package/lib/scene/derived-cache.d.ts +139 -0
- package/lib/scene/derived-cache.js +547 -0
- package/lib/scene/effects.d.ts +193 -0
- package/lib/scene/effects.js +476 -0
- package/lib/scene/environment-file.d.ts +22 -0
- package/lib/scene/environment-file.js +81 -0
- package/lib/scene/environment.d.ts +57 -0
- package/lib/scene/environment.js +131 -0
- package/lib/scene/fake-call-values.d.ts +8 -0
- package/lib/scene/fake-call-values.js +51 -0
- package/lib/scene/feature-draws.d.ts +169 -0
- package/lib/scene/feature-draws.js +269 -0
- package/lib/scene/feature-effects.d.ts +42 -0
- package/lib/scene/feature-effects.js +155 -0
- package/lib/scene/feature-host.d.ts +129 -0
- package/lib/scene/feature-host.js +299 -0
- package/lib/scene/feature-instances.d.ts +130 -0
- package/lib/scene/feature-instances.js +326 -0
- package/lib/scene/features.d.ts +412 -0
- package/lib/scene/features.js +550 -0
- package/lib/scene/file-limits.d.ts +70 -0
- package/lib/scene/file-limits.js +224 -0
- package/lib/scene/fog.d.ts +94 -0
- package/lib/scene/fog.js +142 -0
- package/lib/scene/frame-cameras.d.ts +156 -0
- package/lib/scene/frame-cameras.js +434 -0
- package/lib/scene/gltf-animation.d.ts +129 -0
- package/lib/scene/gltf-animation.js +887 -0
- package/lib/scene/gltf-draco.d.ts +9 -0
- package/lib/scene/gltf-draco.js +224 -0
- package/lib/scene/gltf-extensions.d.ts +31 -0
- package/lib/scene/gltf-extensions.js +92 -0
- package/lib/scene/gltf-json.d.ts +49 -0
- package/lib/scene/gltf-json.js +94 -0
- package/lib/scene/gltf-math.d.ts +16 -0
- package/lib/scene/gltf-math.js +129 -0
- package/lib/scene/gltf-meshopt.d.ts +3 -0
- package/lib/scene/gltf-meshopt.js +48 -0
- package/lib/scene/gltf-parse.d.ts +600 -0
- package/lib/scene/gltf-parse.js +1854 -0
- package/lib/scene/gltf.d.ts +159 -0
- package/lib/scene/gltf.js +1560 -0
- package/lib/scene/grade-table.d.ts +9 -0
- package/lib/scene/grade-table.js +23 -0
- package/lib/scene/grade-task.d.ts +12 -0
- package/lib/scene/grade-task.js +11 -0
- package/lib/scene/grading.d.ts +110 -0
- package/lib/scene/grading.js +142 -0
- package/lib/scene/half-float.d.ts +4 -0
- package/lib/scene/half-float.js +42 -0
- package/lib/scene/ktx2-cache.d.ts +32 -0
- package/lib/scene/ktx2-cache.js +62 -0
- package/lib/scene/ktx2-file.d.ts +57 -0
- package/lib/scene/ktx2-file.js +207 -0
- package/lib/scene/ktx2-transcode.d.ts +15 -0
- package/lib/scene/ktx2-transcode.js +94 -0
- package/lib/scene/ktx2.d.ts +34 -0
- package/lib/scene/ktx2.js +178 -0
- package/lib/scene/lens.d.ts +61 -0
- package/lib/scene/lens.js +101 -0
- package/lib/scene/level-meshopt.d.ts +20 -0
- package/lib/scene/level-meshopt.js +122 -0
- package/lib/scene/level-pieces.d.ts +24 -0
- package/lib/scene/level-pieces.js +138 -0
- package/lib/scene/level-words.d.ts +19 -0
- package/lib/scene/level-words.js +34 -0
- package/lib/scene/levels-task.d.ts +51 -0
- package/lib/scene/levels-task.js +132 -0
- package/lib/scene/light-images.d.ts +36 -0
- package/lib/scene/light-images.js +88 -0
- package/lib/scene/light-probes.d.ts +240 -0
- package/lib/scene/light-probes.js +644 -0
- package/lib/scene/lines.d.ts +192 -0
- package/lib/scene/lines.js +257 -0
- package/lib/scene/lut-files.d.ts +41 -0
- package/lib/scene/lut-files.js +399 -0
- package/lib/scene/lut.d.ts +56 -0
- package/lib/scene/lut.js +48 -0
- package/lib/scene/memory.d.ts +72 -0
- package/lib/scene/memory.js +159 -0
- package/lib/scene/mesh-arrays.d.ts +110 -0
- package/lib/scene/mesh-arrays.js +701 -0
- package/lib/scene/mesh-levels.d.ts +10 -0
- package/lib/scene/mesh-levels.js +52 -0
- package/lib/scene/namespaces.d.ts +125 -0
- package/lib/scene/namespaces.js +313 -0
- package/lib/scene/panorama-files.d.ts +71 -0
- package/lib/scene/panorama-files.js +1103 -0
- package/lib/scene/panorama.d.ts +23 -0
- package/lib/scene/panorama.js +108 -0
- package/lib/scene/particles.d.ts +452 -0
- package/lib/scene/particles.js +814 -0
- package/lib/scene/pass-reads.d.ts +70 -0
- package/lib/scene/pass-reads.js +220 -0
- package/lib/scene/picks.d.ts +69 -0
- package/lib/scene/picks.js +208 -0
- package/lib/scene/pointer-events.d.ts +205 -0
- package/lib/scene/pointer-events.js +500 -0
- package/lib/scene/post.d.ts +572 -0
- package/lib/scene/post.js +925 -0
- package/lib/scene/prefab.d.ts +110 -0
- package/lib/scene/prefab.js +167 -0
- package/lib/scene/probes.d.ts +71 -0
- package/lib/scene/probes.js +169 -0
- package/lib/scene/property-animation.d.ts +160 -0
- package/lib/scene/property-animation.js +276 -0
- package/lib/scene/queries.d.ts +182 -0
- package/lib/scene/queries.js +393 -0
- package/lib/scene/render.d.ts +487 -0
- package/lib/scene/render.js +829 -0
- package/lib/scene/resources.d.ts +1627 -0
- package/lib/scene/resources.js +2745 -0
- package/lib/scene/rotation.d.ts +6 -0
- package/lib/scene/rotation.js +12 -0
- package/lib/scene/scene.d.ts +1827 -0
- package/lib/scene/scene.js +4582 -0
- package/lib/scene/shader-preloads.d.ts +40 -0
- package/lib/scene/shader-preloads.js +78 -0
- package/lib/scene/shader-templates.d.ts +60 -0
- package/lib/scene/shader-templates.js +156 -0
- package/lib/scene/sprites.d.ts +265 -0
- package/lib/scene/sprites.js +293 -0
- package/lib/scene/stale-calls-scenario.d.ts +20 -0
- package/lib/scene/stale-calls-scenario.js +175 -0
- package/lib/scene/textures.d.ts +324 -0
- package/lib/scene/textures.js +954 -0
- package/lib/scene/time-of-day.d.ts +146 -0
- package/lib/scene/time-of-day.js +645 -0
- package/lib/scene/unmarked-writes.d.ts +118 -0
- package/lib/scene/unmarked-writes.js +283 -0
- package/lib/scene/unread-extensions-scenario.d.ts +6 -0
- package/lib/scene/unread-extensions-scenario.js +26 -0
- package/lib/scene/vertex-draws.d.ts +81 -0
- package/lib/scene/vertex-draws.js +83 -0
- package/lib/scene/wgsl-uniforms.d.ts +167 -0
- package/lib/scene/wgsl-uniforms.js +12 -0
- package/lib/shared/await-later.d.ts +5 -0
- package/lib/shared/await-later.js +10 -0
- package/lib/shared/control.d.ts +94 -0
- package/lib/shared/control.js +150 -0
- package/lib/shared/core-sources.d.ts +2 -0
- package/lib/shared/core-sources.js +7 -0
- package/lib/shared/core.d.ts +1249 -0
- package/lib/shared/core.js +380 -0
- package/lib/shared/counter.d.ts +52 -0
- package/lib/shared/counter.js +55 -0
- package/lib/shared/dev.d.ts +8 -0
- package/lib/shared/dev.js +13 -0
- package/lib/shared/feature-stats.d.ts +16 -0
- package/lib/shared/feature-stats.js +27 -0
- package/lib/shared/frame-image.d.ts +13 -0
- package/lib/shared/frame-image.js +32 -0
- package/lib/shared/gpu-clock.d.ts +14 -0
- package/lib/shared/gpu-clock.js +38 -0
- package/lib/shared/gpu-counter.d.ts +12 -0
- package/lib/shared/gpu-counter.js +15 -0
- package/lib/shared/gpu-scope.d.ts +14 -0
- package/lib/shared/gpu-scope.js +104 -0
- package/lib/shared/helper-workers.d.ts +4 -0
- package/lib/shared/helper-workers.js +23 -0
- package/lib/shared/images.d.ts +255 -0
- package/lib/shared/images.js +450 -0
- package/lib/shared/key-codes.d.ts +2 -0
- package/lib/shared/key-codes.js +69 -0
- package/lib/shared/labels.d.ts +94 -0
- package/lib/shared/labels.js +172 -0
- package/lib/shared/memory-area.d.ts +6 -0
- package/lib/shared/memory-area.js +21 -0
- package/lib/shared/memory-figure.d.ts +14 -0
- package/lib/shared/memory-figure.js +18 -0
- package/lib/shared/memory-views.d.ts +48 -0
- package/lib/shared/memory-views.js +90 -0
- package/lib/shared/metrics.d.ts +315 -0
- package/lib/shared/metrics.js +738 -0
- package/lib/shared/page-measurement.d.ts +9 -0
- package/lib/shared/page-measurement.js +37 -0
- package/lib/shared/phase.d.ts +17 -0
- package/lib/shared/phase.js +20 -0
- package/lib/shared/policy.d.ts +20 -0
- package/lib/shared/policy.js +46 -0
- package/lib/shared/recording.d.ts +100 -0
- package/lib/shared/recording.js +378 -0
- package/lib/shared/role.d.ts +10 -0
- package/lib/shared/role.js +13 -0
- package/lib/shared/run-task.d.ts +39 -0
- package/lib/shared/run-task.js +63 -0
- package/lib/shared/slot.d.ts +218 -0
- package/lib/shared/slot.js +221 -0
- package/lib/shared/software.d.ts +24 -0
- package/lib/shared/software.js +22 -0
- package/lib/shared/stats.d.ts +62 -0
- package/lib/shared/stats.js +86 -0
- package/lib/shared/task-failure.d.ts +24 -0
- package/lib/shared/task-failure.js +36 -0
- package/lib/shared/task-host.d.ts +42 -0
- package/lib/shared/task-host.js +60 -0
- package/lib/shared/task-load-error.d.ts +10 -0
- package/lib/shared/task-load-error.js +13 -0
- package/lib/shared/task-modules.d.ts +2 -0
- package/lib/shared/task-modules.js +8 -0
- package/lib/shared/task-pending.d.ts +12 -0
- package/lib/shared/task-pending.js +41 -0
- package/lib/shared/tasks.d.ts +54 -0
- package/lib/shared/tasks.js +379 -0
- package/lib/shared/tier.d.ts +7 -0
- package/lib/shared/tier.js +3 -0
- package/lib/shared/version.d.ts +56 -0
- package/lib/shared/version.js +85 -0
- package/lib/shared/videos.d.ts +15 -0
- package/lib/shared/videos.js +11 -0
- package/lib/shared/wake.d.ts +38 -0
- package/lib/shared/wake.js +76 -0
- package/lib/shared/wasm-limits.d.ts +13 -0
- package/lib/shared/wasm-limits.js +75 -0
- package/lib/shared/wasm.d.ts +26 -0
- package/lib/shared/wasm.js +128 -0
- package/lib/shared/webkit.d.ts +33 -0
- package/lib/shared/webkit.js +59 -0
- package/lib/shared/wgsl-updates.d.ts +9 -0
- package/lib/shared/wgsl-updates.js +8 -0
- package/lib/shared/worker-start.d.ts +49 -0
- package/lib/shared/worker-start.js +159 -0
- package/lib/sketch/clock.d.ts +61 -0
- package/lib/sketch/clock.js +98 -0
- package/lib/sketch/define-sketch.d.ts +234 -0
- package/lib/sketch/define-sketch.js +103 -0
- package/lib/sketch/input-off-scenario.d.ts +7 -0
- package/lib/sketch/input-off-scenario.js +24 -0
- package/lib/sketch/input-off.d.ts +16 -0
- package/lib/sketch/input-off.js +38 -0
- package/lib/sketch/input.d.ts +243 -0
- package/lib/sketch/input.js +554 -0
- package/lib/sketch/preset-check.d.ts +28 -0
- package/lib/sketch/preset-check.js +95 -0
- package/lib/sketch/quality.d.ts +334 -0
- package/lib/sketch/quality.js +314 -0
- package/lib/sketch/random.d.ts +13 -0
- package/lib/sketch/random.js +25 -0
- package/lib/sketch/runner.d.ts +507 -0
- package/lib/sketch/runner.js +1826 -0
- package/lib/sketch/ui.d.ts +97 -0
- package/lib/sketch/ui.js +391 -0
- package/lib/stats.d.ts +4 -0
- package/lib/stats.js +8 -0
- package/lib/workers/drawing-host.d.ts +24 -0
- package/lib/workers/drawing-host.js +48 -0
- package/lib/workers/gltf-worker.d.ts +35 -0
- package/lib/workers/gltf-worker.js +210 -0
- package/lib/workers/job-worker.d.ts +1 -0
- package/lib/workers/job-worker.js +102 -0
- package/lib/workers/panorama-worker.d.ts +15 -0
- package/lib/workers/panorama-worker.js +21 -0
- package/lib/workers/probe-worker.d.ts +29 -0
- package/lib/workers/probe-worker.js +49 -0
- package/lib/workers/protocol.d.ts +329 -0
- package/lib/workers/protocol.js +53 -0
- package/lib/workers/render-worker.d.ts +1 -0
- package/lib/workers/render-worker.js +82 -0
- package/lib/workers/sketch-worker.d.ts +1 -0
- package/lib/workers/sketch-worker.js +206 -0
- package/lib/workers/task-worker.d.ts +1 -0
- package/lib/workers/task-worker.js +5 -0
- package/lib/workers/tasks.d.ts +65 -0
- package/lib/workers/tasks.js +85 -0
- package/package.json +106 -5
- package/vendor/basis/LICENSE +201 -0
- package/vendor/basis/LICENSE-zstd +30 -0
- package/vendor/basis/NOTICE +15 -0
- package/vendor/basis/basis_transcoder.d.mts +36 -0
- package/vendor/basis/basis_transcoder.mjs +2 -0
- package/vendor/basis/basis_transcoder.wasm +0 -0
- package/vendor/draco/LICENSE +252 -0
- package/vendor/draco/draco_decoder_gltf.wasm +0 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.d.ts +71 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.js +116 -0
- package/vendor/ltc/LICENSE +31 -0
- package/vendor/ltc/area-light-tables.bin +0 -0
- package/vendor/meshopt/LICENSE.md +21 -0
- package/vendor/meshopt/meshopt_clusterizer.wasm +0 -0
- package/vendor/meshopt/meshopt_decoder.wasm +0 -0
- package/vendor/meshopt/meshopt_encoder.wasm +0 -0
- package/vendor/meshopt/meshopt_simplifier.wasm +0 -0
- package/README.md +0 -3
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import type { StatsOverlayOptions, StatsRequest } from '../debug/stats-options.js';
|
|
2
|
+
import { EngineError } from '../errors/engine-error.js';
|
|
3
|
+
import { type ShaderFeature } from '../generated/shader-features.js';
|
|
4
|
+
import type { DrawPathReason } from '../gpu/webgpu/draw-path-probe.js';
|
|
5
|
+
import { type PresetCheck, type TargetFps } from '../quality/check.js';
|
|
6
|
+
import { type QualityPreset } from '../quality/presets.js';
|
|
7
|
+
import type { Tier } from '../render/renderer.js';
|
|
8
|
+
import type { ReplayResult } from '../shared/recording.js';
|
|
9
|
+
import type { QualityUpdate } from '../sketch/quality.js';
|
|
10
|
+
import type { LabelSlotSender } from '../sketch/ui.js';
|
|
11
|
+
import type { RendererRequest, WorkerReply } from '../workers/protocol.js';
|
|
12
|
+
import { type CapabilityReport, type WorkerProbeFailure } from './capabilities.js';
|
|
13
|
+
import type { FrameMetrics, MeasureOptions } from './frame-stats.js';
|
|
14
|
+
import { type HoldScriptResult } from './hold.js';
|
|
15
|
+
import { type EngineLabels } from './labels.js';
|
|
16
|
+
import { PermutationRecording } from './permutation-recording.js';
|
|
17
|
+
import { type PointerLockOptions } from './pointer-lock.js';
|
|
18
|
+
import { type DepthMode, type GpuSwitch, type LatencyMode, type SketchThread } from './switches.js';
|
|
19
|
+
import type { VideoOptions } from './videos.js';
|
|
20
|
+
/**
|
|
21
|
+
* Options for `createEngine`.
|
|
22
|
+
*
|
|
23
|
+
* @category api/engine
|
|
24
|
+
*/
|
|
25
|
+
export interface EngineOptions {
|
|
26
|
+
/**
|
|
27
|
+
* The canvas to draw into, sized by CSS. On a canvas that no CSS sizes, the engine sets the CSS
|
|
28
|
+
* width and height that it shows when the engine starts. One engine draws on a canvas at a time:
|
|
29
|
+
* a start on the canvas of an engine that is stopping, or still starting and then destroyed,
|
|
30
|
+
* waits for that engine to stop. A canvas whose engine runs on fails with E1419.
|
|
31
|
+
*/
|
|
32
|
+
canvas: HTMLCanvasElement;
|
|
33
|
+
/** The sketch module, which runs in the sketch worker; `new URL('./sketch.ts', import.meta.url)`. */
|
|
34
|
+
sketch: URL | string;
|
|
35
|
+
/**
|
|
36
|
+
* The quality preset: `auto`, the default, lets the engine choose one for the device, and
|
|
37
|
+
* `low`, `medium`, `high` or `ultra` names one. The GPU path caps it: WebGL2 and WebGPU's
|
|
38
|
+
* compatibility mode run at most `medium`. After a start that crashed the tab, the engine starts
|
|
39
|
+
* a preset lower. Another value fails with E1213. The `?preset=` switch wins over it.
|
|
40
|
+
*/
|
|
41
|
+
preset?: 'auto' | QualityPreset;
|
|
42
|
+
/**
|
|
43
|
+
* The frame rate that the engine defends: the preset check and the quality governor lower the
|
|
44
|
+
* quality when frames fall below it. Without it, the target is the display's refresh rate, at
|
|
45
|
+
* most 60. `display` targets the display's full rate, such as 120 or 144 for a game on a fast
|
|
46
|
+
* display. A whole number from 1 up caps the target at that rate. The engine draws at the
|
|
47
|
+
* display's rate in every case. The `?target-fps=` switch wins over it. Another value fails with
|
|
48
|
+
* E1213.
|
|
49
|
+
*/
|
|
50
|
+
targetFps?: TargetFps;
|
|
51
|
+
/**
|
|
52
|
+
* Cap for the device pixel ratio, a number from 0.5 up. Without it, the quality preset sets the
|
|
53
|
+
* cap. `ctx.quality.set` changes it during play.
|
|
54
|
+
*/
|
|
55
|
+
maxPixelRatio?: number;
|
|
56
|
+
/** Forces a GPU tier, for testing only. */
|
|
57
|
+
gpu?: 'auto' | 'webgpu' | 'webgl2';
|
|
58
|
+
/**
|
|
59
|
+
* Which GPU to draw with on a device that has two, such as a laptop with a separate graphics
|
|
60
|
+
* chip: `high-performance`, the default, for the faster one, or `low-power` to save battery.
|
|
61
|
+
* The browser treats it as a request. A device with one GPU ignores it.
|
|
62
|
+
*/
|
|
63
|
+
powerPreference?: 'high-performance' | 'low-power';
|
|
64
|
+
/**
|
|
65
|
+
* The latency mode. The default is `pipelined`. Low latency needs a worker that draws: where
|
|
66
|
+
* no worker can draw, the engine runs in pipelined mode, and `engine.mode` says so.
|
|
67
|
+
*/
|
|
68
|
+
latency?: LatencyMode;
|
|
69
|
+
/**
|
|
70
|
+
* How the engine smooths the edges of what it draws: `msaa` draws 4 samples per pixel, `fxaa`
|
|
71
|
+
* smooths edges in the final pass, and `none` leaves them sharp. Without it, the quality preset
|
|
72
|
+
* sets the mode: FXAA on Low, MSAA from Medium up. Each mode works on every GPU path, and the
|
|
73
|
+
* mode stays fixed while the engine runs. Another value fails with E1213.
|
|
74
|
+
*/
|
|
75
|
+
antialias?: 'msaa' | 'fxaa' | 'none';
|
|
76
|
+
/**
|
|
77
|
+
* The cascades of a directional light's shadows, a whole number from 1 to 4, for each light
|
|
78
|
+
* whose `shadow` options name none. Without it, the quality preset sets it. Another value fails
|
|
79
|
+
* with E1213.
|
|
80
|
+
*/
|
|
81
|
+
shadowCascades?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Texels on each side of each cascade's shadow map, for each directional light whose `shadow`
|
|
84
|
+
* options name no `mapSize`: 512, 1,024, 2,048 or 4,096. Without it, the quality preset sets
|
|
85
|
+
* it. Another value fails with E1213.
|
|
86
|
+
*/
|
|
87
|
+
shadowMapSize?: number;
|
|
88
|
+
/**
|
|
89
|
+
* The most tiles of the shadow atlas that spot and point lights cast their shadows into, a
|
|
90
|
+
* whole number from 0 to 24. Without it, the quality preset sets it. 0 turns the shadows of
|
|
91
|
+
* spot and point lights off. Another value fails with E1213.
|
|
92
|
+
*/
|
|
93
|
+
shadowTiles?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Texels on each side of each tile of the shadow atlas: 256, 512, 1,024 or 2,048. Without it,
|
|
96
|
+
* the quality preset sets it. Another value fails with E1213.
|
|
97
|
+
*/
|
|
98
|
+
shadowTileSize?: number;
|
|
99
|
+
/**
|
|
100
|
+
* Texels on each side of the tile that holds a directional light's hero shadow, for each light
|
|
101
|
+
* whose `shadow` options name no `heroTileSize`: 1,024, 2,048 or 4,096. Without it, the quality
|
|
102
|
+
* preset sets it. Another value fails with E1213.
|
|
103
|
+
*/
|
|
104
|
+
heroTileSize?: number;
|
|
105
|
+
/**
|
|
106
|
+
* True makes point lights cast shadows, false keeps them from it. Without it, the quality
|
|
107
|
+
* preset decides: High and Ultra turn them on. Another value fails with E1213.
|
|
108
|
+
*/
|
|
109
|
+
pointLightShadows?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* True to draw the depth of the opaque objects before the engine shades them, so each pixel is
|
|
112
|
+
* shaded once, for its nearest surface. It saves GPU time in scenes where objects hide many
|
|
113
|
+
* others and shading costs much, and costs a second pass over the objects' vertices. Without
|
|
114
|
+
* it, the quality preset decides: every preset draws the prepass on WebGL2, and none on WebGPU.
|
|
115
|
+
* The prepass stays fixed while the engine runs, and the `?prepass=on` or `?prepass=off`
|
|
116
|
+
* switch wins over this option. Another value fails with E1213.
|
|
117
|
+
*/
|
|
118
|
+
depthPrepass?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* True to blend the camera's blended surfaces in the moment transparency layer. It needs no
|
|
121
|
+
* sort and is nearer an exact back-to-front blend than `blending: 'weighted'` is, and it draws
|
|
122
|
+
* those surfaces twice. Every preset leaves it off, and the `?moments=on` or `?moments=off`
|
|
123
|
+
* switch wins over this option. It stays fixed while the engine runs. Another value fails with
|
|
124
|
+
* E1213.
|
|
125
|
+
*/
|
|
126
|
+
momentTransparency?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* True to run GPU occlusion culling on WebGPU: large opaque objects hide the objects that lie
|
|
129
|
+
* wholly behind them, so the GPU skips those. Each camera view draws the depth of the opaque
|
|
130
|
+
* objects that it showed in the last frame and that look large on the screen, and tests every
|
|
131
|
+
* object against it. `setOccluder(false)` keeps an object out of them. A check during play turns
|
|
132
|
+
* the extra passes off while they hide too little or make the GPU's frame longer, and on again
|
|
133
|
+
* when they pay. Without the option, the High and Ultra presets turn it on for desktops, and
|
|
134
|
+
* phones and tablets leave it off. It stays fixed while the engine runs, and the
|
|
135
|
+
* `?occlusion=on` or `?occlusion=off` switch wins over this option. WebGL2 and the depth prepass
|
|
136
|
+
* draw without it. Another value fails with E1213.
|
|
137
|
+
*/
|
|
138
|
+
gpuOcclusion?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The most morph target weights of each object that a WebGL2 device draws, a whole number from
|
|
141
|
+
* 1 to 256. Each object keeps the weights farthest from 0. Without it, the quality preset sets
|
|
142
|
+
* it. WebGPU draws every weight. Another value fails with E1213.
|
|
143
|
+
*/
|
|
144
|
+
morphTargets?: number;
|
|
145
|
+
/**
|
|
146
|
+
* The steps of each ray of the sky's volumetric cloud tier when the engine starts, a whole
|
|
147
|
+
* number from 0 to 64. Above 0 the sky draws volumetric clouds in place of the flat layer, from
|
|
148
|
+
* the same cloud settings; 0 draws the flat layer. Without it, the quality preset sets it: 0 on
|
|
149
|
+
* Low and Medium, 32 on High and 48 on Ultra. It lets a page on WebGL2 or in compatibility mode,
|
|
150
|
+
* whose presets stop at Medium, draw the tier. The sky's environment map marches at most 16
|
|
151
|
+
* steps, and draws them only when this option is above 0, because the map picks its tier's
|
|
152
|
+
* shaders at the page's start. A sketch can change the sky's count during play with
|
|
153
|
+
* `quality.set`. Another value fails with E1213.
|
|
154
|
+
*/
|
|
155
|
+
cloudSteps?: number;
|
|
156
|
+
/**
|
|
157
|
+
* True to run software occlusion culling on WebGL2: objects that `setOccluder(true)` marks hide
|
|
158
|
+
* the objects that lie wholly behind them, so the GPU skips those. False turns it off. Without
|
|
159
|
+
* it, the quality preset decides, and a sketch can change it during play with `quality.set`.
|
|
160
|
+
* The `?occlusion=on` or `?occlusion=off` switch wins over this option. WebGPU ignores it.
|
|
161
|
+
* Another value fails with E1213.
|
|
162
|
+
*/
|
|
163
|
+
softwareOcclusion?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* The GPU memory in MiB that textures may take, a whole number from 64 to 16,384. Past it, the
|
|
166
|
+
* engine drops the largest mip levels of textures from files, and loads them again once room
|
|
167
|
+
* returns. Without it, the quality preset sets it: 256, 512, 1,024 or 2,048 from Low to Ultra,
|
|
168
|
+
* and at most 1,008 on phones and tablets. A sketch can change it during play with
|
|
169
|
+
* `quality.set`. Another value fails with E1213.
|
|
170
|
+
*/
|
|
171
|
+
textureMemoryMiB?: number;
|
|
172
|
+
/**
|
|
173
|
+
* True keeps the engine's copy of each texture's texels after their upload, so a texture that
|
|
174
|
+
* maps an image draws with its map again after the browser takes the GPU away. It costs about
|
|
175
|
+
* one more copy of each image in memory. False frees each copy once no frame reads it, and such
|
|
176
|
+
* a texture draws with its color alone until the sketch gives it texels again. Without this
|
|
177
|
+
* option, a phone and a tablet keep copies and a desktop does not, because a phone or a tablet
|
|
178
|
+
* is likeliest to lose its GPU.
|
|
179
|
+
*/
|
|
180
|
+
keepTextureCopies?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* True for a see-through canvas: the page shows through wherever no object draws, until the
|
|
183
|
+
* sketch sets a background color. The canvas holds premultiplied alpha, as a browser composites
|
|
184
|
+
* it. The default is false, an opaque canvas.
|
|
185
|
+
*/
|
|
186
|
+
transparent?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* False draws the scene into 8-bit color, where each material's shader applies the output
|
|
189
|
+
* transform, instead of HDR color, which the final pass tone maps. Both paths honour a
|
|
190
|
+
* material's `toneMapped: false`, and the 8-bit path also honours it on a blended surface. The
|
|
191
|
+
* default lets the engine pick the path from the device, which draws HDR color wherever it
|
|
192
|
+
* can. The `?hdr=off` switch takes the 8-bit path too.
|
|
193
|
+
*/
|
|
194
|
+
hdr?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* True for scenes that reach far beyond a city, such as a planet. Object positions then keep the
|
|
197
|
+
* precision of JavaScript's numbers at any distance from the origin: 0.03 mm or better. Without
|
|
198
|
+
* it, positions are 32-bit floats, which move in steps of 6 cm at 1,000 km from the origin and
|
|
199
|
+
* 0.5 m at the Earth's radius. It costs 12 bytes of memory per object and a little work in each
|
|
200
|
+
* position setter. The default is false. Instance batches need no mode: give each one an
|
|
201
|
+
* `origin` near its rows.
|
|
202
|
+
*/
|
|
203
|
+
largeWorld?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* The thread that runs the sketch's code and the engine core: `worker`, the default, or `main`
|
|
206
|
+
* for the page's main thread, where the sketch can reach the DOM. Use `main` for apps that work
|
|
207
|
+
* mostly with the DOM, and for debugging. The render worker still draws in pipelined mode, and
|
|
208
|
+
* the page draws in low-latency mode. The sketch's frames then share the page's thread with the
|
|
209
|
+
* page's own work, so each can slow the other. The single-threaded build always runs the sketch
|
|
210
|
+
* on the page's thread. The `?sketch-thread=` switch wins over this option.
|
|
211
|
+
*/
|
|
212
|
+
sketchThread?: SketchThread;
|
|
213
|
+
/**
|
|
214
|
+
* The engine's memory. `maximumMiB` sets the most memory that the engine's threads share, in
|
|
215
|
+
* MiB: a whole number from 256 to 4096, 1024 by default. Another value fails with E1409. The
|
|
216
|
+
* browser reserves address space for the whole maximum when the engine starts. So a larger
|
|
217
|
+
* maximum leaves less room for other engines and WebAssembly modules on the page. Ask for more
|
|
218
|
+
* only when a scene needs it. The single-threaded build's memory is not shared, so this option
|
|
219
|
+
* does not change it. The `?memory=<MiB>` switch wins over it.
|
|
220
|
+
*/
|
|
221
|
+
memory?: {
|
|
222
|
+
maximumMiB: number;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* The most HTML labels that the sketch can track at once with `ui.trackLabel`: a whole number
|
|
226
|
+
* from 1 to 65,536, 4,096 by default. Another value fails with E1213. The engine keeps three
|
|
227
|
+
* tables of 16 bytes per label in memory that its threads share, so 4,096 labels take 192 KB.
|
|
228
|
+
*/
|
|
229
|
+
maxLabels?: number;
|
|
230
|
+
/**
|
|
231
|
+
* The most labels that the sketch can track at once with `ui.trackLabel` whose `transform` is
|
|
232
|
+
* `'world'` or `'billboard'`: a whole number from 0 to 65,536, 256 by default. Another value
|
|
233
|
+
* fails with E1213. Each of them is a plane of the scene, which takes three tables of 52 bytes
|
|
234
|
+
* per label, so 256 of them take 40 KB. A sketch that tracks one more fails with E1219.
|
|
235
|
+
*/
|
|
236
|
+
maxLabels3d?: number;
|
|
237
|
+
/**
|
|
238
|
+
* The number of objects that the scene will hold at most, when the sketch knows it: a whole
|
|
239
|
+
* number from 1 to 1,048,575. Another value fails with E1213. The scene then starts with room
|
|
240
|
+
* for that many, so it never grows during play. Without it, the scene starts with room for
|
|
241
|
+
* 1,023 objects. A scene grows on its own when it needs more: it doubles its room at the start
|
|
242
|
+
* of a frame once it is three quarters full. A create call that finds it full doubles it at once.
|
|
243
|
+
* Each growth copies the scene's tables, about 267 bytes per object, in one short pause. Set
|
|
244
|
+
* this option for a scene that creates many objects during play, so they never wait for one.
|
|
245
|
+
*/
|
|
246
|
+
expectedObjects?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Called as the start reaches each stage, in this order: `core-download` as the engine core's
|
|
249
|
+
* file downloads, with the bytes that have arrived; `core` once the engine core is compiled and
|
|
250
|
+
* the GPU paths are tested; `sketch` once the sketch's setup has run; and `first-frame` once the
|
|
251
|
+
* GPU has finished the first frame. Before `core`, `core-download` reports the core file's bytes,
|
|
252
|
+
* and `memory-wait` comes when the browser has refused the engine's memory for 10 seconds. The
|
|
253
|
+
* engine then tries for about 35 seconds more before it fails with E1109. `progress` gives a
|
|
254
|
+
* stage's figures while it has some: the bytes of a download, measured against the length that
|
|
255
|
+
* the server announced.
|
|
256
|
+
*/
|
|
257
|
+
onProgress?: (stage: StartupStage, progress?: StartupProgress) => void;
|
|
258
|
+
/**
|
|
259
|
+
* Receives the messages the sketch sends with `ctx.page.post`, from the start of the sketch's setup.
|
|
260
|
+
* Use it for progress that the sketch reports while it loads. `engine.onSketchMessage` adds more
|
|
261
|
+
* handlers once the engine has started.
|
|
262
|
+
*/
|
|
263
|
+
onSketchMessage?: (name: string, data: unknown) => void;
|
|
264
|
+
/**
|
|
265
|
+
* Receives each distinct error that the sketch's own code, or a core call in a frame, threw
|
|
266
|
+
* while the engine runs. The error's message holds the failure, such as `E1102: ...`. The engine
|
|
267
|
+
* keeps drawing and presenting frames, so the error alone does not stop it: a frame whose update
|
|
268
|
+
* failed is counted in `measure().updateErrors` and left out of `measure().updatedFps`.
|
|
269
|
+
* `engine.onSketchError` adds more handlers once the engine has started. Without a handler, the
|
|
270
|
+
* error also reaches the console.
|
|
271
|
+
*/
|
|
272
|
+
onSketchError?: (error: Error) => void;
|
|
273
|
+
/**
|
|
274
|
+
* Called when a worker's script did not load before the worker's first message, and the engine
|
|
275
|
+
* started a second copy of it. The fault comes and goes, so the engine recovers on its own: the
|
|
276
|
+
* call names the worker, such as `render` or `job 2`, and the address of its script. The engine
|
|
277
|
+
* also warns in the console. Without a second copy that loads, the start fails with E1405, which
|
|
278
|
+
* names the worker and its script.
|
|
279
|
+
*/
|
|
280
|
+
onWorkerRetry?: (worker: string, script: string) => void;
|
|
281
|
+
/**
|
|
282
|
+
* Cancels a start in progress, for example when the user leaves the page. `createEngine` then
|
|
283
|
+
* stops the engine's threads and rejects with the signal's reason.
|
|
284
|
+
*/
|
|
285
|
+
signal?: AbortSignal;
|
|
286
|
+
/**
|
|
287
|
+
* Starts the engine in hold mode for image tests, held at this many seconds of sketch time. The
|
|
288
|
+
* engine steps the sketch from 0 to the time in fixed steps of 1/60 second, with no frame loop.
|
|
289
|
+
* `math.random` and `Math.random` in the sketch's thread give the same numbers on every run, and
|
|
290
|
+
* the sketch gets no input: every key and button stays up. The engine then draws that one frame
|
|
291
|
+
* and reads it back, and `createEngine` resolves. The `?hold=<seconds>`
|
|
292
|
+
* switch overrides this time, and a bare `?hold` holds at it, or at 0 without it.
|
|
293
|
+
*/
|
|
294
|
+
hold?: number;
|
|
295
|
+
/**
|
|
296
|
+
* False keeps the engine from listening for input, for a page whose input another library
|
|
297
|
+
* records, such as a game whose simulation replays a log of it. The engine's input then adds no
|
|
298
|
+
* listener: none for pointers, keys, the wheel, focus, page visibility, the pointer lock or
|
|
299
|
+
* gamepads. It captures no pointer on the canvas, and leaves the canvas's context menu to the
|
|
300
|
+
* browser. The engine keeps its listeners that take no input, such as the canvas watch's
|
|
301
|
+
* `visibilitychange`, after which the sketch's next step counts no hidden time. The sketch's `ctx.input`
|
|
302
|
+
* stays at rest: every key, button and action is up, `value` gives 0, `input.touches` is empty,
|
|
303
|
+
* and the pointer stays at the canvas's top-left corner with no movement, wheel or buttons.
|
|
304
|
+
* Objects get no pointer events, and `requestPointerLock` fails with E1426. A development build
|
|
305
|
+
* warns in the console, once for each kind, when the sketch reads `ctx.input`, gives an object a
|
|
306
|
+
* pointer event handler or imports `@null3d/controls`. The warning about the controls comes as
|
|
307
|
+
* they load in the sketch's thread, so it misses controls that another sketch in that thread
|
|
308
|
+
* loaded first. Two engines on the page's thread both hear a load by either one's sketch. The
|
|
309
|
+
* default is true.
|
|
310
|
+
*/
|
|
311
|
+
input?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Features whose shaders load before the first frame, for a game that must fetch nothing while
|
|
314
|
+
* it plays. Each feature's shaders otherwise download the first time the sketch uses it:
|
|
315
|
+
* `'skinning'` with the first skinned mesh, `'morph'` with the first morphed mesh,
|
|
316
|
+
* `'bloom'` and `'ao'` when `post.set` turns them on, `'sprites'` and `'lines'` with the first
|
|
317
|
+
* batch, `'background'` with a texture, environment or cube map background, `'sky'` with the
|
|
318
|
+
* sky, `'coverage'` with the first masked material that MSAA smooths, `'hash'` with the first
|
|
319
|
+
* hashed material, `'cutout'` with the first masked object that casts shadows, which casts none
|
|
320
|
+
* until its shaders are built, `'transmission'` with the first material that lets light
|
|
321
|
+
* through, `'color_copy'` with the first step that reads the color of the frame before, which
|
|
322
|
+
* the preset's bounce light draws at its start, `'translucency'` with the first material that
|
|
323
|
+
* lets light through to its other side,
|
|
324
|
+
* `'subsurface'` with the first material with a `subsurfaceRadius` while the subsurface blur has
|
|
325
|
+
* taps, `'coat_sheen'` with the first material with a clear coat or a sheen, `'weighted'` with
|
|
326
|
+
* the first material of the `weighted` blending, and `'occlusion'` with the first opaque object that
|
|
327
|
+
* may hide others while GPU occlusion culling runs on WebGPU. WebGPU morphs in the skinning pass, so there
|
|
328
|
+
* `'morph'` loads the skinning shaders, and WebGL2 has no `'occlusion'` shaders to load. Listed
|
|
329
|
+
* features download beside the engine's own
|
|
330
|
+
* shaders, so the start waits only for the largest. The shaders that two or more listed features
|
|
331
|
+
* need together, such as a skinned mesh's with the alpha hash, download with them. Loading a glTF file with skins or morph
|
|
332
|
+
* targets, or making a batch, also starts its feature's download at once, before the objects
|
|
333
|
+
* draw. Throws E1421 for a name it does not know.
|
|
334
|
+
*/
|
|
335
|
+
preload?: readonly ShaderFeature[];
|
|
336
|
+
/**
|
|
337
|
+
* True or options show the stats overlay over the canvas from the first frame, as
|
|
338
|
+
* `engine.stats` does with the same value. The default is false. The `?stats` or `?stats=on`
|
|
339
|
+
* switch shows it too, with these options when they are given, and `?stats=off` hides it,
|
|
340
|
+
* whatever this option says. A held engine for image tests shows no overlay.
|
|
341
|
+
*/
|
|
342
|
+
stats?: boolean | StatsOverlayOptions;
|
|
343
|
+
/**
|
|
344
|
+
* False draws every frame of a view that holds still. By default such a view blends its frames
|
|
345
|
+
* into a sharper picture and then stops drawing until something changes. The
|
|
346
|
+
* `?still-camera=off` switch turns it off too, and hold mode draws without it.
|
|
347
|
+
*/
|
|
348
|
+
still?: boolean;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* A stage of the engine's start, as `onProgress` reports it.
|
|
352
|
+
*
|
|
353
|
+
* @category api/engine
|
|
354
|
+
*/
|
|
355
|
+
export type StartupStage = 'core-download' | 'memory-wait' | 'core' | 'sketch' | 'first-frame';
|
|
356
|
+
/**
|
|
357
|
+
* What a start stage has done, as `onProgress` reports it.
|
|
358
|
+
*
|
|
359
|
+
* @category api/engine
|
|
360
|
+
*/
|
|
361
|
+
export interface StartupProgress {
|
|
362
|
+
/** How much of the stage's work is done, in `unit`s. */
|
|
363
|
+
done: number;
|
|
364
|
+
/**
|
|
365
|
+
* How much the stage expects, in `unit`s, or 0 when it knows no total: a response that
|
|
366
|
+
* announced no length, or a stage whose work is not counted. A page shows no fraction for it.
|
|
367
|
+
*/
|
|
368
|
+
total: number;
|
|
369
|
+
/** What `done` and `total` count. */
|
|
370
|
+
unit: 'bytes';
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* The GPU path the engine chose, and what it offers.
|
|
374
|
+
*
|
|
375
|
+
* @category api/engine
|
|
376
|
+
*/
|
|
377
|
+
export interface EngineCapabilities {
|
|
378
|
+
/** The GPU path the engine draws with. */
|
|
379
|
+
tier: Tier;
|
|
380
|
+
/** True when the engine runs the threaded build. */
|
|
381
|
+
threaded: boolean;
|
|
382
|
+
/** The optional features of the GPU path: WebGPU features, or the WebGL2 extensions present. */
|
|
383
|
+
features: string[];
|
|
384
|
+
/** The WebGPU limits, or an empty object on WebGL2. */
|
|
385
|
+
limits: Record<string, number | null>;
|
|
386
|
+
/**
|
|
387
|
+
* True when the scene draws high dynamic range color, which the final pass tone maps into the
|
|
388
|
+
* canvas. False on the 8-bit path, where each shader tone maps its own output: in WebGPU's
|
|
389
|
+
* compatibility mode with MSAA, and on WebGL2 devices whose float targets fail the engine's
|
|
390
|
+
* test. Both paths show the same colors. Edges differ a little with MSAA, because the 8-bit path
|
|
391
|
+
* averages the samples after the tone mapping. It reports the path that the engine started on:
|
|
392
|
+
* in compatibility mode, bloom moves the engine to HDR color with FXAA when a sketch turns it on,
|
|
393
|
+
* and so does a `subsurfaceSamples` setting above 0 that the page or the sketch gives.
|
|
394
|
+
*/
|
|
395
|
+
hdr: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* True when the scene shaders do their color math at half precision: lighting, tone mapping and
|
|
398
|
+
* sRGB encoding. On WebGPU it needs the device feature `shader-f16`, and WebGL2 runs that math at
|
|
399
|
+
* `mediump`. Positions, depth and shadow lookups keep full precision either way.
|
|
400
|
+
*/
|
|
401
|
+
halfPrecision: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* The most objects and instance rows, counted together, that a scene can draw on this device.
|
|
404
|
+
* On WebGPU every device draws at least 2,097,152, and a device with larger GPU buffers draws
|
|
405
|
+
* more, up to 8,388,480. On WebGL2 the number follows the largest texture the device allows:
|
|
406
|
+
* 2,097,152 at 4,096 pixels, and 1,048,576 at the 2,048 that every WebGL2 device allows. Engine
|
|
407
|
+
* memory can run out first: see E1109.
|
|
408
|
+
*/
|
|
409
|
+
maxInstances: number;
|
|
410
|
+
/**
|
|
411
|
+
* The widest and tallest drawing buffer, in device pixels, that the GPU path draws into: 8,192
|
|
412
|
+
* on WebGPU, 4,096 in its compatibility mode, and on WebGL2 the smallest of the device's texture,
|
|
413
|
+
* renderbuffer and viewport limits. A canvas larger than that at the screen's pixel ratio draws
|
|
414
|
+
* at a lower ratio, which `engine.viewport.pixelRatio` in the sketch reports.
|
|
415
|
+
*/
|
|
416
|
+
maxCanvasSize: number;
|
|
417
|
+
/**
|
|
418
|
+
* How the GPU path stores depth. WebGPU, and WebGL2 in browsers with `EXT_clip_control`, draw
|
|
419
|
+
* `reversed` depth, which stays precise far from the camera.
|
|
420
|
+
*/
|
|
421
|
+
depth: DepthMode;
|
|
422
|
+
/**
|
|
423
|
+
* True when the engine culls buckets on the CPU and draws each one directly. The start-up probe
|
|
424
|
+
* picks this path only on an Apple GPU in Safari, or in any browser on iPhone and iPad, and only
|
|
425
|
+
* when it measures direct draws to be clearly faster there. Every other device draws indirectly.
|
|
426
|
+
* False on WebGL2, which always draws directly.
|
|
427
|
+
*/
|
|
428
|
+
directDraws: boolean;
|
|
429
|
+
/**
|
|
430
|
+
* Why the engine takes its draw path, such as `not-apple-gpu-in-webkit` where the probe did not
|
|
431
|
+
* run. A benchmark records it beside its figures.
|
|
432
|
+
*/
|
|
433
|
+
drawPath: DrawPathReason;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* How the engine runs on this device: its build, its latency mode and its threads.
|
|
437
|
+
*
|
|
438
|
+
* @category api/engine
|
|
439
|
+
*/
|
|
440
|
+
export interface EngineMode {
|
|
441
|
+
/**
|
|
442
|
+
* With `threaded`, the sketch and the render step run in workers, helped by job workers. With
|
|
443
|
+
* `single`, everything runs on the page's thread, for pages without shared memory.
|
|
444
|
+
*/
|
|
445
|
+
build: 'threaded' | 'single';
|
|
446
|
+
/**
|
|
447
|
+
* The latency mode in use, or `single` for the single-thread build. A page that runs the sketch
|
|
448
|
+
* and draws steps the sketch right before each draw, which is `low`.
|
|
449
|
+
*/
|
|
450
|
+
latency: LatencyMode | 'single';
|
|
451
|
+
/** The thread that runs the sketch and the engine core. */
|
|
452
|
+
sketchThread: SketchThread;
|
|
453
|
+
/** The thread that owns the canvas and draws. */
|
|
454
|
+
renderThread: 'render-worker' | 'sketch-worker' | 'main';
|
|
455
|
+
/**
|
|
456
|
+
* The most job workers that share the engine's parallel work. The engine starts none at first,
|
|
457
|
+
* and starts them as the work grows.
|
|
458
|
+
*/
|
|
459
|
+
jobWorkers: number;
|
|
460
|
+
/** The sketch time in seconds that hold mode holds the sketch at, or null for a live engine. */
|
|
461
|
+
hold: number | null;
|
|
462
|
+
/**
|
|
463
|
+
* The quality preset that the engine runs. The preset check can lower it before `createEngine`
|
|
464
|
+
* resolves, and `ctx.quality.setPreset` in the sketch changes it later.
|
|
465
|
+
*/
|
|
466
|
+
preset: QualityPreset;
|
|
467
|
+
/**
|
|
468
|
+
* What the preset check measured, or null when no check ran. The engine checks the preset when
|
|
469
|
+
* it chose it from the device: after the first frame, it measures the frame rate of the scene
|
|
470
|
+
* that the setup built, and lowers the preset until one holds the target. A later start of the
|
|
471
|
+
* sketch in the same browser on the same device takes the stored result instead, and starts at
|
|
472
|
+
* its preset. `reused` is then true.
|
|
473
|
+
*/
|
|
474
|
+
presetCheck: PresetCheck | null;
|
|
475
|
+
/**
|
|
476
|
+
* The starts of this sketch before this one that crashed the tab, one after another, as the
|
|
477
|
+
* engine's note in `localStorage` records them. After one, the engine starts a preset lower, and
|
|
478
|
+
* after two at `low`.
|
|
479
|
+
*/
|
|
480
|
+
crashedStarts: number;
|
|
481
|
+
/**
|
|
482
|
+
* The shared memory's maximum in MiB, or null for the single-threaded build, whose memory is not
|
|
483
|
+
* shared.
|
|
484
|
+
*/
|
|
485
|
+
memoryMaximumMiB: number | null;
|
|
486
|
+
/**
|
|
487
|
+
* Why the page draws when a worker was meant to, or null when the thread that draws is the one
|
|
488
|
+
* that the options asked for. `report.worker` holds the probe's answer.
|
|
489
|
+
*/
|
|
490
|
+
renderFallback: RenderFallback | null;
|
|
491
|
+
/**
|
|
492
|
+
* True when the engine keeps its copy of each texture's texels after their upload, so a map
|
|
493
|
+
* comes back after the GPU is lost. It is on for a phone and a tablet, and the page's
|
|
494
|
+
* `keepTextureCopies` option can name either value.
|
|
495
|
+
*/
|
|
496
|
+
keepTextureCopies: boolean;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Why the engine draws on the page's thread when its options asked a worker to draw:
|
|
500
|
+
* - `no-answer`: the probe worker, and a second one after it, gave no answer within their time
|
|
501
|
+
* limits. A stalled GPU call or a very busy machine causes this.
|
|
502
|
+
* - `failed-to-start`: the probe worker's script failed to load or run.
|
|
503
|
+
* - `no-surface`: a worker cannot draw with the GPU path here, as the browser offers no context of
|
|
504
|
+
* it for an `OffscreenCanvas` in a worker.
|
|
505
|
+
*
|
|
506
|
+
* @category api/engine
|
|
507
|
+
*/
|
|
508
|
+
export type RenderFallback = WorkerProbeFailure['failure'] | 'no-surface';
|
|
509
|
+
/**
|
|
510
|
+
* A running engine, as `createEngine` returns it.
|
|
511
|
+
*
|
|
512
|
+
* @category api/engine
|
|
513
|
+
*/
|
|
514
|
+
export interface Engine {
|
|
515
|
+
/** The GPU path the engine chose, and what it offers. */
|
|
516
|
+
readonly capabilities: EngineCapabilities;
|
|
517
|
+
/** The full capability report, as plain JSON. */
|
|
518
|
+
readonly report: CapabilityReport;
|
|
519
|
+
/** How the engine runs on this device. */
|
|
520
|
+
readonly mode: EngineMode;
|
|
521
|
+
/**
|
|
522
|
+
* Resolves once the GPU has finished the first frame, so it is on screen: the moment to remove
|
|
523
|
+
* a loading screen. It never resolves when the engine is destroyed first.
|
|
524
|
+
*/
|
|
525
|
+
readonly firstFrame: Promise<void>;
|
|
526
|
+
/** The HTML elements that follow the labels the sketch tracks with `ui.trackLabel`. */
|
|
527
|
+
readonly labels: EngineLabels;
|
|
528
|
+
/**
|
|
529
|
+
* Shows a video element on the page as a texture in the sketch, which makes it with
|
|
530
|
+
* `textures.fromVideo(name)`. The page sends the image of each frame that the video presents,
|
|
531
|
+
* as an `ImageBitmap` of the size that the options allow, and the sketch uploads it in its
|
|
532
|
+
* turn, within the frame's upload budget. The sketch asks for the frames when its texture
|
|
533
|
+
* follows the video, so a video that no texture shows sends none, and a paused video presents
|
|
534
|
+
* no frame, so it costs nothing. Returns a function that stops the frames, which the video's
|
|
535
|
+
* texture then keeps the last frame of. Throws E1213 for a name that another video holds, or
|
|
536
|
+
* an option out of range.
|
|
537
|
+
*/
|
|
538
|
+
registerVideo(video: HTMLVideoElement, options: VideoOptions): () => void;
|
|
539
|
+
/** Sends a message to the sketch, which receives it through `ctx.page.onMessage`. */
|
|
540
|
+
postToSketch(name: string, data?: unknown, transfer?: Transferable[]): void;
|
|
541
|
+
/**
|
|
542
|
+
* Receives the messages the sketch sends with `ctx.page.post`. When no handler listened from the
|
|
543
|
+
* start, the first handler also receives the messages sent before it was registered. Returns a
|
|
544
|
+
* function that removes the handler.
|
|
545
|
+
*/
|
|
546
|
+
onSketchMessage(handler: (name: string, data: unknown) => void): () => void;
|
|
547
|
+
/**
|
|
548
|
+
* Receives a failure after the engine started: the browser took the GPU away and the engine could
|
|
549
|
+
* not carry on with a new device (E1302), or an engine thread failed (E1404). A custom shader's
|
|
550
|
+
* builds that a pipeline needs and that did not download fail the thread that draws with E1424.
|
|
551
|
+
* After E1404 or E1424 the engine draws no new frames: destroy it and start a new one. On WebGPU,
|
|
552
|
+
* the GPU can also run out of memory (E1304) or reject the engine's work (E1305), and the engine
|
|
553
|
+
* draws on without the objects that failed. The engine reports each failure once. A failure that
|
|
554
|
+
* no handler listened for when the engine reported it reaches the first handler that listens, so
|
|
555
|
+
* a failure that the app could not hear yet still arrives, and the engine also logs it to the
|
|
556
|
+
* console. A failure that ends the frames reaches these handlers before `onStop`'s. Returns a
|
|
557
|
+
* function that removes the handler.
|
|
558
|
+
*/
|
|
559
|
+
onFailure(handler: (error: EngineError) => void): () => void;
|
|
560
|
+
/**
|
|
561
|
+
* Calls `handler` once, when the engine stops drawing for good: as `destroy()` begins, or at a
|
|
562
|
+
* failure after which it draws no new frames (E1302, E1404 or E1424). At such a failure, the
|
|
563
|
+
* `onFailure` handlers hear it first. A handler added after that runs at once. A handler that
|
|
564
|
+
* throws reaches the console, and the other handlers and the stop go on. Use it to end the page's
|
|
565
|
+
* own work for the engine, such as a frame loop that sends the sketch messages. Returns a
|
|
566
|
+
* function that removes the handler.
|
|
567
|
+
*/
|
|
568
|
+
onStop(handler: () => void): () => void;
|
|
569
|
+
/**
|
|
570
|
+
* Receives each distinct error that the sketch's own code, or a core call in a frame, threw
|
|
571
|
+
* while the engine runs. The engine keeps drawing, so this error alone does not stop it: a frame
|
|
572
|
+
* whose update failed is counted in `measure().updateErrors` and left out of
|
|
573
|
+
* `measure().updatedFps`. The handler receives the errors reported after it was added. Returns a
|
|
574
|
+
* function that removes the handler. Without a handler, the error also reaches the console.
|
|
575
|
+
*/
|
|
576
|
+
onSketchError(handler: (error: Error) => void): () => void;
|
|
577
|
+
/**
|
|
578
|
+
* Pauses or resumes the sketch's frames. A pause also stops input: the sketch sees every key and
|
|
579
|
+
* button that was down come up, and input that comes during the pause never reaches it.
|
|
580
|
+
*/
|
|
581
|
+
setPaused(paused: boolean): void;
|
|
582
|
+
/**
|
|
583
|
+
* Takes the canvas off the page and pauses the engine. The engine keeps its threads, its GPU
|
|
584
|
+
* resources and the scene, and stops reading input. Use it when a single-page app leaves the
|
|
585
|
+
* view that shows the canvas, and `attach` when the view comes back.
|
|
586
|
+
*/
|
|
587
|
+
detach(): void;
|
|
588
|
+
/**
|
|
589
|
+
* Puts the canvas at the end of `container` and resumes the engine where it stopped, unless
|
|
590
|
+
* `setPaused(true)` paused it.
|
|
591
|
+
*/
|
|
592
|
+
attach(container: Element): void;
|
|
593
|
+
/**
|
|
594
|
+
* Measures the running engine for a number of seconds, then returns CPU time per frame by thread
|
|
595
|
+
* and phase, GPU time, frame intervals, uploads, draw calls, memory and load time. The first call
|
|
596
|
+
* downloads the code that turns the frame records into these figures. `slowMs` adds the frames
|
|
597
|
+
* whose interval broke that many milliseconds, each with the frame's own GPU parts.
|
|
598
|
+
*/
|
|
599
|
+
measure(seconds: number, options?: MeasureOptions): Promise<FrameMetrics>;
|
|
600
|
+
/**
|
|
601
|
+
* Shows an overlay of figures over the top-right corner of the canvas, or hides it with
|
|
602
|
+
* `false`: the GPU path, the frame rates, CPU time per frame of each thread, GPU time, draw
|
|
603
|
+
* calls, triangles and objects drawn, memory, and the page thread's long tasks and input delay.
|
|
604
|
+
* Its header is a button with the frame rate, which shows and hides the other figures. Options
|
|
605
|
+
* pick whether the overlay starts collapsed to its header; a call on a shown overlay changes
|
|
606
|
+
* the options it names. The page draws the overlay and updates it a few times a second, and its
|
|
607
|
+
* code downloads at the first call. While the other figures show, the engine times one frame in
|
|
608
|
+
* eleven on the GPU and reads back the counts of the objects that the GPU culls, which costs a
|
|
609
|
+
* little GPU time. The sketch's `debug.stats` shows and hides the same overlay, and the last
|
|
610
|
+
* call wins.
|
|
611
|
+
*/
|
|
612
|
+
stats(show?: boolean | StatsOverlayOptions): void;
|
|
613
|
+
/**
|
|
614
|
+
* Resolves with an image of the next frame that the engine draws, as a PNG file. The thread
|
|
615
|
+
* that draws reads the frame back and encodes it, so the page's thread does no work for it when
|
|
616
|
+
* a worker draws. In hold mode it is an image of the held frame, whose pixels the page keeps, so
|
|
617
|
+
* the GPU draws nothing for it. While the engine is paused, the image shows the frame on the
|
|
618
|
+
* canvas. A hidden page draws no frames, so its image comes once the page shows again. When no
|
|
619
|
+
* new frame comes within a second or two, as after a sketch error, the image shows the frame
|
|
620
|
+
* drawn last. Fails with E1414 once the engine has stopped, when the thread that draws gives no
|
|
621
|
+
* answer within the engine's wait, or when that thread could not read the frame back, with the
|
|
622
|
+
* cause that the GPU gave, such as a lost device or too little memory.
|
|
623
|
+
*/
|
|
624
|
+
capture(): Promise<Blob>;
|
|
625
|
+
/**
|
|
626
|
+
* Resolves with the pixels of the next frame that the engine draws, as RGBA8 rows, top row
|
|
627
|
+
* first, for tests. The thread that draws waits until its frame loop has taken a new frame, then
|
|
628
|
+
* draws that frame again offscreen and reads it back, so captures back to back give newer frames
|
|
629
|
+
* even where each readback holds that thread up. `frame` is the sketch frame that the capture
|
|
630
|
+
* drew: a capture that follows a scene change can hold the frame recorded before it, and a test
|
|
631
|
+
* that measures frames aligns them by this number. In hold mode, and while the engine is paused,
|
|
632
|
+
* it returns the frame on the canvas. A hidden page draws no frames, so its pixels come once the
|
|
633
|
+
* page shows again. When no new frame comes within a second or two, as after a
|
|
634
|
+
* sketch error, it returns the frame drawn last. It fails when the thread that draws gives no
|
|
635
|
+
* answer within the engine's wait, rather than waiting with no end.
|
|
636
|
+
*/
|
|
637
|
+
captureFrame(): Promise<{
|
|
638
|
+
width: number;
|
|
639
|
+
height: number;
|
|
640
|
+
pixels: Uint8Array;
|
|
641
|
+
frame: number;
|
|
642
|
+
}>;
|
|
643
|
+
/**
|
|
644
|
+
* Resolves with the recording of the session so far, or undefined when the page does not record
|
|
645
|
+
* one. A page records with the `?record` switch, which also puts a save button on the page. The
|
|
646
|
+
* file holds each frame's step and the input that the sketch read in it, from the session's
|
|
647
|
+
* first frame, so a `?replay` of it draws the same frames. Its format is the engine's own; save
|
|
648
|
+
* it to a file and open `?replay=<file>` to run it. Recording seeds the sketch thread's random
|
|
649
|
+
* numbers, so a recorded session draws the same frames when it replays.
|
|
650
|
+
*/
|
|
651
|
+
saveRecording(): Promise<Uint8Array | undefined>;
|
|
652
|
+
/**
|
|
653
|
+
* Acts out a loss of the GPU, as a driver reset causes. The engine starts a new GPU device and
|
|
654
|
+
* draws the whole scene again, as it does after a real loss. Use it to test how your page
|
|
655
|
+
* handles one.
|
|
656
|
+
*/
|
|
657
|
+
simulateGpuLoss(): void;
|
|
658
|
+
/**
|
|
659
|
+
* Locks the pointer to the canvas, for first-person controls and games that turn with the mouse.
|
|
660
|
+
* The browser hides the pointer, and the sketch's `input.pointer.dx` and `dy` give the mouse's
|
|
661
|
+
* movement, with no edge to stop it. Call it in a click or key handler: browsers lock the pointer
|
|
662
|
+
* only right after the user acts. Resolves once the lock begins. Fails with E1425 when the browser
|
|
663
|
+
* refuses it, and with E1426 on an engine started with `input: false`, which reads no movement.
|
|
664
|
+
* The user ends the lock with Esc, and the page with `document.exitPointerLock()`. Stopping the
|
|
665
|
+
* engine ends a lock that it took or that its input read.
|
|
666
|
+
*/
|
|
667
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
668
|
+
/**
|
|
669
|
+
* Stops the engine and its workers. The engine cannot start again. The sketch's `onDestroy` runs
|
|
670
|
+
* first, and later calls from the sketch's code fail with E1420. The thread that draws destroys
|
|
671
|
+
* the engine's GPU textures and buffers and its GPU device, so the GPU's memory comes back at
|
|
672
|
+
* once. It also leaves the canvas blank, at its size, because Safari keeps the GPU memory of a
|
|
673
|
+
* canvas's last frame until the canvas shows another. The promise resolves once every worker has
|
|
674
|
+
* stopped. Wait for it before you start another engine on the same page: an iPad has room for
|
|
675
|
+
* only a few engines' memory. A new engine can start on the same canvas, with the same thread
|
|
676
|
+
* options; `createEngine` waits for this stop.
|
|
677
|
+
*
|
|
678
|
+
* The page keeps the memory that the engine's threads shared for about 30 seconds, and the next
|
|
679
|
+
* engine with the same memory maximum takes it. A page that destroys and creates the engine
|
|
680
|
+
* again, as React's strict mode, a route change or a hot reload does, then asks the browser for
|
|
681
|
+
* no new memory. Safari can refuse new memory for some seconds after a page drops some. The page
|
|
682
|
+
* keeps at most 2 memories, and the RAM that they hold stays taken until a new engine takes one
|
|
683
|
+
* or their time ends. `{ release: true }` lets the browser free them at once: use it when the
|
|
684
|
+
* page will not start the engine again soon.
|
|
685
|
+
*/
|
|
686
|
+
destroy(options?: {
|
|
687
|
+
release?: boolean;
|
|
688
|
+
}): Promise<void>;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* The longest that a request may wait for a worker's answer, in milliseconds. The slowest answer is
|
|
692
|
+
* a capture: the thread that draws waits for a frame's pipelines for up to `BUILD_WAIT_LIMIT_MS`
|
|
693
|
+
* before it draws, reads the frame back and encodes it. On a software renderer that work costs
|
|
694
|
+
* minutes, and the forest demo's held frame takes more than a minute on CI's SwiftShader, so this
|
|
695
|
+
* figure sits well above the slowest frame that was measured and below the image tests' own limit.
|
|
696
|
+
* The heaviest picture sets their own limit of ten minutes, and a showcase scene that grows its
|
|
697
|
+
* plants at first use spends more of that on one frame, so this figure takes the same ten minutes:
|
|
698
|
+
* a thread that stops taking messages then fails the request with a named error instead of leaving
|
|
699
|
+
* the page to wait with no end.
|
|
700
|
+
*/
|
|
701
|
+
export declare const WORKER_REPLY_LIMIT_MS = 600000;
|
|
702
|
+
interface TierChoice {
|
|
703
|
+
tier: Tier;
|
|
704
|
+
forceCompat: boolean;
|
|
705
|
+
}
|
|
706
|
+
/** Picks the GPU tier from feature tests, never from browser or GPU names. */
|
|
707
|
+
export declare function chooseTier(report: CapabilityReport, wanted: GpuSwitch, inWorker: boolean): TierChoice | null;
|
|
708
|
+
/**
|
|
709
|
+
* The error of a worker that failed to start. An engine error keeps its code and message; any
|
|
710
|
+
* other failure becomes E1405.
|
|
711
|
+
*/
|
|
712
|
+
export declare function startError(role: string, message: string): EngineError;
|
|
713
|
+
/**
|
|
714
|
+
* The error of an engine thread, or of the drawing on the page, that failed after the start,
|
|
715
|
+
* where `what` names it. An engine error keeps its code and message, such as E1424 for a custom
|
|
716
|
+
* material's builds that did not download; any other failure becomes E1404.
|
|
717
|
+
*/
|
|
718
|
+
export declare function failureError(what: string, message: string): EngineError;
|
|
719
|
+
/** What the page does with the replies of a worker that answer no request. */
|
|
720
|
+
interface WorkerEvents {
|
|
721
|
+
/** A message that the sketch sent with `ctx.page.post`. */
|
|
722
|
+
sketchMessage(name: string, data: unknown): void;
|
|
723
|
+
/** An error that the sketch's own code threw in a frame. The engine keeps drawing. */
|
|
724
|
+
sketchError(error: Error): void;
|
|
725
|
+
/**
|
|
726
|
+
* A failure of a thread. It ends a start that is still under way, unless `endsStart` is false:
|
|
727
|
+
* the engine then runs on without the thread.
|
|
728
|
+
*/
|
|
729
|
+
failure(error: EngineError, endsStart?: boolean): void;
|
|
730
|
+
/** The quality preset and settings after a change, and the preset check's result. */
|
|
731
|
+
quality(update: QualityUpdate): void;
|
|
732
|
+
/** The sketch asked to show or hide the stats overlay, or to change its options. */
|
|
733
|
+
stats(show: StatsRequest): void;
|
|
734
|
+
/** The table and slot in the label tables of a label's id, or a slot of -1 once it has none. */
|
|
735
|
+
labelSlot: LabelSlotSender;
|
|
736
|
+
/** The sketch thread asked for this many job workers, as its parallel work grew. */
|
|
737
|
+
jobsWanted(count: number): void;
|
|
738
|
+
/** A worker's script did not load, so the engine started a second copy from the same address. */
|
|
739
|
+
workerRestart?(role: string, script: string): void;
|
|
740
|
+
/** What a timed script's steps gave, after the sketch thread performed them in a hold. */
|
|
741
|
+
holdScript?(result: HoldScriptResult | undefined): void;
|
|
742
|
+
/** The recording of the session so far, which the page saves as a file. */
|
|
743
|
+
recording?(bytes: Uint8Array): void;
|
|
744
|
+
/** What a replay gave, after the sketch thread ran the recording's frames. */
|
|
745
|
+
replay?(result: ReplayResult): void;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* The error of a GPU that ran out of memory (E1304) or rejected a command (E1305), on `thread`, such
|
|
749
|
+
* as "the render worker".
|
|
750
|
+
*/
|
|
751
|
+
export declare function gpuFailure(thread: string, outOfMemory: boolean, message: string): EngineError;
|
|
752
|
+
/**
|
|
753
|
+
* A worker whose replies are routed: events to the page's handlers, answers to the oldest request.
|
|
754
|
+
* A failure that a started worker reports, or that ends it, reaches the page as E1404, or with its
|
|
755
|
+
* own code when it is an engine error.
|
|
756
|
+
*/
|
|
757
|
+
export declare class EngineWorker {
|
|
758
|
+
private readonly role;
|
|
759
|
+
/**
|
|
760
|
+
* The script that the worker runs, which a failure to start names in its error. Absent for a
|
|
761
|
+
* worker that started for an engine before, whose script did not load this time.
|
|
762
|
+
*/
|
|
763
|
+
private readonly script;
|
|
764
|
+
/**
|
|
765
|
+
* Starts another copy of the worker, for the one retry of a script that did not load. Absent
|
|
766
|
+
* for a worker that ran before, such as one that kept its canvas from an engine before.
|
|
767
|
+
*/
|
|
768
|
+
private readonly restart?;
|
|
769
|
+
private readonly waiting;
|
|
770
|
+
private readyPromise;
|
|
771
|
+
private readonly stoppedPromise;
|
|
772
|
+
private worker;
|
|
773
|
+
/**
|
|
774
|
+
* The recording that gathers the words of each thread that draws, when the page records them.
|
|
775
|
+
* Set before the page waits for any worker's ready reply.
|
|
776
|
+
*/
|
|
777
|
+
recording?: PermutationRecording;
|
|
778
|
+
private started;
|
|
779
|
+
/** True once the worker reported that its script, and the files it imports, loaded. */
|
|
780
|
+
private scriptLoaded;
|
|
781
|
+
/** True once the page replaced a worker whose script did not load. */
|
|
782
|
+
private retried;
|
|
783
|
+
/**
|
|
784
|
+
* The messages that the page sent before the worker reported that its script loaded. A worker
|
|
785
|
+
* that has not run its script cannot take them, so they wait here: a copy that replaces a
|
|
786
|
+
* worker whose script did not load then gets all of them, and no message moves a canvas or a
|
|
787
|
+
* port to a worker that never ran.
|
|
788
|
+
*/
|
|
789
|
+
private readonly held;
|
|
790
|
+
/** True once the worker answered a stop, and false while it has not or once it failed. */
|
|
791
|
+
private stoppedCleanly;
|
|
792
|
+
/** Settles the wait for the worker's answer to a stop of its drawing. */
|
|
793
|
+
private answerStop;
|
|
794
|
+
/** Removes the current worker's error listener, for a copy or for a worker that the page keeps. */
|
|
795
|
+
private unwatch;
|
|
796
|
+
constructor(worker: Worker, role: string,
|
|
797
|
+
/**
|
|
798
|
+
* The script that the worker runs, which a failure to start names in its error. Absent for a
|
|
799
|
+
* worker that started for an engine before, whose script did not load this time.
|
|
800
|
+
*/
|
|
801
|
+
script: URL | string | undefined, events: WorkerEvents,
|
|
802
|
+
/**
|
|
803
|
+
* Starts another copy of the worker, for the one retry of a script that did not load. Absent
|
|
804
|
+
* for a worker that ran before, such as one that kept its canvas from an engine before.
|
|
805
|
+
*/
|
|
806
|
+
restart?: (() => Worker) | undefined);
|
|
807
|
+
/**
|
|
808
|
+
* What the page reports for a worker that did not start. The message names the worker's script,
|
|
809
|
+
* so a page that loads the engine's files from a wrong path, or a host that does not serve them,
|
|
810
|
+
* shows which file failed.
|
|
811
|
+
*/
|
|
812
|
+
private startFailure;
|
|
813
|
+
/**
|
|
814
|
+
* Drops the handlers that reach this engine, so a worker that the page keeps, such as a drawing
|
|
815
|
+
* worker parked with its canvas, holds none of the engine or its shared memory alive.
|
|
816
|
+
*/
|
|
817
|
+
detach(): void;
|
|
818
|
+
/**
|
|
819
|
+
* Hands the held messages to the worker, once its script has run. A worker that the page kept
|
|
820
|
+
* from an engine before reports no step, so its messages go to it at once.
|
|
821
|
+
*/
|
|
822
|
+
private scriptRan;
|
|
823
|
+
/** Sends a message to the worker that the page holds now. */
|
|
824
|
+
private post;
|
|
825
|
+
/** The worker that the page holds now, which a copy replaces if its script did not load. */
|
|
826
|
+
get handle(): Worker;
|
|
827
|
+
/**
|
|
828
|
+
* Sends a message to the worker. A worker whose script has not run yet holds it, so that a copy
|
|
829
|
+
* that replaces a worker whose script did not load receives every message in order, and no
|
|
830
|
+
* message moves a canvas or a port to a worker that never ran.
|
|
831
|
+
*/
|
|
832
|
+
send(message: unknown, transfer?: Transferable[]): void;
|
|
833
|
+
/**
|
|
834
|
+
* Asks the worker to stop: to run the sketch's onDestroy, and to free its GPU objects and device
|
|
835
|
+
* where it draws. Settles once it answers or fails.
|
|
836
|
+
*/
|
|
837
|
+
stopDrawing(): Promise<void>;
|
|
838
|
+
/** True when the worker answered the page's stop, so it is in a state to start again. */
|
|
839
|
+
get cleanStop(): boolean;
|
|
840
|
+
ready(): Promise<WorkerReply>;
|
|
841
|
+
/**
|
|
842
|
+
* Settles once a job worker has left the job system, once the worker that draws has destroyed
|
|
843
|
+
* its GPU objects, or once the worker has failed.
|
|
844
|
+
*/
|
|
845
|
+
stopped(): Promise<void>;
|
|
846
|
+
/** Stops the worker, and fails each request that still waits for its answer. */
|
|
847
|
+
terminate(): void;
|
|
848
|
+
/**
|
|
849
|
+
* Sends a request and waits for the worker's answer, which ends with a failure once the answer
|
|
850
|
+
* has taken longer than the wait's limit. The request keeps its place in the queue, so an answer
|
|
851
|
+
* that arrives late is used up in order and reaches no other request.
|
|
852
|
+
*/
|
|
853
|
+
request(message: RendererRequest): Promise<WorkerReply>;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Starts the engine on the page. It tests the device, picks the build and the GPU path, starts the
|
|
857
|
+
* workers, and runs the sketch module. In hold mode it also steps the sketch to the held time, then
|
|
858
|
+
* draws that frame and reads it back. It publishes the frame, or the error that stopped it, as
|
|
859
|
+
* `window.__null3dHold` for test tools. With the `?bench` switch, it publishes the running engine
|
|
860
|
+
* as `window.__null3dEngine`, where a benchmark tool calls `measure`.
|
|
861
|
+
*
|
|
862
|
+
* @category api/engine
|
|
863
|
+
*/
|
|
864
|
+
export declare function createEngine(options: EngineOptions): Promise<Engine>;
|
|
865
|
+
export {};
|