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