@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,1827 @@
1
+ import { type Described } from '../errors/checks.js';
2
+ import type { EulerOrder, Mat4Like, QuatLike, Vec3Like } from '../math/types.js';
3
+ import type { Animator } from './animation.js';
4
+ import { type BackgroundOptions, type BackgroundSource, type SkyLayer, type SkyLayerOptions } from './background.js';
5
+ import type { ChunkRowWriter } from './chunk-rows.js';
6
+ import { type ColorInput } from './color.js';
7
+ import { Environment, type EnvironmentOptions } from './environment.js';
8
+ import type { FeatureDraw, FeatureDrawOptions, FeatureInstances, FeatureInstancesOptions } from './feature-draws.js';
9
+ import type { ComputeInstances, ComputeInstancesOptions } from './feature-instances.js';
10
+ import type { FeatureDescription } from './features.js';
11
+ import { type FogOptions } from './fog.js';
12
+ import { type Ray } from './frame-cameras.js';
13
+ import type { LightImagePixels } from './light-images.js';
14
+ import { type LightProbeGridOptions } from './light-probes.js';
15
+ import type { LineBatch, LineOptions } from './lines.js';
16
+ import type { ViewHolder } from './memory.js';
17
+ import type { ParticleBuffer, ParticleBufferOptions } from './particles.js';
18
+ import { type PickHit } from './picks.js';
19
+ import { type ObjectEventHandler, type ObjectEventType } from './pointer-events.js';
20
+ import type { Prefab } from './prefab.js';
21
+ import { type ReflectionProbe, type ReflectionProbeOptions } from './probes.js';
22
+ import { PropertyAnimation, type PropertyKeyframes } from './property-animation.js';
23
+ import { type OverlapHit, type QueryOptions, type RaycastBatchHits, type RaycastHit, type RaycastOptions } from './queries.js';
24
+ import { type CompiledWgsl, Material, type MeshGeometry } from './resources.js';
25
+ import type { PointBatch, PointOptions, SpriteBatch, SpriteOptions } from './sprites.js';
26
+ import { Texture } from './textures.js';
27
+ import { VertexDraw, type VertexDrawOptions } from './vertex-draws.js';
28
+ /**
29
+ * A vector (x, y, z).
30
+ *
31
+ * @category api/objects
32
+ */
33
+ export type Vec3 = readonly [number, number, number];
34
+ /**
35
+ * A rotation as a quaternion (x, y, z, w).
36
+ *
37
+ * @category api/objects
38
+ */
39
+ export type Quat = readonly [number, number, number, number];
40
+ /**
41
+ * Options every node takes when it is created.
42
+ *
43
+ * @category api/scene
44
+ */
45
+ export interface NodeOptions {
46
+ /** A name for error messages. */
47
+ name?: string;
48
+ /** The position relative to the parent. The default is (0, 0, 0). */
49
+ position?: Vec3;
50
+ /**
51
+ * The rotation relative to the parent, as a quaternion (x, y, z, w). The default is none. The
52
+ * engine scales a rotation more than one per cent off unit length, so a mistyped quaternion
53
+ * still only turns the object and never stretches or shears it.
54
+ */
55
+ rotation?: Quat;
56
+ /** The scale on each axis. The default is (1, 1, 1). */
57
+ scale?: Vec3;
58
+ /** The node to attach this one to. The default, null, makes a root node. */
59
+ parent?: Object3D | null;
60
+ /**
61
+ * True recomputes the node every frame without checks. A static node, the default for all but
62
+ * cameras, updates only when it changes.
63
+ */
64
+ dynamic?: boolean;
65
+ /**
66
+ * The layers the node is on, as a 32-bit mask: bit n puts it on layer n. A camera draws the
67
+ * objects that share a layer with it. The default, 1, is layer 0.
68
+ */
69
+ layers?: number;
70
+ }
71
+ /**
72
+ * Options for `scene.createMesh`.
73
+ *
74
+ * @category api/scene
75
+ */
76
+ export interface MeshOptions extends NodeOptions {
77
+ /** The shape to draw, from `ctx.geometry`. */
78
+ mesh: MeshGeometry;
79
+ /** How the surface looks, from `ctx.materials`. */
80
+ material: Material;
81
+ /**
82
+ * True makes the mesh cast the shadows of a directional light, like `setCastShadows(true)`. The
83
+ * default is false.
84
+ */
85
+ castShadows?: boolean;
86
+ /**
87
+ * True makes shadows fall on the mesh, like `setReceiveShadows(true)`. The default is false.
88
+ * Unlit materials show no shadows.
89
+ */
90
+ receiveShadows?: boolean;
91
+ /**
92
+ * Whether the mesh blocks the view for occlusion culling, like `setOccluder`. True makes it a
93
+ * blocker on WebGL2 too. False keeps it from hiding anything on WebGPU. Left out, the mesh blocks
94
+ * nothing on WebGL2, and on WebGPU it hides what lies behind it whenever it looks large enough.
95
+ */
96
+ occluder?: boolean;
97
+ }
98
+ /**
99
+ * Options for `setParent`.
100
+ *
101
+ * @category api/objects
102
+ */
103
+ export interface ParentOptions {
104
+ /**
105
+ * True keeps the object's place, rotation and size in the world, as three.js's `attach` does:
106
+ * the engine gives it the position, rotation and scale that do that under the new parent. The
107
+ * default, false, keeps the values relative to the parent, as three.js's `add` does.
108
+ */
109
+ keepWorld?: boolean;
110
+ }
111
+ /**
112
+ * Options that both kinds of camera take.
113
+ *
114
+ * @category api/cameras
115
+ */
116
+ export interface CameraOptions extends NodeOptions {
117
+ /** The distance to the near clipping plane. The default is 0.1. */
118
+ near?: number;
119
+ /** The distance to the far clipping plane. The default is 2000. */
120
+ far?: number;
121
+ /** A point the camera turns toward. */
122
+ target?: Vec3;
123
+ }
124
+ /**
125
+ * Options for `scene.createPerspectiveCamera`.
126
+ *
127
+ * @category api/cameras
128
+ */
129
+ export interface PerspectiveCameraOptions extends CameraOptions {
130
+ /** The vertical field of view in degrees. The default is 50. */
131
+ fov?: number;
132
+ }
133
+ /**
134
+ * Options for `scene.createOrthographicCamera`. Give `height`, and the width follows the canvas's
135
+ * aspect ratio. Or give all four edges, as three.js's `OrthographicCamera` takes them, for a view
136
+ * that keeps its shape on any canvas.
137
+ *
138
+ * @category api/cameras
139
+ */
140
+ export interface OrthographicCameraOptions extends CameraOptions {
141
+ /** The view's height in world units. The default is 2. Leave it out when you give the edges. */
142
+ height?: number;
143
+ /** The view's left edge, in world units from the camera's axis. */
144
+ left?: number;
145
+ /** The view's right edge, in world units from the camera's axis. */
146
+ right?: number;
147
+ /** The view's top edge, in world units from the camera's axis. */
148
+ top?: number;
149
+ /** The view's bottom edge, in world units from the camera's axis. */
150
+ bottom?: number;
151
+ }
152
+ /**
153
+ * A rectangle of the canvas as `[x, y, width, height]`, in fractions of the canvas's width and
154
+ * height from its top-left corner: `[0, 0, 0.5, 1]` is its left half.
155
+ *
156
+ * @category api/cameras
157
+ */
158
+ export type SceneViewRect = readonly [x: number, y: number, width: number, height: number];
159
+ /**
160
+ * Options for `scene.createView`.
161
+ *
162
+ * @category api/cameras
163
+ */
164
+ export interface SceneViewOptions {
165
+ /** The camera that the view draws from. */
166
+ readonly camera: Camera;
167
+ /**
168
+ * The rectangle of the canvas that the view draws into, from its top-left corner. Its width
169
+ * and height are above 0, and its right and bottom edges lie within the canvas.
170
+ */
171
+ readonly rect: SceneViewRect;
172
+ }
173
+ /**
174
+ * A view of the scene from its own camera, drawn into a rectangle of the canvas after the
175
+ * camera's view: a split screen or a picture in picture. `scene.createView` makes it.
176
+ * `scene.activeCamera` still draws the whole canvas first, and the view's image covers its
177
+ * rectangle. The engine culls the scene for the view on its own, and draws it once more, at the
178
+ * rectangle's pixels.
179
+ *
180
+ * @category api/cameras
181
+ */
182
+ export declare class SceneView {
183
+ protected constructor();
184
+ private readonly scene;
185
+ private cameraValue;
186
+ private rectValue;
187
+ /** True until `destroy` removes the view. */
188
+ get live(): boolean;
189
+ /** The camera that the view draws from. */
190
+ get camera(): Camera;
191
+ /** The rectangle of the canvas that the view draws into. */
192
+ get rect(): SceneViewRect;
193
+ /**
194
+ * Draws the view from `camera` from the next frame on. It takes the camera's layers, and
195
+ * follows them when they change.
196
+ */
197
+ setCamera(camera: Camera): void;
198
+ /**
199
+ * Draws the view into `rect` from the next frame on. It allocates nothing, so a sketch can
200
+ * change the rectangle in any frame. Development builds throw E1203 for a number that is not
201
+ * finite, and E1213 for a rectangle outside the canvas.
202
+ */
203
+ setRect(rect: SceneViewRect): void;
204
+ /**
205
+ * Removes the view from the next frame on. The camera's view draws the canvas alone again.
206
+ * Development builds throw E1101 for a view that was removed.
207
+ */
208
+ destroy(): void;
209
+ }
210
+ /**
211
+ * Options for `scene.createInstances`.
212
+ *
213
+ * @category api/scene
214
+ */
215
+ export interface InstanceOptions {
216
+ /** The material of every row. */
217
+ material: Material;
218
+ /** Every row updates and uploads every frame; a static batch updates rows marked dirty only. */
219
+ dynamic?: boolean;
220
+ /**
221
+ * Adds a color per row (RGBA, linear) in `batch.colors`, white at first. It multiplies the
222
+ * material's base color and opacity, as a mesh's vertex colors do, and as three.js's
223
+ * `InstancedMesh.setColorAt` does. A material that lets light through draws its rows without
224
+ * it.
225
+ */
226
+ colors?: boolean;
227
+ /**
228
+ * Adds four numbers per row of the sketch's own in `batch.values`, 0 at first, such as a wind
229
+ * phase, an age or a tint. A custom material's `surface`, `vertexOffset` and `lobe` functions
230
+ * read the row's as `object.values`, as three.js's instanced attributes give a shader values per
231
+ * instance. With values, a masked material tests its alpha against its cutoff, without alpha to
232
+ * coverage or the alpha hash.
233
+ */
234
+ values?: boolean;
235
+ /**
236
+ * Adds a start and an end distance per row in `batch.ranges`, so each row draws in a band of
237
+ * its own. Leave it out for a range that every row shares, which costs no memory.
238
+ */
239
+ ranges?: boolean;
240
+ /** The layers every row is on, as a 32-bit mask. The default, 1, is layer 0. */
241
+ layers?: number;
242
+ /**
243
+ * The point that every row's position is relative to. The default is (0, 0, 0). The engine keeps
244
+ * the origin at full precision, so rows near it keep the precision of 32-bit floats at any
245
+ * distance from the world's origin. Give a batch far from the origin, such as a forest on a
246
+ * planet, an origin among its rows.
247
+ */
248
+ origin?: Vec3;
249
+ /**
250
+ * True makes every row cast the shadows of the lights that cast them, as `castShadows` does for
251
+ * a mesh. The default is false.
252
+ */
253
+ castShadows?: boolean;
254
+ /** True makes shadows fall on every row, as `receiveShadows` does for a mesh. The default is false. */
255
+ receiveShadows?: boolean;
256
+ /**
257
+ * False keeps every row from hiding what lies behind it in GPU occlusion culling on WebGPU, like
258
+ * `setOccluder(false)`. Left out, or true, a row of an opaque mesh hides what lies behind it
259
+ * whenever it looks large enough. Rows never block on WebGL2.
260
+ */
261
+ occluder?: boolean;
262
+ }
263
+ /**
264
+ * Options for `scene.instantiate`: where the copy's group goes, and settings for all its meshes.
265
+ *
266
+ * @category api/scene
267
+ */
268
+ export interface InstantiateOptions extends NodeOptions {
269
+ /**
270
+ * True makes every mesh of the copy, and every row of its instance batches, cast the shadows of
271
+ * the lights that cast them. The default is false.
272
+ */
273
+ castShadows?: boolean;
274
+ /**
275
+ * True makes shadows fall on every mesh of the copy, and on every row of its instance batches.
276
+ * The default is false.
277
+ */
278
+ receiveShadows?: boolean;
279
+ /**
280
+ * True makes every mesh of the copy block the view for occlusion culling, like
281
+ * `setOccluder(true)`, and false makes none block, on WebGL2 or WebGPU, nor any row of its
282
+ * instance batches on WebGPU. Left out, the meshes that the asset tool gave blockers block on
283
+ * WebGL2, and on WebGPU every opaque mesh and row may hide what lies behind it.
284
+ */
285
+ occluder?: boolean;
286
+ /**
287
+ * The layers of every object of the copy and of its instance batches, as a 32-bit mask. Left
288
+ * out, they keep the default, 1, which is layer 0.
289
+ */
290
+ layers?: number;
291
+ }
292
+ /**
293
+ * Options every light takes, besides the options of every node.
294
+ *
295
+ * @category api/lights
296
+ */
297
+ export interface LightOptions extends NodeOptions {
298
+ /** The light's color. The default is white. */
299
+ color?: ColorInput;
300
+ /**
301
+ * A factor that scales the color, in three.js's units unless the options name another unit.
302
+ * The default is 1.
303
+ */
304
+ intensity?: number;
305
+ }
306
+ /**
307
+ * Options for `scene.createAmbientLight`.
308
+ *
309
+ * @category api/lights
310
+ */
311
+ export interface AmbientLightOptions extends LightOptions {
312
+ /**
313
+ * The unit of the intensity: `'lux'`, the light that reaches every surface. It is three.js's
314
+ * unit too, so the intensity stays as it is.
315
+ */
316
+ intensityUnit?: 'lux';
317
+ }
318
+ /**
319
+ * Options for `scene.createDirectionalLight`.
320
+ *
321
+ * @category api/lights
322
+ */
323
+ export interface DirectionalLightOptions extends LightOptions {
324
+ /**
325
+ * The unit of the intensity: `'lux'`, the light that reaches a surface facing the light, such
326
+ * as 100,000 for direct sunlight. It is three.js's unit too, so the intensity stays as it is.
327
+ */
328
+ intensityUnit?: 'lux';
329
+ /**
330
+ * The direction the light travels, relative to the parent. The default, (0, -1, 0), points
331
+ * straight down. It sets the light's rotation, so it wins over `rotation`.
332
+ */
333
+ direction?: Vec3;
334
+ /**
335
+ * True makes the light cast shadows, like `setCastShadows(true)`. The default is false. The
336
+ * first directional light created casts them.
337
+ */
338
+ castShadows?: boolean;
339
+ /** How the light's shadows draw, like `setShadow`. Each setting has a default. */
340
+ shadow?: DirectionalShadowOptions;
341
+ }
342
+ /**
343
+ * The shadows of a directional light. The camera's view splits into cascades by distance, and
344
+ * each cascade has a shadow map of its own.
345
+ *
346
+ * @category api/lights
347
+ */
348
+ export interface DirectionalShadowOptions {
349
+ /**
350
+ * The cascades, a whole number from 1 to 4. More cascades keep shadows sharp further from the
351
+ * camera, and each draws the shadow casters once more. The default is the quality preset's
352
+ * `shadowCascades`.
353
+ */
354
+ cascades?: number;
355
+ /**
356
+ * Texels on each side of each cascade's shadow map: 256, 512, 1,024, 2,048 or 4,096. The default
357
+ * is the quality preset's `shadowMapSize`.
358
+ */
359
+ mapSize?: number;
360
+ /**
361
+ * How far each receiving surface moves toward the light before its shadow test, in meters, at
362
+ * least 0. One texel of the surface's cascade caps it. A surface takes this times the tangent of
363
+ * its angle to the light, up to twice it. Raise it when surfaces show stripes of shadow on
364
+ * themselves. The default is 0.01.
365
+ */
366
+ bias?: number;
367
+ /**
368
+ * How far each receiving surface moves along its normal before its shadow test, in meters, at
369
+ * least 0. One texel of the surface's cascade caps it. A surface takes this times the sine of its
370
+ * angle to the light. The default is 0.02.
371
+ */
372
+ normalBias?: number;
373
+ /**
374
+ * The distance from the camera in meters, along its view, out to which shadows fall, above 0,
375
+ * or `'auto'`, the default. `'auto'` follows the farthest visible receiver: the engine finds the
376
+ * farthest surface that receives shadows in the camera's view each frame and rounds it up on a
377
+ * ladder of 1.25 times per step, so shadows in a small scene get much finer texels. A number
378
+ * fixes the distance. The engine finds the receiver on the CPU, in the frame that it draws.
379
+ * The camera's far plane ends the shadows sooner, and they fade out over the last tenth of the
380
+ * distance.
381
+ */
382
+ distance?: number | 'auto';
383
+ /**
384
+ * How far contact shadows reach from each surface toward the light, in meters, at least 0. They
385
+ * are short shadows found in the camera's depth, which show where small objects touch the
386
+ * ground: stones, feet, wheels, crates. 0 turns them off for this light. The quality preset's
387
+ * `contactShadowSteps` decides whether they draw. The default is 0.3.
388
+ */
389
+ contactDistance?: number;
390
+ /**
391
+ * An object whose shadow the light draws into a tile of its own, at a much finer scale than the
392
+ * cascades, or `null` for none. The tile fits the object's bounds along the light, and surfaces
393
+ * near the object read it in place of the coarser cascades, so a car, a character or a product
394
+ * keeps a sharp shadow. The object must cast shadows. The tile takes a layer of the shadow
395
+ * atlas, which the point and spot lights share, and every layer of the atlas takes the tile's
396
+ * size. The default is none.
397
+ */
398
+ hero?: Object3D | null;
399
+ /**
400
+ * Texels on each side of the hero's tile: 1,024, 2,048 or 4,096. The default is the quality
401
+ * preset's `heroTileSize`. The tile's texels are finer as the number grows. A larger object
402
+ * needs a larger number to keep the ratio of its shadow's detail to the cascades'. The atlas
403
+ * holds the tile, so a larger number takes more memory for every tile of the atlas, and a hero
404
+ * that moves draws the larger tile again in every frame.
405
+ */
406
+ heroTileSize?: 1024 | 2048 | 4096;
407
+ /**
408
+ * How much of the light's shadow it draws, from 0 for none to 1, the default, for all of it.
409
+ * The shader mixes each shadow lookup toward full light by the rest, as three.js's
410
+ * `LightShadow.intensity` does.
411
+ */
412
+ intensity?: number;
413
+ }
414
+ /**
415
+ * Options for `scene.createPointLight`.
416
+ *
417
+ * @category api/lights
418
+ */
419
+ export interface PointLightOptions extends LightOptions {
420
+ /**
421
+ * The unit of the intensity and of `setIntensity`: `'lumen'`, the light's whole output, such
422
+ * as 800 for a 60 W bulb. The engine divides it by 4π for a point light, and by π for a spot
423
+ * light at any cone angle, as three.js's `power` and Filament do. Without it, the intensity is
424
+ * in candela, three.js's unit.
425
+ */
426
+ intensityUnit?: 'lumen';
427
+ /**
428
+ * The distance in meters where the light ends, above 0. Every point light needs one, because the
429
+ * engine finds the lights near each surface by their ranges.
430
+ */
431
+ range: number;
432
+ /** How fast the light fades with distance, at least 0. The default, 2, is the physical rate. */
433
+ decay?: number;
434
+ /**
435
+ * True makes the light cast shadows, like `setCastShadows(true)`. The default is false. Point
436
+ * lights cast them where the quality preset's `pointLightShadows` is on, as on High and Ultra.
437
+ */
438
+ castShadows?: boolean;
439
+ /** How the light's shadows draw, like `setShadow`. Each setting has a default. */
440
+ shadow?: LightShadowOptions;
441
+ }
442
+ /**
443
+ * The shadows of a point or spot light. A spot light draws its casters' depth into a tile of the
444
+ * shadow atlas, a view from the light that holds its cone. A point light draws into six tiles, one
445
+ * for each face of a cube around it.
446
+ *
447
+ * @category api/lights
448
+ */
449
+ export interface LightShadowOptions {
450
+ /**
451
+ * How far each receiving surface moves toward the light before its shadow test, in meters, at
452
+ * least 0. One texel of the light's tile at the surface's distance caps it. A surface takes this
453
+ * times the tangent of its angle to the light, up to twice it. Raise it when surfaces show stripes
454
+ * of shadow on themselves. The default is 0.01.
455
+ */
456
+ bias?: number;
457
+ /**
458
+ * How far each receiving surface moves along its normal before its shadow test, in meters, at
459
+ * least 0. One texel of the light's tile at the surface's distance caps it. A surface takes this
460
+ * times the sine of its angle to the light. The default is 0.02.
461
+ */
462
+ normalBias?: number;
463
+ /**
464
+ * How much of the light's shadow it draws, from 0 for none to 1, the default, for all of it.
465
+ * The shader mixes each shadow lookup toward full light by the rest, as three.js's
466
+ * `LightShadow.intensity` does.
467
+ */
468
+ intensity?: number;
469
+ }
470
+ /**
471
+ * Options for `scene.createSpotLight`.
472
+ *
473
+ * @category api/lights
474
+ */
475
+ export interface SpotLightOptions extends PointLightOptions {
476
+ /**
477
+ * The direction the light travels, relative to the parent. The default, (0, -1, 0), points
478
+ * straight down. It sets the light's rotation, so it wins over `rotation`.
479
+ */
480
+ direction?: Vec3;
481
+ /** A point the light turns toward. It wins over `direction`. */
482
+ target?: Vec3;
483
+ /**
484
+ * The angle in radians from the light's direction to the edge of its cone, above 0 and at most
485
+ * π/2. The default is π/3.
486
+ */
487
+ angle?: number;
488
+ /**
489
+ * The part of the cone, from 0 to 1, over which the light fades out toward the edge. The
490
+ * default, 0, gives a sharp edge.
491
+ */
492
+ penumbra?: number;
493
+ /**
494
+ * A picture that the light projects over its cone, such as a window frame, a gobo pattern or a
495
+ * projected photograph, as `setMap` takes it: sRGB pixels, or a texture. The color and
496
+ * intensity tint it. Without it, the light has one color in the cone.
497
+ */
498
+ map?: LightImagePixels | Texture;
499
+ /**
500
+ * True makes the light cast shadows, like `setCastShadows(true)`. The default is false. The
501
+ * quality preset's `shadowTiles` caps the lights that cast them at once.
502
+ */
503
+ castShadows?: boolean;
504
+ /** How the light's shadows draw, like `setShadow`. Each setting has a default. */
505
+ shadow?: LightShadowOptions;
506
+ }
507
+ /**
508
+ * Options for `scene.createHemisphereLight`.
509
+ *
510
+ * @category api/lights
511
+ */
512
+ export interface HemisphereLightOptions extends NodeOptions {
513
+ /** The color of the light from above. The default is white. */
514
+ skyColor?: ColorInput;
515
+ /** The color of the light from below. The default is white. */
516
+ groundColor?: ColorInput;
517
+ /** A factor that scales both colors. The default is 1. */
518
+ intensity?: number;
519
+ /**
520
+ * The unit of the intensity: `'lux'`, the light that reaches a surface. It is three.js's unit
521
+ * too, so the intensity stays as it is.
522
+ */
523
+ intensityUnit?: 'lux';
524
+ }
525
+ /**
526
+ * Options for `scene.createRectAreaLight`.
527
+ *
528
+ * @category api/lights
529
+ */
530
+ export interface RectAreaLightOptions extends LightOptions {
531
+ /**
532
+ * The width in meters, along the light's X axis, above 0. The default is 1. The light's scale
533
+ * does not change it.
534
+ */
535
+ width?: number;
536
+ /** The height in meters, along the light's Y axis, above 0. The default is 1. */
537
+ height?: number;
538
+ /**
539
+ * The distance in meters from the light's middle where its light ends, above 0. Every area light
540
+ * needs one, because the engine finds the lights near each surface by their ranges.
541
+ */
542
+ range: number;
543
+ /**
544
+ * The direction the light leaves the rectangle in, relative to the parent: its -Z axis. The
545
+ * default, (0, -1, 0), points straight down. It sets the light's rotation, so it wins over
546
+ * `rotation`.
547
+ */
548
+ direction?: Vec3;
549
+ /** A point the light faces. It wins over `direction`. */
550
+ target?: Vec3;
551
+ /**
552
+ * A picture that the light shows over its area, such as a shop window or a screen, as
553
+ * `setImage` takes it. Without it, the light has one color.
554
+ */
555
+ image?: LightImagePixels;
556
+ }
557
+ /**
558
+ * Options for `scene.createTubeLight`.
559
+ *
560
+ * @category api/lights
561
+ */
562
+ export interface TubeLightOptions extends LightOptions {
563
+ /**
564
+ * The tube's length in meters, along the light's -Z axis, above 0. The default is 1. The
565
+ * light's scale does not change it.
566
+ */
567
+ length?: number;
568
+ /** The tube's radius in meters, above 0. The default is 0.025, a thin neon tube. */
569
+ radius?: number;
570
+ /**
571
+ * The distance in meters from the tube's middle where its light ends, above 0. Every area light
572
+ * needs one, because the engine finds the lights near each surface by their ranges.
573
+ */
574
+ range: number;
575
+ /**
576
+ * The direction the tube runs along, relative to the parent: its -Z axis. The default,
577
+ * (0, -1, 0), stands the tube upright. It sets the light's rotation, so it wins over `rotation`.
578
+ */
579
+ direction?: Vec3;
580
+ /** A point the tube points toward. It wins over `direction`. */
581
+ target?: Vec3;
582
+ }
583
+ /**
584
+ * A node in the scene: position, rotation and scale, a parent, visibility.
585
+ *
586
+ * @category api/objects
587
+ */
588
+ export declare class Object3D implements Described {
589
+ protected constructor();
590
+ /** The name from the create options, or an empty string. */
591
+ readonly name: string;
592
+ /** The object's name and slot, as error messages show them. */
593
+ describe(): string;
594
+ /** Sets the position relative to the parent. */
595
+ setPosition(x: number, y: number, z: number): void;
596
+ /**
597
+ * Sets the position and, when `rotation` is given, the rotation (a quaternion, x y z w), each
598
+ * from an array of numbers. A caller that keeps a pose in arrays of its own writes it this way:
599
+ * passing an array crosses the call without a number, where a number passed to a setter that
600
+ * the browser does not inline becomes an object of its own. The controls write a camera's pose
601
+ * so in every frame.
602
+ */
603
+ setPose(position: Vec3Like, rotation?: QuatLike): void;
604
+ /** Sets the rotation as a quaternion (x, y, z, w). */
605
+ setRotation(x: number, y: number, z: number, w: number): void;
606
+ /** Sets the rotation from Euler angles in radians, with three.js's axis order names. */
607
+ setRotationEuler(x: number, y: number, z: number, order?: EulerOrder): void;
608
+ /** Sets the scale on each axis. */
609
+ setScale(x: number, y: number, z: number): void;
610
+ /** Turns the object toward a point. It assumes the object's parents are not rotated. */
611
+ lookAt(x: number, y: number, z: number): void;
612
+ /** Turns the object by `angle` radians about its own X axis. */
613
+ rotateX(angle: number): void;
614
+ /** Turns the object by `angle` radians about its own Y axis. */
615
+ rotateY(angle: number): void;
616
+ /** Turns the object by `angle` radians about its own Z axis. */
617
+ rotateZ(angle: number): void;
618
+ /** Turns the object's rotation with one of the quaternion helpers' turns about its own axes. */
619
+ private turn;
620
+ /**
621
+ * Moves the object by (x, y, z) along its own axes, as three.js's `translateX`, `translateY` and
622
+ * `translateZ` do together. The object's rotation turns the vector, and its scale leaves it as
623
+ * it is, so `translate(0, 0, -1)` moves a camera 1 m forward.
624
+ */
625
+ translate(x: number, y: number, z: number): void;
626
+ /** Copies the position relative to the parent into `out`. */
627
+ getPosition(out: Vec3Like): void;
628
+ /** Copies the rotation relative to the parent into `out`, as a quaternion (x, y, z, w). */
629
+ getRotation(out: QuatLike): void;
630
+ /** Copies the world position of the frame that last ran into `out`. */
631
+ getWorldPosition(out: Vec3Like): void;
632
+ /**
633
+ * Copies the world rotation of the frame that last ran into `out`, as a quaternion (x, y, z, w).
634
+ * It is the rotation part of the world matrix, which `mat4.decompose` splits off.
635
+ */
636
+ getWorldQuaternion(out: QuatLike): void;
637
+ /**
638
+ * Copies the world matrix of the frame that last ran into `out`: 16 numbers, column by column,
639
+ * as `mat4` and three.js's `matrixWorld` hold them. Its translation keeps full precision far
640
+ * from the origin when `out` is a plain array or a `Float64Array`.
641
+ */
642
+ getWorldMatrix(out: Mat4Like): void;
643
+ /**
644
+ * Moves the object under another, or to the root with null, from the next frame. By default it
645
+ * keeps its position, rotation and scale relative to the parent, so its place in the world
646
+ * changes with the new parent. With `keepWorld: true` it keeps its place in the world instead.
647
+ */
648
+ setParent(parent: Object3D | null, options?: ParentOptions): void;
649
+ /**
650
+ * The object's parent, or null for a root object. A destroyed parent leaves the object a
651
+ * root object.
652
+ */
653
+ getParent(): Object3D | null;
654
+ /** Hides or shows the object and everything under it. */
655
+ setVisible(visible: boolean): void;
656
+ /**
657
+ * Puts the object on the layers of a 32-bit mask: bit n puts it on layer n, so `1 << 2` is
658
+ * layer 2 and `0b101` is layers 0 and 2. A camera draws the object only when their masks share
659
+ * a layer. The object's children keep their own layers. A new mask needs no rebuild.
660
+ */
661
+ setLayers(mask: number): void;
662
+ /**
663
+ * The object's layer mask, as `setLayers` or its create options set it: bit n puts it on layer
664
+ * n.
665
+ */
666
+ getLayers(): number;
667
+ /** Makes the object dynamic or static from the next frame. See `NodeOptions.dynamic`. */
668
+ setDynamic(dynamic: boolean): void;
669
+ /**
670
+ * The object's animator, which plays the clips of the model that created the object. An object
671
+ * without animation clips has none, and the call throws.
672
+ */
673
+ animator(): Animator;
674
+ /** Removes the object at the next frame. Its children become roots. */
675
+ destroy(): void;
676
+ /**
677
+ * Calls `handler` for each pointer event of `type` on the object: 'click', 'pointerdown',
678
+ * 'pointerup', 'pointermove', 'pointerenter' or 'pointerleave'. An event on a child goes on to
679
+ * its parents, so a handler on a model's group hears clicks on all its parts. The engine casts
680
+ * a ray from the frame that was on screen at each event, against objects where they are now.
681
+ * Handlers run on the sketch's thread at the start of the next frame, before `onUpdate`.
682
+ */
683
+ on(type: ObjectEventType, handler: ObjectEventHandler): void;
684
+ /** Removes a handler that `on` added for events of `type`. */
685
+ off(type: ObjectEventType, handler: ObjectEventHandler): void;
686
+ /**
687
+ * Replaces the object's bounding sphere, which culling and the light's hero shadow test, with a
688
+ * sphere of your own: `center` relative to the object's origin, and `radius`, both before the
689
+ * object's scale. Use it when a shader moves vertices outside a mesh's sphere. A mesh takes its
690
+ * mesh's sphere at first, and `setMesh` gives that back; a group has none, so it needs a sphere
691
+ * of its own wherever one is read, as the hero shadow that names it reads it.
692
+ */
693
+ setBounds(center: Vec3Like, radius: number): void;
694
+ }
695
+ /**
696
+ * An empty node, for hierarchy.
697
+ *
698
+ * @category api/objects
699
+ */
700
+ export declare class Group extends Object3D {
701
+ }
702
+ /**
703
+ * The group that holds a copy of a model, which `scene.instantiate` returns. Its children are the
704
+ * copies of the file's root nodes.
705
+ *
706
+ * @category api/scene
707
+ */
708
+ export declare class PrefabInstance extends Group {
709
+ /**
710
+ * The instance batches of the nodes with instancing of their own, as the file gives them. Their
711
+ * rows are placed in the world when the copy is created, and they do not move with the group.
712
+ */
713
+ batches: readonly InstanceBatch[];
714
+ /**
715
+ * The copy's first object with `name`, in the file's order, which is not destroyed, or
716
+ * undefined. It searches the copy's objects, so call it at setup.
717
+ */
718
+ find(name: string): Object3D | undefined;
719
+ /**
720
+ * Removes the whole copy at the next frame: this group, every object that the copy created and
721
+ * that is not destroyed yet, and its instance batches. Objects that the sketch put under the
722
+ * copy later become roots, as children of any destroyed object do.
723
+ */
724
+ destroy(): void;
725
+ /**
726
+ * Outlines every mesh of the copy, or stops, as `Mesh.setOutlined` does for one mesh: the
727
+ * whole model takes one outline, as three.js's `OutlinePass` outlines a selected group. The
728
+ * copy's instance batches take none.
729
+ */
730
+ setOutlined(outlined: boolean): void;
731
+ }
732
+ /**
733
+ * A drawn object: a mesh and a material.
734
+ *
735
+ * @category api/objects
736
+ */
737
+ export declare class Mesh extends Object3D {
738
+ /**
739
+ * The number that a custom material's WGSL reads as `object.id` for this mesh. No other live
740
+ * mesh or batch has it. Pass it to a uniform to pick out this mesh in a shader. It is 0 once the
741
+ * mesh is destroyed.
742
+ */
743
+ get shaderId(): number;
744
+ /**
745
+ * Sets how far the mesh moves toward one of its morph targets, from the next frame: 0 keeps
746
+ * the target's shape out, 1 adds all of it, and other numbers scale it. Like setting three.js's
747
+ * `morphTargetInfluences[target]`. `target` is the target's number, from 0, or its name. A clip
748
+ * that animates the weight blends its own value with this one while it plays, as three.js's
749
+ * mixer does, and this one holds when no clip moves it. A WebGL2 device draws a preset's count
750
+ * of each mesh's largest weights (the `morphTargets` quality setting). Throws E1218 for a
751
+ * target that the mesh does not have, and E1203 for a weight that is not a finite number.
752
+ */
753
+ setMorphWeight(target: number | string, weight: number): void;
754
+ /**
755
+ * The weight of one of the mesh's morph targets, as `setMorphWeight` or the model's file set
756
+ * it, without what a playing clip adds. Throws E1218 for a target that the mesh does not have.
757
+ */
758
+ getMorphWeight(target: number | string): number;
759
+ /**
760
+ * The number of the morph target that `target` names. A whole number below the target count
761
+ * takes the short path, which the browser can inline into a sketch's frame code.
762
+ */
763
+ private morphIndex;
764
+ /** The number of a morph target that `target` names, or E1218 when the mesh lacks it. */
765
+ private morphTarget;
766
+ /** Removes the object at the next frame, and frees its morph weights. Its children become roots. */
767
+ destroy(): void;
768
+ /** Changes the material from the next frame. */
769
+ setMaterial(material: Material): void;
770
+ /**
771
+ * Changes the shape from the next frame. The mesh's bounds replace the object's, so call
772
+ * `setBounds` again after this when the object needs bounds of its own.
773
+ */
774
+ setMesh(mesh: MeshGeometry): void;
775
+ /**
776
+ * Makes the mesh cast the shadows of a directional light, or stop. The default is false. A
777
+ * change rebuilds the engine's tables of what it draws, as a new material does.
778
+ */
779
+ setCastShadows(cast: boolean): void;
780
+ /**
781
+ * Makes shadows fall on the mesh, or stop. The default is false. Unlit materials show no
782
+ * shadows. A change rebuilds the engine's tables of what it draws, as a new material does.
783
+ */
784
+ setReceiveShadows(receive: boolean): void;
785
+ /**
786
+ * Draws an outline around the mesh, or stops, as adding it to three.js's
787
+ * `OutlinePass.selectedObjects` does. The outline shows while `post.set({ outline })` turns
788
+ * outlines on, and every outlined mesh takes its settings. The default is false. A change
789
+ * rebuilds the engine's tables of what it draws, as a new material does.
790
+ */
791
+ setOutlined(outlined: boolean): void;
792
+ /**
793
+ * Makes the mesh block the view, or keeps it from blocking. On WebGL2, while the
794
+ * `softwareOcclusion` quality setting is on, the job workers draw each blocker into a small
795
+ * depth buffer every frame, and the engine skips every object that lies wholly behind the
796
+ * blockers. Only meshes marked true block there, and the meshes of a model file that the asset
797
+ * tool gave blockers. Mark large, solid meshes that hide much of the scene, such as buildings
798
+ * and walls, whose mesh has at most 4,096 triangles. A mesh that the asset tool gave a blocker
799
+ * draws that blocker instead, a few boxes inside the mesh, whatever the mesh's own size. A
800
+ * blocker's mesh must lie inside what the object draws, as the object's own mesh does. On WebGPU,
801
+ * while the `gpuOcclusion` setting is on, every opaque mesh may block without a mark: the GPU
802
+ * draws the depth of those that showed in the last frame and look large on the screen, and
803
+ * skips every object wholly behind them. False keeps the mesh from blocking there too. Objects
804
+ * that blend, cut holes with an alpha mask or use a custom material never block, whatever this
805
+ * says, nor do skinned ones on WebGL2. A change needs no rebuild of the engine's tables.
806
+ */
807
+ setOccluder(occluder: boolean): void;
808
+ /**
809
+ * Sets the order in which the mesh draws among blended objects, lower first, as three.js's
810
+ * `renderOrder`. Objects of one order draw farthest first. The default is 0. The engine orders
811
+ * opaque and masked objects itself.
812
+ */
813
+ setRenderOrder(order: number): void;
814
+ /**
815
+ * Raises or lowers the threshold that picks this mesh's levels of detail, as Godot's
816
+ * `lod_bias` does. A bias above 1 makes every switch happen nearer, so the object draws
817
+ * coarser levels. A bias below 1 keeps its detail, which a hero object wants. The bias
818
+ * multiplies the threshold of the level switches and of the distance at which the object
819
+ * hides, so both move by the same factor. The default is 1. The object's mesh needs levels
820
+ * (`setLevels`). A change rebuilds the engine's tables of what it draws, as a new material
821
+ * does. Throws E1108 for a bias that is not a number above 0.
822
+ */
823
+ setLevelBias(bias: number): void;
824
+ /**
825
+ * Sets the distances between which the mesh draws, as Godot's visibility range and Bevy's
826
+ * `VisibilityRange` do: nothing nearer than `start`, which is 0 for none, and nothing past
827
+ * `end`, which is `Infinity` for none. Each edge fades over a short band, so a mesh that fades
828
+ * in or out does not pop. A mesh whose bounds leave the range costs no draw at all. The
829
+ * default draws at every distance. The `lodFade` quality setting turns the bands off on Low.
830
+ * Throws E1108 for a range that is not two numbers with 0 <= start < end.
831
+ */
832
+ setDrawRange(start: number, end: number): void;
833
+ /**
834
+ * With false, the engine draws the mesh even where its bounds are out of view, as three.js's
835
+ * `frustumCulled = false` does. The default is true. For vertices that a shader moves, larger
836
+ * bounds from `setBounds` cost less.
837
+ */
838
+ setFrustumCulled(culled: boolean): void;
839
+ }
840
+ /**
841
+ * An object that the scene can be drawn from. `scene.setActiveCamera` picks the camera that the
842
+ * canvas shows. A camera is a `PerspectiveCamera` or an `OrthographicCamera`, and
843
+ * `isOrthographic` tells them apart.
844
+ *
845
+ * @category api/cameras
846
+ */
847
+ export declare abstract class Camera extends Object3D {
848
+ protected constructor();
849
+ private nearPlane;
850
+ private farPlane;
851
+ /** True for an `OrthographicCamera`, false for a `PerspectiveCamera`. */
852
+ abstract readonly isOrthographic: boolean;
853
+ protected get looksDownMinusZ(): boolean;
854
+ /** The distance to the near clipping plane. */
855
+ get near(): number;
856
+ /** The distance to the far clipping plane. */
857
+ get far(): number;
858
+ /**
859
+ * Sets the layers the camera draws, as a 32-bit mask: it draws the objects whose masks share a
860
+ * layer with it. The default, 1, draws layer 0, where every object starts.
861
+ */
862
+ setLayers(mask: number): void;
863
+ /** Sets the distances to the near and far clipping planes. */
864
+ setNearFar(near: number, far: number): void;
865
+ /**
866
+ * Writes the ray from the camera through a point on the canvas into `out`: `x` and `y` are CSS
867
+ * pixels from the canvas's top-left corner, as `input.pointer` gives them. A perspective ray
868
+ * starts at the camera, and an orthographic ray on the near plane. The direction has length 1.
869
+ *
870
+ * When the point is the position of the pointer or a finger from `input`, the ray uses the
871
+ * camera of the frame that was on screen at that event, if the engine still keeps it. It keeps
872
+ * the last four views, and frames in a row with the same view count as one. So a click during
873
+ * a fast pan picks what the user saw. Any other point uses the camera of the
874
+ * frame that last ran, with its lens as it is now. Objects stay where they are now, so a moving
875
+ * object can be up to a frame of its motion away from where the user saw it.
876
+ */
877
+ screenToRay(x: number, y: number, out: Ray): void;
878
+ /**
879
+ * Writes where a point in the world lies on the canvas into `out`: x and y in CSS pixels from the
880
+ * canvas's top-left corner, then the point's depth, its distance in front of the camera along the
881
+ * view. A depth below 0 puts the point behind the camera, where x and y have no meaning. It uses
882
+ * the camera of the frame that last ran, with its lens as it is now, so in `onLateUpdate` it
883
+ * places points where the frame draws them.
884
+ */
885
+ worldToScreen(point: Vec3Like, out: Vec3Like): void;
886
+ }
887
+ /**
888
+ * A camera that shows near things larger than far things, as the eye does.
889
+ *
890
+ * @category api/cameras
891
+ */
892
+ export declare class PerspectiveCamera extends Camera {
893
+ protected constructor();
894
+ private verticalFov;
895
+ /** False: a perspective camera. */
896
+ readonly isOrthographic = false;
897
+ /** The vertical field of view in degrees. */
898
+ get fov(): number;
899
+ /** Sets the vertical field of view in degrees. */
900
+ setFov(degrees: number): void;
901
+ /**
902
+ * The focal length in millimeters of a lens with this field of view on a full-frame sensor, 24
903
+ * mm tall. The default field of view of 50 degrees is about 25.7 mm.
904
+ */
905
+ get focalLength(): number;
906
+ /**
907
+ * Sets the field of view of a lens of `millimeters` on a full-frame sensor, 24 mm tall, as a
908
+ * photographer picks a lens: 24 is wide, 50 normal and 85 a portrait lens. Depth of field takes
909
+ * the same focal length unless its settings give another. Throws E1108 for a length that is not
910
+ * above 0.
911
+ */
912
+ setFocalLength(millimeters: number): void;
913
+ }
914
+ /**
915
+ * A camera whose view is a box: things keep their size at every distance, as in maps and
916
+ * isometric games.
917
+ *
918
+ * @category api/cameras
919
+ */
920
+ export declare class OrthographicCamera extends Camera {
921
+ protected constructor();
922
+ /** True: an orthographic camera. */
923
+ readonly isOrthographic = true;
924
+ /** The view's height in world units. */
925
+ get height(): number;
926
+ /**
927
+ * The view's width in world units, or undefined when the width follows the canvas's aspect
928
+ * ratio.
929
+ */
930
+ get width(): number | undefined;
931
+ /**
932
+ * Sets the view's height in world units. A width that follows the canvas keeps following it.
933
+ * A view made from four edges scales about its center and keeps its shape, as three.js's
934
+ * `zoom` scales it.
935
+ */
936
+ setOrthoHeight(height: number): void;
937
+ }
938
+ /**
939
+ * A light: a scene object that lights the objects around it. Each kind of light has a class of its
940
+ * own. Setters allocate nothing, colors included, so `onUpdate` can animate lights.
941
+ *
942
+ * @category api/lights
943
+ */
944
+ export declare class Light extends Object3D {
945
+ protected get looksDownMinusZ(): boolean;
946
+ /** Sets the color. It allocates nothing, so a sketch can change the color in every frame. */
947
+ setColor(color: ColorInput): void;
948
+ /** Sets the factor that scales the color, in the unit that the light was created with. */
949
+ setIntensity(intensity: number): void;
950
+ /** Removes the light at the next frame. Its children become roots. */
951
+ destroy(): void;
952
+ }
953
+ /**
954
+ * Light from one direction, like sunlight. It travels along the light's -Z axis, which
955
+ * `setDirection`, `lookAt` and the light's parents turn. Its position does not matter.
956
+ *
957
+ * Up to four directional lights light surfaces at once. The first one created casts the shadows,
958
+ * when `castShadows` is on, and up to three more light as fill and rim lights, without shadows.
959
+ * A fifth directional light gives no light.
960
+ *
961
+ * @category api/lights
962
+ */
963
+ export declare class DirectionalLight extends Light {
964
+ /** Turns the light so that its light travels along (x, y, z), relative to its parent. */
965
+ setDirection(x: number, y: number, z: number): void;
966
+ /**
967
+ * Makes the light cast shadows, or stop. The default is false. The first directional light
968
+ * created casts them.
969
+ */
970
+ setCastShadows(cast: boolean): void;
971
+ /**
972
+ * Gives `hero` its own shadow map, or takes it away with `null`. The map is a tile of the
973
+ * shadow atlas, fitted tightly to the object along the light, so its shadow keeps far finer
974
+ * texels than the cascades give it. Surfaces near the object read that tile in place of the
975
+ * cascades. The object casts shadows; its light is this light.
976
+ *
977
+ * `tileSize` gives the tile's texels on each side, 1,024, 2,048 or 4,096. Leaving it out keeps
978
+ * the light's value, which starts as the quality preset's `heroTileSize`.
979
+ */
980
+ setHeroShadow(hero: Object3D | null, tileSize?: 1024 | 2048 | 4096): void;
981
+ /**
982
+ * Changes how the light's shadows draw. Settings that `shadow` leaves out keep their values. A
983
+ * new cascade count or map size makes the shadow map again, so set them at setup.
984
+ */
985
+ setShadow(shadow: DirectionalShadowOptions): void;
986
+ }
987
+ /**
988
+ * Light from a point in every direction, which fades with distance and ends at its range.
989
+ *
990
+ * @category api/lights
991
+ */
992
+ export declare class PointLight extends Light {
993
+ /** Sets the distance in meters where the light ends, above 0. */
994
+ setRange(range: number): void;
995
+ /** Sets how fast the light fades with distance, at least 0: 2 is the physical rate. */
996
+ setDecay(decay: number): void;
997
+ /**
998
+ * Makes the light cast shadows, or stop. The default is false. Point lights cast them where the
999
+ * quality preset's `pointLightShadows` is on, and each takes six tiles of `shadowTiles`.
1000
+ */
1001
+ setCastShadows(cast: boolean): void;
1002
+ /** Changes how the light's shadows draw. Settings that `shadow` leaves out keep their values. */
1003
+ setShadow(shadow: LightShadowOptions): void;
1004
+ }
1005
+ /**
1006
+ * Light from a point in a cone, which fades with distance and ends at its range. The cone points
1007
+ * along the light's -Z axis, which `setDirection`, `lookAt` and the light's parents turn.
1008
+ *
1009
+ * @category api/lights
1010
+ */
1011
+ export declare class SpotLight extends Light {
1012
+ /** Sets the distance in meters where the light ends, above 0. */
1013
+ setRange(range: number): void;
1014
+ /** Sets how fast the light fades with distance, at least 0: 2 is the physical rate. */
1015
+ setDecay(decay: number): void;
1016
+ /** Sets the angle in radians from the light's direction to the edge of its cone: up to π/2. */
1017
+ setAngle(angle: number): void;
1018
+ /** Sets the part of the cone, from 0 to 1, over which the light fades out toward the edge. */
1019
+ setPenumbra(penumbra: number): void;
1020
+ /**
1021
+ * Projects a picture over the light's cone, such as a window frame, a gobo pattern or a
1022
+ * projected photograph, or `null` to go back to one color. The color and intensity tint it.
1023
+ * The picture fills the square around the cone: a circle in its middle lands on the cone's
1024
+ * edge, where the light ends. The picture's top row lies along the world's up, as three.js
1025
+ * aims a spot light's map. The engine keeps the picture's detail up to 512 texels a side, so a
1026
+ * small gobo costs less memory than a detailed photograph. Give sRGB pixels, or a texture that
1027
+ * the engine copies once: a texture larger than 512 texels a side is reduced, and one that
1028
+ * changes every frame, such as a video's or a render pass's, throws E1112, because the copy
1029
+ * would show a single frame. A surface far from the light shows the picture blurred. Up to 32
1030
+ * lights show pictures at once, and rectangle and spot lights share those places. A new
1031
+ * picture takes up to a few tens of milliseconds, so set it at setup or now and then, not in
1032
+ * every frame.
1033
+ */
1034
+ setMap(map: LightImagePixels | Texture | null): void;
1035
+ /** Removes the light at the next frame, and frees its picture's place. */
1036
+ destroy(): void;
1037
+ /** Turns the light so that its light travels along (x, y, z), relative to its parent. */
1038
+ setDirection(x: number, y: number, z: number): void;
1039
+ /**
1040
+ * Makes the light cast shadows, or stop. The default is false. The quality preset's
1041
+ * `shadowTiles` caps the lights that cast them at once: the lights that look largest from the
1042
+ * camera cast them first.
1043
+ */
1044
+ setCastShadows(cast: boolean): void;
1045
+ /** Changes how the light's shadows draw. Settings that `shadow` leaves out keep their values. */
1046
+ setShadow(shadow: LightShadowOptions): void;
1047
+ }
1048
+ /**
1049
+ * Light from the sky above and the ground below, which fades from one color to the other with the
1050
+ * way a surface faces. The sky lies along the light's +Y axis. `setColor` sets the sky color.
1051
+ *
1052
+ * @category api/lights
1053
+ */
1054
+ export declare class HemisphereLight extends Light {
1055
+ /** Sets the ground color. It allocates nothing. */
1056
+ setGroundColor(color: ColorInput): void;
1057
+ }
1058
+ /**
1059
+ * Light that reaches every surface equally.
1060
+ *
1061
+ * @category api/lights
1062
+ */
1063
+ export declare class AmbientLight extends Light {
1064
+ }
1065
+ /**
1066
+ * Light from a rectangle of even brightness, such as a window, a screen or a studio panel. Its
1067
+ * light leaves the side that its -Z axis points to, and ends at its range. Surfaces show its whole
1068
+ * shape in their highlights, and soft light near it, as three.js's `RectAreaLight` gives. Its
1069
+ * intensity is the rectangle's brightness in nits, three.js's unit. It casts no shadows.
1070
+ *
1071
+ * @category api/lights
1072
+ */
1073
+ export declare class RectAreaLight extends Light {
1074
+ /** Sets the distance in meters from the light's middle where its light ends, above 0. */
1075
+ setRange(range: number): void;
1076
+ /** Sets the width along the light's X axis and the height along its Y axis, in meters. */
1077
+ setSize(width: number, height: number): void;
1078
+ /** Turns the light so that its light leaves along (x, y, z), relative to its parent. */
1079
+ setDirection(x: number, y: number, z: number): void;
1080
+ /**
1081
+ * Shows a picture over the light's area, such as a shop window or a screen, or `null` to go back
1082
+ * to one color. The color and intensity tint it. The light gives out its intensity times the
1083
+ * picture's average color, so a mostly dark picture lights little around it. The picture's top
1084
+ * row lies along the light's +Y axis, and it reads the right way round from the lit side. The
1085
+ * engine keeps the picture's detail up to 512 texels a side, so shiny surfaces show it sharp
1086
+ * and rough ones blurred. Up to 32 lights show pictures at once. A new picture allocates and
1087
+ * takes up to a few tens of milliseconds, so set it at setup or now and then, not in every
1088
+ * frame.
1089
+ */
1090
+ setImage(image: LightImagePixels | null): void;
1091
+ /** Removes the light at the next frame, and frees its picture's place. */
1092
+ destroy(): void;
1093
+ }
1094
+ /**
1095
+ * Light from a glowing tube, such as a neon or fluorescent tube, in every direction around it,
1096
+ * out to its range. The tube runs along the light's -Z axis. Its intensity is the tube's
1097
+ * brightness in nits, as for a rectangle light. It casts no shadows.
1098
+ *
1099
+ * @category api/lights
1100
+ */
1101
+ export declare class TubeLight extends Light {
1102
+ /** Sets the distance in meters from the tube's middle where its light ends, above 0. */
1103
+ setRange(range: number): void;
1104
+ /** Sets the tube's length along the light's -Z axis and its radius, in meters. */
1105
+ setSize(length: number, radius: number): void;
1106
+ /** Turns the tube so that it runs along (x, y, z), relative to its parent. */
1107
+ setDirection(x: number, y: number, z: number): void;
1108
+ }
1109
+ /**
1110
+ * Many copies of one mesh and material. Write rows straight into the typed arrays; a dynamic batch
1111
+ * updates every row every frame, and a static batch updates the rows you mark dirty.
1112
+ *
1113
+ * @category api/scene
1114
+ */
1115
+ export declare class InstanceBatch implements ViewHolder {
1116
+ protected constructor();
1117
+ private readonly scene;
1118
+ /** The number of rows: the batch's capacity. */
1119
+ readonly count: number;
1120
+ private readonly own;
1121
+ private generation;
1122
+ private rows;
1123
+ /** Forgets the row arrays, which the next read makes again. */
1124
+ dropViews(): void;
1125
+ /**
1126
+ * The number that a custom material's WGSL reads as `object.id` for every row of the batch.
1127
+ * No other live batch or mesh has it. The WGSL tells the rows apart by `input.instance`.
1128
+ */
1129
+ get shaderId(): number;
1130
+ /**
1131
+ * The row arrays, made again after the engine's memory grew. Sketches read rows every frame, so
1132
+ * this check creates no closure: one would allocate on each call until the browser optimizes
1133
+ * the code.
1134
+ */
1135
+ private views;
1136
+ private makeViews;
1137
+ /** Positions, 3 floats per row. */
1138
+ get positions(): Float32Array;
1139
+ /** Rotations as quaternions (x, y, z, w), 4 floats per row. */
1140
+ get rotations(): Float32Array;
1141
+ /** Scales, 3 floats per row. */
1142
+ get scales(): Float32Array;
1143
+ /**
1144
+ * Linear RGBA colors, 4 floats per row, when the batch was created with `colors`. Each multiplies
1145
+ * its row's base color and opacity.
1146
+ */
1147
+ get colors(): Float32Array | undefined;
1148
+ /**
1149
+ * The rows' own values, 4 floats per row, when the batch was created with `values`. A custom
1150
+ * material's WGSL reads its row's as `object.values`.
1151
+ */
1152
+ get values(): Float32Array | undefined;
1153
+ /**
1154
+ * The rows' distance ranges, two floats per row: the start distance at `2i` and the end
1155
+ * distance at `2i + 1`, when the batch was created with `ranges`. A row draws between them,
1156
+ * with a fade at each edge. `setDrawRange` sets every row's, and a later write to this array
1157
+ * changes one row. Write it at setup: the engine reads it when it next rebuilds its draw
1158
+ * tables, which `setDrawRange` and a new object or batch make.
1159
+ */
1160
+ get ranges(): Float32Array | undefined;
1161
+ /**
1162
+ * Sets the distances between which every row draws, as `Mesh.setDrawRange` does for one mesh:
1163
+ * nothing nearer than `start`, which is 0 for none, and nothing past `end`, which is
1164
+ * `Infinity` for none. The rows take a fade at each edge. A batch created with `ranges` gets
1165
+ * the same range in its own array. Throws E1108 for a range that is not two numbers with
1166
+ * 0 <= start < end.
1167
+ */
1168
+ setDrawRange(start: number, end: number): void;
1169
+ /**
1170
+ * Keeps every row of the batch whatever a camera's frustum says, or culls its rows again. An
1171
+ * add-on whose own cull or count decides what draws marks its batch unculled. A change
1172
+ * recomputes the rows' bounds, so make it at setup.
1173
+ */
1174
+ setFrustumCulled(culled: boolean): void;
1175
+ /**
1176
+ * Makes the writer that packs chunks of rows into this batch's rows, for an add-on whose rows
1177
+ * arrive as chunks. The writer stores each chunk once when it arrives, then packs the chosen
1178
+ * prefix of each into the rows in the core's memory, so a frame copies no rows through the
1179
+ * sketch's heap. The batch must own its rows' transforms: a pack on a part of a model, or on a
1180
+ * sprite or line batch, writes nothing. The code loads on first use.
1181
+ *
1182
+ * @category api/scene
1183
+ */
1184
+ createChunkRows(): Promise<ChunkRowWriter>;
1185
+ /** Draws only the first `count` rows. */
1186
+ setActiveCount(count: number): void;
1187
+ /**
1188
+ * Makes every row's bounding sphere, which culling tests, hold the sphere of `radius` meters
1189
+ * around the row's origin, in place of the mesh's own sphere. Each sphere keeps the mesh's
1190
+ * center (`mesh.center`), so its radius grows by that center's distance from the origin. A
1191
+ * vertex shader that carries rows away from their origins, such as traffic along a lane, needs
1192
+ * this: the engine culls a row moved beyond the mesh's own sphere while it is still on the
1193
+ * screen. A later change of the mesh's radius, which a displaced material makes, replaces it.
1194
+ * Every row is marked for update, and the call builds the engine's draw tables again, so make it
1195
+ * at setup. Throws E1203 for a value that is not a finite number, and E1108 for 0 or below.
1196
+ */
1197
+ setBoundingRadius(radius: number): void;
1198
+ /**
1199
+ * Puts every row on the layers of a 32-bit mask, as `Object3D.setLayers` does for one object. A
1200
+ * new mask needs no rebuild.
1201
+ */
1202
+ setLayers(mask: number): void;
1203
+ /**
1204
+ * Makes every row cast the shadows of the lights that cast them, or stop, as
1205
+ * `Object3D.setCastShadows` does for a mesh. The default is false. A change rebuilds the
1206
+ * engine's tables of what it draws.
1207
+ */
1208
+ setCastShadows(cast: boolean): void;
1209
+ /**
1210
+ * Makes shadows fall on every row, or stop, as `Object3D.setReceiveShadows` does for a mesh. The
1211
+ * default is false. Unlit materials show no shadows. A change rebuilds the engine's tables of
1212
+ * what it draws.
1213
+ */
1214
+ setReceiveShadows(receive: boolean): void;
1215
+ /**
1216
+ * Lets every row hide what lies behind it in GPU occlusion culling on WebGPU, or keeps every row
1217
+ * from it. Rows of an opaque mesh may hide others by default, when they look large enough on the
1218
+ * screen. Rows never block on WebGL2. A change rebuilds the engine's tables of what it draws.
1219
+ */
1220
+ setOccluder(occluder: boolean): void;
1221
+ private shadowBits;
1222
+ private setShadowBit;
1223
+ /**
1224
+ * Calls `handler` for each pointer event of `type` on a row of the batch, as `Object3D.on` does.
1225
+ * The event's `instance` names the row.
1226
+ */
1227
+ on(type: ObjectEventType, handler: ObjectEventHandler): void;
1228
+ /** Removes a handler that `on` added for events of `type`. */
1229
+ off(type: ObjectEventType, handler: ObjectEventHandler): void;
1230
+ /** Marks rows of a static batch to update and upload. */
1231
+ markDirty(start?: number, count?: number): void;
1232
+ /**
1233
+ * Removes the batch and frees its rows. Its typed arrays are not valid after this: another
1234
+ * batch can take their memory.
1235
+ */
1236
+ destroy(): void;
1237
+ }
1238
+ /**
1239
+ * The scene: every object, the active camera, the lights and the background.
1240
+ *
1241
+ * @category api/scene
1242
+ */
1243
+ export declare class Scene implements ViewHolder {
1244
+ protected constructor();
1245
+ private readonly time;
1246
+ /** True when the engine draws with WebGL2, whose devices draw fewer rows than WebGPU's. */
1247
+ private readonly webgl2;
1248
+ private readonly warmUpScene;
1249
+ /** The cameras of the last frames, which the sketch runner gives; tests get a stand-in. */
1250
+ private cameras?;
1251
+ /**
1252
+ * What sprite and line batches make their meshes and materials with, which the sketch runner
1253
+ * gives.
1254
+ */
1255
+ private readonly makers?;
1256
+ /** The input reader, whose pointer events reach objects' handlers. */
1257
+ private readonly pointerInput?;
1258
+ private viewsGeneration;
1259
+ private currentViews;
1260
+ private activeCamera;
1261
+ /** The camera that fits the shadow cascades in place of the active camera, for debugging. */
1262
+ private shadowCamera;
1263
+ /**
1264
+ * The camera of each scene pass's view, by the view's place, with the pass's own layers, or
1265
+ * undefined to follow the camera's.
1266
+ */
1267
+ private readonly passCameras;
1268
+ /** A world matrix, whose translation keeps 64-bit precision far from the origin. */
1269
+ private readonly matrix;
1270
+ /** The same world matrix as 16 numbers, column by column. */
1271
+ private readonly columns;
1272
+ /** A 32-bit float and its bits, for commands that carry a float. */
1273
+ private readonly float;
1274
+ private readonly floatWord;
1275
+ /**
1276
+ * The live objects with each name: the object itself, or the objects with a name that several
1277
+ * share, in the order of their creation.
1278
+ */
1279
+ private readonly names;
1280
+ /** The object that each slot holds, or last held, which queries name by slot. */
1281
+ private readonly objectSlots;
1282
+ /** The batch that each batch slot holds, or last held, which queries name by id. */
1283
+ private readonly batchSlots;
1284
+ /** The quad meshes of sprite batches, by their center, which batches with one center share. */
1285
+ private readonly spriteQuads;
1286
+ /** The one triangle that particle buffers' objects draw with, made with the first buffer. */
1287
+ private particleMesh;
1288
+ /** The one triangle that such draws' objects hold, made with the first draw. */
1289
+ private vertexDrawMesh;
1290
+ /** The segment mesh of line batches, which every line batch shares, made with the first. */
1291
+ private lineMesh;
1292
+ /** Raycasts and overlap queries, made on the first query. */
1293
+ private sceneQueries;
1294
+ /** GPU picking's queries, made on the first pick. */
1295
+ private scenePicks;
1296
+ /** The ray and hit that a pick's raycast reuses. */
1297
+ private pickRay;
1298
+ private pickHit;
1299
+ /** The point of a pick's ray, in CSS pixels, which the ray's math reads from an array. */
1300
+ private pickPoint;
1301
+ /** The command batches that the world took before the runner's first frame, or -1. */
1302
+ private settledCommands;
1303
+ /** The environment's values in the core, made on the first `setEnvironment`. */
1304
+ private sceneEnvironment;
1305
+ /** The light probe grid's values in the core, made on the first `setLightProbeGrid`. */
1306
+ private sceneProbeGrid;
1307
+ /** The background's values in the core, made on the first `setBackground`. */
1308
+ private sceneBackground;
1309
+ /** The add-on's layer over the background, made on the first `setSkyLayer`. */
1310
+ private skyLayer;
1311
+ /** True while the fog is volumetric. */
1312
+ private fogVolume;
1313
+ /** Pointer events on objects, made on the first `on`. */
1314
+ private objectEvents;
1315
+ /** Rows of the live instance batches, which development builds count. */
1316
+ private batchRows;
1317
+ private warnedPastPortable;
1318
+ /** The core's table of morph weights, made again after the engine's memory grew. */
1319
+ private morphTable;
1320
+ private morphGeneration;
1321
+ /** Forgets the views of the scene's arrays and of the morph weights. */
1322
+ dropViews(): void;
1323
+ /**
1324
+ * Casts the ray of a pointer event from the camera of engine frame `frame`, or from the active
1325
+ * camera as it stands when the ring no longer holds the frame, on the camera's layers.
1326
+ */
1327
+ private pickForEvent;
1328
+ /**
1329
+ * The ring's write index, after a check that `count` more records fit. Throws E1102 when they
1330
+ * do not, before anything is written.
1331
+ */
1332
+ private reserveCommands;
1333
+ /** Writes a record at write index `at`, which the next publish makes visible. */
1334
+ private writeCommand;
1335
+ /** Makes the records up to write index `end` visible to the core, as one batch. */
1336
+ private publishCommands;
1337
+ private morphView;
1338
+ /**
1339
+ * Adds a new object to the index of slots that queries read, and to the index of names after
1340
+ * those with its name.
1341
+ */
1342
+ private remember;
1343
+ /** Adds a new batch to the index that queries read, by the slot of each of its core batches. */
1344
+ private rememberBatch;
1345
+ /**
1346
+ * The first object created with `name` that is not destroyed, or undefined when no object has
1347
+ * the name. It looks the name up in an index, so its cost does not grow with the scene. Call it
1348
+ * at setup and keep the object it returns.
1349
+ */
1350
+ find(name: string): Object3D | undefined;
1351
+ /**
1352
+ * Creates an object of class `kind` from the next frame: its slot with the transform of
1353
+ * `options`, its create command with `flags` besides visibility and `dynamic`, its layers, the
1354
+ * material `material` names when it is not 0, and its wrapper, built with any further
1355
+ * constructor arguments, which the index of names learns. It checks that the command ring has
1356
+ * room for every record before it reserves the slot, and publishes the records at once, so a
1357
+ * failure leaves nothing behind.
1358
+ */
1359
+ private create;
1360
+ /** An empty node, for hierarchy. */
1361
+ createGroup(options?: NodeOptions): Group;
1362
+ /** A drawn object. It is static unless `dynamic: true`. */
1363
+ createMesh(options: MeshOptions): Mesh;
1364
+ /**
1365
+ * Creates the objects of a model that `assets.loadGltf` loaded, under one new group that
1366
+ * `options` places, and returns that group. All the objects are created with one batch of
1367
+ * commands, and every copy shares the model's meshes, materials and textures. The group's
1368
+ * `find` gives the copy's object of a node, by the node's name. A model with clips or skins
1369
+ * gives the group an animator, which plays the clips: `copy.animator().play('Walk')`. Throws
1370
+ * E1102 when the scene, the animation table or the batch table has no room for the copy. Then
1371
+ * no part of the copy stays. `destroy()` on the group removes the whole copy.
1372
+ */
1373
+ instantiate(prefab: Prefab, options?: InstantiateOptions): PrefabInstance;
1374
+ /**
1375
+ * Animates one value of a light, a camera, a material or an object from keyframes, such as a
1376
+ * lamp that pulses or a color that changes, and returns an object that controls it. The engine
1377
+ * writes the value in each frame, so the sketch has no update call to make. A glTF file
1378
+ * animates the same kinds of value with its `KHR_animation_pointer` channels.
1379
+ *
1380
+ * `path` names the value. A light takes `'light.intensity'`, `'light.color'`, `'light.range'`,
1381
+ * `'light.decay'`, `'light.angle'` or `'light.penumbra'`; a camera takes `'camera.fov'` (in
1382
+ * degrees), `'camera.near'`, `'camera.far'` or `'camera.height'` (for an orthographic camera);
1383
+ * a material takes the values that `setUniform` takes, such as `'material.opacity'` or
1384
+ * `'material.color'`; and every object takes `'position'`, `'rotation'`, `'scale'` or
1385
+ * `'visible'`. The prefix is optional, so `'intensity'` and `'position'` work too.
1386
+ *
1387
+ * Every object that uses the material changes with it, and an animation that writes every
1388
+ * frame allocates nothing. `setTime` places the animation at a time; a frozen keyframes object
1389
+ * is read once. Throws E1218 for a path that the target does not take, or for keyframes that
1390
+ * do not fit the value's numbers per key.
1391
+ *
1392
+ * @category api/animation
1393
+ */
1394
+ animateProperty(target: Light | Camera | Material | Object3D, path: string, keyframes: PropertyKeyframes): PropertyAnimation;
1395
+ /**
1396
+ * Copies an object and every object below it, as three.js's `clone` does, with their meshes,
1397
+ * materials, lights, cameras and settings, and returns the copy of the object. The copy has the
1398
+ * same parent, so it starts in the same place. The copies are created with one batch of
1399
+ * commands. An animated object's copy gets an animator of its own, with no clip playing, which
1400
+ * moves the copies of its meshes, as three.js's `SkeletonUtils.clone` does. Instance batches are
1401
+ * not objects, so they are not copied. Throws E1102 when the scene or the animation table has
1402
+ * no room for the copies. Then no copy stays.
1403
+ */
1404
+ clone<T extends Object3D>(object: T): T;
1405
+ /**
1406
+ * The objects at and below `object` as template nodes, parents first, each with its object as
1407
+ * the source of its copy. It walks each object's children, so it visits only the tree.
1408
+ */
1409
+ private subtree;
1410
+ /**
1411
+ * Creates an object for each template node, with one core call that reserves their slots and
1412
+ * one batch of command records, and returns them in the nodes' order. A node whose parent is -1
1413
+ * goes under `parent`. `root`, when given, takes the place of the first node, `extra` adds
1414
+ * flags to every node with a mesh, and `cleared` takes flags away from them. Throws E1102 before it creates anything when the scene or
1415
+ * the command ring has no room.
1416
+ */
1417
+ private createNodes;
1418
+ /** The wrapper of a new object for a template node, with the light row that a light needs. */
1419
+ private makeObject;
1420
+ /**
1421
+ * The instance batch of a node of a model with instancing of its own. Each row takes its
1422
+ * transform from the file, after the node's place in the world when the copy is created. The
1423
+ * node's place is the batch's origin, so the rows keep their precision far from the world's
1424
+ * origin. The copy's layers and shadow options reach every row.
1425
+ */
1426
+ private placeInstancing;
1427
+ /**
1428
+ * One instance batch for each part of a model, which share one set of rows: the first part owns
1429
+ * them, and the others read them.
1430
+ */
1431
+ private createParts;
1432
+ /**
1433
+ * Many copies of one mesh and material, with typed arrays of rows. Or many copies of a model
1434
+ * that `assets.loadGltf` loaded, without a material: one batch for each mesh of the model, which
1435
+ * share one set of rows, so one row places a whole copy. The model's lights are left out.
1436
+ * Throws E1417 for a model with no meshes, or with instancing of its own.
1437
+ */
1438
+ createInstances(mesh: MeshGeometry, count: number, options: InstanceOptions): InstanceBatch;
1439
+ createInstances(prefab: Prefab, count: number, options?: Omit<InstanceOptions, 'material'>): InstanceBatch;
1440
+ /**
1441
+ * Many sprites in one batch: quads that face the camera, like three.js's `Sprite` with a
1442
+ * `SpriteMaterial`. Typed arrays give each sprite its position, size, rotation, color and atlas
1443
+ * frame, as an instance batch's arrays give its rows. Sprites blend by default, and blended
1444
+ * sprites draw back to front with the other blended objects. The first call downloads the
1445
+ * sprite code. Throws E1108 for an atlas side that is not a whole number from 1 to 2048, E1203
1446
+ * for a center that is not two finite numbers, and E1406 when the sprite code does not download.
1447
+ */
1448
+ createSprites(options: SpriteOptions): Promise<SpriteBatch>;
1449
+ /**
1450
+ * Many points in one batch: squares that face the camera, all of one size, like three.js's
1451
+ * `Points` with a `PointsMaterial`. Each point is a sprite: typed arrays give each point its
1452
+ * position and color, as an instance batch's arrays give its rows. Sizes above one pixel work on
1453
+ * every GPU path. Points are opaque by default, and blended points draw back to front with the
1454
+ * other blended objects. The first call downloads the sprite code. Throws E1206 for points or
1455
+ * colors that make no points, E1108 for a size that is not above 0, E1203 for a size that is not
1456
+ * finite, and E1406 when the sprite code does not download.
1457
+ */
1458
+ createPoints(options: PointOptions): Promise<PointBatch>;
1459
+ /**
1460
+ * An add-on's own kind of draw, declared by a feature description with the kind `'draw'`: its
1461
+ * WGSL, its vertex data, its uniforms and the description's frame point, band and order. The
1462
+ * engine draws the object on every GPU path and in every thread mode, as it draws the scene's
1463
+ * other objects, and sorts a blended draw among the transparent pass's objects. The first call
1464
+ * downloads the draw adapter.
1465
+ *
1466
+ * The description names the frame point: `'opaque'` with an opaque or masked material,
1467
+ * `'transparent'` with a blended one, or `'resolve'` with a blended one that blends after the
1468
+ * transparent pass's objects. With MSAA, a draw at `'resolve'` blends its surfaces back to
1469
+ * front in a layer of one sample per pixel, which the engine then blends over the scene, so
1470
+ * many overlapping surfaces, such as Gaussian splats, cost one blend per pixel instead of one
1471
+ * per sample. Its surfaces show in front of every object of the transparent pass, and other
1472
+ * views draw them in their own transparent pass. The band and order place a blended draw among
1473
+ * the pass's objects. The adapter records in the main view alone, so a description with
1474
+ * another view throws E1223. The description's `reads`, `writes`, `outputs` and `provides`
1475
+ * stay with the feature registry: this draw draws no scene resource.
1476
+ *
1477
+ * Throws E1223 for a description that is not a draw the adapter can place, E1215, E1216 and
1478
+ * E1217 for WGSL and values that `materials.shader` refuses, E1206 for vertex data that makes no
1479
+ * mesh, and E1406 when the adapter does not download.
1480
+ */
1481
+ addFeatureDraw<const Wgsl extends string | CompiledWgsl>(description: FeatureDescription, options: FeatureDrawOptions<Wgsl>): Promise<FeatureDraw<Wgsl>>;
1482
+ /**
1483
+ * An add-on's own kind of draw, repeated once for each row of an instance batch, declared by a
1484
+ * feature description with the kind `'draw'`. It takes the options of `addFeatureDraw` and a
1485
+ * number of copies; each row of `draw.batch` places one copy and brings its own color and four
1486
+ * values. The engine culls and sorts the rows in each view as it does a batch's, so a blended
1487
+ * draw of many copies draws back to front on both GPU paths.
1488
+ *
1489
+ * Throws E1223 for a description that the adapter cannot place, for a place that belongs to one
1490
+ * object, or for a count that is not a whole number from 1 up, E1215, E1216 and E1217 for WGSL
1491
+ * and values that `materials.shader` refuses, E1206 for vertex data that makes no mesh, and
1492
+ * E1406 when the adapter does not download.
1493
+ */
1494
+ addFeatureInstances<const Wgsl extends string | CompiledWgsl>(description: FeatureDescription, options: FeatureInstancesOptions<Wgsl>): Promise<FeatureInstances<Wgsl>>;
1495
+ /**
1496
+ * An add-on's own kind of draw whose instance count the GPU writes: the description places it,
1497
+ * the options give its one shape, its shader and the most instances that it holds, and the
1498
+ * add-on fills its per-instance data. On WebGPU the draw reads the add-on's instance buffer and
1499
+ * the count word that its compute pass writes; the engine copies the count into the indirect
1500
+ * draw each frame. WebGL2 has no compute, so the page sets the instances and the count on the
1501
+ * CPU, which draws the same picture.
1502
+ *
1503
+ * The description names the frame point `'opaque'` and the main view alone. The draw is
1504
+ * unculled: the add-on's own cull or count decides what draws. The first call downloads the
1505
+ * adapter.
1506
+ *
1507
+ * Throws E1223 for a description that the adapter cannot place or a capacity that it cannot
1508
+ * take, E1215, E1216 and E1217 for WGSL and values that `materials.shader` refuses, E1206 for
1509
+ * vertex data that makes no mesh, and E1406 when the adapter does not download. A draw that
1510
+ * arrives after the first frame on a device that draws directly fails the frame with E1506:
1511
+ * create it in the setup, and await this call there.
1512
+ */
1513
+ addComputeInstances<const Wgsl extends string | CompiledWgsl = string | CompiledWgsl>(description: FeatureDescription, options: ComputeInstancesOptions<Wgsl>): Promise<ComputeInstances<Wgsl>>;
1514
+ /**
1515
+ * Downloads the sprite code on first use, and creates a sprite batch of `count` rows with the
1516
+ * look, layers and origin of `options` and an atlas of `columns` by `rows` frames. A batch of
1517
+ * `points` is opaque when the options give no alpha mode, and sprites blend. Returns the batch
1518
+ * and the instance batch that holds its rows.
1519
+ */
1520
+ private spriteBatch;
1521
+ /**
1522
+ * A draw that has a custom material and a vertex count but no mesh data: its shader makes every
1523
+ * vertex of every copy from `@builtin(vertex_index)` and `@builtin(instance_index)`, so a draw
1524
+ * of 50,000 rain streaks uploads nothing in a frame. The draw's object gives its place, its
1525
+ * layers and the sphere that culls it, and the material's values move its shapes.
1526
+ *
1527
+ * The draw blends, so it draws in the transparent pass. The options take every option of
1528
+ * `materials.shader` but the maps: a draw's WGSL declares no texture. The draw's culling sphere
1529
+ * holds every shape, or a shape that leaves it stops drawing. A draw that uses the camera's
1530
+ * position, such as rain around the camera, reads it in its WGSL, and `null3d::wrap` wraps a
1531
+ * position relative to the camera into a box.
1532
+ *
1533
+ * Throws E1108 for a count or a sphere that the draw cannot take, or when the scene holds the
1534
+ * most draws already, E1215 for WGSL that the plugin did not compile as a draw shader, and
1535
+ * E1217 for a texture or an alpha mode that a draw does not take.
1536
+ */
1537
+ createVertexDraw<const Wgsl extends string | CompiledWgsl = string | CompiledWgsl>(options: VertexDrawOptions<Wgsl>): VertexDraw<Wgsl>;
1538
+ /**
1539
+ * A particle buffer: a scene object that draws a quad for each live particle, which the GPU
1540
+ * moves and colors at the particle's age in closed form. The `@null3d/particles` add-on's
1541
+ * emitters fill it; use the add-on rather than this call. The first call downloads the particle
1542
+ * code. Throws E1108 for a capacity that is not a whole number from 1 to 4,194,304, or when the
1543
+ * scene holds 256 particle buffers already, and E1406 when the particle code does not download.
1544
+ */
1545
+ createParticleBuffer(options: ParticleBufferOptions): Promise<ParticleBuffer>;
1546
+ /**
1547
+ * Lines of any width in one batch, like three.js's `Line2` and `LineSegments2` with a
1548
+ * `LineMaterial`, and its `Line`, `LineSegments` and `LineLoop`. Each segment between two points
1549
+ * draws as a quad with round ends that faces the camera, `width` CSS pixels wide, or world units
1550
+ * wide with `worldUnits`. A typed array gives each point its position and color, as an instance
1551
+ * batch's arrays give its rows. The first call downloads the line code. Throws E1206 for points
1552
+ * or colors that make no line, E1217 for an unknown mode, E1108 for a width that is not positive
1553
+ * or a dash or gap below 0, E1203 for a value that is not finite, and E1406 when the line code
1554
+ * does not download.
1555
+ */
1556
+ createLines(options: LineOptions): Promise<LineBatch>;
1557
+ /** A perspective camera; `fov` is vertical, in degrees. Cameras are dynamic by default. */
1558
+ createPerspectiveCamera(options?: PerspectiveCameraOptions): PerspectiveCamera;
1559
+ /**
1560
+ * An orthographic camera, whose view is a box: things keep their size at every distance. Give
1561
+ * `height`, and the width follows the canvas, or give `left`, `right`, `top` and `bottom`.
1562
+ * Cameras are dynamic by default.
1563
+ */
1564
+ createOrthographicCamera(options?: OrthographicCameraOptions): OrthographicCamera;
1565
+ /**
1566
+ * Creates a camera of the given class with its lens settings, dynamic unless the options say
1567
+ * otherwise, gives it the options' layers to draw, and turns it toward the options' target.
1568
+ */
1569
+ private createCamera;
1570
+ /** Draws the scene from this camera. */
1571
+ setActiveCamera(camera: Camera): void;
1572
+ /**
1573
+ * Draws the scene again from `camera`, into the rectangle of the canvas that `rect` gives,
1574
+ * after the camera's view and in the same frame: a split screen or a picture in picture. The
1575
+ * view draws the scene once more at the rectangle's pixels, with its own culling, so its cost
1576
+ * follows the rectangle's area. It draws the sun and its shadows as the camera's view does,
1577
+ * which costs nothing more, the background and the fog. Its objects take no ambient occlusion
1578
+ * or screen-space reflections, which shade the camera's view; the camera's volumetric fog and
1579
+ * outline reach the whole image, a view's rectangle included. An object whose material shows a
1580
+ * render pass's texture does not draw in a view.
1581
+ *
1582
+ * The camera's view still draws the whole canvas first, so a split screen that covers the
1583
+ * canvas draws the scene one more time than it needs for its two halves. The scene and its
1584
+ * passes share 32 views, the camera's included.
1585
+ *
1586
+ * Throws E1501 when the 32 views are in use. Development builds throw E1213 for a camera or a
1587
+ * rectangle that a view does not take, and E1203 for a number that is not finite.
1588
+ */
1589
+ createView(options: SceneViewOptions): SceneView;
1590
+ /**
1591
+ * Creates a light of class `kind` from the next frame: its object, its row in the light table,
1592
+ * and the values of `options`. A directional or spot light turns to its target or direction.
1593
+ */
1594
+ private createLight;
1595
+ /** Light from one direction, like sunlight: `direction` is the way it travels. */
1596
+ createDirectionalLight(options?: DirectionalLightOptions): DirectionalLight;
1597
+ /** Light from a point in every direction, out to `range` meters, which it needs. */
1598
+ createPointLight(options: PointLightOptions): PointLight;
1599
+ /** Light from a point in a cone, out to `range` meters, which it needs. */
1600
+ createSpotLight(options: SpotLightOptions): SpotLight;
1601
+ /**
1602
+ * Light from a rectangle, `width` by `height` meters, out to `range` meters, which it needs. Its
1603
+ * light leaves along `direction`.
1604
+ */
1605
+ createRectAreaLight(options: RectAreaLightOptions): RectAreaLight;
1606
+ /** Light from a tube, `length` meters along `direction`, out to `range` meters, which it needs. */
1607
+ createTubeLight(options: TubeLightOptions): TubeLight;
1608
+ /** Light from the sky above and the ground below. */
1609
+ createHemisphereLight(options?: HemisphereLightOptions): HemisphereLight;
1610
+ /** Light on every surface, from no direction. */
1611
+ createAmbientLight(options?: AmbientLightOptions): AmbientLight;
1612
+ /**
1613
+ * What the camera shows behind every object, as three.js's `scene.background`: a color, a
1614
+ * texture, an environment from `assets.loadEnvironment` or `assets.builtinEnvironment`, a cube
1615
+ * map from `assets.loadCubemap`, three.js's sky with `{ sky: { sunPosition } }`, or the physical
1616
+ * sky with `{ atmosphere: { sunPosition } }`, whose air also hazes distant objects. A texture
1617
+ * fills the view and stretches to its shape. An environment or a cube map surrounds the scene,
1618
+ * and `options` give its intensity, rotation and, for an environment, its blur, as three.js's
1619
+ * `backgroundIntensity`, `backgroundRotation` and `backgroundBlurriness`. The color set before
1620
+ * shows until a texture's texels are on the GPU, and again if the texture is destroyed. A color
1621
+ * takes the place of any other background. Exposure and tone mapping change the background with
1622
+ * the rest of the scene. Without a background, the canvas shows black, or the page behind it on
1623
+ * a transparent canvas. Settings are values, not shader builds, and the call allocates nothing,
1624
+ * so a sketch can move the sky's sun or turn a cube map every frame. Throws E1204 for a color
1625
+ * it cannot read, E1203 for a number that is not finite, E1108 for a number out of its range,
1626
+ * E1213 for an option that the background does not take, and E1101 for a texture, an
1627
+ * environment or a cube map that was destroyed.
1628
+ */
1629
+ setBackground(background: ColorInput | BackgroundSource, options?: BackgroundOptions): void;
1630
+ /**
1631
+ * Draws an add-on's sky layer over the background, under every object: the top of a sky, such
1632
+ * as an aurora, a second layer of clouds or a space backdrop. The description is a feature
1633
+ * description ([Add-on feature descriptions](../features.md)): it names the feature and
1634
+ * records at the background point, as a draw, provides the sky, and draws in the main view, the
1635
+ * scene passes and the reflections. The layer's WGSL, compiled by the null3D Vite plugin,
1636
+ * declares `fn skyLayer(input: SkyLayerInput) -> SkyLayer`. The engine gives it the fragment's
1637
+ * direction in the world, the core sky's cloud coverage, density, elevation and scale, the
1638
+ * sketch time and the share of the sun that the layer hides, and it blends what the layer
1639
+ * returns over the sky by the layer's coverage and opacity. A layer that hides part of the sun
1640
+ * also dims the disc and glow that the core sky draws, through `sun`. The layer draws in the
1641
+ * main view, in scene passes and in reflections, and draws nothing where the background draws
1642
+ * nothing, as in a debug view. A second call replaces the layer.
1643
+ *
1644
+ * Throws E1223 for a description that the engine cannot place, E1215 for WGSL that the plugin
1645
+ * did not compile as a sky layer, E1203 for a number that is not finite, and E1108 for a number
1646
+ * out of its range.
1647
+ */
1648
+ setSkyLayer(description: FeatureDescription, options: SkyLayerOptions): SkyLayer;
1649
+ /**
1650
+ * Removes the sky layer that `setSkyLayer` installed, from the next frame on, and gives the
1651
+ * core sky its full sun back. A call with no layer installed does nothing.
1652
+ */
1653
+ clearSkyLayer(): void;
1654
+ /**
1655
+ * Sets the layers whose objects decals mark, as a 32-bit mask as `setLayers` takes. An object
1656
+ * that is also on a layer outside the mask shows no decals, so a character on a layer of its own
1657
+ * walks through a puddle clean. Such objects draw a second time after the decals, over their own
1658
+ * pixels, in each frame that has decals. The default is every layer.
1659
+ */
1660
+ setDecalLayers(mask: number): void;
1661
+ /** The material that every mesh of the main pass draws with, or null while each uses its own. */
1662
+ private overrideMaterialValue;
1663
+ /**
1664
+ * Draws every mesh and instance batch of the main pass with this material in place of its own,
1665
+ * as three.js's `scene.overrideMaterial` does, or with their own materials with null. Each
1666
+ * object keeps its mesh, its place and its instances, so a batch draws every row with it, and
1667
+ * every camera view draws with it, the scene passes among them. Sprites, points, lines and
1668
+ * particle systems keep their own materials, and the shadow maps keep each object's material,
1669
+ * as three.js's shadow maps do. A change rebuilds the engine's draw tables in the next frame;
1670
+ * after that it adds no draw call and builds no pipeline. Throws E1224 for a sprite, point or
1671
+ * line material, E1101 for a material that is destroyed, and E1103 for a material of another
1672
+ * engine.
1673
+ */
1674
+ get overrideMaterial(): Material | null;
1675
+ set overrideMaterial(material: Material | null);
1676
+ /**
1677
+ * Lights the scene with an environment from `assets.loadEnvironment` or
1678
+ * `assets.builtinEnvironment`, as three.js's `scene.environment` does with a texture from
1679
+ * `PMREMGenerator`, or with none for null. Standard materials reflect it, sharply when smooth
1680
+ * and blurred when rough, and take its diffuse light, each times its `envIntensity`. The scene
1681
+ * draws without a file's environment until its map is on the GPU. The built-in room's map is
1682
+ * whole in the first frame that uses it. It allocates nothing, so a sketch
1683
+ * can turn the environment every frame. Throws E1203 for a number that is not finite, E1108 for
1684
+ * a negative intensity, E1213 for a value that is not an environment, and E1101 for an
1685
+ * environment that was destroyed.
1686
+ */
1687
+ setEnvironment(environment: Environment | null, options?: EnvironmentOptions): void;
1688
+ /** The scene's reflection probes, made with the first. */
1689
+ private reflectionProbes?;
1690
+ /**
1691
+ * Makes a reflection probe: the scene around a point, which the engine captures on the GPU and
1692
+ * filters for each roughness, as an environment's map. It lights the surfaces inside its box in
1693
+ * place of the environment, with reflections that meet the box's sides, as a room's walls or a
1694
+ * street's houses stand. A probe captures in a frame soon after it is made, and frames before
1695
+ * that draw with the environment. A scene has at most 16 probes. Their captures take 6 of the
1696
+ * 32 views that the scene and its passes share. Throws E1430 past those limits, E1203 for a
1697
+ * number that is not finite, E1108 for a negative blend or intensity or a box whose min does not
1698
+ * lie below its max, and E1213 for an option that probes do not take.
1699
+ */
1700
+ createReflectionProbe(options: ReflectionProbeOptions): ReflectionProbe;
1701
+ /**
1702
+ * Lights the scene with a grid of irradiance probes, or with none for null. The grid's light
1703
+ * takes the place of the environment's diffuse light where `environmentWeight` says so, so
1704
+ * light that changes with a surface's place, bounced from colored walls or sky, reaches it.
1705
+ * The probes' coefficients come from a 3D texture that `LightProbeGridData.toTexture` packs
1706
+ * and uploads, from `bakeProbes` or from a grid baked elsewhere.
1707
+ * Throws the errors that `scene.setEnvironment` throws for a value out of range, E1213 for
1708
+ * something that is not a texture, and E1101 for a texture that was destroyed.
1709
+ */
1710
+ setLightProbeGrid(grid: LightProbeGridOptions | null): void;
1711
+ /**
1712
+ * Fog over every object, by each object's straight-line distance from the camera along a curve:
1713
+ * exponential by default, exponential squared or linear. The fog can thin with height and glow
1714
+ * toward the main directional light. With `volumetric`, the sun and the point and spot lights
1715
+ * light the fog through their shadows. Null removes the fog. The background takes no fog, and a
1716
+ * material created with `fog: false` keeps its color. Throws E1108 for an unknown curve or a
1717
+ * value out of its range, and E1203 for a value that is not finite. The call allocates nothing,
1718
+ * so a sketch can change the fog in every frame.
1719
+ */
1720
+ setFog(fog: FogOptions | null): void;
1721
+ /**
1722
+ * The raycasts and overlap queries, made on the first call. The closures that they take live in
1723
+ * a method of their own: one in the getter would make each call allocate a context.
1724
+ */
1725
+ private get queries();
1726
+ /** Makes the raycasts and overlap queries. */
1727
+ private makeQueries;
1728
+ /**
1729
+ * The objects and batches that queries and picks name by their ids, and the cameras that their
1730
+ * rays read.
1731
+ */
1732
+ private queryTargets;
1733
+ /** GPU picking's queries, made on the first pick. */
1734
+ private get picks();
1735
+ /**
1736
+ * Finds the object that the camera draws at a point of the canvas, or `null` where it draws
1737
+ * nothing there. `x` and `y` are CSS pixels from the canvas's top-left corner, as
1738
+ * `camera.screenToRay` takes them, and the point is tested at the pixel that the camera draws,
1739
+ * not at a projected triangle: a cut-out material's holes and a surface thinner than a pixel
1740
+ * answer as the image shows them.
1741
+ *
1742
+ * A hit carries `uv`, where on the surface the pixel landed in the mesh's first texture
1743
+ * coordinates, blended across its triangle's three corners as a raycast's `uv` is, and `hasUv`,
1744
+ * which says whether to read it. A ray from the camera of the frame that recorded the pick
1745
+ * finds them from the same point, so the two ways of asking agree. A skinned or morphed
1746
+ * character, and a custom material that offsets its vertices, draws a different shape than the
1747
+ * mesh that the ray tests, so its coordinates can differ from the pose it drew.
1748
+ *
1749
+ * The answer arrives one or more frames later, through a promise, and a pick in every frame
1750
+ * waits in a queue of its own. The frame that records the pick draws it, so the camera of that
1751
+ * frame answers, and a camera that moves between the click and the frame can differ from the
1752
+ * frame that the click saw. A scene with a source that the id target cannot hold, such as a
1753
+ * custom material without a vertex offset, a blended surface or a sprite, answers with a
1754
+ * raycast instead, which tests triangles and so ignores alpha masks.
1755
+ */
1756
+ pick(x: number, y: number): Promise<PickHit | null>;
1757
+ /**
1758
+ * Casts a ray through a point of the canvas: with the camera of `frame`, or with the camera as
1759
+ * it stands and the frame of the point's input event when `frame` is -1. Answers a pick that the
1760
+ * GPU pass cannot draw, and finds the texture coordinates of a pixel that it did pick.
1761
+ */
1762
+ private pickByRay;
1763
+ /**
1764
+ * Brings the scene's world output up to date before a query that runs before the runner's
1765
+ * first frame, as a bake in a sketch's setup does: the commands that the sketch queued apply,
1766
+ * and the transforms and instance batches update, as at the start of the frame that the
1767
+ * runner would record next. The query then finds everything that the sketch has built so
1768
+ * far. After the first frame the runner keeps the world current, and this costs a compare.
1769
+ *
1770
+ * A settle with no new command since the last one is skipped: a bake casts many batches of
1771
+ * rays, and only the objects that setup added since the last settle matter. Moves that setup
1772
+ * makes after the first query count from the first frame, as moves in a frame count from the
1773
+ * next.
1774
+ */
1775
+ private settleWorld;
1776
+ /**
1777
+ * Casts a ray from `origin` along `direction`, and writes its closest hit into `hit`. Returns
1778
+ * true on a hit. On a miss it sets `hit.object` to null and leaves the other fields as they
1779
+ * were. The direction needs no unit length. The ray tests the triangles of objects and
1780
+ * instance rows on the layers of `options.layers`, as their materials draw them: front faces,
1781
+ * or both faces for a double-sided material. Queries see the scene as the last frame's update
1782
+ * left it, so a move, a new object or a destroy in this frame counts from the next frame, or
1783
+ * from `onLateUpdate`. A query before the first frame, as a bake in a sketch's setup, first
1784
+ * applies the changes queued so far and updates them, so it sees what the setup has built.
1785
+ * Create `hit` and `options` once and pass them each time.
1786
+ */
1787
+ raycast(origin: Vec3Like, direction: Vec3Like, options: RaycastOptions | undefined, hit: RaycastHit): boolean;
1788
+ /**
1789
+ * True when a ray from `origin` along `direction` hits anything on the layers of
1790
+ * `options.layers`. It stops at the first hit it finds, so it is faster than `raycast`: use it
1791
+ * for line-of-sight checks.
1792
+ */
1793
+ raycastAny(origin: Vec3Like, direction: Vec3Like, options?: RaycastOptions): boolean;
1794
+ /**
1795
+ * Casts a ray as `raycast` does, writes every hit into `hits` nearest first, one hit for each
1796
+ * triangle that the ray crosses, and returns how many. It fills the first entries of `hits`,
1797
+ * adds hit objects when the array is too short, and leaves the entries after the hits as they
1798
+ * were.
1799
+ */
1800
+ raycastAll(origin: Vec3Like, direction: Vec3Like, options: RaycastOptions | undefined, hits: RaycastHit[]): number;
1801
+ /**
1802
+ * Casts many rays at once on the job workers, and writes each one's closest hit into `out`.
1803
+ * `rays` holds six numbers per ray: its origin, then its direction. Returns how many rays hit
1804
+ * something. A miss writes -1 as its distance.
1805
+ */
1806
+ raycastBatch(rays: ArrayLike<number>, options: RaycastOptions | undefined, out: RaycastBatchHits): number;
1807
+ /**
1808
+ * Finds the objects and instance rows on the layers of `options.layers` that have a triangle
1809
+ * within `radius` meters of `center`, writes them into `out`, and returns how many. It fills
1810
+ * `out` as `raycastAll` fills its hits, in no set order.
1811
+ */
1812
+ overlapSphere(center: Vec3Like, radius: number, options: QueryOptions | undefined, out: OverlapHit[]): number;
1813
+ /**
1814
+ * Finds the objects and instance rows on the layers of `options.layers` that have a triangle
1815
+ * inside the box from `min` to `max` or crossing it, as `overlapSphere` does. The box's sides
1816
+ * lie along the world's axes.
1817
+ */
1818
+ overlapBox(min: Vec3Like, max: Vec3Like, options: QueryOptions | undefined, out: OverlapHit[]): number;
1819
+ /**
1820
+ * Builds every GPU pipeline that the scene needs as it stands, and resolves once they are all
1821
+ * built. Hidden objects count too. After the first frame, an object whose pipeline is still
1822
+ * building draws nothing, so create a loading stage's objects hidden, warm up, then show them.
1823
+ * The first frame waits for its pipelines anyway. In the setup, a warm-up draws that frame once
1824
+ * they are built, before the setup goes on.
1825
+ */
1826
+ warmUp(): Promise<void>;
1827
+ }