@null3d/engine 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1332) hide show
  1. package/LICENSE-APACHE +176 -0
  2. package/LICENSE-MIT +21 -0
  3. package/THIRD-PARTY-NOTICES.txt +638 -0
  4. package/dist/wasm/single/null3d.js +3959 -0
  5. package/dist/wasm/single/null3d_bg.wasm +0 -0
  6. package/dist/wasm/threaded/null3d.js +3975 -0
  7. package/dist/wasm/threaded/null3d_bg.wasm +0 -0
  8. package/docs/api/animation.md +536 -0
  9. package/docs/api/assets.md +384 -0
  10. package/docs/api/cameras.md +159 -0
  11. package/docs/api/controls.md +317 -0
  12. package/docs/api/debug.md +445 -0
  13. package/docs/api/engine.md +248 -0
  14. package/docs/api/feature-draws.md +172 -0
  15. package/docs/api/feature-effects.md +137 -0
  16. package/docs/api/feature-instances.md +154 -0
  17. package/docs/api/features.md +324 -0
  18. package/docs/api/geometry.md +326 -0
  19. package/docs/api/grass.md +114 -0
  20. package/docs/api/impostors.md +163 -0
  21. package/docs/api/input.md +245 -0
  22. package/docs/api/lights.md +290 -0
  23. package/docs/api/lines.md +180 -0
  24. package/docs/api/materials.md +876 -0
  25. package/docs/api/math.md +130 -0
  26. package/docs/api/objects.md +155 -0
  27. package/docs/api/page.md +97 -0
  28. package/docs/api/particles.md +217 -0
  29. package/docs/api/points.md +152 -0
  30. package/docs/api/post.md +495 -0
  31. package/docs/api/quality.md +195 -0
  32. package/docs/api/raycast.md +288 -0
  33. package/docs/api/reference/animation.md +158 -0
  34. package/docs/api/reference/assets.md +335 -0
  35. package/docs/api/reference/cameras.md +135 -0
  36. package/docs/api/reference/controls.md +411 -0
  37. package/docs/api/reference/debug.md +571 -0
  38. package/docs/api/reference/engine.md +635 -0
  39. package/docs/api/reference/feature-draws.md +94 -0
  40. package/docs/api/reference/feature-effects.md +32 -0
  41. package/docs/api/reference/feature-instances.md +63 -0
  42. package/docs/api/reference/features.md +361 -0
  43. package/docs/api/reference/geometry.md +777 -0
  44. package/docs/api/reference/grass.md +131 -0
  45. package/docs/api/reference/impostors.md +277 -0
  46. package/docs/api/reference/input.md +121 -0
  47. package/docs/api/reference/lights.md +257 -0
  48. package/docs/api/reference/lines.md +84 -0
  49. package/docs/api/reference/materials.md +375 -0
  50. package/docs/api/reference/math.md +229 -0
  51. package/docs/api/reference/objects.md +103 -0
  52. package/docs/api/reference/particles.md +336 -0
  53. package/docs/api/reference/points.md +57 -0
  54. package/docs/api/reference/post.md +244 -0
  55. package/docs/api/reference/quality.md +209 -0
  56. package/docs/api/reference/raycast.md +94 -0
  57. package/docs/api/reference/render.md +238 -0
  58. package/docs/api/reference/scene.md +540 -0
  59. package/docs/api/reference/sketch.md +121 -0
  60. package/docs/api/reference/splats.md +214 -0
  61. package/docs/api/reference/sprites.md +71 -0
  62. package/docs/api/reference/tasks.md +92 -0
  63. package/docs/api/reference/terrain.md +160 -0
  64. package/docs/api/reference/textures.md +153 -0
  65. package/docs/api/reference/three-compat.md +60 -0
  66. package/docs/api/reference/time.md +25 -0
  67. package/docs/api/reference/ui.md +52 -0
  68. package/docs/api/reference/vertex-draws.md +55 -0
  69. package/docs/api/reference/water.md +359 -0
  70. package/docs/api/reference/wind.md +106 -0
  71. package/docs/api/render.md +497 -0
  72. package/docs/api/scene.md +595 -0
  73. package/docs/api/sketch.md +170 -0
  74. package/docs/api/splats.md +257 -0
  75. package/docs/api/sprites.md +185 -0
  76. package/docs/api/tasks.md +106 -0
  77. package/docs/api/terrain.md +130 -0
  78. package/docs/api/textures.md +272 -0
  79. package/docs/api/three-compat.md +102 -0
  80. package/docs/api/time.md +134 -0
  81. package/docs/api/ui.md +146 -0
  82. package/docs/api/vertex-draws.md +171 -0
  83. package/docs/api/water.md +303 -0
  84. package/docs/api/wind.md +375 -0
  85. package/docs/cli/null3d.md +528 -0
  86. package/docs/concepts/architecture.md +174 -0
  87. package/docs/concepts/assets.md +145 -0
  88. package/docs/concepts/backends.md +195 -0
  89. package/docs/concepts/color-management.md +145 -0
  90. package/docs/concepts/culling.md +227 -0
  91. package/docs/concepts/handles.md +93 -0
  92. package/docs/concepts/instances.md +285 -0
  93. package/docs/concepts/large-worlds.md +126 -0
  94. package/docs/concepts/lighting.md +592 -0
  95. package/docs/concepts/lod.md +254 -0
  96. package/docs/concepts/materials.md +128 -0
  97. package/docs/concepts/particle-buffer.md +201 -0
  98. package/docs/concepts/post-processing.md +442 -0
  99. package/docs/concepts/quality-preset-tables.md +91 -0
  100. package/docs/concepts/quality-presets.md +312 -0
  101. package/docs/concepts/render-graph.md +217 -0
  102. package/docs/concepts/render-layers.md +125 -0
  103. package/docs/concepts/shadows.md +466 -0
  104. package/docs/concepts/static-dynamic.md +113 -0
  105. package/docs/cookbook/index.md +664 -0
  106. package/docs/data/threejs-mapping.json +2118 -0
  107. package/docs/errors/E1101.md +23 -0
  108. package/docs/errors/E1102.md +23 -0
  109. package/docs/errors/E1103.md +23 -0
  110. package/docs/errors/E1104.md +23 -0
  111. package/docs/errors/E1105.md +23 -0
  112. package/docs/errors/E1106.md +23 -0
  113. package/docs/errors/E1107.md +23 -0
  114. package/docs/errors/E1108.md +23 -0
  115. package/docs/errors/E1109.md +23 -0
  116. package/docs/errors/E1110.md +23 -0
  117. package/docs/errors/E1111.md +23 -0
  118. package/docs/errors/E1112.md +23 -0
  119. package/docs/errors/E1203.md +23 -0
  120. package/docs/errors/E1204.md +23 -0
  121. package/docs/errors/E1205.md +23 -0
  122. package/docs/errors/E1206.md +23 -0
  123. package/docs/errors/E1207.md +23 -0
  124. package/docs/errors/E1208.md +23 -0
  125. package/docs/errors/E1209.md +23 -0
  126. package/docs/errors/E1213.md +23 -0
  127. package/docs/errors/E1214.md +23 -0
  128. package/docs/errors/E1215.md +23 -0
  129. package/docs/errors/E1216.md +23 -0
  130. package/docs/errors/E1217.md +23 -0
  131. package/docs/errors/E1218.md +23 -0
  132. package/docs/errors/E1219.md +23 -0
  133. package/docs/errors/E1220.md +23 -0
  134. package/docs/errors/E1221.md +23 -0
  135. package/docs/errors/E1222.md +23 -0
  136. package/docs/errors/E1223.md +23 -0
  137. package/docs/errors/E1224.md +23 -0
  138. package/docs/errors/E1225.md +23 -0
  139. package/docs/errors/E1301.md +23 -0
  140. package/docs/errors/E1302.md +23 -0
  141. package/docs/errors/E1303.md +23 -0
  142. package/docs/errors/E1304.md +23 -0
  143. package/docs/errors/E1305.md +23 -0
  144. package/docs/errors/E1306.md +23 -0
  145. package/docs/errors/E1401.md +23 -0
  146. package/docs/errors/E1402.md +23 -0
  147. package/docs/errors/E1403.md +23 -0
  148. package/docs/errors/E1404.md +23 -0
  149. package/docs/errors/E1405.md +23 -0
  150. package/docs/errors/E1406.md +23 -0
  151. package/docs/errors/E1407.md +23 -0
  152. package/docs/errors/E1408.md +23 -0
  153. package/docs/errors/E1409.md +23 -0
  154. package/docs/errors/E1410.md +23 -0
  155. package/docs/errors/E1411.md +23 -0
  156. package/docs/errors/E1412.md +23 -0
  157. package/docs/errors/E1413.md +23 -0
  158. package/docs/errors/E1414.md +23 -0
  159. package/docs/errors/E1415.md +23 -0
  160. package/docs/errors/E1416.md +23 -0
  161. package/docs/errors/E1417.md +23 -0
  162. package/docs/errors/E1418.md +23 -0
  163. package/docs/errors/E1419.md +23 -0
  164. package/docs/errors/E1420.md +23 -0
  165. package/docs/errors/E1421.md +23 -0
  166. package/docs/errors/E1422.md +23 -0
  167. package/docs/errors/E1423.md +23 -0
  168. package/docs/errors/E1424.md +23 -0
  169. package/docs/errors/E1425.md +23 -0
  170. package/docs/errors/E1426.md +23 -0
  171. package/docs/errors/E1430.md +23 -0
  172. package/docs/errors/E1431.md +23 -0
  173. package/docs/errors/E1432.md +23 -0
  174. package/docs/errors/E1433.md +23 -0
  175. package/docs/errors/E1434.md +23 -0
  176. package/docs/errors/E1435.md +23 -0
  177. package/docs/errors/E1436.md +23 -0
  178. package/docs/errors/E1437.md +23 -0
  179. package/docs/errors/E1501.md +23 -0
  180. package/docs/errors/E1502.md +23 -0
  181. package/docs/errors/E1503.md +23 -0
  182. package/docs/errors/E1504.md +23 -0
  183. package/docs/errors/E1505.md +23 -0
  184. package/docs/errors/E1506.md +23 -0
  185. package/docs/errors/index.md +92 -0
  186. package/docs/getting-started/cdn.md +219 -0
  187. package/docs/getting-started/first-scene.md +129 -0
  188. package/docs/getting-started/hosting.md +359 -0
  189. package/docs/getting-started/install.md +111 -0
  190. package/docs/getting-started/network-use.md +88 -0
  191. package/docs/getting-started/project-structure.md +69 -0
  192. package/docs/getting-started/third-party-notices.md +92 -0
  193. package/docs/guides/accessibility.md +96 -0
  194. package/docs/guides/add-ons.md +159 -0
  195. package/docs/guides/agents.md +66 -0
  196. package/docs/guides/assets-pipeline.md +504 -0
  197. package/docs/guides/audio.md +163 -0
  198. package/docs/guides/baked-light-data.md +176 -0
  199. package/docs/guides/car-paint.md +121 -0
  200. package/docs/guides/content-pages.md +234 -0
  201. package/docs/guides/custom-passes.md +585 -0
  202. package/docs/guides/custom-shaders.md +290 -0
  203. package/docs/guides/debugging.md +162 -0
  204. package/docs/guides/deploying.md +15 -0
  205. package/docs/guides/deterministic-simulation.md +226 -0
  206. package/docs/guides/first-use-shaders.md +57 -0
  207. package/docs/guides/lens-kit.md +134 -0
  208. package/docs/guides/loading-screens.md +218 -0
  209. package/docs/guides/multiple-views.md +83 -0
  210. package/docs/guides/performance.md +402 -0
  211. package/docs/guides/phones.md +127 -0
  212. package/docs/guides/physics.md +202 -0
  213. package/docs/guides/screens.md +123 -0
  214. package/docs/guides/testing.md +227 -0
  215. package/docs/guides/ui-overlays.md +182 -0
  216. package/docs/guides/video-textures.md +110 -0
  217. package/docs/index.md +45 -0
  218. package/docs/pages.md +239 -0
  219. package/docs/porting/react-three-fiber.md +15 -0
  220. package/docs/porting/threejs-loop-and-threads.md +15 -0
  221. package/docs/porting/threejs-mapping.md +295 -0
  222. package/docs/porting/threejs-materials.md +15 -0
  223. package/docs/porting/threejs-overview.md +15 -0
  224. package/docs/porting/threejs-postprocessing.md +256 -0
  225. package/docs/porting/threejs-shaders.md +15 -0
  226. package/docs/porting/threejs-unsupported.md +15 -0
  227. package/docs/porting/verification.md +15 -0
  228. package/docs/shaders/builtins.md +129 -0
  229. package/docs/shaders/library.md +1350 -0
  230. package/docs/shaders/surface-functions.md +625 -0
  231. package/docs/shaders/wgsl-rules.md +126 -0
  232. package/levels/pieces.d.ts +178 -0
  233. package/levels/pieces.js +759 -0
  234. package/levels/planner.d.ts +126 -0
  235. package/levels/planner.js +682 -0
  236. package/lib/debug/debug.d.ts +178 -0
  237. package/lib/debug/debug.js +4 -0
  238. package/lib/debug/draw.d.ts +137 -0
  239. package/lib/debug/draw.js +672 -0
  240. package/lib/debug/frame-target.d.ts +11 -0
  241. package/lib/debug/frame-target.js +31 -0
  242. package/lib/debug/overlay-look.d.ts +162 -0
  243. package/lib/debug/overlay-look.js +1365 -0
  244. package/lib/debug/overlay.d.ts +68 -0
  245. package/lib/debug/overlay.js +195 -0
  246. package/lib/debug/page-meters.d.ts +139 -0
  247. package/lib/debug/page-meters.js +267 -0
  248. package/lib/debug/sketch-debug.d.ts +41 -0
  249. package/lib/debug/sketch-debug.js +86 -0
  250. package/lib/debug/stats-options.d.ts +15 -0
  251. package/lib/debug/stats-options.js +3 -0
  252. package/lib/debug/stats-panel.d.ts +94 -0
  253. package/lib/debug/stats-panel.js +123 -0
  254. package/lib/debug/stats-text.d.ts +169 -0
  255. package/lib/debug/stats-text.js +126 -0
  256. package/lib/debug/stats.d.ts +196 -0
  257. package/lib/debug/stats.js +252 -0
  258. package/lib/debug/view-names.d.ts +15 -0
  259. package/lib/debug/view-names.js +22 -0
  260. package/lib/errors/checks.d.ts +24 -0
  261. package/lib/errors/checks.js +38 -0
  262. package/lib/errors/codes.d.ts +15 -0
  263. package/lib/errors/codes.js +483 -0
  264. package/lib/errors/core-failure.d.ts +19 -0
  265. package/lib/errors/core-failure.js +127 -0
  266. package/lib/errors/engine-error-core.d.ts +21 -0
  267. package/lib/errors/engine-error-core.js +39 -0
  268. package/lib/errors/engine-error.d.ts +38 -0
  269. package/lib/errors/engine-error.js +117 -0
  270. package/lib/errors/fixes.d.ts +88 -0
  271. package/lib/errors/fixes.js +85 -0
  272. package/lib/errors/message.d.ts +4 -0
  273. package/lib/errors/message.js +10 -0
  274. package/lib/generated/core.d.ts +657 -0
  275. package/lib/generated/core.js +659 -0
  276. package/lib/generated/gpu.d.ts +412 -0
  277. package/lib/generated/gpu.js +414 -0
  278. package/lib/generated/shader-features.d.ts +8 -0
  279. package/lib/generated/shader-permutations.d.ts +6 -0
  280. package/lib/generated/shader-permutations.js +9 -0
  281. package/lib/generated/shaders-environment-glsl.d.ts +11 -0
  282. package/lib/generated/shaders-environment-wgsl.d.ts +11 -0
  283. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
  284. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage.d.ts +3 -0
  285. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
  286. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement.d.ts +3 -0
  287. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
  288. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash.d.ts +3 -0
  289. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  290. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
  291. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
  292. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph.d.ts +3 -0
  293. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
  294. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values.d.ts +3 -0
  295. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
  296. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning.d.ts +3 -0
  297. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
  298. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission.d.ts +3 -0
  299. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
  300. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted.d.ts +3 -0
  301. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-half.d.ts +3 -0
  302. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen.d.ts +3 -0
  303. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement-half.d.ts +3 -0
  304. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement.d.ts +3 -0
  305. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
  306. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade.d.ts +3 -0
  307. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph-half.d.ts +3 -0
  308. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph.d.ts +3 -0
  309. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values-half.d.ts +3 -0
  310. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values.d.ts +3 -0
  311. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning-half.d.ts +3 -0
  312. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning.d.ts +3 -0
  313. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency-half.d.ts +3 -0
  314. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency.d.ts +3 -0
  315. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission-half.d.ts +3 -0
  316. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission.d.ts +3 -0
  317. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-half.d.ts +3 -0
  318. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage.d.ts +3 -0
  319. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash-half.d.ts +3 -0
  320. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash.d.ts +3 -0
  321. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph-half.d.ts +3 -0
  322. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph.d.ts +3 -0
  323. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values-half.d.ts +3 -0
  324. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values.d.ts +3 -0
  325. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning-half.d.ts +3 -0
  326. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning.d.ts +3 -0
  327. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency-half.d.ts +3 -0
  328. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency.d.ts +3 -0
  329. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission-half.d.ts +3 -0
  330. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission.d.ts +3 -0
  331. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted-half.d.ts +3 -0
  332. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted.d.ts +3 -0
  333. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-half.d.ts +3 -0
  334. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement.d.ts +3 -0
  335. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph-half.d.ts +3 -0
  336. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph.d.ts +3 -0
  337. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values-half.d.ts +3 -0
  338. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values.d.ts +3 -0
  339. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning-half.d.ts +3 -0
  340. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning.d.ts +3 -0
  341. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency-half.d.ts +3 -0
  342. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency.d.ts +3 -0
  343. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-half.d.ts +3 -0
  344. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash.d.ts +3 -0
  345. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
  346. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values.d.ts +3 -0
  347. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
  348. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency.d.ts +3 -0
  349. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-half.d.ts +3 -0
  350. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade.d.ts +3 -0
  351. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning-half.d.ts +3 -0
  352. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning.d.ts +3 -0
  353. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency-half.d.ts +3 -0
  354. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency.d.ts +3 -0
  355. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission-half.d.ts +3 -0
  356. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission.d.ts +3 -0
  357. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted-half.d.ts +3 -0
  358. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted.d.ts +3 -0
  359. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-half.d.ts +3 -0
  360. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph.d.ts +3 -0
  361. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency-half.d.ts +3 -0
  362. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency.d.ts +3 -0
  363. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted-half.d.ts +3 -0
  364. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted.d.ts +3 -0
  365. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-half.d.ts +3 -0
  366. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values.d.ts +3 -0
  367. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency-half.d.ts +3 -0
  368. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency.d.ts +3 -0
  369. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission-half.d.ts +3 -0
  370. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission.d.ts +3 -0
  371. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted-half.d.ts +3 -0
  372. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted.d.ts +3 -0
  373. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-half.d.ts +3 -0
  374. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning.d.ts +3 -0
  375. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency-half.d.ts +3 -0
  376. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency.d.ts +3 -0
  377. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission-half.d.ts +3 -0
  378. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission.d.ts +3 -0
  379. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted-half.d.ts +3 -0
  380. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted.d.ts +3 -0
  381. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-half.d.ts +3 -0
  382. package/lib/generated/shaders-glsl-combos-area-lights-and-bump.d.ts +3 -0
  383. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement-half.d.ts +3 -0
  384. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement.d.ts +3 -0
  385. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade-half.d.ts +3 -0
  386. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade.d.ts +3 -0
  387. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph-half.d.ts +3 -0
  388. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph.d.ts +3 -0
  389. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values-half.d.ts +3 -0
  390. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values.d.ts +3 -0
  391. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning-half.d.ts +3 -0
  392. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning.d.ts +3 -0
  393. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission-half.d.ts +3 -0
  394. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission.d.ts +3 -0
  395. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-half.d.ts +3 -0
  396. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage.d.ts +3 -0
  397. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash-half.d.ts +3 -0
  398. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash.d.ts +3 -0
  399. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph-half.d.ts +3 -0
  400. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph.d.ts +3 -0
  401. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values-half.d.ts +3 -0
  402. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values.d.ts +3 -0
  403. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning-half.d.ts +3 -0
  404. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning.d.ts +3 -0
  405. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission-half.d.ts +3 -0
  406. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission.d.ts +3 -0
  407. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted-half.d.ts +3 -0
  408. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted.d.ts +3 -0
  409. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-half.d.ts +3 -0
  410. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement.d.ts +3 -0
  411. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph-half.d.ts +3 -0
  412. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph.d.ts +3 -0
  413. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values-half.d.ts +3 -0
  414. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values.d.ts +3 -0
  415. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning-half.d.ts +3 -0
  416. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning.d.ts +3 -0
  417. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-half.d.ts +3 -0
  418. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash.d.ts +3 -0
  419. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values-half.d.ts +3 -0
  420. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values.d.ts +3 -0
  421. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  422. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade.d.ts +3 -0
  423. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning-half.d.ts +3 -0
  424. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning.d.ts +3 -0
  425. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission-half.d.ts +3 -0
  426. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission.d.ts +3 -0
  427. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted-half.d.ts +3 -0
  428. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted.d.ts +3 -0
  429. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-half.d.ts +3 -0
  430. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph.d.ts +3 -0
  431. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted-half.d.ts +3 -0
  432. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted.d.ts +3 -0
  433. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-half.d.ts +3 -0
  434. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values.d.ts +3 -0
  435. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission-half.d.ts +3 -0
  436. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission.d.ts +3 -0
  437. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted-half.d.ts +3 -0
  438. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted.d.ts +3 -0
  439. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-half.d.ts +3 -0
  440. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning.d.ts +3 -0
  441. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission-half.d.ts +3 -0
  442. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission.d.ts +3 -0
  443. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted-half.d.ts +3 -0
  444. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted.d.ts +3 -0
  445. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
  446. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
  447. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph-half.d.ts +3 -0
  448. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph.d.ts +3 -0
  449. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values-half.d.ts +3 -0
  450. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values.d.ts +3 -0
  451. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning-half.d.ts +3 -0
  452. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning.d.ts +3 -0
  453. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency-half.d.ts +3 -0
  454. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency.d.ts +3 -0
  455. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission-half.d.ts +3 -0
  456. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission.d.ts +3 -0
  457. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-half.d.ts +3 -0
  458. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement.d.ts +3 -0
  459. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values-half.d.ts +3 -0
  460. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values.d.ts +3 -0
  461. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency-half.d.ts +3 -0
  462. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency.d.ts +3 -0
  463. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-half.d.ts +3 -0
  464. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade.d.ts +3 -0
  465. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning-half.d.ts +3 -0
  466. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning.d.ts +3 -0
  467. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency-half.d.ts +3 -0
  468. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency.d.ts +3 -0
  469. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission-half.d.ts +3 -0
  470. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission.d.ts +3 -0
  471. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-half.d.ts +3 -0
  472. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph.d.ts +3 -0
  473. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency-half.d.ts +3 -0
  474. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency.d.ts +3 -0
  475. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-half.d.ts +3 -0
  476. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values.d.ts +3 -0
  477. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency-half.d.ts +3 -0
  478. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency.d.ts +3 -0
  479. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission-half.d.ts +3 -0
  480. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission.d.ts +3 -0
  481. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-half.d.ts +3 -0
  482. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning.d.ts +3 -0
  483. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency-half.d.ts +3 -0
  484. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency.d.ts +3 -0
  485. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission-half.d.ts +3 -0
  486. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission.d.ts +3 -0
  487. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-half.d.ts +3 -0
  488. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage.d.ts +3 -0
  489. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph-half.d.ts +3 -0
  490. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph.d.ts +3 -0
  491. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values-half.d.ts +3 -0
  492. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values.d.ts +3 -0
  493. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning-half.d.ts +3 -0
  494. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning.d.ts +3 -0
  495. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency-half.d.ts +3 -0
  496. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency.d.ts +3 -0
  497. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-half.d.ts +3 -0
  498. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash.d.ts +3 -0
  499. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph-half.d.ts +3 -0
  500. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph.d.ts +3 -0
  501. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values-half.d.ts +3 -0
  502. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values.d.ts +3 -0
  503. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning-half.d.ts +3 -0
  504. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning.d.ts +3 -0
  505. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency-half.d.ts +3 -0
  506. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency.d.ts +3 -0
  507. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-half.d.ts +3 -0
  508. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment.d.ts +3 -0
  509. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning-half.d.ts +3 -0
  510. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning.d.ts +3 -0
  511. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency-half.d.ts +3 -0
  512. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency.d.ts +3 -0
  513. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission-half.d.ts +3 -0
  514. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission.d.ts +3 -0
  515. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted-half.d.ts +3 -0
  516. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted.d.ts +3 -0
  517. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-half.d.ts +3 -0
  518. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph.d.ts +3 -0
  519. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency-half.d.ts +3 -0
  520. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency.d.ts +3 -0
  521. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted-half.d.ts +3 -0
  522. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted.d.ts +3 -0
  523. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-half.d.ts +3 -0
  524. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values.d.ts +3 -0
  525. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency-half.d.ts +3 -0
  526. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency.d.ts +3 -0
  527. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission-half.d.ts +3 -0
  528. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission.d.ts +3 -0
  529. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted-half.d.ts +3 -0
  530. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted.d.ts +3 -0
  531. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-half.d.ts +3 -0
  532. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning.d.ts +3 -0
  533. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency-half.d.ts +3 -0
  534. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency.d.ts +3 -0
  535. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission-half.d.ts +3 -0
  536. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission.d.ts +3 -0
  537. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted-half.d.ts +3 -0
  538. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted.d.ts +3 -0
  539. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-half.d.ts +3 -0
  540. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement.d.ts +3 -0
  541. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning-half.d.ts +3 -0
  542. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning.d.ts +3 -0
  543. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency-half.d.ts +3 -0
  544. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency.d.ts +3 -0
  545. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-half.d.ts +3 -0
  546. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph.d.ts +3 -0
  547. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency-half.d.ts +3 -0
  548. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency.d.ts +3 -0
  549. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-half.d.ts +3 -0
  550. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values.d.ts +3 -0
  551. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency-half.d.ts +3 -0
  552. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency.d.ts +3 -0
  553. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-half.d.ts +3 -0
  554. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning.d.ts +3 -0
  555. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency-half.d.ts +3 -0
  556. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency.d.ts +3 -0
  557. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-half.d.ts +3 -0
  558. package/lib/generated/shaders-glsl-combos-area-lights-and-hash.d.ts +3 -0
  559. package/lib/generated/shaders-glsl-combos-area-lights-and-lines.d.ts +3 -0
  560. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency-half.d.ts +3 -0
  561. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency.d.ts +3 -0
  562. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-half.d.ts +3 -0
  563. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values.d.ts +3 -0
  564. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency-half.d.ts +3 -0
  565. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency.d.ts +3 -0
  566. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
  567. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade.d.ts +3 -0
  568. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning-half.d.ts +3 -0
  569. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning.d.ts +3 -0
  570. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency-half.d.ts +3 -0
  571. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency.d.ts +3 -0
  572. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-half.d.ts +3 -0
  573. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph.d.ts +3 -0
  574. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency-half.d.ts +3 -0
  575. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency.d.ts +3 -0
  576. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-half.d.ts +3 -0
  577. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values.d.ts +3 -0
  578. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency-half.d.ts +3 -0
  579. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency.d.ts +3 -0
  580. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-half.d.ts +3 -0
  581. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning.d.ts +3 -0
  582. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency-half.d.ts +3 -0
  583. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency.d.ts +3 -0
  584. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-half.d.ts +3 -0
  585. package/lib/generated/shaders-glsl-combos-area-lights-and-moment.d.ts +3 -0
  586. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency-half.d.ts +3 -0
  587. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency.d.ts +3 -0
  588. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission-half.d.ts +3 -0
  589. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission.d.ts +3 -0
  590. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted-half.d.ts +3 -0
  591. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted.d.ts +3 -0
  592. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-half.d.ts +3 -0
  593. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning.d.ts +3 -0
  594. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency-half.d.ts +3 -0
  595. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency.d.ts +3 -0
  596. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission-half.d.ts +3 -0
  597. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission.d.ts +3 -0
  598. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted-half.d.ts +3 -0
  599. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted.d.ts +3 -0
  600. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-half.d.ts +3 -0
  601. package/lib/generated/shaders-glsl-combos-area-lights-and-morph.d.ts +3 -0
  602. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency-half.d.ts +3 -0
  603. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency.d.ts +3 -0
  604. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted-half.d.ts +3 -0
  605. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted.d.ts +3 -0
  606. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-half.d.ts +3 -0
  607. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values.d.ts +3 -0
  608. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency-half.d.ts +3 -0
  609. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency.d.ts +3 -0
  610. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission-half.d.ts +3 -0
  611. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission.d.ts +3 -0
  612. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted-half.d.ts +3 -0
  613. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted.d.ts +3 -0
  614. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-half.d.ts +3 -0
  615. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning.d.ts +3 -0
  616. package/lib/generated/shaders-glsl-combos-area-lights-and-translucency-half.d.ts +3 -0
  617. package/lib/generated/shaders-glsl-combos-area-lights-and-translucency.d.ts +3 -0
  618. package/lib/generated/shaders-glsl-combos-area-lights-and-transmission-half.d.ts +3 -0
  619. package/lib/generated/shaders-glsl-combos-area-lights-and-transmission.d.ts +3 -0
  620. package/lib/generated/shaders-glsl-combos-area-lights-and-weighted-half.d.ts +3 -0
  621. package/lib/generated/shaders-glsl-combos-area-lights-and-weighted.d.ts +3 -0
  622. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
  623. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage.d.ts +3 -0
  624. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
  625. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement.d.ts +3 -0
  626. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
  627. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash.d.ts +3 -0
  628. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  629. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
  630. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
  631. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph.d.ts +3 -0
  632. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
  633. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values.d.ts +3 -0
  634. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
  635. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning.d.ts +3 -0
  636. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
  637. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission.d.ts +3 -0
  638. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
  639. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted.d.ts +3 -0
  640. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-half.d.ts +3 -0
  641. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen.d.ts +3 -0
  642. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement-half.d.ts +3 -0
  643. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement.d.ts +3 -0
  644. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
  645. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade.d.ts +3 -0
  646. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph-half.d.ts +3 -0
  647. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph.d.ts +3 -0
  648. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values-half.d.ts +3 -0
  649. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values.d.ts +3 -0
  650. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning-half.d.ts +3 -0
  651. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning.d.ts +3 -0
  652. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency-half.d.ts +3 -0
  653. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency.d.ts +3 -0
  654. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission-half.d.ts +3 -0
  655. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission.d.ts +3 -0
  656. package/lib/generated/shaders-glsl-combos-bump-and-coverage-half.d.ts +3 -0
  657. package/lib/generated/shaders-glsl-combos-bump-and-coverage.d.ts +3 -0
  658. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash-half.d.ts +3 -0
  659. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash.d.ts +3 -0
  660. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph-half.d.ts +3 -0
  661. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph.d.ts +3 -0
  662. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values-half.d.ts +3 -0
  663. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values.d.ts +3 -0
  664. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning-half.d.ts +3 -0
  665. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning.d.ts +3 -0
  666. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency-half.d.ts +3 -0
  667. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency.d.ts +3 -0
  668. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission-half.d.ts +3 -0
  669. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission.d.ts +3 -0
  670. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted-half.d.ts +3 -0
  671. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted.d.ts +3 -0
  672. package/lib/generated/shaders-glsl-combos-bump-and-displacement-half.d.ts +3 -0
  673. package/lib/generated/shaders-glsl-combos-bump-and-displacement.d.ts +3 -0
  674. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph-half.d.ts +3 -0
  675. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph.d.ts +3 -0
  676. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values-half.d.ts +3 -0
  677. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values.d.ts +3 -0
  678. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning-half.d.ts +3 -0
  679. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning.d.ts +3 -0
  680. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency-half.d.ts +3 -0
  681. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency.d.ts +3 -0
  682. package/lib/generated/shaders-glsl-combos-bump-and-hash-half.d.ts +3 -0
  683. package/lib/generated/shaders-glsl-combos-bump-and-hash.d.ts +3 -0
  684. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
  685. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values.d.ts +3 -0
  686. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
  687. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency.d.ts +3 -0
  688. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-half.d.ts +3 -0
  689. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade.d.ts +3 -0
  690. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning-half.d.ts +3 -0
  691. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning.d.ts +3 -0
  692. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency-half.d.ts +3 -0
  693. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency.d.ts +3 -0
  694. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission-half.d.ts +3 -0
  695. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission.d.ts +3 -0
  696. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted-half.d.ts +3 -0
  697. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted.d.ts +3 -0
  698. package/lib/generated/shaders-glsl-combos-bump-and-morph-half.d.ts +3 -0
  699. package/lib/generated/shaders-glsl-combos-bump-and-morph.d.ts +3 -0
  700. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency-half.d.ts +3 -0
  701. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency.d.ts +3 -0
  702. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted-half.d.ts +3 -0
  703. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted.d.ts +3 -0
  704. package/lib/generated/shaders-glsl-combos-bump-and-row-values-half.d.ts +3 -0
  705. package/lib/generated/shaders-glsl-combos-bump-and-row-values.d.ts +3 -0
  706. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency-half.d.ts +3 -0
  707. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency.d.ts +3 -0
  708. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission-half.d.ts +3 -0
  709. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission.d.ts +3 -0
  710. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted-half.d.ts +3 -0
  711. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted.d.ts +3 -0
  712. package/lib/generated/shaders-glsl-combos-bump-and-skinning-half.d.ts +3 -0
  713. package/lib/generated/shaders-glsl-combos-bump-and-skinning.d.ts +3 -0
  714. package/lib/generated/shaders-glsl-combos-bump-and-translucency-half.d.ts +3 -0
  715. package/lib/generated/shaders-glsl-combos-bump-and-translucency.d.ts +3 -0
  716. package/lib/generated/shaders-glsl-combos-bump-and-transmission-half.d.ts +3 -0
  717. package/lib/generated/shaders-glsl-combos-bump-and-transmission.d.ts +3 -0
  718. package/lib/generated/shaders-glsl-combos-bump-and-weighted-half.d.ts +3 -0
  719. package/lib/generated/shaders-glsl-combos-bump-and-weighted.d.ts +3 -0
  720. package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage-half.d.ts +3 -0
  721. package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage.d.ts +3 -0
  722. package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement-half.d.ts +3 -0
  723. package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement.d.ts +3 -0
  724. package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash-half.d.ts +3 -0
  725. package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash.d.ts +3 -0
  726. package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade-half.d.ts +3 -0
  727. package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade.d.ts +3 -0
  728. package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph-half.d.ts +3 -0
  729. package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph.d.ts +3 -0
  730. package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values-half.d.ts +3 -0
  731. package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values.d.ts +3 -0
  732. package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning-half.d.ts +3 -0
  733. package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning.d.ts +3 -0
  734. package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission-half.d.ts +3 -0
  735. package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission.d.ts +3 -0
  736. package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted-half.d.ts +3 -0
  737. package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted.d.ts +3 -0
  738. package/lib/generated/shaders-glsl-combos-coverage-half.d.ts +3 -0
  739. package/lib/generated/shaders-glsl-combos-coverage.d.ts +3 -0
  740. package/lib/generated/shaders-glsl-combos-cutout.d.ts +3 -0
  741. package/lib/generated/shaders-glsl-combos-decals-half.d.ts +3 -0
  742. package/lib/generated/shaders-glsl-combos-decals.d.ts +3 -0
  743. package/lib/generated/shaders-glsl-combos-displacement-half.d.ts +3 -0
  744. package/lib/generated/shaders-glsl-combos-displacement.d.ts +3 -0
  745. package/lib/generated/shaders-glsl-combos-hash-half.d.ts +3 -0
  746. package/lib/generated/shaders-glsl-combos-hash.d.ts +3 -0
  747. package/lib/generated/shaders-glsl-combos-lod-fade-half.d.ts +3 -0
  748. package/lib/generated/shaders-glsl-combos-lod-fade.d.ts +3 -0
  749. package/lib/generated/shaders-glsl-combos-moment-half.d.ts +3 -0
  750. package/lib/generated/shaders-glsl-combos-moment.d.ts +3 -0
  751. package/lib/generated/shaders-glsl-combos-morph-half.d.ts +3 -0
  752. package/lib/generated/shaders-glsl-combos-morph.d.ts +3 -0
  753. package/lib/generated/shaders-glsl-combos-motion.d.ts +3 -0
  754. package/lib/generated/shaders-glsl-combos-picking.d.ts +3 -0
  755. package/lib/generated/shaders-glsl-combos-probe-grid-half.d.ts +3 -0
  756. package/lib/generated/shaders-glsl-combos-probe-grid.d.ts +3 -0
  757. package/lib/generated/shaders-glsl-combos-row-values-half.d.ts +3 -0
  758. package/lib/generated/shaders-glsl-combos-row-values.d.ts +3 -0
  759. package/lib/generated/shaders-glsl-combos-skinning-half.d.ts +3 -0
  760. package/lib/generated/shaders-glsl-combos-skinning.d.ts +3 -0
  761. package/lib/generated/shaders-glsl-combos-sprites.d.ts +3 -0
  762. package/lib/generated/shaders-glsl-combos-subsurface-half.d.ts +3 -0
  763. package/lib/generated/shaders-glsl-combos-subsurface.d.ts +3 -0
  764. package/lib/generated/shaders-probe-glsl.d.ts +11 -0
  765. package/lib/generated/shaders-probe-wgsl.d.ts +11 -0
  766. package/lib/generated/shaders-sky-volume-env-glsl.d.ts +11 -0
  767. package/lib/generated/shaders-sky-volume-env-wgsl.d.ts +11 -0
  768. package/lib/generated/shaders-sky-volume-panorama-glsl.d.ts +11 -0
  769. package/lib/generated/shaders-sky-volume-panorama-wgsl.d.ts +11 -0
  770. package/lib/generated/shaders-wgsl-combos-area-lights-and-bump-half.d.ts +3 -0
  771. package/lib/generated/shaders-wgsl-combos-area-lights-and-bump.d.ts +3 -0
  772. package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
  773. package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
  774. package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage-half.d.ts +3 -0
  775. package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage.d.ts +3 -0
  776. package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement-half.d.ts +3 -0
  777. package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement.d.ts +3 -0
  778. package/lib/generated/shaders-wgsl-combos-area-lights-and-hash-half.d.ts +3 -0
  779. package/lib/generated/shaders-wgsl-combos-area-lights-and-hash.d.ts +3 -0
  780. package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index-half.d.ts +3 -0
  781. package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index.d.ts +3 -0
  782. package/lib/generated/shaders-wgsl-combos-area-lights-and-lines.d.ts +3 -0
  783. package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
  784. package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade.d.ts +3 -0
  785. package/lib/generated/shaders-wgsl-combos-area-lights-and-moment-half.d.ts +3 -0
  786. package/lib/generated/shaders-wgsl-combos-area-lights-and-moment.d.ts +3 -0
  787. package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values-half.d.ts +3 -0
  788. package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values.d.ts +3 -0
  789. package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning-half.d.ts +3 -0
  790. package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning.d.ts +3 -0
  791. package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency-half.d.ts +3 -0
  792. package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency.d.ts +3 -0
  793. package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission-half.d.ts +3 -0
  794. package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission.d.ts +3 -0
  795. package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted-half.d.ts +3 -0
  796. package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted.d.ts +3 -0
  797. package/lib/generated/shaders-wgsl-combos-bump-half.d.ts +3 -0
  798. package/lib/generated/shaders-wgsl-combos-bump.d.ts +3 -0
  799. package/lib/generated/shaders-wgsl-combos-coat-sheen-half.d.ts +3 -0
  800. package/lib/generated/shaders-wgsl-combos-coat-sheen.d.ts +3 -0
  801. package/lib/generated/shaders-wgsl-combos-coverage-half.d.ts +3 -0
  802. package/lib/generated/shaders-wgsl-combos-coverage.d.ts +3 -0
  803. package/lib/generated/shaders-wgsl-combos-cutout.d.ts +3 -0
  804. package/lib/generated/shaders-wgsl-combos-decals-half.d.ts +3 -0
  805. package/lib/generated/shaders-wgsl-combos-decals.d.ts +3 -0
  806. package/lib/generated/shaders-wgsl-combos-displacement-half.d.ts +3 -0
  807. package/lib/generated/shaders-wgsl-combos-displacement.d.ts +3 -0
  808. package/lib/generated/shaders-wgsl-combos-hash-half.d.ts +3 -0
  809. package/lib/generated/shaders-wgsl-combos-hash.d.ts +3 -0
  810. package/lib/generated/shaders-wgsl-combos-instance-index-half.d.ts +3 -0
  811. package/lib/generated/shaders-wgsl-combos-instance-index.d.ts +3 -0
  812. package/lib/generated/shaders-wgsl-combos-lod-fade-half.d.ts +3 -0
  813. package/lib/generated/shaders-wgsl-combos-lod-fade.d.ts +3 -0
  814. package/lib/generated/shaders-wgsl-combos-moment-half.d.ts +3 -0
  815. package/lib/generated/shaders-wgsl-combos-moment.d.ts +3 -0
  816. package/lib/generated/shaders-wgsl-combos-motion.d.ts +3 -0
  817. package/lib/generated/shaders-wgsl-combos-picking.d.ts +3 -0
  818. package/lib/generated/shaders-wgsl-combos-probe-grid-half.d.ts +3 -0
  819. package/lib/generated/shaders-wgsl-combos-probe-grid.d.ts +3 -0
  820. package/lib/generated/shaders-wgsl-combos-row-values-half.d.ts +3 -0
  821. package/lib/generated/shaders-wgsl-combos-row-values.d.ts +3 -0
  822. package/lib/generated/shaders-wgsl-combos-skinning-half.d.ts +3 -0
  823. package/lib/generated/shaders-wgsl-combos-skinning.d.ts +3 -0
  824. package/lib/generated/shaders-wgsl-combos-sprites.d.ts +3 -0
  825. package/lib/generated/shaders-wgsl-combos-subsurface-half.d.ts +3 -0
  826. package/lib/generated/shaders-wgsl-combos-subsurface.d.ts +3 -0
  827. package/lib/generated/shaders.d.ts +1146 -0
  828. package/lib/gpu/canvas-release.d.ts +20 -0
  829. package/lib/gpu/canvas-release.js +67 -0
  830. package/lib/gpu/completion.d.ts +35 -0
  831. package/lib/gpu/completion.js +256 -0
  832. package/lib/gpu/device-shaders.d.ts +69 -0
  833. package/lib/gpu/device-shaders.js +177 -0
  834. package/lib/gpu/effect-join.d.ts +83 -0
  835. package/lib/gpu/effect-join.js +134 -0
  836. package/lib/gpu/effect-joiner.d.ts +14 -0
  837. package/lib/gpu/effect-joiner.js +165 -0
  838. package/lib/gpu/environment-steps.d.ts +135 -0
  839. package/lib/gpu/environment-steps.js +210 -0
  840. package/lib/gpu/environment-words.d.ts +14 -0
  841. package/lib/gpu/environment-words.js +19 -0
  842. package/lib/gpu/environment.d.ts +4 -0
  843. package/lib/gpu/environment.js +8 -0
  844. package/lib/gpu/float-bits.d.ts +2 -0
  845. package/lib/gpu/float-bits.js +9 -0
  846. package/lib/gpu/line-vertices.d.ts +1 -0
  847. package/lib/gpu/line-vertices.js +14 -0
  848. package/lib/gpu/memory.d.ts +19 -0
  849. package/lib/gpu/memory.js +50 -0
  850. package/lib/gpu/particle-records.d.ts +1 -0
  851. package/lib/gpu/particle-records.js +15 -0
  852. package/lib/gpu/probe-steps.d.ts +22 -0
  853. package/lib/gpu/probe-steps.js +43 -0
  854. package/lib/gpu/readback.d.ts +32 -0
  855. package/lib/gpu/readback.js +163 -0
  856. package/lib/gpu/variants.d.ts +16 -0
  857. package/lib/gpu/variants.js +67 -0
  858. package/lib/gpu/vertex-format.d.ts +46 -0
  859. package/lib/gpu/vertex-format.js +111 -0
  860. package/lib/gpu/webgl2/backend.d.ts +653 -0
  861. package/lib/gpu/webgl2/backend.js +2746 -0
  862. package/lib/gpu/webgl2/call-timing.d.ts +34 -0
  863. package/lib/gpu/webgl2/call-timing.js +143 -0
  864. package/lib/gpu/webgl2/context.d.ts +31 -0
  865. package/lib/gpu/webgl2/context.js +111 -0
  866. package/lib/gpu/webgl2/depth.d.ts +25 -0
  867. package/lib/gpu/webgl2/depth.js +30 -0
  868. package/lib/gpu/webgl2/environment.d.ts +65 -0
  869. package/lib/gpu/webgl2/environment.js +572 -0
  870. package/lib/gpu/webgl2/gpu-timer.d.ts +25 -0
  871. package/lib/gpu/webgl2/gpu-timer.js +93 -0
  872. package/lib/gpu/webgl2/probes.d.ts +38 -0
  873. package/lib/gpu/webgl2/probes.js +117 -0
  874. package/lib/gpu/webgl2/programs.d.ts +220 -0
  875. package/lib/gpu/webgl2/programs.js +484 -0
  876. package/lib/gpu/webgpu/backend.d.ts +373 -0
  877. package/lib/gpu/webgpu/backend.js +1565 -0
  878. package/lib/gpu/webgpu/buffer-reads.d.ts +42 -0
  879. package/lib/gpu/webgpu/buffer-reads.js +95 -0
  880. package/lib/gpu/webgpu/culled-counts.d.ts +79 -0
  881. package/lib/gpu/webgpu/culled-counts.js +259 -0
  882. package/lib/gpu/webgpu/draw-path-probe.d.ts +37 -0
  883. package/lib/gpu/webgpu/draw-path-probe.js +187 -0
  884. package/lib/gpu/webgpu/environment.d.ts +36 -0
  885. package/lib/gpu/webgpu/environment.js +735 -0
  886. package/lib/gpu/webgpu/first-pass.d.ts +13 -0
  887. package/lib/gpu/webgpu/first-pass.js +61 -0
  888. package/lib/gpu/webgpu/gpu-timer.d.ts +67 -0
  889. package/lib/gpu/webgpu/gpu-timer.js +328 -0
  890. package/lib/gpu/webgpu/indirect-arguments.d.ts +42 -0
  891. package/lib/gpu/webgpu/indirect-arguments.js +156 -0
  892. package/lib/gpu/webgpu/pipelines.d.ts +251 -0
  893. package/lib/gpu/webgpu/pipelines.js +1999 -0
  894. package/lib/gpu/webgpu/probes.d.ts +27 -0
  895. package/lib/gpu/webgpu/probes.js +190 -0
  896. package/lib/gpu/webgpu/reusable.d.ts +74 -0
  897. package/lib/gpu/webgpu/reusable.js +212 -0
  898. package/lib/gpu/webgpu/staging.d.ts +79 -0
  899. package/lib/gpu/webgpu/staging.js +238 -0
  900. package/lib/gpu/webgpu/upload-routes.d.ts +55 -0
  901. package/lib/gpu/webgpu/upload-routes.js +128 -0
  902. package/lib/index.d.ts +119 -0
  903. package/lib/index.js +53 -0
  904. package/lib/math/color.d.ts +18 -0
  905. package/lib/math/color.js +71 -0
  906. package/lib/math/create-math.d.ts +101 -0
  907. package/lib/math/create-math.js +207 -0
  908. package/lib/math/hex.d.ts +8 -0
  909. package/lib/math/hex.js +38 -0
  910. package/lib/math/index.d.ts +2 -0
  911. package/lib/math/index.js +11 -0
  912. package/lib/math/mat4.d.ts +28 -0
  913. package/lib/math/mat4.js +212 -0
  914. package/lib/math/math.d.ts +16 -0
  915. package/lib/math/math.js +42 -0
  916. package/lib/math/namespaces/math.d.ts +7 -0
  917. package/lib/math/namespaces/math.js +14 -0
  918. package/lib/math/namespaces/quat.d.ts +20 -0
  919. package/lib/math/namespaces/quat.js +30 -0
  920. package/lib/math/namespaces/vec3.d.ts +4 -0
  921. package/lib/math/namespaces/vec3.js +8 -0
  922. package/lib/math/quat.d.ts +40 -0
  923. package/lib/math/quat.js +228 -0
  924. package/lib/math/random.d.ts +17 -0
  925. package/lib/math/random.js +58 -0
  926. package/lib/math/types.d.ts +43 -0
  927. package/lib/math/types.js +4 -0
  928. package/lib/math/vec3.d.ts +46 -0
  929. package/lib/math/vec3.js +190 -0
  930. package/lib/page/abortable.d.ts +2 -0
  931. package/lib/page/abortable.js +19 -0
  932. package/lib/page/browser-check.d.ts +8 -0
  933. package/lib/page/browser-check.js +23 -0
  934. package/lib/page/canvas-watch.d.ts +34 -0
  935. package/lib/page/canvas-watch.js +141 -0
  936. package/lib/page/capabilities.d.ts +201 -0
  937. package/lib/page/capabilities.js +395 -0
  938. package/lib/page/check-store.d.ts +42 -0
  939. package/lib/page/check-store.js +146 -0
  940. package/lib/page/display.d.ts +2 -0
  941. package/lib/page/display.js +25 -0
  942. package/lib/page/early-core.d.ts +1 -0
  943. package/lib/page/early-core.js +23 -0
  944. package/lib/page/engine.d.ts +865 -0
  945. package/lib/page/engine.js +2136 -0
  946. package/lib/page/frame-stats.d.ts +369 -0
  947. package/lib/page/frame-stats.js +374 -0
  948. package/lib/page/gamepads.d.ts +37 -0
  949. package/lib/page/gamepads.js +123 -0
  950. package/lib/page/held-input.d.ts +19 -0
  951. package/lib/page/held-input.js +54 -0
  952. package/lib/page/hold.d.ts +186 -0
  953. package/lib/page/hold.js +49 -0
  954. package/lib/page/input-ring.d.ts +13 -0
  955. package/lib/page/input-ring.js +25 -0
  956. package/lib/page/input.d.ts +6 -0
  957. package/lib/page/input.js +159 -0
  958. package/lib/page/isolation-check.d.ts +14 -0
  959. package/lib/page/isolation-check.js +21 -0
  960. package/lib/page/label-loop.d.ts +76 -0
  961. package/lib/page/label-loop.js +410 -0
  962. package/lib/page/labels.d.ts +56 -0
  963. package/lib/page/labels.js +102 -0
  964. package/lib/page/limits.d.ts +321 -0
  965. package/lib/page/limits.js +323 -0
  966. package/lib/page/loader.d.ts +78 -0
  967. package/lib/page/loader.js +149 -0
  968. package/lib/page/main-thread.d.ts +10 -0
  969. package/lib/page/main-thread.js +41 -0
  970. package/lib/page/memory-pool.d.ts +26 -0
  971. package/lib/page/memory-pool.js +69 -0
  972. package/lib/page/ownership.d.ts +65 -0
  973. package/lib/page/ownership.js +166 -0
  974. package/lib/page/permutation-recording.d.ts +26 -0
  975. package/lib/page/permutation-recording.js +32 -0
  976. package/lib/page/pointer-lock.d.ts +14 -0
  977. package/lib/page/pointer-lock.js +60 -0
  978. package/lib/page/preferences.d.ts +2 -0
  979. package/lib/page/preferences.js +11 -0
  980. package/lib/page/record-button.d.ts +5 -0
  981. package/lib/page/record-button.js +60 -0
  982. package/lib/page/start-marker.d.ts +44 -0
  983. package/lib/page/start-marker.js +116 -0
  984. package/lib/page/stats-switch.d.ts +16 -0
  985. package/lib/page/stats-switch.js +38 -0
  986. package/lib/page/stop-jobs.d.ts +37 -0
  987. package/lib/page/stop-jobs.js +87 -0
  988. package/lib/page/switches.d.ts +317 -0
  989. package/lib/page/switches.js +142 -0
  990. package/lib/page/videos.d.ts +70 -0
  991. package/lib/page/videos.js +244 -0
  992. package/lib/quality/budget.d.ts +14 -0
  993. package/lib/quality/budget.js +25 -0
  994. package/lib/quality/check.d.ts +98 -0
  995. package/lib/quality/check.js +70 -0
  996. package/lib/quality/chooser.d.ts +92 -0
  997. package/lib/quality/chooser.js +100 -0
  998. package/lib/quality/device-hints.d.ts +8 -0
  999. package/lib/quality/device-hints.js +18 -0
  1000. package/lib/quality/governor.d.ts +479 -0
  1001. package/lib/quality/governor.js +1063 -0
  1002. package/lib/quality/preset-docs.d.ts +387 -0
  1003. package/lib/quality/preset-docs.js +176 -0
  1004. package/lib/quality/presets.d.ts +744 -0
  1005. package/lib/quality/presets.js +586 -0
  1006. package/lib/render/direct-loop.d.ts +4 -0
  1007. package/lib/render/direct-loop.js +52 -0
  1008. package/lib/render/draw.d.ts +65 -0
  1009. package/lib/render/draw.js +101 -0
  1010. package/lib/render/load-draw.d.ts +10 -0
  1011. package/lib/render/load-draw.js +16 -0
  1012. package/lib/render/loop.d.ts +241 -0
  1013. package/lib/render/loop.js +566 -0
  1014. package/lib/render/loss.d.ts +35 -0
  1015. package/lib/render/loss.js +99 -0
  1016. package/lib/render/pacer.d.ts +24 -0
  1017. package/lib/render/pacer.js +51 -0
  1018. package/lib/render/recovery.d.ts +62 -0
  1019. package/lib/render/recovery.js +120 -0
  1020. package/lib/render/refresh.d.ts +38 -0
  1021. package/lib/render/refresh.js +111 -0
  1022. package/lib/render/renderer.d.ts +116 -0
  1023. package/lib/render/renderer.js +156 -0
  1024. package/lib/render/scene-renderer.d.ts +117 -0
  1025. package/lib/render/scene-renderer.js +192 -0
  1026. package/lib/render/shader-salt.d.ts +5 -0
  1027. package/lib/render/shader-salt.js +31 -0
  1028. package/lib/render/webgl2-renderers.d.ts +11 -0
  1029. package/lib/render/webgl2-renderers.js +224 -0
  1030. package/lib/render/webgpu-renderers.d.ts +10 -0
  1031. package/lib/render/webgpu-renderers.js +253 -0
  1032. package/lib/scene/addon-debug-views.d.ts +30 -0
  1033. package/lib/scene/addon-debug-views.js +63 -0
  1034. package/lib/scene/animation.d.ts +551 -0
  1035. package/lib/scene/animation.js +1428 -0
  1036. package/lib/scene/area-light-tables.d.ts +32 -0
  1037. package/lib/scene/area-light-tables.js +89 -0
  1038. package/lib/scene/assets.d.ts +400 -0
  1039. package/lib/scene/assets.js +869 -0
  1040. package/lib/scene/background.d.ts +242 -0
  1041. package/lib/scene/background.js +467 -0
  1042. package/lib/scene/baked-light.d.ts +60 -0
  1043. package/lib/scene/baked-light.js +300 -0
  1044. package/lib/scene/builtin-environments.d.ts +36 -0
  1045. package/lib/scene/builtin-environments.js +43 -0
  1046. package/lib/scene/chunk-rows.d.ts +81 -0
  1047. package/lib/scene/chunk-rows.js +146 -0
  1048. package/lib/scene/color.d.ts +22 -0
  1049. package/lib/scene/color.js +45 -0
  1050. package/lib/scene/derived-cache.d.ts +139 -0
  1051. package/lib/scene/derived-cache.js +547 -0
  1052. package/lib/scene/effects.d.ts +193 -0
  1053. package/lib/scene/effects.js +476 -0
  1054. package/lib/scene/environment-file.d.ts +22 -0
  1055. package/lib/scene/environment-file.js +81 -0
  1056. package/lib/scene/environment.d.ts +57 -0
  1057. package/lib/scene/environment.js +131 -0
  1058. package/lib/scene/fake-call-values.d.ts +8 -0
  1059. package/lib/scene/fake-call-values.js +51 -0
  1060. package/lib/scene/feature-draws.d.ts +169 -0
  1061. package/lib/scene/feature-draws.js +269 -0
  1062. package/lib/scene/feature-effects.d.ts +42 -0
  1063. package/lib/scene/feature-effects.js +155 -0
  1064. package/lib/scene/feature-host.d.ts +129 -0
  1065. package/lib/scene/feature-host.js +299 -0
  1066. package/lib/scene/feature-instances.d.ts +130 -0
  1067. package/lib/scene/feature-instances.js +326 -0
  1068. package/lib/scene/features.d.ts +412 -0
  1069. package/lib/scene/features.js +550 -0
  1070. package/lib/scene/file-limits.d.ts +70 -0
  1071. package/lib/scene/file-limits.js +224 -0
  1072. package/lib/scene/fog.d.ts +94 -0
  1073. package/lib/scene/fog.js +142 -0
  1074. package/lib/scene/frame-cameras.d.ts +156 -0
  1075. package/lib/scene/frame-cameras.js +434 -0
  1076. package/lib/scene/gltf-animation.d.ts +129 -0
  1077. package/lib/scene/gltf-animation.js +887 -0
  1078. package/lib/scene/gltf-draco.d.ts +9 -0
  1079. package/lib/scene/gltf-draco.js +224 -0
  1080. package/lib/scene/gltf-extensions.d.ts +31 -0
  1081. package/lib/scene/gltf-extensions.js +92 -0
  1082. package/lib/scene/gltf-json.d.ts +49 -0
  1083. package/lib/scene/gltf-json.js +94 -0
  1084. package/lib/scene/gltf-math.d.ts +16 -0
  1085. package/lib/scene/gltf-math.js +129 -0
  1086. package/lib/scene/gltf-meshopt.d.ts +3 -0
  1087. package/lib/scene/gltf-meshopt.js +48 -0
  1088. package/lib/scene/gltf-parse.d.ts +600 -0
  1089. package/lib/scene/gltf-parse.js +1854 -0
  1090. package/lib/scene/gltf.d.ts +159 -0
  1091. package/lib/scene/gltf.js +1560 -0
  1092. package/lib/scene/grade-table.d.ts +9 -0
  1093. package/lib/scene/grade-table.js +23 -0
  1094. package/lib/scene/grade-task.d.ts +12 -0
  1095. package/lib/scene/grade-task.js +11 -0
  1096. package/lib/scene/grading.d.ts +110 -0
  1097. package/lib/scene/grading.js +142 -0
  1098. package/lib/scene/half-float.d.ts +4 -0
  1099. package/lib/scene/half-float.js +42 -0
  1100. package/lib/scene/ktx2-cache.d.ts +32 -0
  1101. package/lib/scene/ktx2-cache.js +62 -0
  1102. package/lib/scene/ktx2-file.d.ts +57 -0
  1103. package/lib/scene/ktx2-file.js +207 -0
  1104. package/lib/scene/ktx2-transcode.d.ts +15 -0
  1105. package/lib/scene/ktx2-transcode.js +94 -0
  1106. package/lib/scene/ktx2.d.ts +34 -0
  1107. package/lib/scene/ktx2.js +178 -0
  1108. package/lib/scene/lens.d.ts +61 -0
  1109. package/lib/scene/lens.js +101 -0
  1110. package/lib/scene/level-meshopt.d.ts +20 -0
  1111. package/lib/scene/level-meshopt.js +122 -0
  1112. package/lib/scene/level-pieces.d.ts +24 -0
  1113. package/lib/scene/level-pieces.js +138 -0
  1114. package/lib/scene/level-words.d.ts +19 -0
  1115. package/lib/scene/level-words.js +34 -0
  1116. package/lib/scene/levels-task.d.ts +51 -0
  1117. package/lib/scene/levels-task.js +132 -0
  1118. package/lib/scene/light-images.d.ts +36 -0
  1119. package/lib/scene/light-images.js +88 -0
  1120. package/lib/scene/light-probes.d.ts +240 -0
  1121. package/lib/scene/light-probes.js +644 -0
  1122. package/lib/scene/lines.d.ts +192 -0
  1123. package/lib/scene/lines.js +257 -0
  1124. package/lib/scene/lut-files.d.ts +41 -0
  1125. package/lib/scene/lut-files.js +399 -0
  1126. package/lib/scene/lut.d.ts +56 -0
  1127. package/lib/scene/lut.js +48 -0
  1128. package/lib/scene/memory.d.ts +72 -0
  1129. package/lib/scene/memory.js +159 -0
  1130. package/lib/scene/mesh-arrays.d.ts +110 -0
  1131. package/lib/scene/mesh-arrays.js +701 -0
  1132. package/lib/scene/mesh-levels.d.ts +10 -0
  1133. package/lib/scene/mesh-levels.js +52 -0
  1134. package/lib/scene/namespaces.d.ts +125 -0
  1135. package/lib/scene/namespaces.js +313 -0
  1136. package/lib/scene/panorama-files.d.ts +71 -0
  1137. package/lib/scene/panorama-files.js +1103 -0
  1138. package/lib/scene/panorama.d.ts +23 -0
  1139. package/lib/scene/panorama.js +108 -0
  1140. package/lib/scene/particles.d.ts +452 -0
  1141. package/lib/scene/particles.js +814 -0
  1142. package/lib/scene/pass-reads.d.ts +70 -0
  1143. package/lib/scene/pass-reads.js +220 -0
  1144. package/lib/scene/picks.d.ts +69 -0
  1145. package/lib/scene/picks.js +208 -0
  1146. package/lib/scene/pointer-events.d.ts +205 -0
  1147. package/lib/scene/pointer-events.js +500 -0
  1148. package/lib/scene/post.d.ts +572 -0
  1149. package/lib/scene/post.js +925 -0
  1150. package/lib/scene/prefab.d.ts +110 -0
  1151. package/lib/scene/prefab.js +167 -0
  1152. package/lib/scene/probes.d.ts +71 -0
  1153. package/lib/scene/probes.js +169 -0
  1154. package/lib/scene/property-animation.d.ts +160 -0
  1155. package/lib/scene/property-animation.js +276 -0
  1156. package/lib/scene/queries.d.ts +182 -0
  1157. package/lib/scene/queries.js +393 -0
  1158. package/lib/scene/render.d.ts +487 -0
  1159. package/lib/scene/render.js +829 -0
  1160. package/lib/scene/resources.d.ts +1627 -0
  1161. package/lib/scene/resources.js +2745 -0
  1162. package/lib/scene/rotation.d.ts +6 -0
  1163. package/lib/scene/rotation.js +12 -0
  1164. package/lib/scene/scene.d.ts +1827 -0
  1165. package/lib/scene/scene.js +4582 -0
  1166. package/lib/scene/shader-preloads.d.ts +40 -0
  1167. package/lib/scene/shader-preloads.js +78 -0
  1168. package/lib/scene/shader-templates.d.ts +60 -0
  1169. package/lib/scene/shader-templates.js +156 -0
  1170. package/lib/scene/sprites.d.ts +265 -0
  1171. package/lib/scene/sprites.js +293 -0
  1172. package/lib/scene/stale-calls-scenario.d.ts +20 -0
  1173. package/lib/scene/stale-calls-scenario.js +175 -0
  1174. package/lib/scene/textures.d.ts +324 -0
  1175. package/lib/scene/textures.js +954 -0
  1176. package/lib/scene/time-of-day.d.ts +146 -0
  1177. package/lib/scene/time-of-day.js +645 -0
  1178. package/lib/scene/unmarked-writes.d.ts +118 -0
  1179. package/lib/scene/unmarked-writes.js +283 -0
  1180. package/lib/scene/unread-extensions-scenario.d.ts +6 -0
  1181. package/lib/scene/unread-extensions-scenario.js +26 -0
  1182. package/lib/scene/vertex-draws.d.ts +81 -0
  1183. package/lib/scene/vertex-draws.js +83 -0
  1184. package/lib/scene/wgsl-uniforms.d.ts +167 -0
  1185. package/lib/scene/wgsl-uniforms.js +12 -0
  1186. package/lib/shared/await-later.d.ts +5 -0
  1187. package/lib/shared/await-later.js +10 -0
  1188. package/lib/shared/control.d.ts +94 -0
  1189. package/lib/shared/control.js +150 -0
  1190. package/lib/shared/core-sources.d.ts +2 -0
  1191. package/lib/shared/core-sources.js +7 -0
  1192. package/lib/shared/core.d.ts +1249 -0
  1193. package/lib/shared/core.js +380 -0
  1194. package/lib/shared/counter.d.ts +52 -0
  1195. package/lib/shared/counter.js +55 -0
  1196. package/lib/shared/dev.d.ts +8 -0
  1197. package/lib/shared/dev.js +13 -0
  1198. package/lib/shared/feature-stats.d.ts +16 -0
  1199. package/lib/shared/feature-stats.js +27 -0
  1200. package/lib/shared/frame-image.d.ts +13 -0
  1201. package/lib/shared/frame-image.js +32 -0
  1202. package/lib/shared/gpu-clock.d.ts +14 -0
  1203. package/lib/shared/gpu-clock.js +38 -0
  1204. package/lib/shared/gpu-counter.d.ts +12 -0
  1205. package/lib/shared/gpu-counter.js +15 -0
  1206. package/lib/shared/gpu-scope.d.ts +14 -0
  1207. package/lib/shared/gpu-scope.js +104 -0
  1208. package/lib/shared/helper-workers.d.ts +4 -0
  1209. package/lib/shared/helper-workers.js +23 -0
  1210. package/lib/shared/images.d.ts +255 -0
  1211. package/lib/shared/images.js +450 -0
  1212. package/lib/shared/key-codes.d.ts +2 -0
  1213. package/lib/shared/key-codes.js +69 -0
  1214. package/lib/shared/labels.d.ts +94 -0
  1215. package/lib/shared/labels.js +172 -0
  1216. package/lib/shared/memory-area.d.ts +6 -0
  1217. package/lib/shared/memory-area.js +21 -0
  1218. package/lib/shared/memory-figure.d.ts +14 -0
  1219. package/lib/shared/memory-figure.js +18 -0
  1220. package/lib/shared/memory-views.d.ts +48 -0
  1221. package/lib/shared/memory-views.js +90 -0
  1222. package/lib/shared/metrics.d.ts +315 -0
  1223. package/lib/shared/metrics.js +738 -0
  1224. package/lib/shared/page-measurement.d.ts +9 -0
  1225. package/lib/shared/page-measurement.js +37 -0
  1226. package/lib/shared/phase.d.ts +17 -0
  1227. package/lib/shared/phase.js +20 -0
  1228. package/lib/shared/policy.d.ts +20 -0
  1229. package/lib/shared/policy.js +46 -0
  1230. package/lib/shared/recording.d.ts +100 -0
  1231. package/lib/shared/recording.js +378 -0
  1232. package/lib/shared/role.d.ts +10 -0
  1233. package/lib/shared/role.js +13 -0
  1234. package/lib/shared/run-task.d.ts +39 -0
  1235. package/lib/shared/run-task.js +63 -0
  1236. package/lib/shared/slot.d.ts +218 -0
  1237. package/lib/shared/slot.js +221 -0
  1238. package/lib/shared/software.d.ts +24 -0
  1239. package/lib/shared/software.js +22 -0
  1240. package/lib/shared/stats.d.ts +62 -0
  1241. package/lib/shared/stats.js +86 -0
  1242. package/lib/shared/task-failure.d.ts +24 -0
  1243. package/lib/shared/task-failure.js +36 -0
  1244. package/lib/shared/task-host.d.ts +42 -0
  1245. package/lib/shared/task-host.js +60 -0
  1246. package/lib/shared/task-load-error.d.ts +10 -0
  1247. package/lib/shared/task-load-error.js +13 -0
  1248. package/lib/shared/task-modules.d.ts +2 -0
  1249. package/lib/shared/task-modules.js +8 -0
  1250. package/lib/shared/task-pending.d.ts +12 -0
  1251. package/lib/shared/task-pending.js +41 -0
  1252. package/lib/shared/tasks.d.ts +54 -0
  1253. package/lib/shared/tasks.js +379 -0
  1254. package/lib/shared/tier.d.ts +7 -0
  1255. package/lib/shared/tier.js +3 -0
  1256. package/lib/shared/version.d.ts +56 -0
  1257. package/lib/shared/version.js +85 -0
  1258. package/lib/shared/videos.d.ts +15 -0
  1259. package/lib/shared/videos.js +11 -0
  1260. package/lib/shared/wake.d.ts +38 -0
  1261. package/lib/shared/wake.js +76 -0
  1262. package/lib/shared/wasm-limits.d.ts +13 -0
  1263. package/lib/shared/wasm-limits.js +75 -0
  1264. package/lib/shared/wasm.d.ts +26 -0
  1265. package/lib/shared/wasm.js +128 -0
  1266. package/lib/shared/webkit.d.ts +33 -0
  1267. package/lib/shared/webkit.js +59 -0
  1268. package/lib/shared/wgsl-updates.d.ts +9 -0
  1269. package/lib/shared/wgsl-updates.js +8 -0
  1270. package/lib/shared/worker-start.d.ts +49 -0
  1271. package/lib/shared/worker-start.js +159 -0
  1272. package/lib/sketch/clock.d.ts +61 -0
  1273. package/lib/sketch/clock.js +98 -0
  1274. package/lib/sketch/define-sketch.d.ts +234 -0
  1275. package/lib/sketch/define-sketch.js +103 -0
  1276. package/lib/sketch/input-off-scenario.d.ts +7 -0
  1277. package/lib/sketch/input-off-scenario.js +24 -0
  1278. package/lib/sketch/input-off.d.ts +16 -0
  1279. package/lib/sketch/input-off.js +38 -0
  1280. package/lib/sketch/input.d.ts +243 -0
  1281. package/lib/sketch/input.js +554 -0
  1282. package/lib/sketch/preset-check.d.ts +28 -0
  1283. package/lib/sketch/preset-check.js +95 -0
  1284. package/lib/sketch/quality.d.ts +334 -0
  1285. package/lib/sketch/quality.js +314 -0
  1286. package/lib/sketch/random.d.ts +13 -0
  1287. package/lib/sketch/random.js +25 -0
  1288. package/lib/sketch/runner.d.ts +507 -0
  1289. package/lib/sketch/runner.js +1826 -0
  1290. package/lib/sketch/ui.d.ts +97 -0
  1291. package/lib/sketch/ui.js +391 -0
  1292. package/lib/stats.d.ts +4 -0
  1293. package/lib/stats.js +8 -0
  1294. package/lib/workers/drawing-host.d.ts +24 -0
  1295. package/lib/workers/drawing-host.js +48 -0
  1296. package/lib/workers/gltf-worker.d.ts +35 -0
  1297. package/lib/workers/gltf-worker.js +210 -0
  1298. package/lib/workers/job-worker.d.ts +1 -0
  1299. package/lib/workers/job-worker.js +102 -0
  1300. package/lib/workers/panorama-worker.d.ts +15 -0
  1301. package/lib/workers/panorama-worker.js +21 -0
  1302. package/lib/workers/probe-worker.d.ts +29 -0
  1303. package/lib/workers/probe-worker.js +49 -0
  1304. package/lib/workers/protocol.d.ts +329 -0
  1305. package/lib/workers/protocol.js +53 -0
  1306. package/lib/workers/render-worker.d.ts +1 -0
  1307. package/lib/workers/render-worker.js +82 -0
  1308. package/lib/workers/sketch-worker.d.ts +1 -0
  1309. package/lib/workers/sketch-worker.js +206 -0
  1310. package/lib/workers/task-worker.d.ts +1 -0
  1311. package/lib/workers/task-worker.js +5 -0
  1312. package/lib/workers/tasks.d.ts +65 -0
  1313. package/lib/workers/tasks.js +85 -0
  1314. package/package.json +106 -5
  1315. package/vendor/basis/LICENSE +201 -0
  1316. package/vendor/basis/LICENSE-zstd +30 -0
  1317. package/vendor/basis/NOTICE +15 -0
  1318. package/vendor/basis/basis_transcoder.d.mts +36 -0
  1319. package/vendor/basis/basis_transcoder.mjs +2 -0
  1320. package/vendor/basis/basis_transcoder.wasm +0 -0
  1321. package/vendor/draco/LICENSE +252 -0
  1322. package/vendor/draco/draco_decoder_gltf.wasm +0 -0
  1323. package/vendor/draco/draco_wasm_wrapper_gltf.d.ts +71 -0
  1324. package/vendor/draco/draco_wasm_wrapper_gltf.js +116 -0
  1325. package/vendor/ltc/LICENSE +31 -0
  1326. package/vendor/ltc/area-light-tables.bin +0 -0
  1327. package/vendor/meshopt/LICENSE.md +21 -0
  1328. package/vendor/meshopt/meshopt_clusterizer.wasm +0 -0
  1329. package/vendor/meshopt/meshopt_decoder.wasm +0 -0
  1330. package/vendor/meshopt/meshopt_encoder.wasm +0 -0
  1331. package/vendor/meshopt/meshopt_simplifier.wasm +0 -0
  1332. package/README.md +0 -3
