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