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