@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,1627 @@
|
|
|
1
|
+
import { type ColorInput } from './color.js';
|
|
2
|
+
import type { SceneInput } from './features.js';
|
|
3
|
+
import type { CoreMemory } from './memory.js';
|
|
4
|
+
import { Texture } from './textures.js';
|
|
5
|
+
import type { TextureValues, UniformValues } from './wgsl-uniforms.js';
|
|
6
|
+
/**
|
|
7
|
+
* A lower level of detail of a mesh: a simpler mesh that draws in the base mesh's place. Give its
|
|
8
|
+
* `error`, the `distance` at which it switches in, or the screen `coverage` under which it draws.
|
|
9
|
+
* A level with a measured error, which the asset tool writes, changes the picture by under a pixel
|
|
10
|
+
* at a small threshold and switches at once. When the governor raises the threshold above about
|
|
11
|
+
* one and a half pixels, that switch shows, and such a level then fades too. A level given by a distance, by
|
|
12
|
+
* a coverage or by a hand-set error fades over a short band, so its switch does not pop.
|
|
13
|
+
*
|
|
14
|
+
* @category api/geometry
|
|
15
|
+
*/
|
|
16
|
+
export interface MeshLevel {
|
|
17
|
+
/**
|
|
18
|
+
* The simpler mesh. It has the base mesh's vertex attributes, and draws with the object's
|
|
19
|
+
* material or the level's own.
|
|
20
|
+
*/
|
|
21
|
+
mesh: MeshGeometry;
|
|
22
|
+
/**
|
|
23
|
+
* The level's error: the largest distance between its surface and the base mesh's, in the
|
|
24
|
+
* units of the base mesh's positions. An object's scale multiplies it. The asset tool stores it
|
|
25
|
+
* for each level that `--lod` makes.
|
|
26
|
+
*/
|
|
27
|
+
error?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The distance from the camera to the nearest point of the object's bounds at which the level
|
|
30
|
+
* switches in, for an object of scale 1. The switch stays there on every screen height and at
|
|
31
|
+
* every render scale.
|
|
32
|
+
*/
|
|
33
|
+
distance?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The share of the render's height that the object's bounds cover where the level switches in,
|
|
36
|
+
* from 0 to 1: it draws while they cover less. This is `MSFT_screencoverage` in a glTF file.
|
|
37
|
+
* It stays the same on every screen height.
|
|
38
|
+
*/
|
|
39
|
+
coverage?: number;
|
|
40
|
+
/**
|
|
41
|
+
* True to hand over between two levels in a short band past each switch distance, where a
|
|
42
|
+
* dither pattern shares the pixels between them, so a switch does not pop. False to switch at
|
|
43
|
+
* once. The default is `fade` in the options. A level with a measured error changes the
|
|
44
|
+
* picture by under a pixel while the governed threshold stays small, so its band only costs
|
|
45
|
+
* then; the engine fades such a level once the governor raises the threshold above about one
|
|
46
|
+
* and a half pixels. The glTF reader
|
|
47
|
+
* switches a file's measured error at once and fades an error that comes alone, which its
|
|
48
|
+
* author set by hand.
|
|
49
|
+
*/
|
|
50
|
+
fade?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The material that the level's surface draws with, where it shades more cheaply than the base
|
|
53
|
+
* mesh's. A level without one draws with the material of the level before it, and the base
|
|
54
|
+
* level draws with the object's or the batch's own material. Give a far level a material
|
|
55
|
+
* without a normal map, or with an opaque mask in place of an alpha-tested one.
|
|
56
|
+
*/
|
|
57
|
+
material?: Material;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Options for `mesh.setLevels`.
|
|
61
|
+
*
|
|
62
|
+
* @category api/geometry
|
|
63
|
+
*/
|
|
64
|
+
export interface MeshLevelOptions {
|
|
65
|
+
/**
|
|
66
|
+
* True to hand over between two levels in a short band past each switch distance, where a
|
|
67
|
+
* dither pattern shares the pixels between them, so a switch does not pop. False to switch at
|
|
68
|
+
* once. The default is true. A level's own `fade` overrides it. A level with a measured error
|
|
69
|
+
* fades too once the governor raises the threshold above about one and a half pixels, where
|
|
70
|
+
* its switch shows.
|
|
71
|
+
*/
|
|
72
|
+
fade?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The vertical field of view, in degrees, that checks the order of the levels when the mesh
|
|
75
|
+
* takes them. Each frame compares a level's error or coverage with the field of view of the
|
|
76
|
+
* view that draws it, so this option moves no switch. The default is 50, three.js's default
|
|
77
|
+
* for a perspective camera.
|
|
78
|
+
*/
|
|
79
|
+
fov?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* A mesh made in code with at least this many triangles plans its levels the first time the scene
|
|
83
|
+
* draws it, unless its options say `levels: false`. A smaller mesh drawn a few times costs little
|
|
84
|
+
* at any distance, and each level adds draw buckets to every pipeline that draws the mesh.
|
|
85
|
+
*/
|
|
86
|
+
export declare const AUTOMATIC_LEVEL_TRIANGLES = 4096;
|
|
87
|
+
/**
|
|
88
|
+
* A smaller mesh of at least `AUTOMATIC_COPY_TRIANGLES` triangles plans its levels once the copies
|
|
89
|
+
* that the scene draws of it hold this many triangles together, as a batch of pebbles does.
|
|
90
|
+
*/
|
|
91
|
+
export declare const AUTOMATIC_DRAWN_TRIANGLES = 65536;
|
|
92
|
+
/** The fewest triangles of a mesh that plans its levels because of its copies. */
|
|
93
|
+
export declare const AUTOMATIC_COPY_TRIANGLES = 256;
|
|
94
|
+
/**
|
|
95
|
+
* Options for `mesh.buildLevels`, and for the levels that a mesh made in code plans on its own.
|
|
96
|
+
*
|
|
97
|
+
* @category api/geometry
|
|
98
|
+
*/
|
|
99
|
+
export interface BuildLevelsOptions {
|
|
100
|
+
/**
|
|
101
|
+
* True to plan a mesh whose every separate piece is a quad, or a quad folded along its middle,
|
|
102
|
+
* as leaf cards: each level keeps every second card and grows it about its middle, so a crown
|
|
103
|
+
* keeps its cover. The default is false, because separate quads also build walls and floors,
|
|
104
|
+
* which would get holes: such a mesh then simplifies as any other, and its levels drop only
|
|
105
|
+
* whole small pieces. A mesh whose positions are integers plans no card levels.
|
|
106
|
+
*/
|
|
107
|
+
cards?: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* The levels of detail that a mesh made in code plans on its own. By default it plans them the
|
|
111
|
+
* first time the scene draws it, when it holds `geometry.automaticLevelTriangles` triangles or
|
|
112
|
+
* more, or when it holds at least `geometry.automaticCopyTriangles` triangles and its copies hold `geometry.automaticDrawnTriangles` together; `false` plans none,
|
|
113
|
+
* and `true` or options plan them when the mesh is made, at any size. `'pieces'` plans no lower
|
|
114
|
+
* levels, and sorts a mesh of 32,768 triangles or more into pieces by space at its first draw, as
|
|
115
|
+
* a merged far cell or a large ground whose levels come from elsewhere gains from.
|
|
116
|
+
*
|
|
117
|
+
* @category api/geometry
|
|
118
|
+
*/
|
|
119
|
+
export type LevelsOption = boolean | BuildLevelsOptions | 'pieces';
|
|
120
|
+
export declare const FACING_PIECES_DRAWN_TRIANGLES = 65536;
|
|
121
|
+
/**
|
|
122
|
+
* A mesh the engine can draw: its id in the engine core, its bounding radius, and its morph
|
|
123
|
+
* targets.
|
|
124
|
+
*
|
|
125
|
+
* @category api/geometry
|
|
126
|
+
*/
|
|
127
|
+
export declare class MeshGeometry {
|
|
128
|
+
protected constructor();
|
|
129
|
+
/** The distance from the mesh's bounding center (`center`) to its farthest vertex, at rest. */
|
|
130
|
+
readonly radius: number;
|
|
131
|
+
/** How many morph targets the mesh has. 0 for a mesh without any. */
|
|
132
|
+
readonly morphTargets: number;
|
|
133
|
+
/**
|
|
134
|
+
* The morph targets' names, by target, or none when the mesh's arrays named none. Like
|
|
135
|
+
* three.js's `morphTargetDictionary`, turned around. `mesh.setMorphWeight` takes a name too.
|
|
136
|
+
*/
|
|
137
|
+
readonly morphTargetNames: readonly string[];
|
|
138
|
+
/** The geometry that made the mesh, whose scene says which objects use it. */
|
|
139
|
+
private readonly maker?;
|
|
140
|
+
/** The engine core's id, or 0 once the mesh is destroyed. */
|
|
141
|
+
private liveId;
|
|
142
|
+
/** The mesh's lower levels of detail, as `setLevels` gave them. */
|
|
143
|
+
private lowerLevels;
|
|
144
|
+
/** The vertex count and format, read from the engine core at the first update. */
|
|
145
|
+
private layout;
|
|
146
|
+
/** The level meshes that the planner made, which the mesh owns and frees with its levels. */
|
|
147
|
+
private built;
|
|
148
|
+
/** True when the planned levels came from the automatic default. */
|
|
149
|
+
private builtAutomatically;
|
|
150
|
+
/** The plan that runs, if any. */
|
|
151
|
+
private planning;
|
|
152
|
+
/** Counts the plans and the changes that end one, so a plan that a later call ended changes nothing. */
|
|
153
|
+
private plans;
|
|
154
|
+
/**
|
|
155
|
+
* True once the mesh takes no automatic levels: its options said `levels: false`, its vertices
|
|
156
|
+
* changed, or a material that moves its vertices draws it.
|
|
157
|
+
*/
|
|
158
|
+
private automaticOff;
|
|
159
|
+
/** The most triangles that the mesh holds, as it was made, for the automatic default. */
|
|
160
|
+
private automaticTriangles;
|
|
161
|
+
/** The copies that the scene has drawn of the mesh, for the automatic default. */
|
|
162
|
+
private copies;
|
|
163
|
+
/** True while the mesh waits for its first draw to sort its pieces alone (`levels: 'pieces'`). */
|
|
164
|
+
private piecesOnly;
|
|
165
|
+
/**
|
|
166
|
+
* True once the mesh plans its own facing pieces with no levels: a mesh whose levels come from
|
|
167
|
+
* a file or were set by hand.
|
|
168
|
+
*/
|
|
169
|
+
private handPieces;
|
|
170
|
+
/** True for a mesh that a file made, whose levels and pieces come from the file. */
|
|
171
|
+
private fromFile;
|
|
172
|
+
/** True when the file holds pieces of the mesh's list. */
|
|
173
|
+
private filePieces;
|
|
174
|
+
/**
|
|
175
|
+
* The pieces that a file holds of the mesh's smaller list, which wait until the scene's copies
|
|
176
|
+
* of the mesh, or of the base whose level it is, hold enough triangles to pay for them.
|
|
177
|
+
*/
|
|
178
|
+
private heldPieces;
|
|
179
|
+
/**
|
|
180
|
+
* The center of the box around the mesh's vertices at rest, in the mesh's own space. The mesh's
|
|
181
|
+
* bounding sphere lies around it with `radius`, and culling tests that sphere. A mesh whose
|
|
182
|
+
* positions start at a corner, as quantized glTF files store them, has its center away from the
|
|
183
|
+
* origin.
|
|
184
|
+
*/
|
|
185
|
+
get center(): readonly [number, number, number];
|
|
186
|
+
private boundsCenter;
|
|
187
|
+
/**
|
|
188
|
+
* Destroys the mesh, like three.js's `geometry.dispose()`. The engine frees its GPU memory and
|
|
189
|
+
* its other data at once, and later meshes take its room. Destroy the objects and instance
|
|
190
|
+
* batches that use it first, in the same frame or before. Its lower levels go with it, since a
|
|
191
|
+
* level draws its base's vertices. Throws E1111 while one
|
|
192
|
+
* still uses it, and E1101 for a mesh that is destroyed already. Later calls that pass the mesh
|
|
193
|
+
* throw E1101.
|
|
194
|
+
*/
|
|
195
|
+
destroy(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Writes new values into one attribute of the mesh's vertices, like setting three.js's
|
|
198
|
+
* `attribute.needsUpdate` after a change. `values` holds the attribute's values of every
|
|
199
|
+
* vertex, in the array type the mesh was made with, as `geometry.fromArrays` takes them. Only
|
|
200
|
+
* vertices `start` to `start + count - 1` change, which the next frame uploads. The defaults
|
|
201
|
+
* update every vertex. Colors take three or four values per vertex: three keep each vertex's
|
|
202
|
+
* alpha. The mesh keeps the bounding sphere it was made with, so give objects that draw
|
|
203
|
+
* vertices outside it bounds with `setBounds`. The four-number vertex record takes updates as
|
|
204
|
+
* `targets`. Joints, weights, and a mesh with joints or morph targets take no updates. A level
|
|
205
|
+
* that draws its base mesh's vertices writes them, so the base and every level of it draw the
|
|
206
|
+
* new values. The levels that `buildLevels` or the automatic default planned measured the old
|
|
207
|
+
* shape, so the first update takes them away, and the mesh plans no automatic levels again;
|
|
208
|
+
* `buildLevels` plans them for the new shape. Throws E1206 for values that do not fit the mesh,
|
|
209
|
+
* and E1101 for a destroyed mesh. Allocates nothing, so a call in every frame makes no garbage.
|
|
210
|
+
*/
|
|
211
|
+
updateVertices(name: UpdatableAttribute, values: Float32Array | IntegerArray | readonly number[], start?: number, count?: number): void;
|
|
212
|
+
/**
|
|
213
|
+
* The mesh's lower levels of detail, from the most detailed down, as `setLevels` gave them. A
|
|
214
|
+
* destroyed level takes every level away, as the engine does.
|
|
215
|
+
*/
|
|
216
|
+
get levels(): readonly MeshLevel[];
|
|
217
|
+
/**
|
|
218
|
+
* Gives the mesh lower levels of detail, from the most detailed down, like three.js's
|
|
219
|
+
* `LOD.addLevel`. A mesh takes at most 15 lower levels. Every object and instance batch that
|
|
220
|
+
* draws the mesh then picks one level per frame. It draws the coarsest level whose error covers
|
|
221
|
+
* fewer pixels on the screen than the `lodThreshold` quality setting. A level may name a material of its own, so a far level shades
|
|
222
|
+
* more cheaply; a level without one draws with the level before's material. A bound that
|
|
223
|
+
* covers fewer pixels than the threshold draws nothing, so the mesh's last level holds no
|
|
224
|
+
* geometry. The shadow maps pick their own levels, by each map's texel size, so a caster's
|
|
225
|
+
* shadow shows the detail that the map can hold. An empty list takes the levels away.
|
|
226
|
+
* Morphed objects, and materials that blend or let light through, draw the base mesh. A
|
|
227
|
+
* skinned object draws a level while the level names the base mesh's own vertices.
|
|
228
|
+
* Destroying a level's mesh takes every level away. Levels set here win over the ones that
|
|
229
|
+
* `buildLevels` or the automatic default plans: a plan that runs ends, and the planned levels
|
|
230
|
+
* go. Throws E1221 for levels the mesh cannot take, and E1101 for a destroyed mesh.
|
|
231
|
+
*/
|
|
232
|
+
setLevels(levels: readonly MeshLevel[], options?: MeshLevelOptions): void;
|
|
233
|
+
/**
|
|
234
|
+
* Plans the mesh's levels of detail on the job workers, as the asset tool's `--lod` plans a
|
|
235
|
+
* file's, and gives them to the mesh when they arrive, between two frames. Each level about
|
|
236
|
+
* halves the triangles of the level above, down to a few dozen, and stores the largest distance
|
|
237
|
+
* between its surface and the mesh's as its error, so it switches in at once where that
|
|
238
|
+
* distance covers less than the `lodThreshold` setting's pixels. The levels name the mesh's own
|
|
239
|
+
* vertices, in their own order, so they cost indices alone: the mesh keeps its vertices and
|
|
240
|
+
* triangles as they are. A mesh that the engine split into parts, past 65,535 vertices, shares
|
|
241
|
+
* them part by part, and copies only the vertices of the triangles that cross from one part to
|
|
242
|
+
* another. A large mesh spreads the work over frames. The engine reads one part of it in each
|
|
243
|
+
* frame for the plan. It makes one level in each frame when the plan is done, and gives the
|
|
244
|
+
* scene the whole set once, so the scene's draw tables rebuild once. The mesh draws its full
|
|
245
|
+
* shape until the levels arrive, and every object and instance batch that draws it then picks
|
|
246
|
+
* its level. The mesh and each level of 32,768 triangles or more
|
|
247
|
+
* also get 8 to 16 pieces, which each copy skips where they lie outside the view or face away.
|
|
248
|
+
* A smaller list that many copies draw gets a piece for each way it faces where its triangles
|
|
249
|
+
* face a few ways, as a building's walls do. A mesh that one object draws, or a smaller mesh,
|
|
250
|
+
* gets its own pieces over a sorted copy of its indices, in the frame after the last level;
|
|
251
|
+
* copies of a large mesh keep their levels' pieces alone.
|
|
252
|
+
*
|
|
253
|
+
* A mesh made in code plans its levels on its own the first time the scene draws it, when it
|
|
254
|
+
* holds `geometry.automaticLevelTriangles` triangles or more, or when it holds at least
|
|
255
|
+
* `geometry.automaticCopyTriangles` triangles and its copies hold
|
|
256
|
+
* `geometry.automaticDrawnTriangles` together. Call this to plan another mesh's, to plan again
|
|
257
|
+
* after `updateVertices`, or to await the levels of a plan that runs: a call while a plan with
|
|
258
|
+
* the same options runs returns that plan's promise. `setLevels` wins over a plan, and
|
|
259
|
+
* `updateVertices` takes the planned levels away. The promise resolves with the mesh's levels, which stay as they were when the
|
|
260
|
+
* planner finds no level worth making, and when `setLevels`, `updateVertices` or `destroy` ends
|
|
261
|
+
* the plan first. It rejects with E1221 for a mesh with joints, morph targets or a vertex
|
|
262
|
+
* record, whose shape poses or moves, and with E1406 when the planner does not download. The
|
|
263
|
+
* planner downloads with the first mesh that plans: meshoptimizer's simplifier, about 23 KB.
|
|
264
|
+
* Throws E1101 for a destroyed mesh.
|
|
265
|
+
*/
|
|
266
|
+
buildLevels(options?: BuildLevelsOptions): Promise<readonly MeshLevel[]>;
|
|
267
|
+
/** Starts a plan whose failure keeps the full mesh, with a warning in development. */
|
|
268
|
+
private planQuietly;
|
|
269
|
+
/**
|
|
270
|
+
* Starts a plan of the mesh's levels, or returns the one that runs with the same options. With
|
|
271
|
+
* `piecesOnly`, the plan makes no lower levels and sorts the mesh into pieces alone, by space
|
|
272
|
+
* alone with `spacePieces`.
|
|
273
|
+
*/
|
|
274
|
+
private plan;
|
|
275
|
+
/**
|
|
276
|
+
* Gives the mesh the levels that a plan made, unless a later call ended the plan, or the plan
|
|
277
|
+
* was the automatic default's and the mesh has refused automatic levels or holds levels set by
|
|
278
|
+
* hand since. The plan makes one level a frame, so that no frame takes the work of every level
|
|
279
|
+
* of a large mesh. It gives the set to the scene once, when the plan ends. The scene's draw
|
|
280
|
+
* tables then rebuild once, however many levels the plan made. Hold mode takes them all at once.
|
|
281
|
+
*/
|
|
282
|
+
private takePlan;
|
|
283
|
+
/**
|
|
284
|
+
* Resolves once the sketch has run another frame, or after a short wait where frames stop.
|
|
285
|
+
* Hold mode resolves at once, since its held frame waits for the plan.
|
|
286
|
+
*/
|
|
287
|
+
private nextFrame;
|
|
288
|
+
/**
|
|
289
|
+
* A planned level's mesh: one that draws this mesh's vertices with the level's triangles, part
|
|
290
|
+
* by part where the mesh is split into parts, or a copy of the vertices that it draws where the
|
|
291
|
+
* level moved them, as a level of cards does.
|
|
292
|
+
*/
|
|
293
|
+
private levelMesh;
|
|
294
|
+
/**
|
|
295
|
+
* Gives the mesh and its levels the pieces that pay once its copies hold enough triangles
|
|
296
|
+
* together: those that a file holds of a smaller list, and the facing pieces that a mesh sorts
|
|
297
|
+
* for itself, as a town's copies of a house's walls have. The pieces that a file holds of a
|
|
298
|
+
* smaller list wait for that, so few copies draw the list whole with no draw more. A mesh whose
|
|
299
|
+
* levels come from a file, or were set by hand, plans no levels, and its copies draw its base
|
|
300
|
+
* list out to where its lower levels switch in: where the file holds no pieces of that list, it
|
|
301
|
+
* plans them on the job workers, over a sorted copy of its indices. A mesh with joints, morph
|
|
302
|
+
* targets or a vertex record plans none, and neither does one with `levels: false`. A material
|
|
303
|
+
* that draws both faces takes the pieces that a file holds, which the view's frustum test culls;
|
|
304
|
+
* it plans none of its own, which a cone would not drop.
|
|
305
|
+
*/
|
|
306
|
+
private facingPiecesFor;
|
|
307
|
+
/**
|
|
308
|
+
* Starts a plan of the mesh's pieces alone, by space alone with `space`, whose failure leaves
|
|
309
|
+
* the mesh without pieces, with a warning in development.
|
|
310
|
+
*/
|
|
311
|
+
private planPiecesQuietly;
|
|
312
|
+
/** True when the mesh's triangles, or those of its copies, ask for automatic levels. */
|
|
313
|
+
private automaticWanted;
|
|
314
|
+
/** Takes the planned levels away and ends a plan that runs. Levels set by hand stay. */
|
|
315
|
+
private dropBuilt;
|
|
316
|
+
/** Frees the planned level meshes that the mesh's levels no longer name. */
|
|
317
|
+
private freeBuilt;
|
|
318
|
+
/**
|
|
319
|
+
* Frees those of `meshes` that are live and that the mesh's levels do not name, unless an
|
|
320
|
+
* object or a batch draws one.
|
|
321
|
+
*/
|
|
322
|
+
private freeMeshes;
|
|
323
|
+
/** Checks levels and gives them to the core, as `setLevels` takes them. */
|
|
324
|
+
private applyLevels;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* The levels of detail that a generator's mesh plans on its own, as `MeshArrays.levels` says.
|
|
328
|
+
*
|
|
329
|
+
* @category api/geometry
|
|
330
|
+
*/
|
|
331
|
+
export interface ShapeLevels {
|
|
332
|
+
/**
|
|
333
|
+
* The levels of detail that the mesh plans on its own. By default it plans them the first time
|
|
334
|
+
* the scene draws it, when it holds `geometry.automaticLevelTriangles` triangles or more, or
|
|
335
|
+
* when it holds at least `geometry.automaticCopyTriangles` triangles and its copies hold `geometry.automaticDrawnTriangles` together; `false` plans none, and
|
|
336
|
+
* `true` or options plan them when the mesh is made, at any size.
|
|
337
|
+
*/
|
|
338
|
+
levels?: LevelsOption;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Options for `geometry.box`. The box is centered on its origin. Segment counts are whole numbers
|
|
342
|
+
* of at least 1.
|
|
343
|
+
*
|
|
344
|
+
* @category api/geometry
|
|
345
|
+
*/
|
|
346
|
+
export interface BoxOptions extends ShapeLevels {
|
|
347
|
+
/** The size along the X axis. The default is 1. */
|
|
348
|
+
width?: number;
|
|
349
|
+
/** The size along the Y axis. The default is 1. */
|
|
350
|
+
height?: number;
|
|
351
|
+
/** The size along the Z axis. The default is 1. */
|
|
352
|
+
depth?: number;
|
|
353
|
+
/** How many faces divide each side along the width. The default is 1. */
|
|
354
|
+
widthSegments?: number;
|
|
355
|
+
/** How many faces divide each side along the height. The default is 1. */
|
|
356
|
+
heightSegments?: number;
|
|
357
|
+
/** How many faces divide each side along the depth. The default is 1. */
|
|
358
|
+
depthSegments?: number;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Options for `geometry.sphere`. The sphere is centered on its origin, with its poles on the Y
|
|
362
|
+
* axis. Angles are in radians.
|
|
363
|
+
*
|
|
364
|
+
* @category api/geometry
|
|
365
|
+
*/
|
|
366
|
+
export interface SphereOptions extends ShapeLevels {
|
|
367
|
+
/** The radius. The default is 1. */
|
|
368
|
+
radius?: number;
|
|
369
|
+
/** How many faces go around the Y axis. The default is 32, and the least is 3. */
|
|
370
|
+
widthSegments?: number;
|
|
371
|
+
/** How many faces go from pole to pole. The default is 16, and the least is 2. */
|
|
372
|
+
heightSegments?: number;
|
|
373
|
+
/** Where the sphere starts around the Y axis, from the -X axis. The default is 0. */
|
|
374
|
+
phiStart?: number;
|
|
375
|
+
/** How far the sphere goes around the Y axis. The default is `Math.PI * 2`, all the way. */
|
|
376
|
+
phiLength?: number;
|
|
377
|
+
/** Where the sphere starts, down from the top pole. The default is 0. */
|
|
378
|
+
thetaStart?: number;
|
|
379
|
+
/** How far the sphere goes down from `thetaStart`. The default is `Math.PI`, to the bottom pole. */
|
|
380
|
+
thetaLength?: number;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Options for `geometry.plane`. The plane lies in the XY plane, centered on its origin, and faces
|
|
384
|
+
* +Z. Segment counts are whole numbers of at least 1.
|
|
385
|
+
*
|
|
386
|
+
* @category api/geometry
|
|
387
|
+
*/
|
|
388
|
+
export interface PlaneOptions extends ShapeLevels {
|
|
389
|
+
/** The size along the X axis. The default is 1. */
|
|
390
|
+
width?: number;
|
|
391
|
+
/** The size along the Y axis. The default is 1. */
|
|
392
|
+
height?: number;
|
|
393
|
+
/** How many faces divide the width. The default is 1. */
|
|
394
|
+
widthSegments?: number;
|
|
395
|
+
/** How many faces divide the height. The default is 1. */
|
|
396
|
+
heightSegments?: number;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Options for `geometry.cylinder`. The cylinder stands on the Y axis, centered on its origin.
|
|
400
|
+
* Angles are in radians, and segment counts are whole numbers of at least 1.
|
|
401
|
+
*
|
|
402
|
+
* @category api/geometry
|
|
403
|
+
*/
|
|
404
|
+
export interface CylinderOptions extends ShapeLevels {
|
|
405
|
+
/** The radius of the top. The default is 1. With 0, the top is a point. */
|
|
406
|
+
radiusTop?: number;
|
|
407
|
+
/** The radius of the bottom. The default is 1. With 0, the bottom is a point. */
|
|
408
|
+
radiusBottom?: number;
|
|
409
|
+
/** The height. The default is 1. */
|
|
410
|
+
height?: number;
|
|
411
|
+
/** How many faces go around the cylinder. The default is 32. */
|
|
412
|
+
radialSegments?: number;
|
|
413
|
+
/** How many rows of faces go up the side. The default is 1. */
|
|
414
|
+
heightSegments?: number;
|
|
415
|
+
/** Leaves out the top and the bottom, so the cylinder is a tube. The default is false. */
|
|
416
|
+
openEnded?: boolean;
|
|
417
|
+
/** Where the side starts around the Y axis, from the +Z axis. The default is 0. */
|
|
418
|
+
thetaStart?: number;
|
|
419
|
+
/** How far the side goes around the Y axis. The default is `Math.PI * 2`, all the way. */
|
|
420
|
+
thetaLength?: number;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Options for `geometry.cone`. The cone stands on the Y axis, centered on its origin, with its
|
|
424
|
+
* point at the top. Angles are in radians, and segment counts are whole numbers of at least 1.
|
|
425
|
+
*
|
|
426
|
+
* @category api/geometry
|
|
427
|
+
*/
|
|
428
|
+
export interface ConeOptions extends ShapeLevels {
|
|
429
|
+
/** The radius of the bottom. The default is 1. */
|
|
430
|
+
radius?: number;
|
|
431
|
+
/** The height. The default is 1. */
|
|
432
|
+
height?: number;
|
|
433
|
+
/** How many faces go around the cone. The default is 32. */
|
|
434
|
+
radialSegments?: number;
|
|
435
|
+
/** How many rows of faces go up the side. The default is 1. */
|
|
436
|
+
heightSegments?: number;
|
|
437
|
+
/** Leaves out the bottom. The default is false. */
|
|
438
|
+
openEnded?: boolean;
|
|
439
|
+
/** Where the side starts around the Y axis, from the +Z axis. The default is 0. */
|
|
440
|
+
thetaStart?: number;
|
|
441
|
+
/** How far the side goes around the Y axis. The default is `Math.PI * 2`, all the way. */
|
|
442
|
+
thetaLength?: number;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Options for `geometry.torus`. The torus is centered on its origin, around the Z axis. Angles are
|
|
446
|
+
* in radians, and segment counts are whole numbers of at least 1.
|
|
447
|
+
*
|
|
448
|
+
* @category api/geometry
|
|
449
|
+
*/
|
|
450
|
+
export interface TorusOptions extends ShapeLevels {
|
|
451
|
+
/** The distance from the center of the torus to the center of its tube. The default is 1. */
|
|
452
|
+
radius?: number;
|
|
453
|
+
/** The radius of the tube. The default is 0.4. */
|
|
454
|
+
tube?: number;
|
|
455
|
+
/** How many faces go around the tube. The default is 12. */
|
|
456
|
+
radialSegments?: number;
|
|
457
|
+
/** How many faces go around the torus. The default is 48. */
|
|
458
|
+
tubularSegments?: number;
|
|
459
|
+
/** How far the torus goes around its center. The default is `Math.PI * 2`, all the way. */
|
|
460
|
+
arc?: number;
|
|
461
|
+
/** Where the tube starts around its own center. The default is 0. */
|
|
462
|
+
thetaStart?: number;
|
|
463
|
+
/** How far the tube goes around its own center. The default is `Math.PI * 2`, all the way. */
|
|
464
|
+
thetaLength?: number;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Options for `geometry.capsule`: a cylinder with a half sphere on each end. The capsule stands on
|
|
468
|
+
* the Y axis, centered on its origin, and its full height is `height` plus twice the radius.
|
|
469
|
+
* Segment counts are whole numbers.
|
|
470
|
+
*
|
|
471
|
+
* @category api/geometry
|
|
472
|
+
*/
|
|
473
|
+
export interface CapsuleOptions extends ShapeLevels {
|
|
474
|
+
/** The radius of the capsule and of its half spheres. The default is 1. */
|
|
475
|
+
radius?: number;
|
|
476
|
+
/** The height of the middle part, between the half spheres. The default is 1. */
|
|
477
|
+
height?: number;
|
|
478
|
+
/** How many rows of faces go along each half sphere. The default is 4, and the least is 1. */
|
|
479
|
+
capSegments?: number;
|
|
480
|
+
/** How many faces go around the capsule. The default is 8, and the least is 3. */
|
|
481
|
+
radialSegments?: number;
|
|
482
|
+
/** How many rows of faces go along the middle part. The default is 1, and the least is 1. */
|
|
483
|
+
heightSegments?: number;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Options for `geometry.circle`: a flat disc of triangles around its center. The circle lies in
|
|
487
|
+
* the XY plane, centered on its origin, and faces +Z. Angles are in radians.
|
|
488
|
+
*
|
|
489
|
+
* @category api/geometry
|
|
490
|
+
*/
|
|
491
|
+
export interface CircleOptions extends ShapeLevels {
|
|
492
|
+
/** The radius. The default is 1. */
|
|
493
|
+
radius?: number;
|
|
494
|
+
/** How many triangles make the circle: a whole number. The default is 32, and the least is 3. */
|
|
495
|
+
segments?: number;
|
|
496
|
+
/** Where the circle starts, from the +X axis toward +Y. The default is 0. */
|
|
497
|
+
thetaStart?: number;
|
|
498
|
+
/** How far the circle goes. The default is `Math.PI * 2`. Less makes a slice of the circle. */
|
|
499
|
+
thetaLength?: number;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Options for `geometry.ring`: a flat disc with a hole. The ring lies in the XY plane, centered on
|
|
503
|
+
* its origin, and faces +Z. Angles are in radians, and segment counts are whole numbers.
|
|
504
|
+
*
|
|
505
|
+
* @category api/geometry
|
|
506
|
+
*/
|
|
507
|
+
export interface RingOptions extends ShapeLevels {
|
|
508
|
+
/** The radius of the hole. The default is 0.5. */
|
|
509
|
+
innerRadius?: number;
|
|
510
|
+
/** The radius of the outer edge. The default is 1. */
|
|
511
|
+
outerRadius?: number;
|
|
512
|
+
/** How many faces go around the ring. The default is 32, and the least is 3. */
|
|
513
|
+
thetaSegments?: number;
|
|
514
|
+
/** How many faces go from the inner edge to the outer edge. The default is 1, and the least is 1. */
|
|
515
|
+
phiSegments?: number;
|
|
516
|
+
/** Where the ring starts, from the +X axis toward +Y. The default is 0. */
|
|
517
|
+
thetaStart?: number;
|
|
518
|
+
/** How far the ring goes. The default is `Math.PI * 2`, all the way. */
|
|
519
|
+
thetaLength?: number;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* The vertex attributes that `mesh.updateVertices` writes, by their names in `MeshArrays`.
|
|
523
|
+
*
|
|
524
|
+
* @category api/geometry
|
|
525
|
+
*/
|
|
526
|
+
export type UpdatableAttribute = 'positions' | 'normals' | 'uvs' | 'uvs1' | 'colors' | 'tangents' | 'targets';
|
|
527
|
+
/**
|
|
528
|
+
* The integer typed arrays that vertex attributes take: 8-bit and 16-bit, signed and unsigned.
|
|
529
|
+
*
|
|
530
|
+
* @category api/geometry
|
|
531
|
+
*/
|
|
532
|
+
export type IntegerArray = Int8Array | Uint8Array | Int16Array | Uint16Array;
|
|
533
|
+
/**
|
|
534
|
+
* One attribute's numbers with a note on how its integers read, like three.js's `BufferAttribute`,
|
|
535
|
+
* whose `array` and `normalized` fields it shares. Normalized integers read as fractions: from 0
|
|
536
|
+
* to 1 when unsigned, and from -1 to 1 when signed. Plain integers read as whole numbers.
|
|
537
|
+
*
|
|
538
|
+
* @category api/geometry
|
|
539
|
+
*/
|
|
540
|
+
export interface VertexArray {
|
|
541
|
+
/** The numbers, as `MeshArrays` takes them. */
|
|
542
|
+
array: Float32Array | IntegerArray | readonly number[];
|
|
543
|
+
/**
|
|
544
|
+
* True when the integers are normalized. The default is false, as in three.js and glTF. It
|
|
545
|
+
* applies to positions and texture coordinates. The other attributes read integers one way
|
|
546
|
+
* only, so they refuse a value that says otherwise.
|
|
547
|
+
*/
|
|
548
|
+
normalized?: boolean;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* The numbers of one vertex attribute: a typed array, a plain array of numbers, or a
|
|
552
|
+
* `VertexArray` that also says whether its integers are normalized. Plain arrays hold 32-bit
|
|
553
|
+
* floats, except joints, which hold 16-bit integers.
|
|
554
|
+
*
|
|
555
|
+
* @category api/geometry
|
|
556
|
+
*/
|
|
557
|
+
export type VertexValues = Float32Array | IntegerArray | readonly number[] | VertexArray;
|
|
558
|
+
/**
|
|
559
|
+
* A mesh's morph targets, like three.js's `morphAttributes` with `morphTargetsRelative` set, as
|
|
560
|
+
* glTF stores them. Each list holds one array per target, of three numbers per vertex, or for
|
|
561
|
+
* colors as many as the mesh's `colors` hold. They say how far the target moves the vertex's
|
|
562
|
+
* position, normal, tangent or color at weight 1. Every list has the same number of targets, from
|
|
563
|
+
* 1 to 256. A mesh's targets move its vertices by their weights, which each object sets with
|
|
564
|
+
* `setMorphWeight`, and clips animate.
|
|
565
|
+
*
|
|
566
|
+
* @category api/geometry
|
|
567
|
+
*/
|
|
568
|
+
export interface MorphTargets {
|
|
569
|
+
/** For each target, how far it moves each position. Like `morphAttributes.position`. */
|
|
570
|
+
positions?: readonly (Float32Array | readonly number[])[];
|
|
571
|
+
/** For each target, how far it turns each normal. Like `morphAttributes.normal`. */
|
|
572
|
+
normals?: readonly (Float32Array | readonly number[])[];
|
|
573
|
+
/**
|
|
574
|
+
* For each target, how far it turns each tangent's direction: three numbers per vertex, as
|
|
575
|
+
* glTF gives them. three.js does not morph tangents.
|
|
576
|
+
*/
|
|
577
|
+
tangents?: readonly (Float32Array | readonly number[])[];
|
|
578
|
+
/**
|
|
579
|
+
* For each target, how far it changes each vertex color: three or four numbers per vertex, as
|
|
580
|
+
* many as the mesh's `colors` hold, in linear color. Like `morphAttributes.color`. A morphed
|
|
581
|
+
* color is clamped to the range 0 to 1, as the glTF specification asks. Needs `colors`.
|
|
582
|
+
*/
|
|
583
|
+
colors?: readonly (Float32Array | readonly number[])[];
|
|
584
|
+
/** The targets' names, one per target, which `setMorphWeight` takes in place of numbers. */
|
|
585
|
+
names?: readonly string[];
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* The arrays of a mesh for `geometry.fromArrays`. Each array holds its values for vertex 0, then
|
|
589
|
+
* vertex 1, and so on, as three.js's `BufferGeometry` keeps its attributes. The engine copies
|
|
590
|
+
* them.
|
|
591
|
+
*
|
|
592
|
+
* An attribute can come as 32-bit floats, or as the 8-bit and 16-bit integers that glTF's
|
|
593
|
+
* `KHR_mesh_quantization` allows for it. The mesh keeps that type on the GPU. Smaller types take
|
|
594
|
+
* less memory and upload faster. Integer positions keep their own scale, so give the object
|
|
595
|
+
* the scale that turns them into meters, as a glTF node does. Meshes share GPU buffers with the
|
|
596
|
+
* meshes whose attributes have the same types.
|
|
597
|
+
*
|
|
598
|
+
* @category api/geometry
|
|
599
|
+
*/
|
|
600
|
+
export interface MeshArrays {
|
|
601
|
+
/**
|
|
602
|
+
* Three numbers per vertex: x, y and z. Like three.js's `position` attribute. Takes floats,
|
|
603
|
+
* or 8-bit or 16-bit integers, normalized or plain.
|
|
604
|
+
*/
|
|
605
|
+
positions: VertexValues;
|
|
606
|
+
/**
|
|
607
|
+
* Three numbers per vertex: a direction of length 1 away from the surface. Like three.js's
|
|
608
|
+
* `normal` attribute. Pass normals, or set `computeNormals` instead. Takes floats, or an
|
|
609
|
+
* `Int8Array` or `Int16Array`, whose integers read as fractions from -1 to 1.
|
|
610
|
+
*/
|
|
611
|
+
normals?: VertexValues;
|
|
612
|
+
/**
|
|
613
|
+
* Texture coordinates: two numbers per vertex, u and v. Like three.js's `uv` attribute. Takes
|
|
614
|
+
* floats, or 8-bit or 16-bit integers, normalized or plain.
|
|
615
|
+
*/
|
|
616
|
+
uvs?: VertexValues;
|
|
617
|
+
/**
|
|
618
|
+
* A second set of texture coordinates, two numbers per vertex, such as those of a light map.
|
|
619
|
+
* Like three.js's `uv1` attribute. Takes the same types as `uvs`.
|
|
620
|
+
*/
|
|
621
|
+
uvs1?: VertexValues;
|
|
622
|
+
/**
|
|
623
|
+
* Linear colors, three numbers per vertex from 0 to 1, or four with alpha. Like three.js's
|
|
624
|
+
* `color` attribute. Takes floats, or a `Uint8Array` or `Uint16Array`, whose integers read as
|
|
625
|
+
* fractions from 0 to 1.
|
|
626
|
+
*/
|
|
627
|
+
colors?: VertexValues;
|
|
628
|
+
/**
|
|
629
|
+
* Four numbers per vertex: the direction in which u grows along the surface, then 1 or -1 for
|
|
630
|
+
* the direction in which v grows. Like three.js's `tangent` attribute. Takes the same types as
|
|
631
|
+
* `normals`.
|
|
632
|
+
*/
|
|
633
|
+
tangents?: VertexValues;
|
|
634
|
+
/**
|
|
635
|
+
* The joints that move each vertex of a skinned mesh: four joint indices per vertex, in a
|
|
636
|
+
* `Uint8Array`, a `Uint16Array` or a plain array. Like three.js's `skinIndex` attribute. Give
|
|
637
|
+
* `weights` with them.
|
|
638
|
+
*/
|
|
639
|
+
joints?: VertexValues;
|
|
640
|
+
/**
|
|
641
|
+
* How much each of a vertex's four joints moves it: four numbers per vertex, which add up to
|
|
642
|
+
* 1. Like three.js's `skinWeight` attribute. Takes floats, or a `Uint8Array` or `Uint16Array`,
|
|
643
|
+
* whose integers read as fractions from 0 to 1.
|
|
644
|
+
*/
|
|
645
|
+
weights?: VertexValues;
|
|
646
|
+
/**
|
|
647
|
+
* Four numbers per vertex for a shape that a custom material moves between levels of detail:
|
|
648
|
+
* the position that the vertex takes at the next coarser level, and that level's error in
|
|
649
|
+
* meters. The material's `vertexOffset` reads them as `input.vertexRecord`. Takes floats. The
|
|
650
|
+
* vertex record also holds a morphed mesh's morph data, so a mesh takes `targets` or
|
|
651
|
+
* `morphTargets`, never both.
|
|
652
|
+
*/
|
|
653
|
+
targets?: VertexValues;
|
|
654
|
+
/**
|
|
655
|
+
* Three vertex indices per triangle, counter-clockwise when you look at its front. 16-bit and
|
|
656
|
+
* 32-bit indices both work. Without indices, each three vertices in a row make a triangle.
|
|
657
|
+
* Like three.js's `setIndex`.
|
|
658
|
+
*/
|
|
659
|
+
indices?: Uint16Array | Uint32Array | readonly number[];
|
|
660
|
+
/**
|
|
661
|
+
* Computes the normals from the triangles, as three.js's `computeVertexNormals` does: each
|
|
662
|
+
* vertex gets the average of its triangles' normals, weighted by their areas.
|
|
663
|
+
*/
|
|
664
|
+
computeNormals?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* Computes the tangents from the positions, the normals and `uvs`, as three.js's
|
|
667
|
+
* `computeTangents` does, on the job workers.
|
|
668
|
+
*/
|
|
669
|
+
computeTangents?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* The mesh's morph targets: shapes that each object of the mesh blends in by its own weights.
|
|
672
|
+
* The engine keeps, for each vertex, only the targets that move it.
|
|
673
|
+
*/
|
|
674
|
+
morphTargets?: MorphTargets;
|
|
675
|
+
/**
|
|
676
|
+
* The levels of detail that the mesh plans on its own, on the job workers, as
|
|
677
|
+
* `mesh.buildLevels` plans them. By default it plans them the first time the scene draws it,
|
|
678
|
+
* when it holds `geometry.automaticLevelTriangles` triangles or more, or when it holds at least
|
|
679
|
+
* `geometry.automaticCopyTriangles` triangles and its copies hold
|
|
680
|
+
* `geometry.automaticDrawnTriangles` together. A mesh with joints, morph targets or `targets`
|
|
681
|
+
* plans none, and neither does one that lies flat or that a material with moving vertices
|
|
682
|
+
* draws. `false` plans none: give it to a mesh whose shape a shader moves, or whose levels you
|
|
683
|
+
* set by hand. `true` plans them when the mesh is made, at any size, and options such as
|
|
684
|
+
* `{ cards: true }` plan them with those options. `'pieces'` plans no levels, and sorts a mesh
|
|
685
|
+
* of 32,768 triangles or more into pieces by space at its first draw.
|
|
686
|
+
*/
|
|
687
|
+
levels?: LevelsOption;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Mesh generators with the parameters and defaults of three.js's geometry classes, and meshes
|
|
691
|
+
* from arrays.
|
|
692
|
+
*
|
|
693
|
+
* @category api/geometry
|
|
694
|
+
*/
|
|
695
|
+
export declare class Geometry {
|
|
696
|
+
private readonly core;
|
|
697
|
+
constructor(core: CoreMemory);
|
|
698
|
+
/**
|
|
699
|
+
* The GPU bytes that every mesh holds: the shared vertex and index buffers, which keep room to
|
|
700
|
+
* grow, and the texture of morph target deltas. It counts what the frames made so far, so it
|
|
701
|
+
* grows once a frame draws a new mesh. Destroyed meshes give their room to later ones, so a
|
|
702
|
+
* scene that loads and destroys the same models keeps the same figure.
|
|
703
|
+
*/
|
|
704
|
+
get memoryBytes(): number;
|
|
705
|
+
/**
|
|
706
|
+
* The triangles from which a mesh made in code plans its levels of detail, the first time the
|
|
707
|
+
* scene draws it, unless its options say `levels: false`. A smaller mesh drawn a few times
|
|
708
|
+
* costs little at any distance, and each level adds draw work to every pipeline that draws it.
|
|
709
|
+
*/
|
|
710
|
+
get automaticLevelTriangles(): number;
|
|
711
|
+
/**
|
|
712
|
+
* The triangles of the copies that the scene draws, together, from which a smaller mesh of at
|
|
713
|
+
* least `automaticCopyTriangles` triangles plans its levels too, as a batch of pebbles does.
|
|
714
|
+
*/
|
|
715
|
+
get automaticDrawnTriangles(): number;
|
|
716
|
+
/** The fewest triangles of a mesh that plans its levels because of its copies. */
|
|
717
|
+
get automaticCopyTriangles(): number;
|
|
718
|
+
private mesh;
|
|
719
|
+
/**
|
|
720
|
+
* A generator's mesh: each option, or its default, in the order of the three.js class's
|
|
721
|
+
* arguments, after the numbers in `first`. Throws E1203 for an option that is not a finite
|
|
722
|
+
* number.
|
|
723
|
+
*/
|
|
724
|
+
private shape;
|
|
725
|
+
/** A box, like three.js's `BoxGeometry`. */
|
|
726
|
+
box(options?: BoxOptions): MeshGeometry;
|
|
727
|
+
/** A sphere, like three.js's `SphereGeometry`. */
|
|
728
|
+
sphere(options?: SphereOptions): MeshGeometry;
|
|
729
|
+
/** A flat rectangle, like three.js's `PlaneGeometry`. */
|
|
730
|
+
plane(options?: PlaneOptions): MeshGeometry;
|
|
731
|
+
/** A cylinder, like three.js's `CylinderGeometry`. */
|
|
732
|
+
cylinder(options?: CylinderOptions): MeshGeometry;
|
|
733
|
+
/** A cone, like three.js's `ConeGeometry`: a cylinder whose top is a point. */
|
|
734
|
+
cone(options?: ConeOptions): MeshGeometry;
|
|
735
|
+
/** A torus, like three.js's `TorusGeometry`. */
|
|
736
|
+
torus(options?: TorusOptions): MeshGeometry;
|
|
737
|
+
/** A capsule, like three.js's `CapsuleGeometry`. */
|
|
738
|
+
capsule(options?: CapsuleOptions): MeshGeometry;
|
|
739
|
+
/** A flat circle, like three.js's `CircleGeometry`. */
|
|
740
|
+
circle(options?: CircleOptions): MeshGeometry;
|
|
741
|
+
/** A flat ring, like three.js's `RingGeometry`. */
|
|
742
|
+
ring(options?: RingOptions): MeshGeometry;
|
|
743
|
+
/**
|
|
744
|
+
* A mesh from arrays of vertex attributes and triangle indices, like three.js's
|
|
745
|
+
* `BufferGeometry` with `setAttribute` and `setIndex`. The mesh keeps the attributes it gets,
|
|
746
|
+
* each in the type of number it came in, and meshes whose attributes have the same types share
|
|
747
|
+
* GPU buffers. A mesh can have any number of vertices. Throws E1206 when an array's length does
|
|
748
|
+
* not fit the vertex count, when its attribute does not take its type of number, when an index
|
|
749
|
+
* names no vertex, for a value that is not a finite number, and for morph targets whose arrays
|
|
750
|
+
* do not fit the vertices or whose lists hold different numbers of targets.
|
|
751
|
+
*/
|
|
752
|
+
fromArrays(arrays: MeshArrays): MeshGeometry;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Options every material takes.
|
|
756
|
+
*
|
|
757
|
+
* @category api/materials
|
|
758
|
+
*/
|
|
759
|
+
export interface MaterialOptions {
|
|
760
|
+
/** The base color: a hex string or a number in sRGB, or three linear components from 0 to 1. */
|
|
761
|
+
color?: ColorInput;
|
|
762
|
+
/**
|
|
763
|
+
* How opaque the surface is, from 0 to 1. The default is 1. It is part of the alpha, which the
|
|
764
|
+
* `mask` alpha mode tests and the `blend` alpha mode blends with. The `opaque` alpha mode
|
|
765
|
+
* ignores it.
|
|
766
|
+
*/
|
|
767
|
+
opacity?: number;
|
|
768
|
+
/**
|
|
769
|
+
* The alpha below which a masked surface draws nothing, from 0 to 1, and the cutoff that a
|
|
770
|
+
* blended surface's shadow caster tests where its WGSL declares `coverage`. The default is 0.5,
|
|
771
|
+
* as in glTF.
|
|
772
|
+
*/
|
|
773
|
+
alphaCutoff?: number;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* How a material uses its alpha: its opacity, times its base color map's alpha, and times its
|
|
777
|
+
* mesh's vertex alpha with `vertexColors`. The `opaque` mode ignores the alpha. The `mask` mode
|
|
778
|
+
* draws nothing where the alpha falls below `alphaCutoff`, and draws the rest opaque, as three.js's
|
|
779
|
+
* `alphaTest` does. The `hash` mode draws each point of the surface opaque or not at all, by a
|
|
780
|
+
* pattern that stays on the mesh. The alpha then sets how much of the surface draws, as three.js's
|
|
781
|
+
* `alphaHash` does. The `blend` mode blends the surface over what lies behind it, as three.js's
|
|
782
|
+
* `transparent: true` does. Blended objects draw after the opaque ones, farthest first.
|
|
783
|
+
*
|
|
784
|
+
* @category api/materials
|
|
785
|
+
*/
|
|
786
|
+
export type AlphaMode = 'opaque' | 'mask' | 'hash' | 'blend';
|
|
787
|
+
/**
|
|
788
|
+
* How a blended surface meets what lies behind it. The `normal` blending covers it as far as the
|
|
789
|
+
* alpha says. The `additive` blending adds the surface's light, for glows and fire. The `multiply`
|
|
790
|
+
* blending tints it, for stains and tinted glass. The `weighted` blending covers it as `normal`
|
|
791
|
+
* does, but blends the surfaces of this blending in any order, by a weighted average, as
|
|
792
|
+
* three.js's `OITPassNode` does. Use it for smoke, dense particles and many overlapping panes,
|
|
793
|
+
* where sorting by object leaves surfaces in the wrong order.
|
|
794
|
+
*
|
|
795
|
+
* @category api/materials
|
|
796
|
+
*/
|
|
797
|
+
export type Blending = 'normal' | 'additive' | 'multiply' | 'weighted';
|
|
798
|
+
/**
|
|
799
|
+
* A depth bias, as three.js's polygon offset gives. It moves a surface's depth, so a decal on a
|
|
800
|
+
* wall wins the depth test and does not fight with the wall. Negative values pull the surface
|
|
801
|
+
* toward the camera, as in three.js.
|
|
802
|
+
*
|
|
803
|
+
* @category api/materials
|
|
804
|
+
*/
|
|
805
|
+
export interface DepthBias {
|
|
806
|
+
/**
|
|
807
|
+
* Steps of the depth buffer's smallest difference, as three.js's `polygonOffsetUnits`. A
|
|
808
|
+
* fraction rounds to the nearest whole number, as WebGPU takes it. The default is 0.
|
|
809
|
+
*/
|
|
810
|
+
constant?: number;
|
|
811
|
+
/**
|
|
812
|
+
* A factor of how steeply the surface's depth changes across the screen, as three.js's
|
|
813
|
+
* `polygonOffsetFactor`. The default is 0.
|
|
814
|
+
*/
|
|
815
|
+
slopeScale?: number;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* The values of a standard material, which `set` changes at any time.
|
|
819
|
+
*
|
|
820
|
+
* @category api/materials
|
|
821
|
+
*/
|
|
822
|
+
export interface StandardValues extends MaterialOptions {
|
|
823
|
+
/** How much the surface acts like a metal, from 0 to 1. The default is 0. */
|
|
824
|
+
metalness?: number;
|
|
825
|
+
/** How rough the surface is, from 0 (a mirror) to 1 (fully matte). The default is 1. */
|
|
826
|
+
roughness?: number;
|
|
827
|
+
/**
|
|
828
|
+
* The color the surface gives off without any light, in the forms that `color` takes. The
|
|
829
|
+
* default is black, which gives off nothing.
|
|
830
|
+
*/
|
|
831
|
+
emissive?: ColorInput;
|
|
832
|
+
/** The factor of the emissive color: 0 or more. The default is 1. */
|
|
833
|
+
emissiveIntensity?: number;
|
|
834
|
+
/**
|
|
835
|
+
* How strongly the normal map bends normals along u and along v. The default is `[1, 1]`, and
|
|
836
|
+
* negative values flip a direction.
|
|
837
|
+
*/
|
|
838
|
+
normalScale?: readonly [number, number];
|
|
839
|
+
/**
|
|
840
|
+
* How strongly the bump map bends normals, as three.js's `bumpScale`: the change of its red
|
|
841
|
+
* channel from one pixel to the next times this. Negative values turn bumps into dents. The
|
|
842
|
+
* default is 1.
|
|
843
|
+
*/
|
|
844
|
+
bumpScale?: number;
|
|
845
|
+
/**
|
|
846
|
+
* How far the displacement map's white moves each vertex along its normal, in the mesh's units,
|
|
847
|
+
* as three.js's `displacementScale`. The default is 1.
|
|
848
|
+
*/
|
|
849
|
+
displacementScale?: number;
|
|
850
|
+
/**
|
|
851
|
+
* How far the displacement map moves every vertex along its normal, added to its texel's
|
|
852
|
+
* share of `displacementScale`, in the mesh's units, as three.js's `displacementBias`. The
|
|
853
|
+
* default is 0.
|
|
854
|
+
*/
|
|
855
|
+
displacementBias?: number;
|
|
856
|
+
/** How much the occlusion map darkens ambient light, from 0 to 1. The default is 1. */
|
|
857
|
+
aoMapIntensity?: number;
|
|
858
|
+
/** The factor of the light map's light: 0 or more. The default is 1. */
|
|
859
|
+
lightMapIntensity?: number;
|
|
860
|
+
/**
|
|
861
|
+
* The index of refraction of the surface's non-metallic part, 1 or more, as three.js's
|
|
862
|
+
* `MeshPhysicalMaterial.ior`. It sets how much light the surface reflects when seen head on:
|
|
863
|
+
* `((ior - 1) / (ior + 1))^2`. The default is 1.5, which reflects 4%, as glTF's metallic-roughness
|
|
864
|
+
* model does.
|
|
865
|
+
*/
|
|
866
|
+
ior?: number;
|
|
867
|
+
/**
|
|
868
|
+
* The strength of the specular reflection of the surface's non-metallic part, from 0 to 1, as
|
|
869
|
+
* three.js's `specularIntensity`. It scales the reflection at every angle, so 0 leaves only
|
|
870
|
+
* diffuse light. Metals ignore it. The default is 1.
|
|
871
|
+
*/
|
|
872
|
+
specularIntensity?: number;
|
|
873
|
+
/**
|
|
874
|
+
* The color that tints the specular reflection of the surface's non-metallic part when seen head
|
|
875
|
+
* on, as three.js's `specularColor`. At grazing angles the reflection stays white, and metals
|
|
876
|
+
* ignore it. It takes the forms that `color` takes, and its three linear components may also
|
|
877
|
+
* exceed 1, as glTF allows, to reflect more than the index of refraction gives, up to all the
|
|
878
|
+
* light. The default is white.
|
|
879
|
+
*/
|
|
880
|
+
specularColor?: ColorInput;
|
|
881
|
+
/**
|
|
882
|
+
* The factor of the scene environment's light on the surface, 0 or more, as three.js's
|
|
883
|
+
* `envMapIntensity`. It multiplies the intensity that `scene.setEnvironment` gives. The
|
|
884
|
+
* default is 1.
|
|
885
|
+
*/
|
|
886
|
+
envIntensity?: number;
|
|
887
|
+
/** Where the maps sit on the texture coordinates. The default leaves them as they are. */
|
|
888
|
+
uvTransform?: UvTransform;
|
|
889
|
+
/**
|
|
890
|
+
* Each map's own transform, for the maps whose transform differs from `uvTransform`. A file
|
|
891
|
+
* keeps one transform for each of its textures, so the loader places each map with its own.
|
|
892
|
+
*/
|
|
893
|
+
mapUvTransforms?: MapUvTransforms;
|
|
894
|
+
/**
|
|
895
|
+
* How much of the light behind the surface passes through it, from 0 to 1, for glass and clear
|
|
896
|
+
* water, as three.js's `MeshPhysicalMaterial.transmission`. That share of the diffuse light
|
|
897
|
+
* becomes the light from behind, and the reflections stay. Roughness blurs what shows through.
|
|
898
|
+
* Give it when you create the material, even as 0, to change it later. A material created
|
|
899
|
+
* without it lets no light through. Such a material draws after the opaque objects, with the
|
|
900
|
+
* blended ones, and only opaque objects show through it. It takes the `opaque`, `mask` or
|
|
901
|
+
* `blend` alpha mode. A mask decides which pixels draw, and the light from behind fills the
|
|
902
|
+
* pixels that remain, as three.js's `alphaTest` does. The default is 0.
|
|
903
|
+
*/
|
|
904
|
+
transmission?: number;
|
|
905
|
+
/**
|
|
906
|
+
* The thickness of the volume under the surface, in the mesh's own units, 0 or more, as
|
|
907
|
+
* three.js's `thickness`. Light that passes through bends by `ior` over this distance, and the
|
|
908
|
+
* volume's color absorbs part of it. 0 is a thin wall, which bends no light. The default is 0.
|
|
909
|
+
*/
|
|
910
|
+
thickness?: number;
|
|
911
|
+
/**
|
|
912
|
+
* The color that white light takes after it travels `attenuationDistance` through the
|
|
913
|
+
* volume, as three.js's `attenuationColor`, in the forms that `color` takes. The default is
|
|
914
|
+
* white, which absorbs nothing.
|
|
915
|
+
*/
|
|
916
|
+
attenuationColor?: ColorInput;
|
|
917
|
+
/**
|
|
918
|
+
* The distance in world units over which light in the volume takes `attenuationColor`, above
|
|
919
|
+
* 0, as three.js's `attenuationDistance`. `Infinity` absorbs nothing. The default is
|
|
920
|
+
* `Infinity`.
|
|
921
|
+
*/
|
|
922
|
+
attenuationDistance?: number;
|
|
923
|
+
/**
|
|
924
|
+
* The strength of the volume's dispersion, 0 or more, as three.js's
|
|
925
|
+
* `MeshPhysicalMaterial.dispersion` and glTF's `KHR_materials_dispersion`: 20 divided by the
|
|
926
|
+
* Abbe number, so a diamond's 0.36 is weak and rutile's 2.04 is strong. The light from behind
|
|
927
|
+
* bends by a slightly different index of refraction for each color, so a prism or a gem
|
|
928
|
+
* separates it into colors at its edges. 0 bends every color alike. It shows only with
|
|
929
|
+
* `transmission`, and the default is 0.
|
|
930
|
+
*/
|
|
931
|
+
dispersion?: number;
|
|
932
|
+
/**
|
|
933
|
+
* How much of the surface's diffuse light passes through it to its other side, from 0 to 1, as
|
|
934
|
+
* glTF's `KHR_materials_diffuse_transmission` gives it. Light that reaches the back, such as the
|
|
935
|
+
* sun behind a leaf, a petal or an ear, then shows on the front through
|
|
936
|
+
* `diffuseTransmissionColor`, and the front keeps the rest of its diffuse light. Shadows fall on
|
|
937
|
+
* that light too. Give it when you create the material, even as 0, to change it later. A
|
|
938
|
+
* material created without it lets no light through to its other side. Over `thickness`, the
|
|
939
|
+
* volume's `attenuationColor` tints the light. `transmission` wins where a material has both.
|
|
940
|
+
* The default is 0.
|
|
941
|
+
*/
|
|
942
|
+
diffuseTransmission?: number;
|
|
943
|
+
/**
|
|
944
|
+
* The color that tints the light that passes through to the surface's other side, in the forms
|
|
945
|
+
* that `color` takes. The base color does not tint it, as glTF says, so give a leaf its green
|
|
946
|
+
* here. The default is white.
|
|
947
|
+
*/
|
|
948
|
+
diffuseTransmissionColor?: ColorInput;
|
|
949
|
+
/**
|
|
950
|
+
* How far light spreads under the surface before it leaves it, in world units taken as
|
|
951
|
+
* meters, 0 or more, as in skin, wax or marble. The subsurface blur spreads the surface's
|
|
952
|
+
* diffuse light over this distance, so the edges of its shadows and the detail of its maps
|
|
953
|
+
* soften, and its highlights stay sharp. Skin takes about 0.01. Give it when you create the
|
|
954
|
+
* material, even as 0, to change it later. A material created without it draws no blur. The
|
|
955
|
+
* blur draws on the High and Ultra quality presets, where the quality setting
|
|
956
|
+
* `subsurfaceSamples` gives it taps, on the HDR path. Materials that blend or let light
|
|
957
|
+
* through take none. The default is 0.
|
|
958
|
+
*/
|
|
959
|
+
subsurfaceRadius?: number;
|
|
960
|
+
/**
|
|
961
|
+
* How far each color channel's light spreads, as a share of `subsurfaceRadius`, in the forms
|
|
962
|
+
* that `color` takes: each linear channel is its share. Skin's red light spreads furthest, so
|
|
963
|
+
* it takes about `[1, 0.4, 0.25]`. The default is white, which spreads every channel as far.
|
|
964
|
+
*/
|
|
965
|
+
subsurfaceColor?: ColorInput;
|
|
966
|
+
/**
|
|
967
|
+
* How much of a clear coat covers the surface, from 0 to 1, as three.js's
|
|
968
|
+
* `MeshPhysicalMaterial.clearcoat`: a thin, shiny layer, as on car paint, varnish or a wet
|
|
969
|
+
* stone, with its own highlights and reflection. It dims what lies below it where it reflects
|
|
970
|
+
* light. Give it, or another option of a clear coat or a sheen, when you create the material, to
|
|
971
|
+
* change it later. The default is 0.
|
|
972
|
+
*/
|
|
973
|
+
clearcoat?: number;
|
|
974
|
+
/** How rough the clear coat is, from 0 (a mirror) to 1, as three.js's `clearcoatRoughness`. The default is 0. */
|
|
975
|
+
clearcoatRoughness?: number;
|
|
976
|
+
/**
|
|
977
|
+
* How strongly the coat normal map bends the coat's normals along u and along v, as three.js's
|
|
978
|
+
* `clearcoatNormalScale`. The default is `[1, 1]`, and negative values flip a direction.
|
|
979
|
+
*/
|
|
980
|
+
clearcoatNormalScale?: readonly [number, number];
|
|
981
|
+
/**
|
|
982
|
+
* The color of a sheen, the soft glow at grazing angles of velvet, cloth and fuzz, as three.js's
|
|
983
|
+
* `sheenColor`, in the forms that `color` takes. three.js's `sheen` multiplies it; here the
|
|
984
|
+
* color alone sets the sheen. Black gives none. Give it, or another option of a clear coat or a
|
|
985
|
+
* sheen, when you create the material, to change it later. The default is black.
|
|
986
|
+
*/
|
|
987
|
+
sheenColor?: ColorInput;
|
|
988
|
+
/** How rough the sheen is, from 0 to 1, as three.js's `sheenRoughness`: rougher sheens spread wider. The default is 1. */
|
|
989
|
+
sheenRoughness?: number;
|
|
990
|
+
/**
|
|
991
|
+
* How much a thin film above the surface tints its reflection, from 0 to 1, as three.js's
|
|
992
|
+
* `iridescence`: soap bubbles, oil and beetle shells show the colors of the film's thickness.
|
|
993
|
+
* Give it, or another option of iridescence, when you create the material, to change it later.
|
|
994
|
+
* The default is 0.
|
|
995
|
+
*/
|
|
996
|
+
iridescence?: number;
|
|
997
|
+
/**
|
|
998
|
+
* The thin film's index of refraction, 1 or more, as three.js's `iridescenceIOR`: 1 makes the
|
|
999
|
+
* film reflect as the surface does, and a value near 2 shows its colors most strongly. The
|
|
1000
|
+
* default is 1.3.
|
|
1001
|
+
*/
|
|
1002
|
+
iridescenceIor?: number;
|
|
1003
|
+
/**
|
|
1004
|
+
* The thinnest and thickest parts of the film, in nanometers, as three.js's
|
|
1005
|
+
* `iridescenceThicknessRange`: the map's green channel mixes between them. The default is
|
|
1006
|
+
* `[100, 400]`.
|
|
1007
|
+
*/
|
|
1008
|
+
iridescenceThicknessRange?: readonly [number, number];
|
|
1009
|
+
/**
|
|
1010
|
+
* How far the specular reflection stretches along one direction of the surface, from 0 (round)
|
|
1011
|
+
* to 1, as three.js's `anisotropy`: brushed metal shows a highlight across its grooves rather
|
|
1012
|
+
* than around. A material with a map takes the stretch's direction from the mesh's tangents or
|
|
1013
|
+
* from the map's coordinates; a material without one takes a frame square to the surface.
|
|
1014
|
+
* Give it, or `anisotropyRotation`, when you create the material, to change it later.
|
|
1015
|
+
* The default is 0.
|
|
1016
|
+
*/
|
|
1017
|
+
anisotropy?: number;
|
|
1018
|
+
/**
|
|
1019
|
+
* The direction along which the reflection stretches, in radians from the surface's tangent,
|
|
1020
|
+
* as three.js's `anisotropyRotation`. The default is 0.
|
|
1021
|
+
*/
|
|
1022
|
+
anisotropyRotation?: number;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* Where a material's maps sit on the texture coordinates, as three.js's texture `offset`, `repeat`
|
|
1026
|
+
* and `rotation` place a texture, with its `center` at the coordinates' origin. A transform that
|
|
1027
|
+
* leaves a value out takes its default.
|
|
1028
|
+
*
|
|
1029
|
+
* @category api/materials
|
|
1030
|
+
*/
|
|
1031
|
+
export interface UvTransform {
|
|
1032
|
+
/** The shift along u and v. The default is `[0, 0]`. */
|
|
1033
|
+
offset?: readonly [number, number];
|
|
1034
|
+
/** How many times the maps repeat along u and v. The default is `[1, 1]`. */
|
|
1035
|
+
repeat?: readonly [number, number];
|
|
1036
|
+
/** The turn in radians, about the coordinates' origin. The default is 0. */
|
|
1037
|
+
rotation?: number;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* The texture maps of a standard material. They are fixed when the material is created, because
|
|
1041
|
+
* each set of maps draws with a pipeline of its own. A map reads the texture coordinates that its
|
|
1042
|
+
* texture's `uvSet` names, through its own transform where `mapUvTransforms` gives it one and the
|
|
1043
|
+
* material's `uvTransform` otherwise. Meshes need texture coordinates to
|
|
1044
|
+
* show maps, and the material draws without a map until its texture's image is on the GPU.
|
|
1045
|
+
*
|
|
1046
|
+
* @category api/materials
|
|
1047
|
+
*/
|
|
1048
|
+
export interface StandardMaps {
|
|
1049
|
+
/** The base color map, in sRGB. Its color multiplies `color`. */
|
|
1050
|
+
map?: Texture;
|
|
1051
|
+
/**
|
|
1052
|
+
* Roughness in green and metalness in blue, as glTF packs them, in linear color. They multiply
|
|
1053
|
+
* `roughness` and `metalness`.
|
|
1054
|
+
*/
|
|
1055
|
+
metalnessRoughnessMap?: Texture;
|
|
1056
|
+
/** Normals in tangent space, in linear color, which `normalScale` scales. */
|
|
1057
|
+
normalMap?: Texture;
|
|
1058
|
+
/**
|
|
1059
|
+
* Heights in red, in linear color, which bend the normals as three.js's bump map does, by
|
|
1060
|
+
* `bumpScale`. A normal map wins over it, as in three.js, and so does a wireframe.
|
|
1061
|
+
*/
|
|
1062
|
+
bumpMap?: Texture;
|
|
1063
|
+
/**
|
|
1064
|
+
* Heights in red, in linear color, which move each vertex along its normal by
|
|
1065
|
+
* `displacementScale` and `displacementBias`, as three.js's displacement map does. Shadows and
|
|
1066
|
+
* the depth prepass follow the moved vertices, and culling grows each object's bounds to hold
|
|
1067
|
+
* them. Without a normal or bump map, the map's slope also bends the normals, so the light
|
|
1068
|
+
* follows the new shape, which three.js does not do. The vertex shader reads the map at its
|
|
1069
|
+
* full size, so the mesh needs vertices about as dense as the detail it should show. Raycasts,
|
|
1070
|
+
* outlines and debug views see the mesh before it moves.
|
|
1071
|
+
*/
|
|
1072
|
+
displacementMap?: Texture;
|
|
1073
|
+
/**
|
|
1074
|
+
* With a `displacementMap`, also shifts where each pixel reads the maps, by parallax occlusion
|
|
1075
|
+
* mapping: relief finer than the mesh's vertices hides and shows the surface behind it as the
|
|
1076
|
+
* view turns. It costs a dozen or more texture reads per pixel, so the quality presets may turn
|
|
1077
|
+
* it off. Only opaque and masked surfaces take it. The default is false.
|
|
1078
|
+
*/
|
|
1079
|
+
parallax?: boolean;
|
|
1080
|
+
/** Ambient occlusion in red, in linear color, which darkens ambient light. */
|
|
1081
|
+
aoMap?: Texture;
|
|
1082
|
+
/** The emissive color map, in sRGB. Its color multiplies `emissive`. */
|
|
1083
|
+
emissiveMap?: Texture;
|
|
1084
|
+
/** Baked light, added to the ambient light. Light maps usually use the second coordinates. */
|
|
1085
|
+
lightMap?: Texture;
|
|
1086
|
+
/** The specular intensity in alpha, in linear color. Its alpha multiplies `specularIntensity`. */
|
|
1087
|
+
specularIntensityMap?: Texture;
|
|
1088
|
+
/** The specular color, in sRGB. Its color multiplies `specularColor`. */
|
|
1089
|
+
specularColorMap?: Texture;
|
|
1090
|
+
/**
|
|
1091
|
+
* The diffuse transmission in alpha, in linear color. Its alpha multiplies
|
|
1092
|
+
* `diffuseTransmission`. Only a material created with `diffuseTransmission` takes it, and such
|
|
1093
|
+
* a material takes no specular maps.
|
|
1094
|
+
*/
|
|
1095
|
+
diffuseTransmissionMap?: Texture;
|
|
1096
|
+
/**
|
|
1097
|
+
* The diffuse transmission color, in sRGB. Its color multiplies `diffuseTransmissionColor`.
|
|
1098
|
+
* Only a material created with `diffuseTransmission` takes it, and such a material takes no
|
|
1099
|
+
* specular maps.
|
|
1100
|
+
*/
|
|
1101
|
+
diffuseTransmissionColorMap?: Texture;
|
|
1102
|
+
/**
|
|
1103
|
+
* The share of the light behind the surface that passes through it, in red, in linear color.
|
|
1104
|
+
* Its red multiplies `transmission`. Only a material created with `transmission` takes it. It
|
|
1105
|
+
* keeps a row slot of its own and samples the specular intensity map's texture array at its own
|
|
1106
|
+
* layer, so a specular intensity map may draw beside it when the two textures share an array.
|
|
1107
|
+
* A material with layers keeps it unless a layer map fills that slot: a clear coat's normal map
|
|
1108
|
+
* and iridescence's thickness map do.
|
|
1109
|
+
*/
|
|
1110
|
+
transmissionMap?: Texture;
|
|
1111
|
+
/**
|
|
1112
|
+
* The thickness of the volume under the surface, in green, in linear color. Its green
|
|
1113
|
+
* multiplies `thickness`. Only a material created with `transmission` takes it. It keeps a row
|
|
1114
|
+
* slot of its own and samples the specular color map's texture array at its own layer, so a
|
|
1115
|
+
* specular color map may draw beside it when the two textures share an array. A material with
|
|
1116
|
+
* layers keeps it unless a layer map fills that slot: the sheen's maps and an anisotropy map do.
|
|
1117
|
+
*/
|
|
1118
|
+
thicknessMap?: Texture;
|
|
1119
|
+
/**
|
|
1120
|
+
* The clear coat in red, in linear color, which multiplies `clearcoat`. A material with a clear
|
|
1121
|
+
* coat or a sheen takes no light map and no specular maps, since its layers' maps take their
|
|
1122
|
+
* places.
|
|
1123
|
+
*/
|
|
1124
|
+
clearcoatMap?: Texture;
|
|
1125
|
+
/**
|
|
1126
|
+
* The clear coat's roughness in green, in linear color, which multiplies `clearcoatRoughness`.
|
|
1127
|
+
* With `clearcoatMap`, it is the same texture, as glTF packs them.
|
|
1128
|
+
*/
|
|
1129
|
+
clearcoatRoughnessMap?: Texture;
|
|
1130
|
+
/** The clear coat's normals in tangent space, in linear color, which `clearcoatNormalScale` scales. */
|
|
1131
|
+
clearcoatNormalMap?: Texture;
|
|
1132
|
+
/** The sheen color, in sRGB, whose color multiplies `sheenColor`. */
|
|
1133
|
+
sheenColorMap?: Texture;
|
|
1134
|
+
/**
|
|
1135
|
+
* The sheen's roughness in alpha, which multiplies `sheenRoughness`. With `sheenColorMap`, it is
|
|
1136
|
+
* the same texture, as glTF packs them: an sRGB texture keeps its alpha linear.
|
|
1137
|
+
*/
|
|
1138
|
+
sheenRoughnessMap?: Texture;
|
|
1139
|
+
/**
|
|
1140
|
+
* How much of the thin film's reflection shows, in red, in linear color, which multiplies
|
|
1141
|
+
* `iridescence`. A material with iridescence or anisotropy takes no light map and no specular
|
|
1142
|
+
* maps, since its maps take their places.
|
|
1143
|
+
*/
|
|
1144
|
+
iridescenceMap?: Texture;
|
|
1145
|
+
/**
|
|
1146
|
+
* The film's thickness in green, in linear color, which mixes `iridescenceThicknessRange`. A
|
|
1147
|
+
* material with both iridescence maps takes no light map and no specular maps.
|
|
1148
|
+
*/
|
|
1149
|
+
iridescenceThicknessMap?: Texture;
|
|
1150
|
+
/**
|
|
1151
|
+
* The anisotropy's direction in red and green and its strength in blue, in linear color: red
|
|
1152
|
+
* and green are a direction in the tangent plane, and blue multiplies `anisotropy`. A material
|
|
1153
|
+
* with it takes no light map, no specular maps and no clear coat or sheen map.
|
|
1154
|
+
*/
|
|
1155
|
+
anisotropyMap?: Texture;
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* The options that choose how a material's shader and pipeline draw it. They are fixed when the
|
|
1159
|
+
* material is created, as most of them would need a new pipeline.
|
|
1160
|
+
*
|
|
1161
|
+
* @category api/materials
|
|
1162
|
+
*/
|
|
1163
|
+
export interface MaterialFeatures {
|
|
1164
|
+
/** Draws both faces of each triangle. Back faces light as if they faced the camera. The default is false. */
|
|
1165
|
+
doubleSided?: boolean;
|
|
1166
|
+
/**
|
|
1167
|
+
* Multiplies the base color by the mesh's vertex colors, and the alpha by their alpha, on
|
|
1168
|
+
* meshes that have them. The default is false.
|
|
1169
|
+
*/
|
|
1170
|
+
vertexColors?: boolean;
|
|
1171
|
+
/** Takes the scene's fog. False keeps the material's color at every distance. The default is true. */
|
|
1172
|
+
fog?: boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* Keeps the color as the display shows it, as three.js's `toneMapped: false` does. The tone
|
|
1175
|
+
* curve leaves it alone: the 8-bit path decides that in the shader of the material's own build,
|
|
1176
|
+
* and the HDR path's final pass reads a mask of these surfaces and skips the curve where one
|
|
1177
|
+
* draws. A blended surface keeps the curve on the HDR path, since a blended pixel mixes two
|
|
1178
|
+
* surfaces. The vignette and the sRGB encoding still apply, and the exposure already scales
|
|
1179
|
+
* the material's colors, so the color shows brighter than the same color tone mapped. The
|
|
1180
|
+
* default is true.
|
|
1181
|
+
*/
|
|
1182
|
+
toneMapped?: boolean;
|
|
1183
|
+
/** How the material uses its alpha. The default is `opaque`. */
|
|
1184
|
+
alphaMode?: AlphaMode;
|
|
1185
|
+
/**
|
|
1186
|
+
* With the `mask` alpha mode, smooths the cut edges with MSAA, as three.js's
|
|
1187
|
+
* `alphaToCoverage` does: the alpha fades over about one pixel above `alphaCutoff`, and covers
|
|
1188
|
+
* that share of the pixel. Without MSAA the mask cuts as without it. False gives three.js's hard
|
|
1189
|
+
* cut edges of `alphaTest`. A custom material takes it where its WGSL sets or reads the
|
|
1190
|
+
* surface's `alpha`, and a development build throws E1217 otherwise. The default is true.
|
|
1191
|
+
*/
|
|
1192
|
+
alphaToCoverage?: boolean;
|
|
1193
|
+
/**
|
|
1194
|
+
* With the `blend` alpha mode and `doubleSided`, draws both faces in one draw, in the mesh's
|
|
1195
|
+
* order, as three.js's `forceSinglePass` does. By default such a surface draws its back faces
|
|
1196
|
+
* first and then its front faces, so its near side always covers its far side. The default is
|
|
1197
|
+
* false.
|
|
1198
|
+
*/
|
|
1199
|
+
forceSinglePass?: boolean;
|
|
1200
|
+
/** With the `blend` alpha mode, how the surface meets what lies behind it. The default is `normal`. */
|
|
1201
|
+
blending?: Blending;
|
|
1202
|
+
/** False to write no depth, so the surface hides nothing behind it. The default is true. */
|
|
1203
|
+
depthWrite?: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* False to draw the surface whatever lies in front of it. It then writes no depth either, as
|
|
1206
|
+
* in three.js's WebGL renderer. The default is true.
|
|
1207
|
+
*/
|
|
1208
|
+
depthTest?: boolean;
|
|
1209
|
+
/**
|
|
1210
|
+
* False to write no color, so the surface shows nothing itself and hides what lies behind it
|
|
1211
|
+
* by the depth it writes, as three.js's `colorWrite: false` does. Its objects draw before the
|
|
1212
|
+
* opaque objects that write color, so nothing behind it shows through. With the `mask` or
|
|
1213
|
+
* `hash` alpha mode, the parts that the alpha drops write no depth either, so the surface cuts
|
|
1214
|
+
* a shape out of the space it holds. A blended surface keeps its place among the blended
|
|
1215
|
+
* objects, which `setRenderOrder` orders. The default is true.
|
|
1216
|
+
*/
|
|
1217
|
+
colorWrite?: boolean;
|
|
1218
|
+
/** Moves the surface's depth, as three.js's polygon offset does. The default is no bias. */
|
|
1219
|
+
depthBias?: DepthBias;
|
|
1220
|
+
/**
|
|
1221
|
+
* Draws the edges of each triangle as lines one pixel wide, with the material's own shading,
|
|
1222
|
+
* as three.js's `wireframe` does. Edges that two triangles share draw twice. Its shadows draw
|
|
1223
|
+
* lines too. Flat shading and bump maps have no effect on it. The default is false.
|
|
1224
|
+
*/
|
|
1225
|
+
wireframe?: boolean;
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Each map's own transform, by the map's option name, for the maps whose transform differs from
|
|
1229
|
+
* the material's. A map without one keeps the transform that `uvTransform` gives it, or the
|
|
1230
|
+
* identity. A file keeps one transform for each of its textures, so the loader places each map
|
|
1231
|
+
* with its own.
|
|
1232
|
+
*
|
|
1233
|
+
* @category api/materials
|
|
1234
|
+
*/
|
|
1235
|
+
export type MapUvTransforms = Partial<Record<Exclude<keyof StandardMaps, 'parallax'>, UvTransform>>;
|
|
1236
|
+
/**
|
|
1237
|
+
* The options of `materials.standard` besides its texture maps. Custom materials take them too.
|
|
1238
|
+
*
|
|
1239
|
+
* @category api/materials
|
|
1240
|
+
*/
|
|
1241
|
+
export interface StandardBaseOptions extends StandardValues, MaterialFeatures {
|
|
1242
|
+
/**
|
|
1243
|
+
* Lights each triangle with one normal, the normal of its face, so the mesh looks faceted. It
|
|
1244
|
+
* is fixed when the material is created. The default is false.
|
|
1245
|
+
*/
|
|
1246
|
+
flatShading?: boolean;
|
|
1247
|
+
/**
|
|
1248
|
+
* Where a light map's texture coordinates start, as three.js's `texture.offset`. A bake places
|
|
1249
|
+
* each light map on a mesh with its own scale and offset, apart from the other maps. It takes
|
|
1250
|
+
* two numbers, and needs a `lightMap`. The default leaves the coordinates alone.
|
|
1251
|
+
*/
|
|
1252
|
+
lightMapOffset?: readonly [number, number];
|
|
1253
|
+
/**
|
|
1254
|
+
* How a light map's texture coordinates stretch, as three.js's `texture.repeat`. It takes two
|
|
1255
|
+
* numbers, and needs a `lightMap`. The default is `[1, 1]`.
|
|
1256
|
+
*/
|
|
1257
|
+
lightMapRepeat?: readonly [number, number];
|
|
1258
|
+
/**
|
|
1259
|
+
* How the engine reads the light map's texels: `srgb` (the default) takes the texture as sRGB
|
|
1260
|
+
* color, which the sampler turns linear, or `rgbm` multiplies each texel's color by its alpha
|
|
1261
|
+
* times 8 and then decodes it as sRGB, as Needle's viewer reads its light maps. With `rgbm`,
|
|
1262
|
+
* give a texture in linear color, whose raw bytes the shader decodes. It needs a `lightMap`.
|
|
1263
|
+
*/
|
|
1264
|
+
lightMapDecode?: 'srgb' | 'rgbm';
|
|
1265
|
+
/**
|
|
1266
|
+
* The direction of the light that a directional light map stores at each texel, in linear
|
|
1267
|
+
* color: red, green and blue map the direction's x, y and z from -1 to 1. A normal map then
|
|
1268
|
+
* bends the light that the bake stored, instead of lighting it evenly. Give the texture that
|
|
1269
|
+
* `assets.loadLightMap` returns beside the radiance: the engine reads the direction through
|
|
1270
|
+
* the light map's own texture binding, so both must have one size, format and color space,
|
|
1271
|
+
* as `loadLightMap` makes them. Needs a `lightMap`.
|
|
1272
|
+
*/
|
|
1273
|
+
lightMapDirection?: Texture;
|
|
1274
|
+
/**
|
|
1275
|
+
* Takes the main directional light's contact shadows. False leaves them off this surface,
|
|
1276
|
+
* which keeps the shadow map's shadows. Set it on thin surfaces that crowd together or sway,
|
|
1277
|
+
* such as grass blades and leaf cards: the contact shadows take each blade for a solid wall,
|
|
1278
|
+
* so they darken such surfaces and flicker as they move. The surfaces under them keep their
|
|
1279
|
+
* contact shadows. It is fixed when the material is created. The default is true.
|
|
1280
|
+
*/
|
|
1281
|
+
contactShadows?: boolean;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Options of `materials.standard`.
|
|
1285
|
+
*
|
|
1286
|
+
* @category api/materials
|
|
1287
|
+
*/
|
|
1288
|
+
export interface StandardOptions extends StandardBaseOptions, StandardMaps {
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* The values of an unlit material, which `set` changes at any time.
|
|
1292
|
+
*
|
|
1293
|
+
* @category api/materials
|
|
1294
|
+
*/
|
|
1295
|
+
export interface UnlitValues extends MaterialOptions {
|
|
1296
|
+
/** Where the map sits on the texture coordinates. The default leaves it as it is. */
|
|
1297
|
+
uvTransform?: UvTransform;
|
|
1298
|
+
/** The map's own transform, where a file gives it one, as it does each of its textures. */
|
|
1299
|
+
mapUvTransforms?: MapUvTransforms;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* The values of a decal material, which `set` changes at any time: the standard material's values
|
|
1303
|
+
* that a decal shows, and how the decal fades.
|
|
1304
|
+
*
|
|
1305
|
+
* @category api/materials
|
|
1306
|
+
*/
|
|
1307
|
+
export interface DecalValues extends Omit<StandardValues, 'alphaCutoff' | 'lightMapIntensity' | 'transmission' | 'thickness' | 'dispersion' | 'attenuationColor' | 'attenuationDistance'> {
|
|
1308
|
+
/**
|
|
1309
|
+
* The angles in radians, from the decal's direction, at which the decal starts to fade and
|
|
1310
|
+
* past which it shows nothing. The direction is the +z axis of the decal's box, which points
|
|
1311
|
+
* out of the surfaces that it marks. A surface at an angle past the second shows none of the
|
|
1312
|
+
* decal, so the decal does not smear along walls and edges. Each angle runs from 0 to π, and
|
|
1313
|
+
* the first is at most the second. The default is `[π / 3, 4π / 9]`: 60 and 80 degrees.
|
|
1314
|
+
*/
|
|
1315
|
+
angleFade?: readonly [number, number];
|
|
1316
|
+
/**
|
|
1317
|
+
* The share of the box's depth, from 0 to 1, over which the decal fades out toward each end
|
|
1318
|
+
* of its z axis, so a decal that reaches past a surface's edge fades rather than stops. The
|
|
1319
|
+
* default is 0.2.
|
|
1320
|
+
*/
|
|
1321
|
+
edgeFade?: number;
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Options of `materials.decal`: its values and the standard material's maps, which the decal
|
|
1325
|
+
* projects along its box. The light map is left out.
|
|
1326
|
+
*
|
|
1327
|
+
* @category api/materials
|
|
1328
|
+
*/
|
|
1329
|
+
export interface DecalOptions extends DecalValues, Omit<StandardMaps, 'lightMap' | 'transmissionMap' | 'thicknessMap'> {
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Options of `materials.unlit`.
|
|
1333
|
+
*
|
|
1334
|
+
* @category api/materials
|
|
1335
|
+
*/
|
|
1336
|
+
export interface UnlitOptions extends UnlitValues, MaterialFeatures {
|
|
1337
|
+
/**
|
|
1338
|
+
* A color map, in sRGB, whose color multiplies `color`. It is fixed when the material is
|
|
1339
|
+
* created, and meshes need texture coordinates to show it.
|
|
1340
|
+
*/
|
|
1341
|
+
map?: Texture;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* The values of a shadow-catcher material, which `set` changes at any time.
|
|
1345
|
+
*
|
|
1346
|
+
* @category api/materials
|
|
1347
|
+
*/
|
|
1348
|
+
export interface ShadowCatcherValues extends MaterialOptions {
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Options of `materials.shadowCatcher`, a material that draws only the shadows that fall on it, as
|
|
1352
|
+
* three.js's `ShadowMaterial`.
|
|
1353
|
+
*
|
|
1354
|
+
* @category api/materials
|
|
1355
|
+
*/
|
|
1356
|
+
export interface ShadowCatcherOptions extends ShadowCatcherValues {
|
|
1357
|
+
/** Draws both faces of each triangle. Back faces light as if they faced the camera. The default is false. */
|
|
1358
|
+
doubleSided?: boolean;
|
|
1359
|
+
/** False to write no depth, so the surface hides nothing behind it. The default is true. */
|
|
1360
|
+
depthWrite?: boolean;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* WGSL that the null3D Vite plugin compiled: a template literal that a `wgsl` block comment tags,
|
|
1364
|
+
* or a `.wgsl` file that a module imports. TypeScript sees a tagged literal as a string, and the
|
|
1365
|
+
* plugin puts the compiled WGSL in its place.
|
|
1366
|
+
*
|
|
1367
|
+
* @category api/materials
|
|
1368
|
+
*/
|
|
1369
|
+
export interface CompiledWgsl {
|
|
1370
|
+
/**
|
|
1371
|
+
* `'material'` for the functions of a custom material, `'effect'` for a custom effect,
|
|
1372
|
+
* `'toneCurve'` for a custom tone curve, `'skyLayer'` for a sky layer, and `'shader'` for a
|
|
1373
|
+
* whole shader.
|
|
1374
|
+
*/
|
|
1375
|
+
readonly kind: 'material' | 'effect' | 'toneCurve' | 'skyLayer' | 'shader';
|
|
1376
|
+
/**
|
|
1377
|
+
* True for a draw shader: a custom material's `@vertex` entry point takes the vertex and
|
|
1378
|
+
* instance indices and no mesh attribute, and `scene.createVertexDraw` draws it from a vertex
|
|
1379
|
+
* count.
|
|
1380
|
+
*/
|
|
1381
|
+
readonly meshless?: boolean;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* The values of a custom material, which `set` changes at any time: the standard values but the
|
|
1385
|
+
* texture coordinate transform of maps, and the uniforms that its WGSL's `struct Uniforms`
|
|
1386
|
+
* declares, by name. `Wgsl` is the type of the material's WGSL, which gives the uniforms' names
|
|
1387
|
+
* and types, as `WgslUniforms` says.
|
|
1388
|
+
*
|
|
1389
|
+
* @category api/materials
|
|
1390
|
+
*/
|
|
1391
|
+
export type ShaderValues<Wgsl = string | CompiledWgsl> = [Wgsl] extends [unknown] ? Omit<StandardValues, MapValues> & UniformValues<Wgsl> : never;
|
|
1392
|
+
/** The standard values that only the standard material's maps read. */
|
|
1393
|
+
type MapValues = 'uvTransform' | 'bumpScale' | 'displacementScale' | 'displacementBias';
|
|
1394
|
+
/**
|
|
1395
|
+
* Options of `materials.shader`: the material's WGSL, the first values of its uniforms, and the
|
|
1396
|
+
* textures that its WGSL samples. It also takes every option of `materials.standard` but the
|
|
1397
|
+
* texture maps. `defaultSurface` applies the standard values. Custom materials take no standard
|
|
1398
|
+
* maps, so the values of maps have no effect on them. `Wgsl` is the type of the material's WGSL. It
|
|
1399
|
+
* gives the names and types of the uniforms, and the names of the textures.
|
|
1400
|
+
*
|
|
1401
|
+
* @category api/materials
|
|
1402
|
+
*/
|
|
1403
|
+
export interface ShaderOptions<Wgsl extends string | CompiledWgsl = string | CompiledWgsl> extends StandardBaseOptions {
|
|
1404
|
+
/**
|
|
1405
|
+
* The material's WGSL, compiled by the null3D Vite plugin. It declares
|
|
1406
|
+
* `fn surface(input: SurfaceInput) -> Surface`, which the engine calls for each pixel, and
|
|
1407
|
+
* which can start from `defaultSurface(input)`. The engine lights the surface that it returns.
|
|
1408
|
+
* It can declare `struct Uniforms`, whose fields the surface function reads from `material`,
|
|
1409
|
+
* `fn vertexOffset`, which moves the mesh's vertices, and `fn lobe(input: LobeInput) -> vec3f`,
|
|
1410
|
+
* which adds specular for the main light beside the base lobe. A full shader has a `@vertex`
|
|
1411
|
+
* entry point that takes an `InstanceIn`, and a `@fragment` one, instead. Materials made from the
|
|
1412
|
+
* same WGSL share their shader.
|
|
1413
|
+
*/
|
|
1414
|
+
wgsl: Wgsl;
|
|
1415
|
+
/**
|
|
1416
|
+
* The first value of each uniform, by name. A uniform without one starts at 0. When TypeScript
|
|
1417
|
+
* can see the WGSL's uniforms, a name that the WGSL does not declare fails the type check, and
|
|
1418
|
+
* WGSL without uniforms takes none.
|
|
1419
|
+
*/
|
|
1420
|
+
uniforms?: NoInfer<[
|
|
1421
|
+
keyof UniformValues<Wgsl>
|
|
1422
|
+
] extends [never] ? {
|
|
1423
|
+
readonly [name: string]: never;
|
|
1424
|
+
} : UniformValues<Wgsl>>;
|
|
1425
|
+
/**
|
|
1426
|
+
* The texture of each `var name: texture_2d<f32>;` or `var name: texture_2d_array<f32>;` that
|
|
1427
|
+
* the WGSL declares, by name. The WGSL samples a 2D texture as
|
|
1428
|
+
* `textureSample(name, nameSampler, uv)`, with the sampler of the texture's `wrap` and `filter`
|
|
1429
|
+
* options, and a texture array as `textureSample(name, nameSampler, uv, layer)`, where it picks
|
|
1430
|
+
* the layer of a texture of several layers. A texture samples as white until its image is on
|
|
1431
|
+
* the GPU, and a declared texture without one stays white. The textures are fixed when the
|
|
1432
|
+
* material is created. When TypeScript can see the WGSL, a name that it does not declare fails
|
|
1433
|
+
* the type check.
|
|
1434
|
+
*/
|
|
1435
|
+
textures?: NoInfer<TextureValues<Wgsl>>;
|
|
1436
|
+
/**
|
|
1437
|
+
* The scene inputs that the material's surface function reads. Today that is `'sceneDepth'`:
|
|
1438
|
+
* the WGSL calls `sceneDepth(uv)` or `sceneDistance(uv)`, and the engine binds the copy of the
|
|
1439
|
+
* opaque scene's depth. A material that declares it draws after that copy exists, so it reads
|
|
1440
|
+
* it in the transparent pass; a surface that draws earlier reads 0, the far plane. A material
|
|
1441
|
+
* that declares it takes at most seven textures of its own: its maps' group gives up one slot,
|
|
1442
|
+
* so that the copy fits the fragment stage beside the maps under WebGPU's limit of sixteen
|
|
1443
|
+
* sampled textures. The engine checks that the declaration and the WGSL agree.
|
|
1444
|
+
*/
|
|
1445
|
+
sceneInputs?: readonly SceneInput[];
|
|
1446
|
+
/**
|
|
1447
|
+
* True when the vertex offset follows the view that draws the object and nothing else moves it,
|
|
1448
|
+
* as a card that turns toward the camera does. A caster that only shadow passes draw then holds
|
|
1449
|
+
* the shadow that the light's layer drew until the light turns, so the far shadow cascades stay
|
|
1450
|
+
* cached. Leave it out for an offset that moves with time, such as wind: the shadow of such a
|
|
1451
|
+
* caster follows it in every frame, and a far cascade must draw again for each one.
|
|
1452
|
+
*/
|
|
1453
|
+
castsStill?: boolean;
|
|
1454
|
+
/**
|
|
1455
|
+
* How far from the camera the vertex offset moves, in meters, for an offset that fades out with
|
|
1456
|
+
* distance such as wind. The material's WGSL fades its offset to nothing by this distance, and
|
|
1457
|
+
* the engine counts a caster of the material as moving only while its bounding sphere reaches
|
|
1458
|
+
* within it, so a far shadow cascade that only the sway reaches keeps the layer it holds. Zero,
|
|
1459
|
+
* the default, moves the offset at every distance, as an offset that follows time alone does.
|
|
1460
|
+
*/
|
|
1461
|
+
swayDistance?: number;
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* The texture of each slot that a custom material's or effect's WGSL declares, from its `textures`
|
|
1465
|
+
* option, with none where the option gives none. A slot that the WGSL declares as
|
|
1466
|
+
* `texture_2d_array<f32>` takes a texture of one or more layers, whose layers the WGSL picks; a
|
|
1467
|
+
* slot that it declares as `texture_2d<f32>` takes a texture of one layer. Throws E1216 for a name
|
|
1468
|
+
* that the WGSL does not declare, and for a value that is not a texture of the layers that the
|
|
1469
|
+
* slot takes.
|
|
1470
|
+
*/
|
|
1471
|
+
export declare function textureSlots(declared: readonly {
|
|
1472
|
+
readonly name: string;
|
|
1473
|
+
readonly array?: boolean;
|
|
1474
|
+
}[], given: Readonly<Record<string, unknown>>, call: string): (Texture | undefined)[];
|
|
1475
|
+
/**
|
|
1476
|
+
* A material: how the surfaces of the objects that use it look. `Values` are the options that
|
|
1477
|
+
* `set` changes.
|
|
1478
|
+
*
|
|
1479
|
+
* @category api/materials
|
|
1480
|
+
*/
|
|
1481
|
+
export declare class Material<Values extends MaterialOptions = MaterialOptions> {
|
|
1482
|
+
protected constructor();
|
|
1483
|
+
/** The name that errors from `set` give the call, such as 'materials.standard.set'. */
|
|
1484
|
+
protected readonly call: string;
|
|
1485
|
+
/** The engine core's id, or 0 once the material is destroyed. */
|
|
1486
|
+
private liveId;
|
|
1487
|
+
/** The name that errors from `setUniform` give the call, made once. */
|
|
1488
|
+
protected readonly oneCall: string;
|
|
1489
|
+
/** True when the normal map's slot holds a bump map, whose strength `bumpScale` sets. */
|
|
1490
|
+
private bump;
|
|
1491
|
+
/** The displacement map's scale and bias, which `set` changes one at a time, where it has one. */
|
|
1492
|
+
private displacement;
|
|
1493
|
+
/**
|
|
1494
|
+
* Where each map sits on the texture coordinates, as `set` last gave them: for every slot, the
|
|
1495
|
+
* offset's two numbers, the scale's two and the rotation, so an animation can change one pair
|
|
1496
|
+
* of one map and keep the rest.
|
|
1497
|
+
*/
|
|
1498
|
+
private uv;
|
|
1499
|
+
/**
|
|
1500
|
+
* The map that fills each row slot, which alone may place it, or undefined for a material whose
|
|
1501
|
+
* maps a sketch never places one by one.
|
|
1502
|
+
*/
|
|
1503
|
+
private readonly owners;
|
|
1504
|
+
/**
|
|
1505
|
+
* Changes the values that it gets and keeps the others. Every object that uses the material
|
|
1506
|
+
* changes with it. Set up a material with it, and with `setUniform` change the values that a
|
|
1507
|
+
* frame changes: a value that changes in every frame crosses the `setUniform` call itself,
|
|
1508
|
+
* where this call reads it from a field of the options object, and a field that holds a
|
|
1509
|
+
* fraction holds a copy of it of its own. Throws E1101 once the material is destroyed.
|
|
1510
|
+
*/
|
|
1511
|
+
set(options: Values): void;
|
|
1512
|
+
/** Writes the bump map's strength and the displacement's scale and bias that `values` give. */
|
|
1513
|
+
private writeHeights;
|
|
1514
|
+
/**
|
|
1515
|
+
* Changes one value by name, and keeps the others: a number, such as `roughness`, `opacity` or
|
|
1516
|
+
* `emissiveIntensity`, or a color, such as `color`, `emissive` or `sheenColor`. It allocates
|
|
1517
|
+
* nothing, so a sketch can change a value in every frame. Every object that uses the material
|
|
1518
|
+
* changes with it. Throws E1101 once the material is destroyed, and E1216 for a name that it
|
|
1519
|
+
* does not take: a value that takes more than one parameter, as the texture transform, the
|
|
1520
|
+
* normal scales, the angle fade and the index of refraction do, goes through `set`.
|
|
1521
|
+
*/
|
|
1522
|
+
setUniform<Name extends keyof Values & string>(name: Name, value: NonNullable<Values[Name]>): void;
|
|
1523
|
+
/** Keeps one map's transform, which a value makes where the material has none. */
|
|
1524
|
+
private recordUvSlot;
|
|
1525
|
+
/** Each map's transform, which a value makes where the material has none. */
|
|
1526
|
+
private uvValues;
|
|
1527
|
+
/**
|
|
1528
|
+
* Destroys the material, like three.js's `material.dispose()`. Objects and instance batches that
|
|
1529
|
+
* still use it draw nothing until `setMaterial` gives them another material. Once no object uses
|
|
1530
|
+
* it, its place in the engine's table of materials goes to the next material. When the last
|
|
1531
|
+
* material of a custom material's WGSL goes, the engine frees that WGSL's pipelines. The
|
|
1532
|
+
* material's textures stay, so destroy them apart. Later calls on the material, and calls that
|
|
1533
|
+
* pass it, throw E1101.
|
|
1534
|
+
*/
|
|
1535
|
+
destroy(): void;
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* Material factories. The standard material follows glTF's metallic-roughness model and shades
|
|
1539
|
+
* with the formulas of three.js's `MeshStandardMaterial`. The unlit material shows its color as
|
|
1540
|
+
* three.js's `MeshBasicMaterial` does. The shadow-catcher material shows only the main directional
|
|
1541
|
+
* light's shadows, as three.js's `ShadowMaterial`.
|
|
1542
|
+
*
|
|
1543
|
+
* @category api/materials
|
|
1544
|
+
*/
|
|
1545
|
+
export declare class Materials {
|
|
1546
|
+
protected constructor();
|
|
1547
|
+
private readonly core;
|
|
1548
|
+
/** The templates of compiled WGSL, which send each custom material's shader once. */
|
|
1549
|
+
private readonly templates;
|
|
1550
|
+
/**
|
|
1551
|
+
* Creates a material in the engine core, with its standard options and the feature bits
|
|
1552
|
+
* `extra` and its layers, and returns its id. `sway` is the distance from the camera out to
|
|
1553
|
+
* which a custom material's vertex offset moves, in meters, or 0 for every distance.
|
|
1554
|
+
* `singleLayer` draws its blended surfaces in the camera's one-sample layer.
|
|
1555
|
+
*/
|
|
1556
|
+
private createId;
|
|
1557
|
+
/**
|
|
1558
|
+
* A lit material with glTF's metallic-roughness model, like three.js's
|
|
1559
|
+
* `MeshStandardMaterial`.
|
|
1560
|
+
*/
|
|
1561
|
+
standard(options?: StandardOptions): Material<StandardValues>;
|
|
1562
|
+
/**
|
|
1563
|
+
* A decal's material: the standard material, projected onto every opaque surface inside the
|
|
1564
|
+
* box of each object that it draws, as three.js's `DecalGeometry` places a decal. Give it to a
|
|
1565
|
+
* mesh of `geometry.box()`: the object's position, rotation and scale place the box, and the
|
|
1566
|
+
* material's maps stretch over the box's x and y sides, seen along its z axis. The surfaces
|
|
1567
|
+
* inside take its color, roughness, metalness, normal map and emissive light, lit by the
|
|
1568
|
+
* scene's lights, and blend with them as far as its alpha says. A decal draws after the opaque
|
|
1569
|
+
* objects, and marks no blended surface. It casts no shadow.
|
|
1570
|
+
*/
|
|
1571
|
+
decal(options?: DecalOptions): Material<DecalValues>;
|
|
1572
|
+
/**
|
|
1573
|
+
* A material that ignores lights and shows its color unlit, like three.js's
|
|
1574
|
+
* `MeshBasicMaterial`. The exposure and the tone mapping still apply to it, as three.js applies
|
|
1575
|
+
* them to that material.
|
|
1576
|
+
*/
|
|
1577
|
+
unlit(options?: UnlitOptions): Material<UnlitValues>;
|
|
1578
|
+
/**
|
|
1579
|
+
* A material that draws only the shadows that fall on it, as three.js's `ShadowMaterial`: its
|
|
1580
|
+
* `color` where the main directional light's shadow falls, and nothing where the light reaches
|
|
1581
|
+
* it, at `opacity`. The mesh must receive shadows (`setReceiveShadows(true)`), as three.js's
|
|
1582
|
+
* `receiveShadow` must be set. Every shadow that falls on the surface comes from the main
|
|
1583
|
+
* directional light; point and spot lights cast none onto it. The default color is black, as
|
|
1584
|
+
* three.js's. The material blends, so it draws in the transparent pass after the opaque
|
|
1585
|
+
* objects, and the scene's fog leaves it alone. It takes no texture maps.
|
|
1586
|
+
*/
|
|
1587
|
+
shadowCatcher(options?: ShadowCatcherOptions): Material<ShadowCatcherValues>;
|
|
1588
|
+
/**
|
|
1589
|
+
* A custom material: the standard material with a surface function in WGSL, which changes how
|
|
1590
|
+
* each pixel of the surface looks before the engine lights it, or a full shader of your own. It
|
|
1591
|
+
* takes every option of `materials.standard` but the texture maps, the first values of the
|
|
1592
|
+
* uniforms that its WGSL declares, and the textures that its WGSL samples, a texture of
|
|
1593
|
+
* several layers among them for a declaration of a texture array. `set` changes the
|
|
1594
|
+
* standard values and the uniforms. Meshes need texture coordinates to draw with a surface
|
|
1595
|
+
* function, and the attributes that a full shader reads. Throws E1215 for WGSL that the null3D
|
|
1596
|
+
* Vite plugin did not compile, and for a whole shader whose `@vertex` entry point takes no
|
|
1597
|
+
* `InstanceIn`. Throws E1216 for a uniform or a texture that the WGSL does not declare, for a
|
|
1598
|
+
* value of the wrong kind, and for a uniform named as a standard value, such as `color`. A
|
|
1599
|
+
* development build throws E1217 for the `hash` alpha mode and for `alphaToCoverage` where the
|
|
1600
|
+
* WGSL never sets or reads the surface's `alpha`: only WGSL that does has the builds that cut
|
|
1601
|
+
* the material's shape, and its shadow caster and motion build test that alpha. It also throws
|
|
1602
|
+
* E1217 for `transmission` where the WGSL never sets the surface's `transmission`, and for
|
|
1603
|
+
* `diffuseTransmission` where it never names the surface's `diffuseTransmission` or
|
|
1604
|
+
* `diffuseTransmissionColor`: only WGSL that does has the builds that let light through.
|
|
1605
|
+
* When
|
|
1606
|
+
* TypeScript can see the WGSL, a wrong name or a value of the wrong kind also fails the type
|
|
1607
|
+
* check.
|
|
1608
|
+
*/
|
|
1609
|
+
shader<const Wgsl extends string | CompiledWgsl>(options: ShaderOptions<Wgsl>): Material<ShaderValues<Wgsl>>;
|
|
1610
|
+
/**
|
|
1611
|
+
* A custom material's compiled WGSL, or throws E1215 for WGSL that the plugin did not compile
|
|
1612
|
+
* and for a whole shader.
|
|
1613
|
+
*/
|
|
1614
|
+
private compiledMaterial;
|
|
1615
|
+
/**
|
|
1616
|
+
* The template of a custom material's WGSL, which goes to the thread that draws once. On the
|
|
1617
|
+
* dev server, WGSL under one hot update key shares one template, which takes the newest WGSL.
|
|
1618
|
+
*/
|
|
1619
|
+
private templateOf;
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* A material that shows a mesh's first texture coordinates as colors: u in red and v in green,
|
|
1623
|
+
* with no color encoding. Only meshes with texture coordinates draw with it. The engine's own
|
|
1624
|
+
* tests use it to check vertex formats.
|
|
1625
|
+
*/
|
|
1626
|
+
export declare function texCoordsMaterial(materials: Materials): Material;
|
|
1627
|
+
export {};
|