@@ -0,0 +1,540 @@
1
+ ---
2
+ id: api/reference/scene
3
+ title: "Scene: API reference"
4
+ status: generated
5
+ since: "0.1"
6
+ summary: "Every export of the Scene API, from the engine's doc comments."
7
+ ---
8
+
9
+ # Scene: API reference
10
+
11
+ > [Scene](../scene.md) explains these exports. The engine's doc comments make this page.
12
+
13
+ ## `AtmosphereBackground`
14
+
15
+ Interface `AtmosphereBackground`.
16
+
17
+ The physical sky as a background: `scene.setBackground({ atmosphere: { sunPosition } })`.
18
+
19
+ | Member | Description |
20
+ | --- | --- |
21
+ | `atmosphere: AtmosphereOptions` | The physical sky's settings. |
22
+
23
+ ## `AtmosphereOptions`
24
+
25
+ Interface `AtmosphereOptions`.
26
+
27
+ The settings of the physical sky: the earth's air, with Rayleigh and Mie scattering and ozone, lit by the sun and the moon. The same air hazes distant objects (aerial perspective). A call that leaves a setting out takes its default.
28
+
29
+ | Member | Description |
30
+ | --- | --- |
31
+ | `sunPosition?: readonly [number, number, number]` | A point toward the sun. Its direction places the sun. The default is 20 degrees above the horizon toward -Z: `[0, 0.342, -0.94]`. |
32
+ | `sunIntensity?: number` | The sun's light above the air, in the units of a directional light's intensity, 0 or more. The air dims it on its way down, more as the sun sinks. The default is 3.6, which gives a high sun's light about 3.2 at the ground. |
33
+ | `showSunDisc?: boolean` | Whether the sky shows the sun's disc. The default is true. |
34
+ | `rayleigh?: number` | The factor of the scattering by the air's molecules, which makes the sky blue, 0 or more. The default is 1, the earth's. |
35
+ | `haze?: number` | The factor of the haze in the air (Mie scattering), which whitens the sky and glows around the sun, 0 or more. The default is 1. |
36
+ | `ozone?: number` | The factor of ozone, which keeps the twilight sky blue, 0 or more. The default is 1. |
37
+ | `mieDirectionalG?: number` | How much the haze scatters toward the light, from 0 to 1 (below 1). The default is 0.8. |
38
+ | `groundAlbedo?: number` | The share of light that the ground below the horizon reflects, from 0 to 1. The default is 0.3. |
39
+ | `altitude?: number` | The height of the scene's y = 0 above the ground, in meters, 0 or more. The default is 0. |
40
+ | `metersPerUnit?: number` | The meters in one unit of the scene, more than 0. The default is 1. |
41
+ | `aerialPerspective?: number` | The factor of the haze between the camera and each object, 0 or more: 0 for none, 1 for the real air. A larger value makes a small scene look as large as a landscape. The default is 1. |
42
+ | `cloudCoverage?: number` | The share of the sky that clouds cover, from 0 to 1. 0 draws no clouds. The default is 0.4. |
43
+ | `cloudDensity?: number` | How solid the clouds are, 0 or more. The default is 0.4. |
44
+ | `cloudElevation?: number` | The height of the clouds, from 0 to 1: higher clouds look smaller. The default is 0.5. |
45
+ | `cloudScale?: number` | The size of the clouds' pattern, more than 0: larger values make smaller clouds. The default is 0.0002. |
46
+ | `cloudSpeed?: number` | How fast the clouds drift as `time` grows. The default is 0.00002. |
47
+ | `time?: number` | The time in seconds that moves the clouds, such as the sketch's `time`. The default is 0, so the clouds stand still until a sketch sets it. |
48
+ | `moonPosition?: readonly [number, number, number]` | A point toward the moon. The default is straight up. |
49
+ | `moonIntensity?: number` | The moon's light above the air, 0 or more. It lights the air as the sun does, and the sky shows its disc, lit from the sun's side. The default is 0, no moon. |
50
+ | `stars?: number` | The stars' brightness, 0 or more. They show where the sky is dark. The default is 0, no stars. |
51
+
52
+ ## `BackgroundOptions`
53
+
54
+ Interface `BackgroundOptions`.
55
+
56
+ The options of `scene.setBackground` for a texture, an environment, a cube map or the sky. A call that leaves an option out takes its default.
57
+
58
+ | Member | Description |
59
+ | --- | --- |
60
+ | `intensity?: number` | The factor of the background's light, 0 or more, as three.js's `scene.backgroundIntensity`. The default is 1. |
61
+ | `blur?: number` | How much an environment blurs, from 0 (sharp) to 1, as three.js's `scene.backgroundBlurriness`. It reads the environment's light at that roughness, so a blurred background costs no more than a sharp one. Only environments blur. The default is 0. |
62
+ | `rotation?: readonly [number, number, number]` | The turn of a cube map or an environment about the scene, as Euler angles in radians in the order X, Y, Z, as three.js's `scene.backgroundRotation`. The default is `[0, 0, 0]`. |
63
+
64
+ ## `BackgroundSource`
65
+
66
+ ```ts
67
+ type BackgroundSource = Texture | Environment | Cubemap | SkyBackground | AtmosphereBackground;
68
+ ```
69
+
70
+ What `scene.setBackground` draws behind every object in place of a plain color: a texture, an environment, a cube map, three.js's sky or the physical sky.
71
+
72
+ ## `bakeProbes`
73
+
74
+ ```ts
75
+ function bakeProbes(scene: Scene, options: BakeProbesOptions): ProbeBake
76
+ ```
77
+
78
+ Bakes a light probe grid over `options.box`, progressively (see `ProbeBake`).
79
+
80
+ ## `BakeProbesOptions`
81
+
82
+ Interface `BakeProbesOptions`.
83
+
84
+ The options of `bakeProbes`: the box the probes cover, how fine they are, and where the light comes from.
85
+
86
+ | Member | Description |
87
+ | --- | --- |
88
+ | `box: { min: readonly [number, number, number]; max: readonly [number, number, number]; }` | The box the probes cover, in the world. |
89
+ | `spacing?: number \| readonly [number, number, number]` | The distance between probes along each axis, in meters, or one number for every axis. The default is 2. The grid starts at the box's least corner and takes as many probes as fit the box at that spacing, at least two along each axis. |
90
+ | `samples?: number` | The directions cast from each probe: 8 to 1024, the default 64. |
91
+ | `distance?: number` | How far a ray reaches before it counts as the sky, in meters. The default is the box's diagonal. |
92
+ | `environment?: Environment \| null` | The scene's environment: the light that a surface sends back when a ray hits it. Without one, the bake counts no bounce light. The sky itself never bakes, because the shader reads the environment's live light for it. |
93
+ | `environmentOptions?: EnvironmentOptions` | The intensity and rotation that `scene.setEnvironment` got, so the bounce light matches the scene's. The defaults are those of `scene.setEnvironment`. |
94
+ | `albedo?: (object: QueryTarget \| null, instance: number, normal: Float32Array) => readonly [number, number, number] \| undefined` | The color a ray takes when it hits a surface, for one colored bounce: the surface sends back that share of the environment's light at its normal, as a matte surface does. The bounce sees the whole sky, so the light of a hit has no occlusion of its own, and the bake counts no lamps. A ray whose hit has no color gives no bounce light, so a scene without this bakes the probes' sky visibility and validity alone. `normal` is reused from hit to hit, so copy what you keep, and return the same array each time where you can: the bake calls this for every hit. |
95
+
96
+ ## `ChunkRowData`
97
+
98
+ Interface `ChunkRowData`.
99
+
100
+ One chunk's rows, in the order that a coarser level keeps: its count, and its arrays.
101
+
102
+ | Member | Description |
103
+ | --- | --- |
104
+ | `readonly count: number` | The number of rows. Every array holds this many entries. |
105
+ | `readonly positions: Float32Array` | The rows' positions, three floats each. |
106
+ | `readonly rotations: Float32Array` | The rows' rotations as unit quaternions, four floats each. |
107
+ | `readonly scales: Float32Array` | The rows' scales, three floats each. |
108
+ | `readonly colors: Float32Array` | The rows' linear RGBA colors, four floats each. |
109
+ | `readonly coverage: Float32Array` | The share of the chunk's surface that each prefix covers, at the prefix lengths that halve every two steps: index 0 is the whole chunk. The add-on measures it when it cuts the chunk. |
110
+
111
+ ## `ChunkRowWriter`
112
+
113
+ Class `ChunkRowWriter`.
114
+
115
+ Packs chunked rows into an instance batch's rows. Store each chunk once with [`write`], then call [`pack`] with one chosen count for each slot. The pack writes the chosen prefix of each chunk, in slot order, and sets the batch's active count. The batch must own its rows' transforms. A batch that reads another batch's rows, such as a part of a model, or a sprite or line batch, takes no chunked rows: a pack on one writes nothing and keeps its active count. The writer keeps one plan array in the engine's memory, so a frame's pack allocates nothing once the slot count is set.
116
+
117
+ | Member | Description |
118
+ | --- | --- |
119
+ | `dropViews(): void` | Forgets the plan view, which the next pack makes again. |
120
+ | `reserve(slots: number): void` | Makes room for `slots` chunks, each with its own chosen count. Call it at setup, and again when the cloud grows more chunks. |
121
+ | `write(slot: number, rows: ChunkRowData): void` | Stores a chunk's arrays at `slot`, replacing what the slot held. Call it once when the chunk arrives, never in a frame. |
122
+ | `forget(slot: number): void` | Forgets a chunk at `slot`, so it takes no row. |
123
+ | `pack(counts: ArrayLike<number>): number` | Packs each chunk's chosen prefix into the batch's rows, in slot order, and sets the batch's active count. `counts` gives one chosen count for each slot; a slot past its end, or with a count of zero, takes no row. Returns the count that the batch draws after the pack, which is the rows it wrote, or the count it kept when it owns no transform rows. |
124
+ | `destroy(): void` | Forgets every chunk of this writer's cloud, and drops its plan view. |
125
+
126
+ ## `emptyTimeOfDay`
127
+
128
+ ```ts
129
+ function emptyTimeOfDay(): TimeOfDay
130
+ ```
131
+
132
+ The settings of a time of day with every array empty, for a call that is given no object.
133
+
134
+ ## `EnvironmentOptions`
135
+
136
+ Interface `EnvironmentOptions`.
137
+
138
+ The options of `scene.setEnvironment`. A call that leaves an option out takes its default.
139
+
140
+ | Member | Description |
141
+ | --- | --- |
142
+ | `intensity?: number` | The factor of the environment's light on every surface, 0 or more, as three.js's `scene.environmentIntensity`. A material's `envIntensity` multiplies it. The default is 1. |
143
+ | `rotation?: readonly [number, number, number]` | The turn of the environment about the scene, as Euler angles in radians in the order X, Y, Z, as three.js's `scene.environmentRotation`. The default is `[0, 0, 0]`. |
144
+
145
+ ## `FogCurve`
146
+
147
+ ```ts
148
+ type FogCurve = 'exponential' | 'exp2' | 'linear';
149
+ ```
150
+
151
+ How fog thickens with distance. Exponential fog, `'exponential'`, follows light through an even haze. An object at distance d takes the fog color by a factor of 1 - exp(-density × d). Exponential squared fog, `'exp2'`, thickens with the square of the distance, as three.js's `FogExp2`: 1 - exp(-(density × d)²). Linear fog, `'linear'`, is clear up to `near` and hides objects from `far`, with a smooth step between them, as three.js's `Fog`.
152
+
153
+ ## `FogOptions`
154
+
155
+ Interface `FogOptions`.
156
+
157
+ Options of `scene.setFog`. Fog measures each object's straight-line distance from the camera, so an object keeps its fog as the camera turns.
158
+
159
+ | Member | Description |
160
+ | --- | --- |
161
+ | `color: ColorInput` | The fog's color. Give the background the same color, because the background takes no fog. |
162
+ | `curve?: FogCurve` | How the fog thickens with distance. The default is `'exponential'`. |
163
+ | `density?: number` | How fast exponential and exponential squared fog thicken with distance: 0 or more. At the default of 0.01, exponential fog hides about two thirds of an object 100 units away. |
164
+ | `near?: number` | The distance where linear fog starts. The default is 1. |
165
+ | `far?: number` | The distance from which linear fog hides every object. It must be above `near`. The default is 1000. |
166
+ | `height?: number` | The height where the fog has its `density`, or its `near` and `far` distances. Above it, fog with a `heightFalloff` thins; below it, the fog thickens. The default is 0. |
167
+ | `heightFalloff?: number` | How fast the fog thins with height, 0 or more: its density falls by a factor of e, to about a third, every 1 / `heightFalloff` units up. The engine adds up the fog along each line of sight, so a view down into a valley sees thick fog and a view up sees clear air. The default is 0: the fog is the same at every height. |
168
+ | `sunGlow?: number` | How much of the main directional light the fog scatters toward the camera, 0 or more. Fog toward that light then glows in the light's color. The default is 0: no glow. |
169
+ | `sunGlowExponent?: number` | How tightly the glow gathers around the light's direction, above 0. Higher values make a smaller glow. The default is 8. |
170
+ | `volumetric?: boolean \| FogVolumeOptions` | Lights the fog with the main directional light and the point and spot lights, through their shadows: sun rays through gaps in trees, and glowing cones under lamps and headlights. `true` takes the default options. While it draws, it replaces `sunGlow` with its own light of the sun. It needs HDR color, and the quality setting `fogSlices` above 0: on the Low preset the fog keeps its sun glow. The default is `false`. |
171
+
172
+ ## `FogVolumeOptions`
173
+
174
+ Interface `FogVolumeOptions`.
175
+
176
+ Options of the volumetric fog in `scene.setFog`. The fog's `density` and `heightFalloff` say where the air holds fog, so the light falls through the same fog that dims the objects.
177
+
178
+ | Member | Description |
179
+ | --- | --- |
180
+ | `intensity?: number` | How much of the lights' light the fog scatters toward the camera, 0 or more: 1 scatters as much as the fog's density gives. Raise it for bolder rays. The default is 1. |
181
+ | `anisotropy?: number` | How much light the fog scatters forward, from -0.95 to 0.95: 0 scatters it evenly in every direction, and values toward 0.95 gather it around the lights, as haze around a low sun. The default is 0.6. |
182
+ | `distance?: number` | How far along the view the lit fog reaches, above 0. Past it, the fog still scatters the sun's light, without shadows. A shorter reach gives finer rays near the camera. The default is 100. |
183
+
184
+ ## `InstanceBatch`
185
+
186
+ Class `InstanceBatch`.
187
+
188
+ Many copies of one mesh and material. Write rows straight into the typed arrays; a dynamic batch updates every row every frame, and a static batch updates the rows you mark dirty.
189
+
190
+ | Member | Description |
191
+ | --- | --- |
192
+ | `readonly count: number` | The number of rows: the batch's capacity. |
193
+ | `dropViews(): void` | Forgets the row arrays, which the next read makes again. |
194
+ | `readonly shaderId: number` | The number that a custom material's WGSL reads as `object.id` for every row of the batch. No other live batch or mesh has it. The WGSL tells the rows apart by `input.instance`. |
195
+ | `readonly positions: Float32Array` | Positions, 3 floats per row. |
196
+ | `readonly rotations: Float32Array` | Rotations as quaternions (x, y, z, w), 4 floats per row. |
197
+ | `readonly scales: Float32Array` | Scales, 3 floats per row. |
198
+ | `readonly colors: Float32Array \| undefined` | Linear RGBA colors, 4 floats per row, when the batch was created with `colors`. Each multiplies its row's base color and opacity. |
199
+ | `readonly values: Float32Array \| undefined` | The rows' own values, 4 floats per row, when the batch was created with `values`. A custom material's WGSL reads its row's as `object.values`. |
200
+ | `readonly ranges: Float32Array \| undefined` | The rows' distance ranges, two floats per row: the start distance at `2i` and the end distance at `2i + 1`, when the batch was created with `ranges`. A row draws between them, with a fade at each edge. `setDrawRange` sets every row's, and a later write to this array changes one row. Write it at setup: the engine reads it when it next rebuilds its draw tables, which `setDrawRange` and a new object or batch make. |
201
+ | `setDrawRange(start: number, end: number): void` | Sets the distances between which every row draws, as `Mesh.setDrawRange` does for one mesh: nothing nearer than `start`, which is 0 for none, and nothing past `end`, which is `Infinity` for none. The rows take a fade at each edge. A batch created with `ranges` gets the same range in its own array. Throws E1108 for a range that is not two numbers with 0 <= start < end. |
202
+ | `setFrustumCulled(culled: boolean): void` | Keeps every row of the batch whatever a camera's frustum says, or culls its rows again. An add-on whose own cull or count decides what draws marks its batch unculled. A change recomputes the rows' bounds, so make it at setup. |
203
+ | `createChunkRows(): Promise<ChunkRowWriter>` | Makes the writer that packs chunks of rows into this batch's rows, for an add-on whose rows arrive as chunks. The writer stores each chunk once when it arrives, then packs the chosen prefix of each into the rows in the core's memory, so a frame copies no rows through the sketch's heap. The batch must own its rows' transforms: a pack on a part of a model, or on a sprite or line batch, writes nothing. The code loads on first use. |
204
+ | `setActiveCount(count: number): void` | Draws only the first `count` rows. |
205
+ | `setBoundingRadius(radius: number): void` | Makes every row's bounding sphere, which culling tests, hold the sphere of `radius` meters around the row's origin, in place of the mesh's own sphere. Each sphere keeps the mesh's center (`mesh.center`), so its radius grows by that center's distance from the origin. A vertex shader that carries rows away from their origins, such as traffic along a lane, needs this: the engine culls a row moved beyond the mesh's own sphere while it is still on the screen. A later change of the mesh's radius, which a displaced material makes, replaces it. Every row is marked for update, and the call builds the engine's draw tables again, so make it at setup. Throws E1203 for a value that is not a finite number, and E1108 for 0 or below. |
206
+ | `setLayers(mask: number): void` | Puts every row on the layers of a 32-bit mask, as `Object3D.setLayers` does for one object. A new mask needs no rebuild. |
207
+ | `setCastShadows(cast: boolean): void` | Makes every row cast the shadows of the lights that cast them, or stop, as `Object3D.setCastShadows` does for a mesh. The default is false. A change rebuilds the engine's tables of what it draws. |
208
+ | `setReceiveShadows(receive: boolean): void` | Makes shadows fall on every row, or stop, as `Object3D.setReceiveShadows` does for a mesh. The default is false. Unlit materials show no shadows. A change rebuilds the engine's tables of what it draws. |
209
+ | `setOccluder(occluder: boolean): void` | Lets every row hide what lies behind it in GPU occlusion culling on WebGPU, or keeps every row from it. Rows of an opaque mesh may hide others by default, when they look large enough on the screen. Rows never block on WebGL2. A change rebuilds the engine's tables of what it draws. |
210
+ | `on(type: ObjectEventType, handler: ObjectEventHandler): void` | Calls `handler` for each pointer event of `type` on a row of the batch, as `Object3D.on` does. The event's `instance` names the row. |
211
+ | `off(type: ObjectEventType, handler: ObjectEventHandler): void` | Removes a handler that `on` added for events of `type`. |
212
+ | `markDirty(start = 0, count = this.count - start): void` | Marks rows of a static batch to update and upload. |
213
+ | `destroy(): void` | Removes the batch and frees its rows. Its typed arrays are not valid after this: another batch can take their memory. |
214
+
215
+ ## `InstanceOptions`
216
+
217
+ Interface `InstanceOptions`.
218
+
219
+ Options for `scene.createInstances`.
220
+
221
+ | Member | Description |
222
+ | --- | --- |
223
+ | `material: Material` | The material of every row. |
224
+ | `dynamic?: boolean` | Every row updates and uploads every frame; a static batch updates rows marked dirty only. |
225
+ | `colors?: boolean` | Adds a color per row (RGBA, linear) in `batch.colors`, white at first. It multiplies the material's base color and opacity, as a mesh's vertex colors do, and as three.js's `InstancedMesh.setColorAt` does. A material that lets light through draws its rows without it. |
226
+ | `values?: boolean` | Adds four numbers per row of the sketch's own in `batch.values`, 0 at first, such as a wind phase, an age or a tint. A custom material's `surface`, `vertexOffset` and `lobe` functions read the row's as `object.values`, as three.js's instanced attributes give a shader values per instance. With values, a masked material tests its alpha against its cutoff, without alpha to coverage or the alpha hash. |
227
+ | `ranges?: boolean` | Adds a start and an end distance per row in `batch.ranges`, so each row draws in a band of its own. Leave it out for a range that every row shares, which costs no memory. |
228
+ | `layers?: number` | The layers every row is on, as a 32-bit mask. The default, 1, is layer 0. |
229
+ | `origin?: Vec3` | The point that every row's position is relative to. The default is (0, 0, 0). The engine keeps the origin at full precision, so rows near it keep the precision of 32-bit floats at any distance from the world's origin. Give a batch far from the origin, such as a forest on a planet, an origin among its rows. |
230
+ | `castShadows?: boolean` | True makes every row cast the shadows of the lights that cast them, as `castShadows` does for a mesh. The default is false. |
231
+ | `receiveShadows?: boolean` | True makes shadows fall on every row, as `receiveShadows` does for a mesh. The default is false. |
232
+ | `occluder?: boolean` | False keeps every row from hiding what lies behind it in GPU occlusion culling on WebGPU, like `setOccluder(false)`. Left out, or true, a row of an opaque mesh hides what lies behind it whenever it looks large enough. Rows never block on WebGL2. |
233
+
234
+ ## `InstantiateOptions`
235
+
236
+ Interface `InstantiateOptions`, which extends `NodeOptions`.
237
+
238
+ Options for `scene.instantiate`: where the copy's group goes, and settings for all its meshes.
239
+
240
+ | Member | Description |
241
+ | --- | --- |
242
+ | `castShadows?: boolean` | True makes every mesh of the copy, and every row of its instance batches, cast the shadows of the lights that cast them. The default is false. |
243
+ | `receiveShadows?: boolean` | True makes shadows fall on every mesh of the copy, and on every row of its instance batches. The default is false. |
244
+ | `occluder?: boolean` | True makes every mesh of the copy block the view for occlusion culling, like `setOccluder(true)`, and false makes none block, on WebGL2 or WebGPU, nor any row of its instance batches on WebGPU. Left out, the meshes that the asset tool gave blockers block on WebGL2, and on WebGPU every opaque mesh and row may hide what lies behind it. |
245
+ | `layers?: number` | The layers of every object of the copy and of its instance batches, as a 32-bit mask. Left out, they keep the default, 1, which is layer 0. |
246
+
247
+ ## `LightProbeGridData`
248
+
249
+ Class `LightProbeGridData`.
250
+
251
+ A baked grid: its placement, the L1 coefficients of its probes and the two masks that the shader reads beside them.
252
+
253
+ | Member | Description |
254
+ | --- | --- |
255
+ | `readonly origin: Float32Array` | The grid's corner of least x, y and z. |
256
+ | `readonly spacing: Float32Array` | The spacing between probes along each axis. |
257
+ | `readonly counts: [number, number, number]` | The probes along each axis. |
258
+ | `readonly coefficients: Float32Array` | Four RGB coefficients per probe, of the light that its surroundings bounce back. |
259
+ | `readonly validity: Float32Array` | One number per probe: 1 where the probe stands in open space and 0 where geometry encloses it. A probe with 0 gives no light, which keeps it from leaking through the wall around it. |
260
+ | `readonly skyVisibility: Float32Array` | One number per probe: the share of the sky that its rays reached, 0 to 1. |
261
+ | `toTexture(textures: Textures): Texture` | The `rgba16float` 3D texture that `scene.setLightProbeGrid` takes. |
262
+
263
+ ## `LightProbeGridOptions`
264
+
265
+ Interface `LightProbeGridOptions`.
266
+
267
+ The options of `scene.setLightProbeGrid`: a grid of irradiance probes, baked by `bakeProbes` or elsewhere. `LightProbeGridData` gives the texture and the grid's three-number values, which pass in as they are.
268
+
269
+ | Member | Description |
270
+ | --- | --- |
271
+ | `texture: Texture` | The 3D texture of the probes' coefficients, from `LightProbeGridData.toTexture`. |
272
+ | `origin: ArrayLike<number>` | The grid's corner of least x, y and z, in the world: three numbers. |
273
+ | `spacing: ArrayLike<number>` | The distance between probes along each axis, in meters: three numbers. |
274
+ | `counts: ArrayLike<number>` | The probes along each axis: three whole numbers. |
275
+ | `intensity?: number` | The factor of the grid's light on every surface. The default is 1. A factor of 0 lights nothing from the grid, and the grid still takes the share of the environment's light that `environmentWeight` names. A fade to 0 then gives no environment light back. |
276
+ | `environmentWeight?: number` | The share of the environment's diffuse light that the grid takes over, 0 to 1. The default is 1. The grid then gives a surface the light that its probes baked from their surroundings, plus the live environment's light times how much sky each probe sees, so the sky follows the hour without a new bake. |
277
+
278
+ ## `MeshOptions`
279
+
280
+ Interface `MeshOptions`, which extends `NodeOptions`.
281
+
282
+ Options for `scene.createMesh`.
283
+
284
+ | Member | Description |
285
+ | --- | --- |
286
+ | `mesh: MeshGeometry` | The shape to draw, from `ctx.geometry`. |
287
+ | `material: Material` | How the surface looks, from `ctx.materials`. |
288
+ | `castShadows?: boolean` | True makes the mesh cast the shadows of a directional light, like `setCastShadows(true)`. The default is false. |
289
+ | `receiveShadows?: boolean` | True makes shadows fall on the mesh, like `setReceiveShadows(true)`. The default is false. Unlit materials show no shadows. |
290
+ | `occluder?: boolean` | Whether the mesh blocks the view for occlusion culling, like `setOccluder`. True makes it a blocker on WebGL2 too. False keeps it from hiding anything on WebGPU. Left out, the mesh blocks nothing on WebGL2, and on WebGPU it hides what lies behind it whenever it looks large enough. |
291
+
292
+ ## `NodeOptions`
293
+
294
+ Interface `NodeOptions`.
295
+
296
+ Options every node takes when it is created.
297
+
298
+ | Member | Description |
299
+ | --- | --- |
300
+ | `name?: string` | A name for error messages. |
301
+ | `position?: Vec3` | The position relative to the parent. The default is (0, 0, 0). |
302
+ | `rotation?: Quat` | The rotation relative to the parent, as a quaternion (x, y, z, w). The default is none. The engine scales a rotation more than one per cent off unit length, so a mistyped quaternion still only turns the object and never stretches or shears it. |
303
+ | `scale?: Vec3` | The scale on each axis. The default is (1, 1, 1). |
304
+ | `parent?: Object3D \| null` | The node to attach this one to. The default, null, makes a root node. |
305
+ | `dynamic?: boolean` | True recomputes the node every frame without checks. A static node, the default for all but cameras, updates only when it changes. |
306
+ | `layers?: number` | The layers the node is on, as a 32-bit mask: bit n puts it on layer n. A camera draws the objects that share a layer with it. The default, 1, is layer 0. |
307
+
308
+ ## `PrefabInstance`
309
+
310
+ Class `PrefabInstance`, which extends `Group`.
311
+
312
+ The group that holds a copy of a model, which `scene.instantiate` returns. Its children are the copies of the file's root nodes.
313
+
314
+ | Member | Description |
315
+ | --- | --- |
316
+ | `batches: readonly InstanceBatch[]` | The instance batches of the nodes with instancing of their own, as the file gives them. Their rows are placed in the world when the copy is created, and they do not move with the group. |
317
+ | `find(name: string): Object3D \| undefined` | The copy's first object with `name`, in the file's order, which is not destroyed, or undefined. It searches the copy's objects, so call it at setup. |
318
+ | `destroy(): void` | Removes the whole copy at the next frame: this group, every object that the copy created and that is not destroyed yet, and its instance batches. Objects that the sketch put under the copy later become roots, as children of any destroyed object do. |
319
+ | `setOutlined(outlined: boolean): void` | Outlines every mesh of the copy, or stops, as `Mesh.setOutlined` does for one mesh: the whole model takes one outline, as three.js's `OutlinePass` outlines a selected group. The copy's instance batches take none. |
320
+
321
+ ## `ProbeBake`
322
+
323
+ Class `ProbeBake`.
324
+
325
+ A progressive bake of a light probe grid: `step` bakes the next probes and `finish` gives the grid. Bake a few probes a frame from `onUpdate`, so a loading screen can show progress, or call `finish` once.
326
+
327
+ | Member | Description |
328
+ | --- | --- |
329
+ | `readonly grid: LightProbeGridData` | The grid, filled probe by probe. |
330
+ | `readonly total: number` | How many probes the grid holds. |
331
+ | `readonly done: number` | How many probes are baked. |
332
+ | `step(budget = 4): boolean` | Bakes up to `budget` probes. Returns true when every probe is baked. |
333
+ | `finish(): LightProbeGridData` | Bakes every remaining probe and returns the grid. |
334
+
335
+ ## `ReflectionProbe`
336
+
337
+ Class `ReflectionProbe`.
338
+
339
+ A reflection probe, which `scene.createReflectionProbe` makes. It lights the surfaces inside its box with the scene around its capture point, in place of the environment.
340
+
341
+ | Member | Description |
342
+ | --- | --- |
343
+ | `set(options: ReflectionProbeOptions): void` | Sets every option of the probe, as `scene.createReflectionProbe` takes them. A new position or new layers capture the scene again. The other options need no capture. |
344
+ | `capture(): void` | Captures the scene again, in a frame soon, as after objects around the probe moved. A probe that refreshes always needs no call. |
345
+ | `destroy(): void` | Removes the probe. Surfaces in its box take the light of other probes or of the environment from the next frame on. Calling a method of the probe afterwards throws E1101. |
346
+
347
+ ## `ReflectionProbeOptions`
348
+
349
+ Interface `ReflectionProbeOptions`.
350
+
351
+ The options of `scene.createReflectionProbe` and `probe.set`. Each call sets every option, and an option left out takes its default.
352
+
353
+ | Member | Description |
354
+ | --- | --- |
355
+ | `readonly box: { readonly min: Vec3; readonly max: Vec3; }` | The box that the probe lights, from its corner of least x, y and z to the opposite corner, in meters in the world. Surfaces inside it reflect what the probe captured, and reflections meet its sides, as a room's walls stand. |
356
+ | `readonly position?: Vec3` | The point that the probe captures the scene from, inside its box. The default is its center. |
357
+ | `readonly blend?: number` | How far beyond the box's sides the probe fades out, in meters, 0 or more. The probe lights its whole box, and the next probe, or the environment, lights the rest. The default is 1. 0 gives a hard edge. |
358
+ | `readonly intensity?: number` | The factor of the probe's light, 0 or more. The default is 1. |
359
+ | `readonly boxProjection?: boolean` | True makes reflections meet the box's sides, which suits rooms and streets. False reads the probe as light from far away, as an environment, which suits open ground. The default is true. |
360
+ | `readonly refresh?: 'once' \| 'always'` | `'once'` captures the scene when the probe is made or moved, and when `probe.capture()` asks. `'always'` captures it again and again, one probe a frame in turns, so moving objects show. The default is `'once'`. |
361
+ | `readonly layers?: number` | The layers of the objects that the probe's captures draw. The default is the default layer. |
362
+ | `readonly priority?: number` | Where boxes overlap, the probe with the higher priority lights the surfaces in both, and of two of the same priority, the smaller box. The default is 0. |
363
+
364
+ ## `Scene`
365
+
366
+ Class `Scene`.
367
+
368
+ The scene: every object, the active camera, the lights and the background.
369
+
370
+ | Member | Description |
371
+ | --- | --- |
372
+ | `dropViews(): void` | Forgets the views of the scene's arrays and of the morph weights. |
373
+ | `find(name: string): Object3D \| undefined` | The first object created with `name` that is not destroyed, or undefined when no object has the name. It looks the name up in an index, so its cost does not grow with the scene. Call it at setup and keep the object it returns. |
374
+ | `createGroup(options: NodeOptions = {}): Group` | An empty node, for hierarchy. |
375
+ | `createMesh(options: MeshOptions): Mesh` | A drawn object. It is static unless `dynamic: true`. |
376
+ | `instantiate(prefab: Prefab, options: InstantiateOptions = {}): PrefabInstance` | Creates the objects of a model that `assets.loadGltf` loaded, under one new group that `options` places, and returns that group. All the objects are created with one batch of commands, and every copy shares the model's meshes, materials and textures. The group's `find` gives the copy's object of a node, by the node's name. A model with clips or skins gives the group an animator, which plays the clips: `copy.animator().play('Walk')`. Throws E1102 when the scene, the animation table or the batch table has no room for the copy. Then no part of the copy stays. `destroy()` on the group removes the whole copy. |
377
+ | `animateProperty(target: Light \| Camera \| Material \| Object3D, path: string, keyframes: PropertyKeyframes): PropertyAnimation` | Animates one value of a light, a camera, a material or an object from keyframes, such as a lamp that pulses or a color that changes, and returns an object that controls it. The engine writes the value in each frame, so the sketch has no update call to make. A glTF file animates the same kinds of value with its `KHR_animation_pointer` channels. `path` names the value. A light takes `'light.intensity'`, `'light.color'`, `'light.range'`, `'light.decay'`, `'light.angle'` or `'light.penumbra'`; a camera takes `'camera.fov'` (in degrees), `'camera.near'`, `'camera.far'` or `'camera.height'` (for an orthographic camera); a material takes the values that `setUniform` takes, such as `'material.opacity'` or `'material.color'`; and every object takes `'position'`, `'rotation'`, `'scale'` or `'visible'`. The prefix is optional, so `'intensity'` and `'position'` work too. Every object that uses the material changes with it, and an animation that writes every frame allocates nothing. `setTime` places the animation at a time; a frozen keyframes object is read once. Throws E1218 for a path that the target does not take, or for keyframes that do not fit the value's numbers per key. |
378
+ | `clone<T extends Object3D>(object: T): T` | Copies an object and every object below it, as three.js's `clone` does, with their meshes, materials, lights, cameras and settings, and returns the copy of the object. The copy has the same parent, so it starts in the same place. The copies are created with one batch of commands. An animated object's copy gets an animator of its own, with no clip playing, which moves the copies of its meshes, as three.js's `SkeletonUtils.clone` does. Instance batches are not objects, so they are not copied. Throws E1102 when the scene or the animation table has no room for the copies. Then no copy stays. |
379
+ | `createInstances(mesh: MeshGeometry, count: number, options: InstanceOptions): InstanceBatch` | Many copies of one mesh and material, with typed arrays of rows. Or many copies of a model that `assets.loadGltf` loaded, without a material: one batch for each mesh of the model, which share one set of rows, so one row places a whole copy. The model's lights are left out. Throws E1417 for a model with no meshes, or with instancing of its own. |
380
+ | `createInstances(prefab: Prefab, count: number, options?: Omit<InstanceOptions, 'material'>): InstanceBatch` | Many copies of one mesh and material, with typed arrays of rows. Or many copies of a model that `assets.loadGltf` loaded, without a material: one batch for each mesh of the model, which share one set of rows, so one row places a whole copy. The model's lights are left out. Throws E1417 for a model with no meshes, or with instancing of its own. |
381
+ | `createSprites(options: SpriteOptions): Promise<SpriteBatch>` | Many sprites in one batch: quads that face the camera, like three.js's `Sprite` with a `SpriteMaterial`. Typed arrays give each sprite its position, size, rotation, color and atlas frame, as an instance batch's arrays give its rows. Sprites blend by default, and blended sprites draw back to front with the other blended objects. The first call downloads the sprite code. Throws E1108 for an atlas side that is not a whole number from 1 to 2048, E1203 for a center that is not two finite numbers, and E1406 when the sprite code does not download. |
382
+ | `createPoints(options: PointOptions): Promise<PointBatch>` | Many points in one batch: squares that face the camera, all of one size, like three.js's `Points` with a `PointsMaterial`. Each point is a sprite: typed arrays give each point its position and color, as an instance batch's arrays give its rows. Sizes above one pixel work on every GPU path. Points are opaque by default, and blended points draw back to front with the other blended objects. The first call downloads the sprite code. Throws E1206 for points or colors that make no points, E1108 for a size that is not above 0, E1203 for a size that is not finite, and E1406 when the sprite code does not download. |
383
+ | `addFeatureDraw<const Wgsl extends string \| CompiledWgsl>(description: FeatureDescription, options: FeatureDrawOptions<Wgsl>): Promise<FeatureDraw<Wgsl>>` | An add-on's own kind of draw, declared by a feature description with the kind `'draw'`: its WGSL, its vertex data, its uniforms and the description's frame point, band and order. The engine draws the object on every GPU path and in every thread mode, as it draws the scene's other objects, and sorts a blended draw among the transparent pass's objects. The first call downloads the draw adapter. The description names the frame point: `'opaque'` with an opaque or masked material, `'transparent'` with a blended one, or `'resolve'` with a blended one that blends after the transparent pass's objects. With MSAA, a draw at `'resolve'` blends its surfaces back to front in a layer of one sample per pixel, which the engine then blends over the scene, so many overlapping surfaces, such as Gaussian splats, cost one blend per pixel instead of one per sample. Its surfaces show in front of every object of the transparent pass, and other views draw them in their own transparent pass. The band and order place a blended draw among the pass's objects. The adapter records in the main view alone, so a description with another view throws E1223. The description's `reads`, `writes`, `outputs` and `provides` stay with the feature registry: this draw draws no scene resource. Throws E1223 for a description that is not a draw the adapter can place, E1215, E1216 and E1217 for WGSL and values that `materials.shader` refuses, E1206 for vertex data that makes no mesh, and E1406 when the adapter does not download. |
384
+ | `addFeatureInstances<const Wgsl extends string \| CompiledWgsl>(description: FeatureDescription, options: FeatureInstancesOptions<Wgsl>): Promise<FeatureInstances<Wgsl>>` | An add-on's own kind of draw, repeated once for each row of an instance batch, declared by a feature description with the kind `'draw'`. It takes the options of `addFeatureDraw` and a number of copies; each row of `draw.batch` places one copy and brings its own color and four values. The engine culls and sorts the rows in each view as it does a batch's, so a blended draw of many copies draws back to front on both GPU paths. Throws E1223 for a description that the adapter cannot place, for a place that belongs to one object, or for a count that is not a whole number from 1 up, E1215, E1216 and E1217 for WGSL and values that `materials.shader` refuses, E1206 for vertex data that makes no mesh, and E1406 when the adapter does not download. |
385
+ | `addComputeInstances<const Wgsl extends string \| CompiledWgsl = string \| CompiledWgsl>(description: FeatureDescription, options: ComputeInstancesOptions<Wgsl>): Promise<ComputeInstances<Wgsl>>` | An add-on's own kind of draw whose instance count the GPU writes: the description places it, the options give its one shape, its shader and the most instances that it holds, and the add-on fills its per-instance data. On WebGPU the draw reads the add-on's instance buffer and the count word that its compute pass writes; the engine copies the count into the indirect draw each frame. WebGL2 has no compute, so the page sets the instances and the count on the CPU, which draws the same picture. The description names the frame point `'opaque'` and the main view alone. The draw is unculled: the add-on's own cull or count decides what draws. The first call downloads the adapter. Throws E1223 for a description that the adapter cannot place or a capacity that it cannot take, E1215, E1216 and E1217 for WGSL and values that `materials.shader` refuses, E1206 for vertex data that makes no mesh, and E1406 when the adapter does not download. A draw that arrives after the first frame on a device that draws directly fails the frame with E1506: create it in the setup, and await this call there. |
386
+ | `createVertexDraw<const Wgsl extends string \| CompiledWgsl = string \| CompiledWgsl>(options: VertexDrawOptions<Wgsl>): VertexDraw<Wgsl>` | A draw that has a custom material and a vertex count but no mesh data: its shader makes every vertex of every copy from `@builtin(vertex_index)` and `@builtin(instance_index)`, so a draw of 50,000 rain streaks uploads nothing in a frame. The draw's object gives its place, its layers and the sphere that culls it, and the material's values move its shapes. The draw blends, so it draws in the transparent pass. The options take every option of `materials.shader` but the maps: a draw's WGSL declares no texture. The draw's culling sphere holds every shape, or a shape that leaves it stops drawing. A draw that uses the camera's position, such as rain around the camera, reads it in its WGSL, and `null3d::wrap` wraps a position relative to the camera into a box. Throws E1108 for a count or a sphere that the draw cannot take, or when the scene holds the most draws already, E1215 for WGSL that the plugin did not compile as a draw shader, and E1217 for a texture or an alpha mode that a draw does not take. |
387
+ | `createParticleBuffer(options: ParticleBufferOptions): Promise<ParticleBuffer>` | A particle buffer: a scene object that draws a quad for each live particle, which the GPU moves and colors at the particle's age in closed form. The `@null3d/particles` add-on's emitters fill it; use the add-on rather than this call. The first call downloads the particle code. Throws E1108 for a capacity that is not a whole number from 1 to 4,194,304, or when the scene holds 256 particle buffers already, and E1406 when the particle code does not download. |
388
+ | `createLines(options: LineOptions): Promise<LineBatch>` | Lines of any width in one batch, like three.js's `Line2` and `LineSegments2` with a `LineMaterial`, and its `Line`, `LineSegments` and `LineLoop`. Each segment between two points draws as a quad with round ends that faces the camera, `width` CSS pixels wide, or world units wide with `worldUnits`. A typed array gives each point its position and color, as an instance batch's arrays give its rows. The first call downloads the line code. Throws E1206 for points or colors that make no line, E1217 for an unknown mode, E1108 for a width that is not positive or a dash or gap below 0, E1203 for a value that is not finite, and E1406 when the line code does not download. |
389
+ | `createPerspectiveCamera(options: PerspectiveCameraOptions = {}): PerspectiveCamera` | A perspective camera; `fov` is vertical, in degrees. Cameras are dynamic by default. |
390
+ | `createOrthographicCamera(options: OrthographicCameraOptions = {}): OrthographicCamera` | An orthographic camera, whose view is a box: things keep their size at every distance. Give `height`, and the width follows the canvas, or give `left`, `right`, `top` and `bottom`. Cameras are dynamic by default. |
391
+ | `setActiveCamera(camera: Camera): void` | Draws the scene from this camera. |
392
+ | `createView(options: SceneViewOptions): SceneView` | Draws the scene again from `camera`, into the rectangle of the canvas that `rect` gives, after the camera's view and in the same frame: a split screen or a picture in picture. The view draws the scene once more at the rectangle's pixels, with its own culling, so its cost follows the rectangle's area. It draws the sun and its shadows as the camera's view does, which costs nothing more, the background and the fog. Its objects take no ambient occlusion or screen-space reflections, which shade the camera's view; the camera's volumetric fog and outline reach the whole image, a view's rectangle included. An object whose material shows a render pass's texture does not draw in a view. The camera's view still draws the whole canvas first, so a split screen that covers the canvas draws the scene one more time than it needs for its two halves. The scene and its passes share 32 views, the camera's included. Throws E1501 when the 32 views are in use. Development builds throw E1213 for a camera or a rectangle that a view does not take, and E1203 for a number that is not finite. |
393
+ | `createDirectionalLight(options: DirectionalLightOptions = {}): DirectionalLight` | Light from one direction, like sunlight: `direction` is the way it travels. |
394
+ | `createPointLight(options: PointLightOptions): PointLight` | Light from a point in every direction, out to `range` meters, which it needs. |
395
+ | `createSpotLight(options: SpotLightOptions): SpotLight` | Light from a point in a cone, out to `range` meters, which it needs. |
396
+ | `createRectAreaLight(options: RectAreaLightOptions): RectAreaLight` | Light from a rectangle, `width` by `height` meters, out to `range` meters, which it needs. Its light leaves along `direction`. |
397
+ | `createTubeLight(options: TubeLightOptions): TubeLight` | Light from a tube, `length` meters along `direction`, out to `range` meters, which it needs. |
398
+ | `createHemisphereLight(options: HemisphereLightOptions = {}): HemisphereLight` | Light from the sky above and the ground below. |
399
+ | `createAmbientLight(options: AmbientLightOptions = {}): AmbientLight` | Light on every surface, from no direction. |
400
+ | `setBackground(background: ColorInput \| BackgroundSource, options?: BackgroundOptions): void` | What the camera shows behind every object, as three.js's `scene.background`: a color, a texture, an environment from `assets.loadEnvironment` or `assets.builtinEnvironment`, a cube map from `assets.loadCubemap`, three.js's sky with `{ sky: { sunPosition } }`, or the physical sky with `{ atmosphere: { sunPosition } }`, whose air also hazes distant objects. A texture fills the view and stretches to its shape. An environment or a cube map surrounds the scene, and `options` give its intensity, rotation and, for an environment, its blur, as three.js's `backgroundIntensity`, `backgroundRotation` and `backgroundBlurriness`. The color set before shows until a texture's texels are on the GPU, and again if the texture is destroyed. A color takes the place of any other background. Exposure and tone mapping change the background with the rest of the scene. Without a background, the canvas shows black, or the page behind it on a transparent canvas. Settings are values, not shader builds, and the call allocates nothing, so a sketch can move the sky's sun or turn a cube map every frame. Throws E1204 for a color it cannot read, E1203 for a number that is not finite, E1108 for a number out of its range, E1213 for an option that the background does not take, and E1101 for a texture, an environment or a cube map that was destroyed. |
401
+ | `setSkyLayer(description: FeatureDescription, options: SkyLayerOptions): SkyLayer` | Draws an add-on's sky layer over the background, under every object: the top of a sky, such as an aurora, a second layer of clouds or a space backdrop. The description is a feature description ([Add-on feature descriptions](../features.md)): it names the feature and records at the background point, as a draw, provides the sky, and draws in the main view, the scene passes and the reflections. The layer's WGSL, compiled by the null3D Vite plugin, declares `fn skyLayer(input: SkyLayerInput) -> SkyLayer`. The engine gives it the fragment's direction in the world, the core sky's cloud coverage, density, elevation and scale, the sketch time and the share of the sun that the layer hides, and it blends what the layer returns over the sky by the layer's coverage and opacity. A layer that hides part of the sun also dims the disc and glow that the core sky draws, through `sun`. The layer draws in the main view, in scene passes and in reflections, and draws nothing where the background draws nothing, as in a debug view. A second call replaces the layer. Throws E1223 for a description that the engine cannot place, E1215 for WGSL that the plugin did not compile as a sky layer, E1203 for a number that is not finite, and E1108 for a number out of its range. |
402
+ | `clearSkyLayer(): void` | Removes the sky layer that `setSkyLayer` installed, from the next frame on, and gives the core sky its full sun back. A call with no layer installed does nothing. |
403
+ | `setDecalLayers(mask: number): void` | Sets the layers whose objects decals mark, as a 32-bit mask as `setLayers` takes. An object that is also on a layer outside the mask shows no decals, so a character on a layer of its own walks through a puddle clean. Such objects draw a second time after the decals, over their own pixels, in each frame that has decals. The default is every layer. |
404
+ | `overrideMaterial: Material \| null` | Draws every mesh and instance batch of the main pass with this material in place of its own, as three.js's `scene.overrideMaterial` does, or with their own materials with null. Each object keeps its mesh, its place and its instances, so a batch draws every row with it, and every camera view draws with it, the scene passes among them. Sprites, points, lines and particle systems keep their own materials, and the shadow maps keep each object's material, as three.js's shadow maps do. A change rebuilds the engine's draw tables in the next frame; after that it adds no draw call and builds no pipeline. Throws E1224 for a sprite, point or line material, E1101 for a material that is destroyed, and E1103 for a material of another engine. |
405
+ | `setEnvironment(environment: Environment \| null, options?: EnvironmentOptions): void` | Lights the scene with an environment from `assets.loadEnvironment` or `assets.builtinEnvironment`, as three.js's `scene.environment` does with a texture from `PMREMGenerator`, or with none for null. Standard materials reflect it, sharply when smooth and blurred when rough, and take its diffuse light, each times its `envIntensity`. The scene draws without a file's environment until its map is on the GPU. The built-in room's map is whole in the first frame that uses it. It allocates nothing, so a sketch can turn the environment every frame. Throws E1203 for a number that is not finite, E1108 for a negative intensity, E1213 for a value that is not an environment, and E1101 for an environment that was destroyed. |
406
+ | `createReflectionProbe(options: ReflectionProbeOptions): ReflectionProbe` | Makes a reflection probe: the scene around a point, which the engine captures on the GPU and filters for each roughness, as an environment's map. It lights the surfaces inside its box in place of the environment, with reflections that meet the box's sides, as a room's walls or a street's houses stand. A probe captures in a frame soon after it is made, and frames before that draw with the environment. A scene has at most 16 probes. Their captures take 6 of the 32 views that the scene and its passes share. Throws E1430 past those limits, E1203 for a number that is not finite, E1108 for a negative blend or intensity or a box whose min does not lie below its max, and E1213 for an option that probes do not take. |
407
+ | `setLightProbeGrid(grid: LightProbeGridOptions \| null): void` | Lights the scene with a grid of irradiance probes, or with none for null. The grid's light takes the place of the environment's diffuse light where `environmentWeight` says so, so light that changes with a surface's place, bounced from colored walls or sky, reaches it. The probes' coefficients come from a 3D texture that `LightProbeGridData.toTexture` packs and uploads, from `bakeProbes` or from a grid baked elsewhere. Throws the errors that `scene.setEnvironment` throws for a value out of range, E1213 for something that is not a texture, and E1101 for a texture that was destroyed. |
408
+ | `setFog(fog: FogOptions \| null): void` | Fog over every object, by each object's straight-line distance from the camera along a curve: exponential by default, exponential squared or linear. The fog can thin with height and glow toward the main directional light. With `volumetric`, the sun and the point and spot lights light the fog through their shadows. Null removes the fog. The background takes no fog, and a material created with `fog: false` keeps its color. Throws E1108 for an unknown curve or a value out of its range, and E1203 for a value that is not finite. The call allocates nothing, so a sketch can change the fog in every frame. |
409
+ | `pick(x: number, y: number): Promise<PickHit \| null>` | Finds the object that the camera draws at a point of the canvas, or `null` where it draws nothing there. `x` and `y` are CSS pixels from the canvas's top-left corner, as `camera.screenToRay` takes them, and the point is tested at the pixel that the camera draws, not at a projected triangle: a cut-out material's holes and a surface thinner than a pixel answer as the image shows them. A hit carries `uv`, where on the surface the pixel landed in the mesh's first texture coordinates, blended across its triangle's three corners as a raycast's `uv` is, and `hasUv`, which says whether to read it. A ray from the camera of the frame that recorded the pick finds them from the same point, so the two ways of asking agree. A skinned or morphed character, and a custom material that offsets its vertices, draws a different shape than the mesh that the ray tests, so its coordinates can differ from the pose it drew. The answer arrives one or more frames later, through a promise, and a pick in every frame waits in a queue of its own. The frame that records the pick draws it, so the camera of that frame answers, and a camera that moves between the click and the frame can differ from the frame that the click saw. A scene with a source that the id target cannot hold, such as a custom material without a vertex offset, a blended surface or a sprite, answers with a raycast instead, which tests triangles and so ignores alpha masks. |
410
+ | `raycast(origin: Vec3Like, direction: Vec3Like, options: RaycastOptions \| undefined, hit: RaycastHit): boolean` | Casts a ray from `origin` along `direction`, and writes its closest hit into `hit`. Returns true on a hit. On a miss it sets `hit.object` to null and leaves the other fields as they were. The direction needs no unit length. The ray tests the triangles of objects and instance rows on the layers of `options.layers`, as their materials draw them: front faces, or both faces for a double-sided material. Queries see the scene as the last frame's update left it, so a move, a new object or a destroy in this frame counts from the next frame, or from `onLateUpdate`. A query before the first frame, as a bake in a sketch's setup, first applies the changes queued so far and updates them, so it sees what the setup has built. Create `hit` and `options` once and pass them each time. |
411
+ | `raycastAny(origin: Vec3Like, direction: Vec3Like, options?: RaycastOptions): boolean` | True when a ray from `origin` along `direction` hits anything on the layers of `options.layers`. It stops at the first hit it finds, so it is faster than `raycast`: use it for line-of-sight checks. |
412
+ | `raycastAll(origin: Vec3Like, direction: Vec3Like, options: RaycastOptions \| undefined, hits: RaycastHit[]): number` | Casts a ray as `raycast` does, writes every hit into `hits` nearest first, one hit for each triangle that the ray crosses, and returns how many. It fills the first entries of `hits`, adds hit objects when the array is too short, and leaves the entries after the hits as they were. |
413
+ | `raycastBatch(rays: ArrayLike<number>, options: RaycastOptions \| undefined, out: RaycastBatchHits): number` | Casts many rays at once on the job workers, and writes each one's closest hit into `out`. `rays` holds six numbers per ray: its origin, then its direction. Returns how many rays hit something. A miss writes -1 as its distance. |
414
+ | `overlapSphere(center: Vec3Like, radius: number, options: QueryOptions \| undefined, out: OverlapHit[]): number` | Finds the objects and instance rows on the layers of `options.layers` that have a triangle within `radius` meters of `center`, writes them into `out`, and returns how many. It fills `out` as `raycastAll` fills its hits, in no set order. |
415
+ | `overlapBox(min: Vec3Like, max: Vec3Like, options: QueryOptions \| undefined, out: OverlapHit[]): number` | Finds the objects and instance rows on the layers of `options.layers` that have a triangle inside the box from `min` to `max` or crossing it, as `overlapSphere` does. The box's sides lie along the world's axes. |
416
+ | `warmUp(): Promise<void>` | Builds every GPU pipeline that the scene needs as it stands, and resolves once they are all built. Hidden objects count too. After the first frame, an object whose pipeline is still building draws nothing, so create a loading stage's objects hidden, warm up, then show them. The first frame waits for its pipelines anyway. In the setup, a warm-up draws that frame once they are built, before the setup goes on. |
417
+
418
+ ## `SkyBackground`
419
+
420
+ Interface `SkyBackground`.
421
+
422
+ three.js's analytic sky as a background: `scene.setBackground({ sky: { sunPosition } })`.
423
+
424
+ | Member | Description |
425
+ | --- | --- |
426
+ | `sky: SkyOptions` | The sky's settings. |
427
+
428
+ ## `SkyLayer`
429
+
430
+ Interface `SkyLayer`.
431
+
432
+ A sky layer that `scene.setSkyLayer` installed over the background. `set` changes its values, and `scene.clearSkyLayer` removes it.
433
+
434
+ | Member | Description |
435
+ | --- | --- |
436
+ | `set(values: SkyLayerValues): void` | Changes the layer's opacity, the share of the sun that it hides, or both. |
437
+
438
+ ## `SkyLayerOptions`
439
+
440
+ Interface `SkyLayerOptions`, which extends `SkyLayerValues`.
441
+
442
+ Options of `scene.setSkyLayer`: the layer's WGSL, compiled by the null3D Vite plugin, and its first values.
443
+
444
+ | Member | Description |
445
+ | --- | --- |
446
+ | `readonly wgsl: CompiledWgsl` | The layer's WGSL, which declares `fn skyLayer(input: SkyLayerInput) -> SkyLayer`. It draws over the background, under every object, on every GPU path. `SkyLayerInput` gives the fragment's direction, the core sky's cloud settings, the sketch time and the share of the sun that the layer hides. |
447
+
448
+ ## `SkyLayerValues`
449
+
450
+ Interface `SkyLayerValues`.
451
+
452
+ The values of a sky layer that `scene.setSkyLayer` takes, and that a later call changes: its opacity, the share of the sun that it hides, and how often the sky's environment map captures it. A value that a later call leaves out keeps its own.
453
+
454
+ | Member | Description |
455
+ | --- | --- |
456
+ | `readonly opacity?: number` | How much of the layer's color draws, from 0 for none to 1 for all of it. The default is 1. |
457
+ | `readonly sun?: number` | How much of the sun the layer hides, from 0 for none to 1 for all of it. The core sky dims its disc and glow by the rest, and the layer reads the share to dim its own. The default is 0. |
458
+ | `readonly refresh?: number` | How often, in seconds, the sky's environment map captures a layer that its own clock moves: a second by default. The map lights reflections and the diffuse light of the sky from what it holds, so a layer that drifts needs the map to follow it. Give 0 for a layer that stands still: its map then fills only when the sky or the layer's values change. A shorter time follows a faster layer at a higher cost, one fill of the map spread over a few frames. |
459
+
460
+ ## `SkyOptions`
461
+
462
+ Interface `SkyOptions`.
463
+
464
+ The settings of three.js's sky, with the names and defaults of its `Sky` object's uniforms. A call that leaves a setting out takes its default.
465
+
466
+ | Member | Description |
467
+ | --- | --- |
468
+ | `sunPosition?: readonly [number, number, number]` | A point toward the sun, as three.js's `sunPosition`. Its direction places the sun. A point far below the horizon, hundreds of thousands of units down, also dims the sky, as in three.js. The default is the sun 2 degrees above the horizon toward -Z, as three.js's sky example sets it: `[0, 0.0349, -0.9994]`. |
469
+ | `turbidity?: number` | The haze in the air, 0 or more. The default is 2. |
470
+ | `rayleigh?: number` | The scattering by the air's molecules, which makes the sky blue, 0 or more. The default is 1. |
471
+ | `mieCoefficient?: number` | The scattering by haze, 0 or more. The default is 0.005. |
472
+ | `mieDirectionalG?: number` | How much the haze scatters toward the sun, from 0 to 1 (below 1). The default is 0.8. |
473
+ | `cloudCoverage?: number` | The share of the sky that clouds cover, from 0 to 1. 0 draws no clouds. The default is 0.4. |
474
+ | `cloudDensity?: number` | How solid the clouds are, 0 or more. The default is 0.4. |
475
+ | `cloudElevation?: number` | The height of the clouds, from 0 to 1: higher clouds look smaller. The default is 0.5. |
476
+ | `cloudScale?: number` | The size of the clouds' pattern, more than 0: larger values make smaller clouds. The default is 0.0002. |
477
+ | `cloudSpeed?: number` | How fast the clouds drift as `time` grows. The default is 0.00002. |
478
+ | `time?: number` | The time in seconds that moves the clouds, such as the sketch's `time`. The default is 0, so the clouds stand still until a sketch sets it. |
479
+ | `showSunDisc?: boolean` | Whether the sky shows the sun's disc. The default is true. |
480
+ | `secondSunPosition?: readonly [number, number, number]` | A point toward the sun of a second sky, which adds its light to this sky's at `secondSkyWeight`, with the same air and clouds. `timeOfDay` fades the moon's sky in over the sunset's sky with it. The default is straight up. |
481
+ | `secondSkyWeight?: number` | The weight of the second sky's light beside this sky's, 0 or more. Both then take the background's `intensity`. The default is 0, no second sky, which costs nothing. |
482
+
483
+ ## `timeOfDay`
484
+
485
+ ```ts
486
+ function timeOfDay(time: number | TimeOfDayPreset, options: TimeOfDayOptions = {}, out: TimeOfDay = emptyTimeOfDay()): TimeOfDay
487
+ ```
488
+
489
+ Works out the settings of a time of day: an hour from 0 to 24, or a named preset. The sun rises at 6, stands highest at 12 and sets at 18. After sunset the sky dims to a deep blue, and then to a navy night sky lit from the moon's place, and the moon takes over as the main light. Each value comes from three.js's sky model, the one that the sky background draws, so the fog fades into the sky's horizon. Throws a `RangeError` for an hour that is not a finite number, or an unknown preset. Give it `out`, an object of a previous call, and it writes the new settings into that object: a day cycle then allocates nothing, so a sketch can move the time in every frame. `bun run bench:allocation --time-of-day` checks that. Without it the call makes a new object. `emptyTimeOfDay()` makes the first one to pass. ```ts const day = emptyTimeOfDay(); timeOfDay('goldenHour', {}, day); scene.setBackground({ sky: day.sky }, { intensity: day.skyIntensity }); scene.setEnvironment(skyLight, { intensity: day.skyIntensity }); sun.setDirection(...day.light.direction); sun.setColor(day.light.color); sun.setIntensity(day.light.intensity); scene.setFog({ color: day.fog.color, density: 0.01, sunGlow: day.fog.sunGlow }); post.set({ exposure: day.exposure }); ```
490
+
491
+ ## `TimeOfDay`
492
+
493
+ Interface `TimeOfDay`.
494
+
495
+ The settings of one time of day, which `timeOfDay` works out. Apply them to the sky background, the sky's environment, the main directional light, the fog and the exposure.
496
+
497
+ | Member | Description |
498
+ | --- | --- |
499
+ | `hours: number` | The hour, from 0 up to 24. |
500
+ | `sky: { sunPosition: [number, number, number]; turbidity: number; rayleigh: number; mieCoefficient: number; mieDirectionalG: number; secondSunPosition: [number, number, number]; secondSkyWeight: number; }` | The sky's settings for `scene.setBackground({ sky })`: its sun and its air. At night the sky's sun stands at the moon's place, so the sky is lit from there and its disc is the moon. As night falls the second sky, the moon's, fades in over the sunset's sky; at other times its weight is 0. |
501
+ | `atmosphere: TimeOfDayAtmosphere` | The physical sky's settings for `scene.setBackground({ atmosphere })`: the real sun and its light, and at night the moon, which lights the air too, and the stars. Spread it into the scene's own settings, such as its clouds and `aerialPerspective`. |
502
+ | `skyIntensity: number` | The factor of the sky's light for the background's and the environment's `intensity`. It dims the analytic sky after sunset, as its model alone keeps a glow. The physical sky dims by itself, so with the physical model it is 1. |
503
+ | `light: { direction: [number, number, number]; color: [number, number, number]; intensity: number; }` | The main directional light: the sun while it is up, and the moon at night. `direction` points from the light into the scene, as `setDirection` takes it. `color` is linear. |
504
+ | `fog: { color: [number, number, number]; sunGlow: number; }` | The fog's linear color, the sky's color along the horizon, and the glow toward the main light, for `scene.setFog`. |
505
+ | `ambient: { color: [number, number, number]; intensity: number; }` | A linear ambient color and intensity of the sky's average light, for a scene that has no environment. A scene lit by the sky's environment needs no ambient light. |
506
+ | `exposure: number` | The exposure for `post.set({ exposure })`, higher as the light dims. |
507
+
508
+ ## `TimeOfDayAtmosphere`
509
+
510
+ Interface `TimeOfDayAtmosphere`.
511
+
512
+ The physical sky's settings that a time of day gives, in the form that `timeOfDay` writes them: a call fills the arrays in place, so they are not read-only.
513
+
514
+ | Member | Description |
515
+ | --- | --- |
516
+ | `sunPosition: [number, number, number]` | The sun's place, in a unit direction, as `scene.setBackground({ atmosphere })` takes it. |
517
+ | `sunIntensity: number` | The sun's own light, in the units of the physical sky. |
518
+ | `moonPosition: [number, number, number]` | The moon's place, opposite the sun and never below the height that lights the sky. |
519
+ | `moonIntensity: number` | The moon's light on the air, 0 while the sun is up. |
520
+ | `stars: number` | The stars' brightness, rising from 0 as night falls. |
521
+
522
+ ## `TimeOfDayOptions`
523
+
524
+ Interface `TimeOfDayOptions`.
525
+
526
+ The options of `timeOfDay`. An option left out takes its default.
527
+
528
+ | Member | Description |
529
+ | --- | --- |
530
+ | `heading?: number` | The turn of the sun's path about +Y, in radians. At 0 the sun rises toward +X, stands toward -Z at noon and sets toward -X. The default is 0. |
531
+ | `noonElevation?: number` | How high the noon sun stands above the horizon, in radians, from above 0 to π/2. The default is π/3, 60 degrees. |
532
+ | `model?: 'analytic' \| 'physical'` | The sky that the light, the fog, the ambient light and the exposure match: `'analytic'`, three.js's sky of `scene.setBackground({ sky })`, or `'physical'`, the physical sky of `scene.setBackground({ atmosphere })`. The default is `'analytic'`. |
533
+
534
+ ## `TimeOfDayPreset`
535
+
536
+ ```ts
537
+ type TimeOfDayPreset = 'afternoon' | 'goldenHour' | 'blueHour' | 'night';
538
+ ```
539
+
540
+ The named times of `timeOfDay`: `'afternoon'` (15:00), `'goldenHour'` (17:36, the sun 5 degrees up), `'blueHour'` (18:24, the sun 5 degrees down) and `'night'` (23:00, under the moon).