@null3d/engine 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1357) hide show
  1. package/LICENSE-APACHE +176 -0
  2. package/LICENSE-MIT +21 -0
  3. package/README.md +108 -2
  4. package/THIRD-PARTY-NOTICES.txt +637 -0
  5. package/dist/wasm/single/null3d.js +3972 -0
  6. package/dist/wasm/single/null3d_bg.wasm +0 -0
  7. package/dist/wasm/threaded/null3d.js +3988 -0
  8. package/dist/wasm/threaded/null3d_bg.wasm +0 -0
  9. package/docs/api/animation.md +492 -0
  10. package/docs/api/assets.md +400 -0
  11. package/docs/api/cameras.md +161 -0
  12. package/docs/api/controls.md +319 -0
  13. package/docs/api/debug.md +450 -0
  14. package/docs/api/engine.md +254 -0
  15. package/docs/api/feature-draws.md +172 -0
  16. package/docs/api/feature-effects.md +137 -0
  17. package/docs/api/feature-instances.md +154 -0
  18. package/docs/api/features.md +323 -0
  19. package/docs/api/geometry.md +307 -0
  20. package/docs/api/grass.md +114 -0
  21. package/docs/api/impostors.md +274 -0
  22. package/docs/api/input.md +238 -0
  23. package/docs/api/lights.md +266 -0
  24. package/docs/api/lines.md +163 -0
  25. package/docs/api/materials.md +875 -0
  26. package/docs/api/math.md +129 -0
  27. package/docs/api/objects.md +155 -0
  28. package/docs/api/page.md +97 -0
  29. package/docs/api/particles.md +205 -0
  30. package/docs/api/points.md +130 -0
  31. package/docs/api/post.md +494 -0
  32. package/docs/api/quality.md +200 -0
  33. package/docs/api/raycast.md +269 -0
  34. package/docs/api/reference/animation.md +158 -0
  35. package/docs/api/reference/assets.md +335 -0
  36. package/docs/api/reference/cameras.md +138 -0
  37. package/docs/api/reference/controls.md +463 -0
  38. package/docs/api/reference/debug.md +586 -0
  39. package/docs/api/reference/engine.md +647 -0
  40. package/docs/api/reference/feature-draws.md +94 -0
  41. package/docs/api/reference/feature-effects.md +32 -0
  42. package/docs/api/reference/feature-instances.md +63 -0
  43. package/docs/api/reference/features.md +361 -0
  44. package/docs/api/reference/geometry.md +856 -0
  45. package/docs/api/reference/grass.md +131 -0
  46. package/docs/api/reference/impostors.md +368 -0
  47. package/docs/api/reference/input.md +121 -0
  48. package/docs/api/reference/lights.md +257 -0
  49. package/docs/api/reference/lines.md +84 -0
  50. package/docs/api/reference/materials.md +375 -0
  51. package/docs/api/reference/math.md +229 -0
  52. package/docs/api/reference/objects.md +103 -0
  53. package/docs/api/reference/particles.md +336 -0
  54. package/docs/api/reference/points.md +57 -0
  55. package/docs/api/reference/post.md +244 -0
  56. package/docs/api/reference/quality.md +213 -0
  57. package/docs/api/reference/raycast.md +94 -0
  58. package/docs/api/reference/render.md +238 -0
  59. package/docs/api/reference/scene.md +543 -0
  60. package/docs/api/reference/sketch.md +125 -0
  61. package/docs/api/reference/sound.md +203 -0
  62. package/docs/api/reference/splats.md +214 -0
  63. package/docs/api/reference/sprites.md +71 -0
  64. package/docs/api/reference/tasks.md +92 -0
  65. package/docs/api/reference/terrain.md +161 -0
  66. package/docs/api/reference/textures.md +153 -0
  67. package/docs/api/reference/three-compat.md +60 -0
  68. package/docs/api/reference/time.md +25 -0
  69. package/docs/api/reference/ui.md +52 -0
  70. package/docs/api/reference/vertex-draws.md +55 -0
  71. package/docs/api/reference/water.md +430 -0
  72. package/docs/api/reference/wind.md +106 -0
  73. package/docs/api/render.md +499 -0
  74. package/docs/api/scene.md +606 -0
  75. package/docs/api/sketch.md +231 -0
  76. package/docs/api/sound.md +169 -0
  77. package/docs/api/splats.md +264 -0
  78. package/docs/api/sprites.md +169 -0
  79. package/docs/api/tasks.md +106 -0
  80. package/docs/api/terrain.md +118 -0
  81. package/docs/api/textures.md +272 -0
  82. package/docs/api/three-compat.md +102 -0
  83. package/docs/api/time.md +134 -0
  84. package/docs/api/ui.md +134 -0
  85. package/docs/api/vertex-draws.md +171 -0
  86. package/docs/api/water.md +486 -0
  87. package/docs/api/wind.md +375 -0
  88. package/docs/cli/null3d.md +603 -0
  89. package/docs/concepts/architecture.md +174 -0
  90. package/docs/concepts/assets.md +128 -0
  91. package/docs/concepts/backends.md +197 -0
  92. package/docs/concepts/color-management.md +134 -0
  93. package/docs/concepts/culling.md +227 -0
  94. package/docs/concepts/handles.md +93 -0
  95. package/docs/concepts/instances.md +285 -0
  96. package/docs/concepts/large-worlds.md +126 -0
  97. package/docs/concepts/lighting.md +587 -0
  98. package/docs/concepts/lod.md +241 -0
  99. package/docs/concepts/materials.md +128 -0
  100. package/docs/concepts/particle-buffer.md +201 -0
  101. package/docs/concepts/post-processing.md +420 -0
  102. package/docs/concepts/quality-preset-tables.md +94 -0
  103. package/docs/concepts/quality-presets.md +341 -0
  104. package/docs/concepts/render-graph.md +222 -0
  105. package/docs/concepts/render-layers.md +111 -0
  106. package/docs/concepts/shadows.md +448 -0
  107. package/docs/concepts/static-dynamic.md +113 -0
  108. package/docs/cookbook/index.md +664 -0
  109. package/docs/data/threejs-mapping.json +2152 -0
  110. package/docs/errors/E1101.md +23 -0
  111. package/docs/errors/E1102.md +23 -0
  112. package/docs/errors/E1103.md +23 -0
  113. package/docs/errors/E1104.md +23 -0
  114. package/docs/errors/E1105.md +23 -0
  115. package/docs/errors/E1106.md +23 -0
  116. package/docs/errors/E1107.md +23 -0
  117. package/docs/errors/E1108.md +23 -0
  118. package/docs/errors/E1109.md +23 -0
  119. package/docs/errors/E1110.md +23 -0
  120. package/docs/errors/E1111.md +23 -0
  121. package/docs/errors/E1112.md +23 -0
  122. package/docs/errors/E1203.md +23 -0
  123. package/docs/errors/E1204.md +23 -0
  124. package/docs/errors/E1205.md +23 -0
  125. package/docs/errors/E1206.md +23 -0
  126. package/docs/errors/E1207.md +23 -0
  127. package/docs/errors/E1208.md +23 -0
  128. package/docs/errors/E1209.md +23 -0
  129. package/docs/errors/E1213.md +23 -0
  130. package/docs/errors/E1214.md +23 -0
  131. package/docs/errors/E1215.md +23 -0
  132. package/docs/errors/E1216.md +23 -0
  133. package/docs/errors/E1217.md +23 -0
  134. package/docs/errors/E1218.md +23 -0
  135. package/docs/errors/E1219.md +23 -0
  136. package/docs/errors/E1220.md +23 -0
  137. package/docs/errors/E1221.md +23 -0
  138. package/docs/errors/E1222.md +23 -0
  139. package/docs/errors/E1223.md +23 -0
  140. package/docs/errors/E1224.md +23 -0
  141. package/docs/errors/E1225.md +23 -0
  142. package/docs/errors/E1301.md +23 -0
  143. package/docs/errors/E1302.md +23 -0
  144. package/docs/errors/E1303.md +23 -0
  145. package/docs/errors/E1304.md +23 -0
  146. package/docs/errors/E1305.md +23 -0
  147. package/docs/errors/E1306.md +23 -0
  148. package/docs/errors/E1307.md +23 -0
  149. package/docs/errors/E1401.md +23 -0
  150. package/docs/errors/E1402.md +23 -0
  151. package/docs/errors/E1403.md +23 -0
  152. package/docs/errors/E1404.md +23 -0
  153. package/docs/errors/E1405.md +23 -0
  154. package/docs/errors/E1406.md +23 -0
  155. package/docs/errors/E1407.md +23 -0
  156. package/docs/errors/E1408.md +23 -0
  157. package/docs/errors/E1409.md +23 -0
  158. package/docs/errors/E1410.md +23 -0
  159. package/docs/errors/E1411.md +23 -0
  160. package/docs/errors/E1412.md +23 -0
  161. package/docs/errors/E1413.md +23 -0
  162. package/docs/errors/E1414.md +23 -0
  163. package/docs/errors/E1415.md +23 -0
  164. package/docs/errors/E1416.md +23 -0
  165. package/docs/errors/E1417.md +23 -0
  166. package/docs/errors/E1418.md +23 -0
  167. package/docs/errors/E1419.md +23 -0
  168. package/docs/errors/E1420.md +23 -0
  169. package/docs/errors/E1421.md +23 -0
  170. package/docs/errors/E1422.md +23 -0
  171. package/docs/errors/E1423.md +23 -0
  172. package/docs/errors/E1424.md +23 -0
  173. package/docs/errors/E1425.md +23 -0
  174. package/docs/errors/E1426.md +23 -0
  175. package/docs/errors/E1430.md +23 -0
  176. package/docs/errors/E1431.md +23 -0
  177. package/docs/errors/E1432.md +23 -0
  178. package/docs/errors/E1433.md +23 -0
  179. package/docs/errors/E1434.md +23 -0
  180. package/docs/errors/E1435.md +23 -0
  181. package/docs/errors/E1436.md +23 -0
  182. package/docs/errors/E1437.md +23 -0
  183. package/docs/errors/E1501.md +23 -0
  184. package/docs/errors/E1502.md +23 -0
  185. package/docs/errors/E1503.md +23 -0
  186. package/docs/errors/E1504.md +23 -0
  187. package/docs/errors/E1505.md +23 -0
  188. package/docs/errors/E1506.md +23 -0
  189. package/docs/errors/index.md +93 -0
  190. package/docs/getting-started/cdn.md +235 -0
  191. package/docs/getting-started/first-scene.md +129 -0
  192. package/docs/getting-started/hosting.md +400 -0
  193. package/docs/getting-started/install.md +112 -0
  194. package/docs/getting-started/network-use.md +96 -0
  195. package/docs/getting-started/project-structure.md +78 -0
  196. package/docs/getting-started/third-party-notices.md +94 -0
  197. package/docs/guides/accessibility.md +96 -0
  198. package/docs/guides/add-ons.md +160 -0
  199. package/docs/guides/agents.md +77 -0
  200. package/docs/guides/assets-pipeline.md +505 -0
  201. package/docs/guides/audio.md +148 -0
  202. package/docs/guides/baked-light-data.md +176 -0
  203. package/docs/guides/car-paint.md +121 -0
  204. package/docs/guides/content-pages.md +238 -0
  205. package/docs/guides/custom-passes.md +586 -0
  206. package/docs/guides/custom-shaders.md +293 -0
  207. package/docs/guides/debugging.md +236 -0
  208. package/docs/guides/deploying.md +115 -0
  209. package/docs/guides/deterministic-simulation.md +226 -0
  210. package/docs/guides/first-use-shaders.md +57 -0
  211. package/docs/guides/lens-kit.md +134 -0
  212. package/docs/guides/loading-screens.md +263 -0
  213. package/docs/guides/multiple-views.md +122 -0
  214. package/docs/guides/performance.md +405 -0
  215. package/docs/guides/phones.md +138 -0
  216. package/docs/guides/physics.md +202 -0
  217. package/docs/guides/screens.md +125 -0
  218. package/docs/guides/start-time.md +328 -0
  219. package/docs/guides/testing.md +245 -0
  220. package/docs/guides/ui-overlays.md +182 -0
  221. package/docs/guides/video-textures.md +110 -0
  222. package/docs/index.md +49 -0
  223. package/docs/pages.md +242 -0
  224. package/docs/porting/react-three-fiber.md +238 -0
  225. package/docs/porting/threejs-loop-and-threads.md +229 -0
  226. package/docs/porting/threejs-mapping.md +297 -0
  227. package/docs/porting/threejs-materials.md +222 -0
  228. package/docs/porting/threejs-overview.md +228 -0
  229. package/docs/porting/threejs-postprocessing.md +256 -0
  230. package/docs/porting/threejs-shaders.md +308 -0
  231. package/docs/porting/threejs-unsupported.md +91 -0
  232. package/docs/porting/verification.md +191 -0
  233. package/docs/shaders/builtins.md +129 -0
  234. package/docs/shaders/library.md +1374 -0
  235. package/docs/shaders/surface-functions.md +626 -0
  236. package/docs/shaders/wgsl-rules.md +126 -0
  237. package/levels/pieces.d.ts +178 -0
  238. package/levels/pieces.js +759 -0
  239. package/levels/planner.d.ts +126 -0
  240. package/levels/planner.js +682 -0
  241. package/lib/debug/channel.d.ts +103 -0
  242. package/lib/debug/channel.js +269 -0
  243. package/lib/debug/debug.d.ts +180 -0
  244. package/lib/debug/debug.js +4 -0
  245. package/lib/debug/draw.d.ts +146 -0
  246. package/lib/debug/draw.js +719 -0
  247. package/lib/debug/frame-target.d.ts +11 -0
  248. package/lib/debug/frame-target.js +31 -0
  249. package/lib/debug/inspector.d.ts +60 -0
  250. package/lib/debug/inspector.js +475 -0
  251. package/lib/debug/overlay-look.d.ts +162 -0
  252. package/lib/debug/overlay-look.js +1365 -0
  253. package/lib/debug/overlay.d.ts +68 -0
  254. package/lib/debug/overlay.js +195 -0
  255. package/lib/debug/page-meters.d.ts +139 -0
  256. package/lib/debug/page-meters.js +267 -0
  257. package/lib/debug/sketch-debug.d.ts +41 -0
  258. package/lib/debug/sketch-debug.js +86 -0
  259. package/lib/debug/stats-options.d.ts +15 -0
  260. package/lib/debug/stats-options.js +3 -0
  261. package/lib/debug/stats-panel.d.ts +94 -0
  262. package/lib/debug/stats-panel.js +123 -0
  263. package/lib/debug/stats-text.d.ts +169 -0
  264. package/lib/debug/stats-text.js +126 -0
  265. package/lib/debug/stats.d.ts +195 -0
  266. package/lib/debug/stats.js +252 -0
  267. package/lib/debug/view-names.d.ts +15 -0
  268. package/lib/debug/view-names.js +22 -0
  269. package/lib/errors/checks.d.ts +24 -0
  270. package/lib/errors/checks.js +38 -0
  271. package/lib/errors/codes.d.ts +15 -0
  272. package/lib/errors/codes.js +489 -0
  273. package/lib/errors/core-failure.d.ts +19 -0
  274. package/lib/errors/core-failure.js +127 -0
  275. package/lib/errors/engine-error-core.d.ts +21 -0
  276. package/lib/errors/engine-error-core.js +39 -0
  277. package/lib/errors/engine-error.d.ts +38 -0
  278. package/lib/errors/engine-error.js +132 -0
  279. package/lib/errors/fixes.d.ts +89 -0
  280. package/lib/errors/fixes.js +86 -0
  281. package/lib/errors/message.d.ts +4 -0
  282. package/lib/errors/message.js +10 -0
  283. package/lib/generated/core.d.ts +657 -0
  284. package/lib/generated/core.js +659 -0
  285. package/lib/generated/gpu.d.ts +412 -0
  286. package/lib/generated/gpu.js +414 -0
  287. package/lib/generated/shader-features.d.ts +8 -0
  288. package/lib/generated/shader-permutations.d.ts +6 -0
  289. package/lib/generated/shader-permutations.js +9 -0
  290. package/lib/generated/shaders-environment-glsl.d.ts +11 -0
  291. package/lib/generated/shaders-environment-wgsl.d.ts +11 -0
  292. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
  293. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage.d.ts +3 -0
  294. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
  295. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement.d.ts +3 -0
  296. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
  297. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash.d.ts +3 -0
  298. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  299. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
  300. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
  301. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph.d.ts +3 -0
  302. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
  303. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values.d.ts +3 -0
  304. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
  305. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning.d.ts +3 -0
  306. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
  307. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission.d.ts +3 -0
  308. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
  309. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted.d.ts +3 -0
  310. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-half.d.ts +3 -0
  311. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen.d.ts +3 -0
  312. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement-half.d.ts +3 -0
  313. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement.d.ts +3 -0
  314. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
  315. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade.d.ts +3 -0
  316. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph-half.d.ts +3 -0
  317. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph.d.ts +3 -0
  318. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values-half.d.ts +3 -0
  319. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values.d.ts +3 -0
  320. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning-half.d.ts +3 -0
  321. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning.d.ts +3 -0
  322. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency-half.d.ts +3 -0
  323. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency.d.ts +3 -0
  324. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission-half.d.ts +3 -0
  325. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission.d.ts +3 -0
  326. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-half.d.ts +3 -0
  327. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage.d.ts +3 -0
  328. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash-half.d.ts +3 -0
  329. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash.d.ts +3 -0
  330. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph-half.d.ts +3 -0
  331. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph.d.ts +3 -0
  332. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values-half.d.ts +3 -0
  333. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values.d.ts +3 -0
  334. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning-half.d.ts +3 -0
  335. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning.d.ts +3 -0
  336. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency-half.d.ts +3 -0
  337. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency.d.ts +3 -0
  338. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission-half.d.ts +3 -0
  339. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission.d.ts +3 -0
  340. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted-half.d.ts +3 -0
  341. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted.d.ts +3 -0
  342. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-half.d.ts +3 -0
  343. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement.d.ts +3 -0
  344. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph-half.d.ts +3 -0
  345. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph.d.ts +3 -0
  346. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values-half.d.ts +3 -0
  347. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values.d.ts +3 -0
  348. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning-half.d.ts +3 -0
  349. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning.d.ts +3 -0
  350. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency-half.d.ts +3 -0
  351. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency.d.ts +3 -0
  352. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-half.d.ts +3 -0
  353. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash.d.ts +3 -0
  354. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
  355. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values.d.ts +3 -0
  356. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
  357. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency.d.ts +3 -0
  358. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-half.d.ts +3 -0
  359. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade.d.ts +3 -0
  360. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning-half.d.ts +3 -0
  361. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning.d.ts +3 -0
  362. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency-half.d.ts +3 -0
  363. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency.d.ts +3 -0
  364. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission-half.d.ts +3 -0
  365. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission.d.ts +3 -0
  366. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted-half.d.ts +3 -0
  367. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted.d.ts +3 -0
  368. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-half.d.ts +3 -0
  369. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph.d.ts +3 -0
  370. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency-half.d.ts +3 -0
  371. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency.d.ts +3 -0
  372. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted-half.d.ts +3 -0
  373. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted.d.ts +3 -0
  374. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-half.d.ts +3 -0
  375. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values.d.ts +3 -0
  376. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency-half.d.ts +3 -0
  377. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency.d.ts +3 -0
  378. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission-half.d.ts +3 -0
  379. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission.d.ts +3 -0
  380. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted-half.d.ts +3 -0
  381. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted.d.ts +3 -0
  382. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-half.d.ts +3 -0
  383. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning.d.ts +3 -0
  384. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency-half.d.ts +3 -0
  385. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency.d.ts +3 -0
  386. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission-half.d.ts +3 -0
  387. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission.d.ts +3 -0
  388. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted-half.d.ts +3 -0
  389. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted.d.ts +3 -0
  390. package/lib/generated/shaders-glsl-combos-area-lights-and-bump-half.d.ts +3 -0
  391. package/lib/generated/shaders-glsl-combos-area-lights-and-bump.d.ts +3 -0
  392. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement-half.d.ts +3 -0
  393. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement.d.ts +3 -0
  394. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade-half.d.ts +3 -0
  395. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade.d.ts +3 -0
  396. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph-half.d.ts +3 -0
  397. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph.d.ts +3 -0
  398. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values-half.d.ts +3 -0
  399. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values.d.ts +3 -0
  400. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning-half.d.ts +3 -0
  401. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning.d.ts +3 -0
  402. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission-half.d.ts +3 -0
  403. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission.d.ts +3 -0
  404. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-half.d.ts +3 -0
  405. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage.d.ts +3 -0
  406. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash-half.d.ts +3 -0
  407. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash.d.ts +3 -0
  408. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph-half.d.ts +3 -0
  409. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph.d.ts +3 -0
  410. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values-half.d.ts +3 -0
  411. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values.d.ts +3 -0
  412. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning-half.d.ts +3 -0
  413. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning.d.ts +3 -0
  414. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission-half.d.ts +3 -0
  415. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission.d.ts +3 -0
  416. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted-half.d.ts +3 -0
  417. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted.d.ts +3 -0
  418. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-half.d.ts +3 -0
  419. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement.d.ts +3 -0
  420. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph-half.d.ts +3 -0
  421. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph.d.ts +3 -0
  422. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values-half.d.ts +3 -0
  423. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values.d.ts +3 -0
  424. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning-half.d.ts +3 -0
  425. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning.d.ts +3 -0
  426. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-half.d.ts +3 -0
  427. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash.d.ts +3 -0
  428. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values-half.d.ts +3 -0
  429. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values.d.ts +3 -0
  430. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  431. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade.d.ts +3 -0
  432. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning-half.d.ts +3 -0
  433. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning.d.ts +3 -0
  434. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission-half.d.ts +3 -0
  435. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission.d.ts +3 -0
  436. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted-half.d.ts +3 -0
  437. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted.d.ts +3 -0
  438. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-half.d.ts +3 -0
  439. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph.d.ts +3 -0
  440. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted-half.d.ts +3 -0
  441. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted.d.ts +3 -0
  442. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-half.d.ts +3 -0
  443. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values.d.ts +3 -0
  444. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission-half.d.ts +3 -0
  445. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission.d.ts +3 -0
  446. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted-half.d.ts +3 -0
  447. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted.d.ts +3 -0
  448. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-half.d.ts +3 -0
  449. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning.d.ts +3 -0
  450. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission-half.d.ts +3 -0
  451. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission.d.ts +3 -0
  452. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted-half.d.ts +3 -0
  453. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted.d.ts +3 -0
  454. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
  455. package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
  456. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph-half.d.ts +3 -0
  457. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph.d.ts +3 -0
  458. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values-half.d.ts +3 -0
  459. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values.d.ts +3 -0
  460. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning-half.d.ts +3 -0
  461. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning.d.ts +3 -0
  462. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency-half.d.ts +3 -0
  463. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency.d.ts +3 -0
  464. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission-half.d.ts +3 -0
  465. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission.d.ts +3 -0
  466. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-half.d.ts +3 -0
  467. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement.d.ts +3 -0
  468. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values-half.d.ts +3 -0
  469. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values.d.ts +3 -0
  470. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency-half.d.ts +3 -0
  471. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency.d.ts +3 -0
  472. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-half.d.ts +3 -0
  473. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade.d.ts +3 -0
  474. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning-half.d.ts +3 -0
  475. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning.d.ts +3 -0
  476. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency-half.d.ts +3 -0
  477. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency.d.ts +3 -0
  478. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission-half.d.ts +3 -0
  479. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission.d.ts +3 -0
  480. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-half.d.ts +3 -0
  481. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph.d.ts +3 -0
  482. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency-half.d.ts +3 -0
  483. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency.d.ts +3 -0
  484. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-half.d.ts +3 -0
  485. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values.d.ts +3 -0
  486. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency-half.d.ts +3 -0
  487. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency.d.ts +3 -0
  488. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission-half.d.ts +3 -0
  489. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission.d.ts +3 -0
  490. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-half.d.ts +3 -0
  491. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning.d.ts +3 -0
  492. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency-half.d.ts +3 -0
  493. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency.d.ts +3 -0
  494. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission-half.d.ts +3 -0
  495. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission.d.ts +3 -0
  496. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-half.d.ts +3 -0
  497. package/lib/generated/shaders-glsl-combos-area-lights-and-coverage.d.ts +3 -0
  498. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph-half.d.ts +3 -0
  499. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph.d.ts +3 -0
  500. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values-half.d.ts +3 -0
  501. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values.d.ts +3 -0
  502. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning-half.d.ts +3 -0
  503. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning.d.ts +3 -0
  504. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency-half.d.ts +3 -0
  505. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency.d.ts +3 -0
  506. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-half.d.ts +3 -0
  507. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash.d.ts +3 -0
  508. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph-half.d.ts +3 -0
  509. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph.d.ts +3 -0
  510. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values-half.d.ts +3 -0
  511. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values.d.ts +3 -0
  512. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning-half.d.ts +3 -0
  513. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning.d.ts +3 -0
  514. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency-half.d.ts +3 -0
  515. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency.d.ts +3 -0
  516. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-half.d.ts +3 -0
  517. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment.d.ts +3 -0
  518. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning-half.d.ts +3 -0
  519. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning.d.ts +3 -0
  520. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency-half.d.ts +3 -0
  521. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency.d.ts +3 -0
  522. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission-half.d.ts +3 -0
  523. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission.d.ts +3 -0
  524. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted-half.d.ts +3 -0
  525. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted.d.ts +3 -0
  526. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-half.d.ts +3 -0
  527. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph.d.ts +3 -0
  528. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency-half.d.ts +3 -0
  529. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency.d.ts +3 -0
  530. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted-half.d.ts +3 -0
  531. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted.d.ts +3 -0
  532. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-half.d.ts +3 -0
  533. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values.d.ts +3 -0
  534. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency-half.d.ts +3 -0
  535. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency.d.ts +3 -0
  536. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission-half.d.ts +3 -0
  537. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission.d.ts +3 -0
  538. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted-half.d.ts +3 -0
  539. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted.d.ts +3 -0
  540. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-half.d.ts +3 -0
  541. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning.d.ts +3 -0
  542. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency-half.d.ts +3 -0
  543. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency.d.ts +3 -0
  544. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission-half.d.ts +3 -0
  545. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission.d.ts +3 -0
  546. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted-half.d.ts +3 -0
  547. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted.d.ts +3 -0
  548. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-half.d.ts +3 -0
  549. package/lib/generated/shaders-glsl-combos-area-lights-and-displacement.d.ts +3 -0
  550. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning-half.d.ts +3 -0
  551. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning.d.ts +3 -0
  552. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency-half.d.ts +3 -0
  553. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency.d.ts +3 -0
  554. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-half.d.ts +3 -0
  555. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph.d.ts +3 -0
  556. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency-half.d.ts +3 -0
  557. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency.d.ts +3 -0
  558. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-half.d.ts +3 -0
  559. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values.d.ts +3 -0
  560. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency-half.d.ts +3 -0
  561. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency.d.ts +3 -0
  562. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-half.d.ts +3 -0
  563. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning.d.ts +3 -0
  564. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency-half.d.ts +3 -0
  565. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency.d.ts +3 -0
  566. package/lib/generated/shaders-glsl-combos-area-lights-and-hash-half.d.ts +3 -0
  567. package/lib/generated/shaders-glsl-combos-area-lights-and-hash.d.ts +3 -0
  568. package/lib/generated/shaders-glsl-combos-area-lights-and-lines.d.ts +3 -0
  569. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency-half.d.ts +3 -0
  570. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency.d.ts +3 -0
  571. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-half.d.ts +3 -0
  572. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values.d.ts +3 -0
  573. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency-half.d.ts +3 -0
  574. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency.d.ts +3 -0
  575. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
  576. package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade.d.ts +3 -0
  577. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning-half.d.ts +3 -0
  578. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning.d.ts +3 -0
  579. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency-half.d.ts +3 -0
  580. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency.d.ts +3 -0
  581. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-half.d.ts +3 -0
  582. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph.d.ts +3 -0
  583. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency-half.d.ts +3 -0
  584. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency.d.ts +3 -0
  585. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-half.d.ts +3 -0
  586. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values.d.ts +3 -0
  587. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency-half.d.ts +3 -0
  588. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency.d.ts +3 -0
  589. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-half.d.ts +3 -0
  590. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning.d.ts +3 -0
  591. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency-half.d.ts +3 -0
  592. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency.d.ts +3 -0
  593. package/lib/generated/shaders-glsl-combos-area-lights-and-moment-half.d.ts +3 -0
  594. package/lib/generated/shaders-glsl-combos-area-lights-and-moment.d.ts +3 -0
  595. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency-half.d.ts +3 -0
  596. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency.d.ts +3 -0
  597. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission-half.d.ts +3 -0
  598. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission.d.ts +3 -0
  599. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted-half.d.ts +3 -0
  600. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted.d.ts +3 -0
  601. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-half.d.ts +3 -0
  602. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning.d.ts +3 -0
  603. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency-half.d.ts +3 -0
  604. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency.d.ts +3 -0
  605. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission-half.d.ts +3 -0
  606. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission.d.ts +3 -0
  607. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted-half.d.ts +3 -0
  608. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted.d.ts +3 -0
  609. package/lib/generated/shaders-glsl-combos-area-lights-and-morph-half.d.ts +3 -0
  610. package/lib/generated/shaders-glsl-combos-area-lights-and-morph.d.ts +3 -0
  611. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency-half.d.ts +3 -0
  612. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency.d.ts +3 -0
  613. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted-half.d.ts +3 -0
  614. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted.d.ts +3 -0
  615. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-half.d.ts +3 -0
  616. package/lib/generated/shaders-glsl-combos-area-lights-and-row-values.d.ts +3 -0
  617. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency-half.d.ts +3 -0
  618. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency.d.ts +3 -0
  619. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission-half.d.ts +3 -0
  620. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission.d.ts +3 -0
  621. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted-half.d.ts +3 -0
  622. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted.d.ts +3 -0
  623. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-half.d.ts +3 -0
  624. package/lib/generated/shaders-glsl-combos-area-lights-and-skinning.d.ts +3 -0
  625. package/lib/generated/shaders-glsl-combos-area-lights-and-translucency-half.d.ts +3 -0
  626. package/lib/generated/shaders-glsl-combos-area-lights-and-translucency.d.ts +3 -0
  627. package/lib/generated/shaders-glsl-combos-area-lights-and-transmission-half.d.ts +3 -0
  628. package/lib/generated/shaders-glsl-combos-area-lights-and-transmission.d.ts +3 -0
  629. package/lib/generated/shaders-glsl-combos-area-lights-and-weighted-half.d.ts +3 -0
  630. package/lib/generated/shaders-glsl-combos-area-lights-and-weighted.d.ts +3 -0
  631. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
  632. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage.d.ts +3 -0
  633. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
  634. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement.d.ts +3 -0
  635. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
  636. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash.d.ts +3 -0
  637. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
  638. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
  639. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
  640. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph.d.ts +3 -0
  641. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
  642. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values.d.ts +3 -0
  643. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
  644. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning.d.ts +3 -0
  645. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
  646. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission.d.ts +3 -0
  647. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
  648. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted.d.ts +3 -0
  649. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-half.d.ts +3 -0
  650. package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen.d.ts +3 -0
  651. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement-half.d.ts +3 -0
  652. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement.d.ts +3 -0
  653. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
  654. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade.d.ts +3 -0
  655. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph-half.d.ts +3 -0
  656. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph.d.ts +3 -0
  657. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values-half.d.ts +3 -0
  658. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values.d.ts +3 -0
  659. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning-half.d.ts +3 -0
  660. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning.d.ts +3 -0
  661. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency-half.d.ts +3 -0
  662. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency.d.ts +3 -0
  663. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission-half.d.ts +3 -0
  664. package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission.d.ts +3 -0
  665. package/lib/generated/shaders-glsl-combos-bump-and-coverage-half.d.ts +3 -0
  666. package/lib/generated/shaders-glsl-combos-bump-and-coverage.d.ts +3 -0
  667. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash-half.d.ts +3 -0
  668. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash.d.ts +3 -0
  669. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph-half.d.ts +3 -0
  670. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph.d.ts +3 -0
  671. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values-half.d.ts +3 -0
  672. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values.d.ts +3 -0
  673. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning-half.d.ts +3 -0
  674. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning.d.ts +3 -0
  675. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency-half.d.ts +3 -0
  676. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency.d.ts +3 -0
  677. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission-half.d.ts +3 -0
  678. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission.d.ts +3 -0
  679. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted-half.d.ts +3 -0
  680. package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted.d.ts +3 -0
  681. package/lib/generated/shaders-glsl-combos-bump-and-displacement-half.d.ts +3 -0
  682. package/lib/generated/shaders-glsl-combos-bump-and-displacement.d.ts +3 -0
  683. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph-half.d.ts +3 -0
  684. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph.d.ts +3 -0
  685. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values-half.d.ts +3 -0
  686. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values.d.ts +3 -0
  687. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning-half.d.ts +3 -0
  688. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning.d.ts +3 -0
  689. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency-half.d.ts +3 -0
  690. package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency.d.ts +3 -0
  691. package/lib/generated/shaders-glsl-combos-bump-and-hash-half.d.ts +3 -0
  692. package/lib/generated/shaders-glsl-combos-bump-and-hash.d.ts +3 -0
  693. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
  694. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values.d.ts +3 -0
  695. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
  696. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency.d.ts +3 -0
  697. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-half.d.ts +3 -0
  698. package/lib/generated/shaders-glsl-combos-bump-and-lod-fade.d.ts +3 -0
  699. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning-half.d.ts +3 -0
  700. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning.d.ts +3 -0
  701. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency-half.d.ts +3 -0
  702. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency.d.ts +3 -0
  703. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission-half.d.ts +3 -0
  704. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission.d.ts +3 -0
  705. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted-half.d.ts +3 -0
  706. package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted.d.ts +3 -0
  707. package/lib/generated/shaders-glsl-combos-bump-and-morph-half.d.ts +3 -0
  708. package/lib/generated/shaders-glsl-combos-bump-and-morph.d.ts +3 -0
  709. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency-half.d.ts +3 -0
  710. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency.d.ts +3 -0
  711. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted-half.d.ts +3 -0
  712. package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted.d.ts +3 -0
  713. package/lib/generated/shaders-glsl-combos-bump-and-row-values-half.d.ts +3 -0
  714. package/lib/generated/shaders-glsl-combos-bump-and-row-values.d.ts +3 -0
  715. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency-half.d.ts +3 -0
  716. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency.d.ts +3 -0
  717. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission-half.d.ts +3 -0
  718. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission.d.ts +3 -0
  719. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted-half.d.ts +3 -0
  720. package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted.d.ts +3 -0
  721. package/lib/generated/shaders-glsl-combos-bump-and-skinning-half.d.ts +3 -0
  722. package/lib/generated/shaders-glsl-combos-bump-and-skinning.d.ts +3 -0
  723. package/lib/generated/shaders-glsl-combos-bump-and-translucency-half.d.ts +3 -0
  724. package/lib/generated/shaders-glsl-combos-bump-and-translucency.d.ts +3 -0
  725. package/lib/generated/shaders-glsl-combos-bump-and-transmission-half.d.ts +3 -0
  726. package/lib/generated/shaders-glsl-combos-bump-and-transmission.d.ts +3 -0
  727. package/lib/generated/shaders-glsl-combos-bump-and-weighted-half.d.ts +3 -0
  728. package/lib/generated/shaders-glsl-combos-bump-and-weighted.d.ts +3 -0
  729. package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage-half.d.ts +3 -0
  730. package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage.d.ts +3 -0
  731. package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement-half.d.ts +3 -0
  732. package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement.d.ts +3 -0
  733. package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash-half.d.ts +3 -0
  734. package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash.d.ts +3 -0
  735. package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade-half.d.ts +3 -0
  736. package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade.d.ts +3 -0
  737. package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph-half.d.ts +3 -0
  738. package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph.d.ts +3 -0
  739. package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values-half.d.ts +3 -0
  740. package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values.d.ts +3 -0
  741. package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning-half.d.ts +3 -0
  742. package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning.d.ts +3 -0
  743. package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission-half.d.ts +3 -0
  744. package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission.d.ts +3 -0
  745. package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted-half.d.ts +3 -0
  746. package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted.d.ts +3 -0
  747. package/lib/generated/shaders-glsl-combos-coverage-half.d.ts +3 -0
  748. package/lib/generated/shaders-glsl-combos-coverage.d.ts +3 -0
  749. package/lib/generated/shaders-glsl-combos-cutout.d.ts +3 -0
  750. package/lib/generated/shaders-glsl-combos-decals-half.d.ts +3 -0
  751. package/lib/generated/shaders-glsl-combos-decals.d.ts +3 -0
  752. package/lib/generated/shaders-glsl-combos-displacement-half.d.ts +3 -0
  753. package/lib/generated/shaders-glsl-combos-displacement.d.ts +3 -0
  754. package/lib/generated/shaders-glsl-combos-hash-half.d.ts +3 -0
  755. package/lib/generated/shaders-glsl-combos-hash.d.ts +3 -0
  756. package/lib/generated/shaders-glsl-combos-lod-fade-half.d.ts +3 -0
  757. package/lib/generated/shaders-glsl-combos-lod-fade.d.ts +3 -0
  758. package/lib/generated/shaders-glsl-combos-moment-half.d.ts +3 -0
  759. package/lib/generated/shaders-glsl-combos-moment.d.ts +3 -0
  760. package/lib/generated/shaders-glsl-combos-morph-half.d.ts +3 -0
  761. package/lib/generated/shaders-glsl-combos-morph.d.ts +3 -0
  762. package/lib/generated/shaders-glsl-combos-motion.d.ts +3 -0
  763. package/lib/generated/shaders-glsl-combos-picking.d.ts +3 -0
  764. package/lib/generated/shaders-glsl-combos-probe-grid-half.d.ts +3 -0
  765. package/lib/generated/shaders-glsl-combos-probe-grid.d.ts +3 -0
  766. package/lib/generated/shaders-glsl-combos-row-values-half.d.ts +3 -0
  767. package/lib/generated/shaders-glsl-combos-row-values.d.ts +3 -0
  768. package/lib/generated/shaders-glsl-combos-skinning-half.d.ts +3 -0
  769. package/lib/generated/shaders-glsl-combos-skinning.d.ts +3 -0
  770. package/lib/generated/shaders-glsl-combos-sprites.d.ts +3 -0
  771. package/lib/generated/shaders-glsl-combos-subsurface-half.d.ts +3 -0
  772. package/lib/generated/shaders-glsl-combos-subsurface.d.ts +3 -0
  773. package/lib/generated/shaders-probe-glsl.d.ts +11 -0
  774. package/lib/generated/shaders-probe-wgsl.d.ts +11 -0
  775. package/lib/generated/shaders-sky-volume-env-glsl.d.ts +11 -0
  776. package/lib/generated/shaders-sky-volume-env-wgsl.d.ts +11 -0
  777. package/lib/generated/shaders-sky-volume-panorama-glsl.d.ts +11 -0
  778. package/lib/generated/shaders-sky-volume-panorama-wgsl.d.ts +11 -0
  779. package/lib/generated/shaders-wgsl-combos-area-lights-and-bump-half.d.ts +3 -0
  780. package/lib/generated/shaders-wgsl-combos-area-lights-and-bump.d.ts +3 -0
  781. package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
  782. package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
  783. package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage-half.d.ts +3 -0
  784. package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage.d.ts +3 -0
  785. package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement-half.d.ts +3 -0
  786. package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement.d.ts +3 -0
  787. package/lib/generated/shaders-wgsl-combos-area-lights-and-hash-half.d.ts +3 -0
  788. package/lib/generated/shaders-wgsl-combos-area-lights-and-hash.d.ts +3 -0
  789. package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index-half.d.ts +3 -0
  790. package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index.d.ts +3 -0
  791. package/lib/generated/shaders-wgsl-combos-area-lights-and-lines.d.ts +3 -0
  792. package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
  793. package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade.d.ts +3 -0
  794. package/lib/generated/shaders-wgsl-combos-area-lights-and-moment-half.d.ts +3 -0
  795. package/lib/generated/shaders-wgsl-combos-area-lights-and-moment.d.ts +3 -0
  796. package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values-half.d.ts +3 -0
  797. package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values.d.ts +3 -0
  798. package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning-half.d.ts +3 -0
  799. package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning.d.ts +3 -0
  800. package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency-half.d.ts +3 -0
  801. package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency.d.ts +3 -0
  802. package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission-half.d.ts +3 -0
  803. package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission.d.ts +3 -0
  804. package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted-half.d.ts +3 -0
  805. package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted.d.ts +3 -0
  806. package/lib/generated/shaders-wgsl-combos-bump-half.d.ts +3 -0
  807. package/lib/generated/shaders-wgsl-combos-bump.d.ts +3 -0
  808. package/lib/generated/shaders-wgsl-combos-coat-sheen-half.d.ts +3 -0
  809. package/lib/generated/shaders-wgsl-combos-coat-sheen.d.ts +3 -0
  810. package/lib/generated/shaders-wgsl-combos-coverage-half.d.ts +3 -0
  811. package/lib/generated/shaders-wgsl-combos-coverage.d.ts +3 -0
  812. package/lib/generated/shaders-wgsl-combos-cutout.d.ts +3 -0
  813. package/lib/generated/shaders-wgsl-combos-decals-half.d.ts +3 -0
  814. package/lib/generated/shaders-wgsl-combos-decals.d.ts +3 -0
  815. package/lib/generated/shaders-wgsl-combos-displacement-half.d.ts +3 -0
  816. package/lib/generated/shaders-wgsl-combos-displacement.d.ts +3 -0
  817. package/lib/generated/shaders-wgsl-combos-hash-half.d.ts +3 -0
  818. package/lib/generated/shaders-wgsl-combos-hash.d.ts +3 -0
  819. package/lib/generated/shaders-wgsl-combos-instance-index-half.d.ts +3 -0
  820. package/lib/generated/shaders-wgsl-combos-instance-index.d.ts +3 -0
  821. package/lib/generated/shaders-wgsl-combos-lod-fade-half.d.ts +3 -0
  822. package/lib/generated/shaders-wgsl-combos-lod-fade.d.ts +3 -0
  823. package/lib/generated/shaders-wgsl-combos-moment-half.d.ts +3 -0
  824. package/lib/generated/shaders-wgsl-combos-moment.d.ts +3 -0
  825. package/lib/generated/shaders-wgsl-combos-motion.d.ts +3 -0
  826. package/lib/generated/shaders-wgsl-combos-picking.d.ts +3 -0
  827. package/lib/generated/shaders-wgsl-combos-probe-grid-half.d.ts +3 -0
  828. package/lib/generated/shaders-wgsl-combos-probe-grid.d.ts +3 -0
  829. package/lib/generated/shaders-wgsl-combos-row-values-half.d.ts +3 -0
  830. package/lib/generated/shaders-wgsl-combos-row-values.d.ts +3 -0
  831. package/lib/generated/shaders-wgsl-combos-skinning-half.d.ts +3 -0
  832. package/lib/generated/shaders-wgsl-combos-skinning.d.ts +3 -0
  833. package/lib/generated/shaders-wgsl-combos-sprites.d.ts +3 -0
  834. package/lib/generated/shaders-wgsl-combos-subsurface-half.d.ts +3 -0
  835. package/lib/generated/shaders-wgsl-combos-subsurface.d.ts +3 -0
  836. package/lib/generated/shaders.d.ts +1146 -0
  837. package/lib/gpu/canvas-release.d.ts +20 -0
  838. package/lib/gpu/canvas-release.js +67 -0
  839. package/lib/gpu/completion.d.ts +35 -0
  840. package/lib/gpu/completion.js +256 -0
  841. package/lib/gpu/device-shaders.d.ts +69 -0
  842. package/lib/gpu/device-shaders.js +177 -0
  843. package/lib/gpu/early-builds.d.ts +68 -0
  844. package/lib/gpu/early-builds.js +158 -0
  845. package/lib/gpu/effect-join.d.ts +83 -0
  846. package/lib/gpu/effect-join.js +134 -0
  847. package/lib/gpu/effect-joiner.d.ts +14 -0
  848. package/lib/gpu/effect-joiner.js +165 -0
  849. package/lib/gpu/environment-steps.d.ts +135 -0
  850. package/lib/gpu/environment-steps.js +210 -0
  851. package/lib/gpu/environment-words.d.ts +14 -0
  852. package/lib/gpu/environment-words.js +19 -0
  853. package/lib/gpu/environment.d.ts +4 -0
  854. package/lib/gpu/environment.js +8 -0
  855. package/lib/gpu/float-bits.d.ts +2 -0
  856. package/lib/gpu/float-bits.js +9 -0
  857. package/lib/gpu/line-vertices.d.ts +1 -0
  858. package/lib/gpu/line-vertices.js +14 -0
  859. package/lib/gpu/memory.d.ts +19 -0
  860. package/lib/gpu/memory.js +50 -0
  861. package/lib/gpu/particle-records.d.ts +1 -0
  862. package/lib/gpu/particle-records.js +15 -0
  863. package/lib/gpu/pipeline-name.d.ts +6 -0
  864. package/lib/gpu/pipeline-name.js +23 -0
  865. package/lib/gpu/probe-steps.d.ts +22 -0
  866. package/lib/gpu/probe-steps.js +43 -0
  867. package/lib/gpu/readback.d.ts +32 -0
  868. package/lib/gpu/readback.js +163 -0
  869. package/lib/gpu/variants.d.ts +16 -0
  870. package/lib/gpu/variants.js +67 -0
  871. package/lib/gpu/vertex-format.d.ts +46 -0
  872. package/lib/gpu/vertex-format.js +111 -0
  873. package/lib/gpu/webgl2/backend.d.ts +714 -0
  874. package/lib/gpu/webgl2/backend.js +2964 -0
  875. package/lib/gpu/webgl2/call-timing.d.ts +34 -0
  876. package/lib/gpu/webgl2/call-timing.js +143 -0
  877. package/lib/gpu/webgl2/context.d.ts +31 -0
  878. package/lib/gpu/webgl2/context.js +111 -0
  879. package/lib/gpu/webgl2/depth.d.ts +25 -0
  880. package/lib/gpu/webgl2/depth.js +30 -0
  881. package/lib/gpu/webgl2/environment.d.ts +65 -0
  882. package/lib/gpu/webgl2/environment.js +572 -0
  883. package/lib/gpu/webgl2/gpu-timer.d.ts +25 -0
  884. package/lib/gpu/webgl2/gpu-timer.js +93 -0
  885. package/lib/gpu/webgl2/probes.d.ts +38 -0
  886. package/lib/gpu/webgl2/probes.js +117 -0
  887. package/lib/gpu/webgl2/programs.d.ts +238 -0
  888. package/lib/gpu/webgl2/programs.js +487 -0
  889. package/lib/gpu/webgpu/backend.d.ts +460 -0
  890. package/lib/gpu/webgpu/backend.js +1812 -0
  891. package/lib/gpu/webgpu/buffer-reads.d.ts +42 -0
  892. package/lib/gpu/webgpu/buffer-reads.js +95 -0
  893. package/lib/gpu/webgpu/culled-counts.d.ts +79 -0
  894. package/lib/gpu/webgpu/culled-counts.js +259 -0
  895. package/lib/gpu/webgpu/draw-path-probe.d.ts +37 -0
  896. package/lib/gpu/webgpu/draw-path-probe.js +187 -0
  897. package/lib/gpu/webgpu/environment.d.ts +36 -0
  898. package/lib/gpu/webgpu/environment.js +735 -0
  899. package/lib/gpu/webgpu/first-pass.d.ts +13 -0
  900. package/lib/gpu/webgpu/first-pass.js +61 -0
  901. package/lib/gpu/webgpu/gpu-timer.d.ts +67 -0
  902. package/lib/gpu/webgpu/gpu-timer.js +328 -0
  903. package/lib/gpu/webgpu/indirect-arguments.d.ts +42 -0
  904. package/lib/gpu/webgpu/indirect-arguments.js +156 -0
  905. package/lib/gpu/webgpu/pipelines.d.ts +264 -0
  906. package/lib/gpu/webgpu/pipelines.js +2013 -0
  907. package/lib/gpu/webgpu/probes.d.ts +27 -0
  908. package/lib/gpu/webgpu/probes.js +190 -0
  909. package/lib/gpu/webgpu/reusable.d.ts +74 -0
  910. package/lib/gpu/webgpu/reusable.js +212 -0
  911. package/lib/gpu/webgpu/staging.d.ts +79 -0
  912. package/lib/gpu/webgpu/staging.js +238 -0
  913. package/lib/gpu/webgpu/upload-routes.d.ts +55 -0
  914. package/lib/gpu/webgpu/upload-routes.js +128 -0
  915. package/lib/index.d.ts +121 -0
  916. package/lib/index.js +54 -0
  917. package/lib/math/color.d.ts +18 -0
  918. package/lib/math/color.js +71 -0
  919. package/lib/math/create-math.d.ts +101 -0
  920. package/lib/math/create-math.js +207 -0
  921. package/lib/math/hex.d.ts +8 -0
  922. package/lib/math/hex.js +38 -0
  923. package/lib/math/index.d.ts +2 -0
  924. package/lib/math/index.js +11 -0
  925. package/lib/math/mat4.d.ts +22 -0
  926. package/lib/math/mat4.js +206 -0
  927. package/lib/math/math.d.ts +16 -0
  928. package/lib/math/math.js +42 -0
  929. package/lib/math/namespaces/math.d.ts +7 -0
  930. package/lib/math/namespaces/math.js +14 -0
  931. package/lib/math/namespaces/quat.d.ts +20 -0
  932. package/lib/math/namespaces/quat.js +30 -0
  933. package/lib/math/namespaces/vec3.d.ts +4 -0
  934. package/lib/math/namespaces/vec3.js +8 -0
  935. package/lib/math/quat.d.ts +36 -0
  936. package/lib/math/quat.js +224 -0
  937. package/lib/math/random.d.ts +16 -0
  938. package/lib/math/random.js +57 -0
  939. package/lib/math/types.d.ts +43 -0
  940. package/lib/math/types.js +4 -0
  941. package/lib/math/vec3.d.ts +43 -0
  942. package/lib/math/vec3.js +187 -0
  943. package/lib/page/abortable.d.ts +2 -0
  944. package/lib/page/abortable.js +19 -0
  945. package/lib/page/browser-check.d.ts +8 -0
  946. package/lib/page/browser-check.js +23 -0
  947. package/lib/page/canvas-watch.d.ts +34 -0
  948. package/lib/page/canvas-watch.js +141 -0
  949. package/lib/page/capabilities.d.ts +201 -0
  950. package/lib/page/capabilities.js +409 -0
  951. package/lib/page/check-store.d.ts +54 -0
  952. package/lib/page/check-store.js +169 -0
  953. package/lib/page/display.d.ts +2 -0
  954. package/lib/page/display.js +25 -0
  955. package/lib/page/early-core.d.ts +1 -0
  956. package/lib/page/early-core.js +23 -0
  957. package/lib/page/engine.d.ts +942 -0
  958. package/lib/page/engine.js +2459 -0
  959. package/lib/page/first-frame.d.ts +16 -0
  960. package/lib/page/first-frame.js +35 -0
  961. package/lib/page/frame-stats.d.ts +402 -0
  962. package/lib/page/frame-stats.js +389 -0
  963. package/lib/page/gamepads.d.ts +37 -0
  964. package/lib/page/gamepads.js +123 -0
  965. package/lib/page/held-input.d.ts +19 -0
  966. package/lib/page/held-input.js +54 -0
  967. package/lib/page/hold.d.ts +186 -0
  968. package/lib/page/hold.js +49 -0
  969. package/lib/page/input-ring.d.ts +13 -0
  970. package/lib/page/input-ring.js +25 -0
  971. package/lib/page/input.d.ts +6 -0
  972. package/lib/page/input.js +159 -0
  973. package/lib/page/isolation-check.d.ts +14 -0
  974. package/lib/page/isolation-check.js +21 -0
  975. package/lib/page/label-loop.d.ts +80 -0
  976. package/lib/page/label-loop.js +417 -0
  977. package/lib/page/labels.d.ts +56 -0
  978. package/lib/page/labels.js +102 -0
  979. package/lib/page/limits.d.ts +321 -0
  980. package/lib/page/limits.js +323 -0
  981. package/lib/page/loader.d.ts +78 -0
  982. package/lib/page/loader.js +149 -0
  983. package/lib/page/main-thread.d.ts +10 -0
  984. package/lib/page/main-thread.js +41 -0
  985. package/lib/page/memory-pool.d.ts +26 -0
  986. package/lib/page/memory-pool.js +69 -0
  987. package/lib/page/ownership.d.ts +65 -0
  988. package/lib/page/ownership.js +166 -0
  989. package/lib/page/permutation-recording.d.ts +26 -0
  990. package/lib/page/permutation-recording.js +32 -0
  991. package/lib/page/pipeline-store.d.ts +25 -0
  992. package/lib/page/pipeline-store.js +84 -0
  993. package/lib/page/pointer-lock.d.ts +14 -0
  994. package/lib/page/pointer-lock.js +60 -0
  995. package/lib/page/preferences.d.ts +2 -0
  996. package/lib/page/preferences.js +11 -0
  997. package/lib/page/record-button.d.ts +5 -0
  998. package/lib/page/record-button.js +60 -0
  999. package/lib/page/start-marker.d.ts +47 -0
  1000. package/lib/page/start-marker.js +119 -0
  1001. package/lib/page/stats-switch.d.ts +16 -0
  1002. package/lib/page/stats-switch.js +38 -0
  1003. package/lib/page/stop-jobs.d.ts +37 -0
  1004. package/lib/page/stop-jobs.js +87 -0
  1005. package/lib/page/switches.d.ts +347 -0
  1006. package/lib/page/switches.js +150 -0
  1007. package/lib/page/videos.d.ts +70 -0
  1008. package/lib/page/videos.js +244 -0
  1009. package/lib/quality/budget.d.ts +14 -0
  1010. package/lib/quality/budget.js +25 -0
  1011. package/lib/quality/check.d.ts +119 -0
  1012. package/lib/quality/check.js +84 -0
  1013. package/lib/quality/chooser.d.ts +98 -0
  1014. package/lib/quality/chooser.js +108 -0
  1015. package/lib/quality/device-hints.d.ts +8 -0
  1016. package/lib/quality/device-hints.js +18 -0
  1017. package/lib/quality/governor.d.ts +571 -0
  1018. package/lib/quality/governor.js +1293 -0
  1019. package/lib/quality/preset-docs.d.ts +402 -0
  1020. package/lib/quality/preset-docs.js +179 -0
  1021. package/lib/quality/presets.d.ts +821 -0
  1022. package/lib/quality/presets.js +678 -0
  1023. package/lib/render/direct-loop.d.ts +4 -0
  1024. package/lib/render/direct-loop.js +52 -0
  1025. package/lib/render/draw.d.ts +66 -0
  1026. package/lib/render/draw.js +111 -0
  1027. package/lib/render/load-draw.d.ts +12 -0
  1028. package/lib/render/load-draw.js +18 -0
  1029. package/lib/render/loop.d.ts +241 -0
  1030. package/lib/render/loop.js +566 -0
  1031. package/lib/render/loss.d.ts +53 -0
  1032. package/lib/render/loss.js +127 -0
  1033. package/lib/render/pacer.d.ts +24 -0
  1034. package/lib/render/pacer.js +51 -0
  1035. package/lib/render/recovery.d.ts +82 -0
  1036. package/lib/render/recovery.js +160 -0
  1037. package/lib/render/refresh.d.ts +38 -0
  1038. package/lib/render/refresh.js +111 -0
  1039. package/lib/render/renderer.d.ts +192 -0
  1040. package/lib/render/renderer.js +295 -0
  1041. package/lib/render/scene-renderer.d.ts +135 -0
  1042. package/lib/render/scene-renderer.js +216 -0
  1043. package/lib/render/shader-salt.d.ts +5 -0
  1044. package/lib/render/shader-salt.js +31 -0
  1045. package/lib/render/webgl2-renderers.d.ts +11 -0
  1046. package/lib/render/webgl2-renderers.js +227 -0
  1047. package/lib/render/webgpu-renderers.d.ts +10 -0
  1048. package/lib/render/webgpu-renderers.js +254 -0
  1049. package/lib/scene/addon-debug-views.d.ts +30 -0
  1050. package/lib/scene/addon-debug-views.js +63 -0
  1051. package/lib/scene/animation.d.ts +547 -0
  1052. package/lib/scene/animation.js +1425 -0
  1053. package/lib/scene/area-light-tables.d.ts +32 -0
  1054. package/lib/scene/area-light-tables.js +89 -0
  1055. package/lib/scene/assets.d.ts +375 -0
  1056. package/lib/scene/assets.js +736 -0
  1057. package/lib/scene/background.d.ts +238 -0
  1058. package/lib/scene/background.js +470 -0
  1059. package/lib/scene/baked-light.d.ts +60 -0
  1060. package/lib/scene/baked-light.js +300 -0
  1061. package/lib/scene/builtin-environments.d.ts +36 -0
  1062. package/lib/scene/builtin-environments.js +43 -0
  1063. package/lib/scene/chunk-rows.d.ts +81 -0
  1064. package/lib/scene/chunk-rows.js +146 -0
  1065. package/lib/scene/color.d.ts +22 -0
  1066. package/lib/scene/color.js +45 -0
  1067. package/lib/scene/derived-cache.d.ts +139 -0
  1068. package/lib/scene/derived-cache.js +547 -0
  1069. package/lib/scene/downloads.d.ts +2 -0
  1070. package/lib/scene/downloads.js +371 -0
  1071. package/lib/scene/effects.d.ts +193 -0
  1072. package/lib/scene/effects.js +476 -0
  1073. package/lib/scene/environment-file.d.ts +22 -0
  1074. package/lib/scene/environment-file.js +81 -0
  1075. package/lib/scene/environment.d.ts +57 -0
  1076. package/lib/scene/environment.js +131 -0
  1077. package/lib/scene/fake-call-values.d.ts +8 -0
  1078. package/lib/scene/fake-call-values.js +51 -0
  1079. package/lib/scene/feature-draws.d.ts +169 -0
  1080. package/lib/scene/feature-draws.js +269 -0
  1081. package/lib/scene/feature-effects.d.ts +42 -0
  1082. package/lib/scene/feature-effects.js +155 -0
  1083. package/lib/scene/feature-host.d.ts +129 -0
  1084. package/lib/scene/feature-host.js +299 -0
  1085. package/lib/scene/feature-instances.d.ts +130 -0
  1086. package/lib/scene/feature-instances.js +326 -0
  1087. package/lib/scene/features.d.ts +412 -0
  1088. package/lib/scene/features.js +550 -0
  1089. package/lib/scene/file-limits.d.ts +70 -0
  1090. package/lib/scene/file-limits.js +224 -0
  1091. package/lib/scene/fog.d.ts +101 -0
  1092. package/lib/scene/fog.js +148 -0
  1093. package/lib/scene/frame-cameras.d.ts +175 -0
  1094. package/lib/scene/frame-cameras.js +492 -0
  1095. package/lib/scene/gltf-animation.d.ts +129 -0
  1096. package/lib/scene/gltf-animation.js +887 -0
  1097. package/lib/scene/gltf-draco.d.ts +9 -0
  1098. package/lib/scene/gltf-draco.js +224 -0
  1099. package/lib/scene/gltf-extensions.d.ts +31 -0
  1100. package/lib/scene/gltf-extensions.js +92 -0
  1101. package/lib/scene/gltf-json.d.ts +49 -0
  1102. package/lib/scene/gltf-json.js +94 -0
  1103. package/lib/scene/gltf-math.d.ts +16 -0
  1104. package/lib/scene/gltf-math.js +129 -0
  1105. package/lib/scene/gltf-meshopt.d.ts +3 -0
  1106. package/lib/scene/gltf-meshopt.js +48 -0
  1107. package/lib/scene/gltf-parse.d.ts +600 -0
  1108. package/lib/scene/gltf-parse.js +1854 -0
  1109. package/lib/scene/gltf.d.ts +189 -0
  1110. package/lib/scene/gltf.js +1589 -0
  1111. package/lib/scene/grade-table.d.ts +9 -0
  1112. package/lib/scene/grade-table.js +23 -0
  1113. package/lib/scene/grade-task.d.ts +12 -0
  1114. package/lib/scene/grade-task.js +11 -0
  1115. package/lib/scene/grading.d.ts +110 -0
  1116. package/lib/scene/grading.js +142 -0
  1117. package/lib/scene/half-float.d.ts +4 -0
  1118. package/lib/scene/half-float.js +42 -0
  1119. package/lib/scene/ktx2-cache.d.ts +32 -0
  1120. package/lib/scene/ktx2-cache.js +62 -0
  1121. package/lib/scene/ktx2-file.d.ts +57 -0
  1122. package/lib/scene/ktx2-file.js +207 -0
  1123. package/lib/scene/ktx2-transcode.d.ts +15 -0
  1124. package/lib/scene/ktx2-transcode.js +94 -0
  1125. package/lib/scene/ktx2.d.ts +42 -0
  1126. package/lib/scene/ktx2.js +179 -0
  1127. package/lib/scene/lens.d.ts +61 -0
  1128. package/lib/scene/lens.js +101 -0
  1129. package/lib/scene/level-meshopt.d.ts +20 -0
  1130. package/lib/scene/level-meshopt.js +122 -0
  1131. package/lib/scene/level-pieces.d.ts +24 -0
  1132. package/lib/scene/level-pieces.js +138 -0
  1133. package/lib/scene/level-rule.d.ts +120 -0
  1134. package/lib/scene/level-rule.js +130 -0
  1135. package/lib/scene/level-words.d.ts +19 -0
  1136. package/lib/scene/level-words.js +34 -0
  1137. package/lib/scene/levels-task.d.ts +51 -0
  1138. package/lib/scene/levels-task.js +132 -0
  1139. package/lib/scene/light-images.d.ts +36 -0
  1140. package/lib/scene/light-images.js +88 -0
  1141. package/lib/scene/light-probes.d.ts +240 -0
  1142. package/lib/scene/light-probes.js +644 -0
  1143. package/lib/scene/lines.d.ts +188 -0
  1144. package/lib/scene/lines.js +257 -0
  1145. package/lib/scene/lut-files.d.ts +41 -0
  1146. package/lib/scene/lut-files.js +399 -0
  1147. package/lib/scene/lut.d.ts +55 -0
  1148. package/lib/scene/lut.js +47 -0
  1149. package/lib/scene/memory.d.ts +72 -0
  1150. package/lib/scene/memory.js +159 -0
  1151. package/lib/scene/mesh-arrays.d.ts +110 -0
  1152. package/lib/scene/mesh-arrays.js +701 -0
  1153. package/lib/scene/mesh-levels.d.ts +10 -0
  1154. package/lib/scene/mesh-levels.js +52 -0
  1155. package/lib/scene/namespaces.d.ts +125 -0
  1156. package/lib/scene/namespaces.js +313 -0
  1157. package/lib/scene/panorama-files.d.ts +71 -0
  1158. package/lib/scene/panorama-files.js +1103 -0
  1159. package/lib/scene/panorama.d.ts +23 -0
  1160. package/lib/scene/panorama.js +108 -0
  1161. package/lib/scene/particles.d.ts +452 -0
  1162. package/lib/scene/particles.js +814 -0
  1163. package/lib/scene/pass-reads.d.ts +70 -0
  1164. package/lib/scene/pass-reads.js +220 -0
  1165. package/lib/scene/picks.d.ts +69 -0
  1166. package/lib/scene/picks.js +208 -0
  1167. package/lib/scene/pointer-events.d.ts +202 -0
  1168. package/lib/scene/pointer-events.js +500 -0
  1169. package/lib/scene/post.d.ts +567 -0
  1170. package/lib/scene/post.js +928 -0
  1171. package/lib/scene/prefab.d.ts +109 -0
  1172. package/lib/scene/prefab.js +166 -0
  1173. package/lib/scene/probes.d.ts +71 -0
  1174. package/lib/scene/probes.js +169 -0
  1175. package/lib/scene/property-animation.d.ts +160 -0
  1176. package/lib/scene/property-animation.js +276 -0
  1177. package/lib/scene/queries.d.ts +176 -0
  1178. package/lib/scene/queries.js +393 -0
  1179. package/lib/scene/render.d.ts +487 -0
  1180. package/lib/scene/render.js +829 -0
  1181. package/lib/scene/resources.d.ts +1598 -0
  1182. package/lib/scene/resources.js +2843 -0
  1183. package/lib/scene/rotation.d.ts +6 -0
  1184. package/lib/scene/rotation.js +12 -0
  1185. package/lib/scene/scene.d.ts +1858 -0
  1186. package/lib/scene/scene.js +4680 -0
  1187. package/lib/scene/serial-loads.d.ts +29 -0
  1188. package/lib/scene/serial-loads.js +68 -0
  1189. package/lib/scene/shader-preloads.d.ts +74 -0
  1190. package/lib/scene/shader-preloads.js +116 -0
  1191. package/lib/scene/shader-templates.d.ts +60 -0
  1192. package/lib/scene/shader-templates.js +156 -0
  1193. package/lib/scene/sprites.d.ts +262 -0
  1194. package/lib/scene/sprites.js +292 -0
  1195. package/lib/scene/stale-calls-scenario.d.ts +20 -0
  1196. package/lib/scene/stale-calls-scenario.js +175 -0
  1197. package/lib/scene/textures.d.ts +323 -0
  1198. package/lib/scene/textures.js +953 -0
  1199. package/lib/scene/time-of-day.d.ts +145 -0
  1200. package/lib/scene/time-of-day.js +644 -0
  1201. package/lib/scene/unmarked-writes.d.ts +118 -0
  1202. package/lib/scene/unmarked-writes.js +283 -0
  1203. package/lib/scene/unread-extensions-scenario.d.ts +6 -0
  1204. package/lib/scene/unread-extensions-scenario.js +26 -0
  1205. package/lib/scene/vertex-draws.d.ts +82 -0
  1206. package/lib/scene/vertex-draws.js +85 -0
  1207. package/lib/scene/wgsl-uniforms.d.ts +167 -0
  1208. package/lib/scene/wgsl-uniforms.js +12 -0
  1209. package/lib/shader-artifact.json +1 -0
  1210. package/lib/shared/await-later.d.ts +5 -0
  1211. package/lib/shared/await-later.js +10 -0
  1212. package/lib/shared/control.d.ts +94 -0
  1213. package/lib/shared/control.js +150 -0
  1214. package/lib/shared/core-sources.d.ts +2 -0
  1215. package/lib/shared/core-sources.js +7 -0
  1216. package/lib/shared/core.d.ts +1254 -0
  1217. package/lib/shared/core.js +381 -0
  1218. package/lib/shared/counter.d.ts +52 -0
  1219. package/lib/shared/counter.js +55 -0
  1220. package/lib/shared/dev.d.ts +8 -0
  1221. package/lib/shared/dev.js +13 -0
  1222. package/lib/shared/feature-stats.d.ts +16 -0
  1223. package/lib/shared/feature-stats.js +27 -0
  1224. package/lib/shared/frame-image.d.ts +13 -0
  1225. package/lib/shared/frame-image.js +32 -0
  1226. package/lib/shared/gpu-clock.d.ts +14 -0
  1227. package/lib/shared/gpu-clock.js +38 -0
  1228. package/lib/shared/gpu-counter.d.ts +12 -0
  1229. package/lib/shared/gpu-counter.js +15 -0
  1230. package/lib/shared/gpu-scope.d.ts +14 -0
  1231. package/lib/shared/gpu-scope.js +104 -0
  1232. package/lib/shared/helper-workers.d.ts +4 -0
  1233. package/lib/shared/helper-workers.js +23 -0
  1234. package/lib/shared/images.d.ts +255 -0
  1235. package/lib/shared/images.js +450 -0
  1236. package/lib/shared/import-once.d.ts +6 -0
  1237. package/lib/shared/import-once.js +19 -0
  1238. package/lib/shared/key-codes.d.ts +2 -0
  1239. package/lib/shared/key-codes.js +69 -0
  1240. package/lib/shared/labels.d.ts +94 -0
  1241. package/lib/shared/labels.js +172 -0
  1242. package/lib/shared/memory-area.d.ts +6 -0
  1243. package/lib/shared/memory-area.js +21 -0
  1244. package/lib/shared/memory-figure.d.ts +14 -0
  1245. package/lib/shared/memory-figure.js +18 -0
  1246. package/lib/shared/memory-views.d.ts +48 -0
  1247. package/lib/shared/memory-views.js +90 -0
  1248. package/lib/shared/metrics.d.ts +353 -0
  1249. package/lib/shared/metrics.js +799 -0
  1250. package/lib/shared/page-measurement.d.ts +9 -0
  1251. package/lib/shared/page-measurement.js +37 -0
  1252. package/lib/shared/phase.d.ts +17 -0
  1253. package/lib/shared/phase.js +20 -0
  1254. package/lib/shared/policy.d.ts +20 -0
  1255. package/lib/shared/policy.js +46 -0
  1256. package/lib/shared/recording.d.ts +100 -0
  1257. package/lib/shared/recording.js +378 -0
  1258. package/lib/shared/role.d.ts +10 -0
  1259. package/lib/shared/role.js +13 -0
  1260. package/lib/shared/run-task.d.ts +39 -0
  1261. package/lib/shared/run-task.js +69 -0
  1262. package/lib/shared/slot.d.ts +218 -0
  1263. package/lib/shared/slot.js +221 -0
  1264. package/lib/shared/software.d.ts +24 -0
  1265. package/lib/shared/software.js +22 -0
  1266. package/lib/shared/stats.d.ts +62 -0
  1267. package/lib/shared/stats.js +86 -0
  1268. package/lib/shared/task-failure.d.ts +24 -0
  1269. package/lib/shared/task-failure.js +36 -0
  1270. package/lib/shared/task-host.d.ts +42 -0
  1271. package/lib/shared/task-host.js +60 -0
  1272. package/lib/shared/task-load-error.d.ts +10 -0
  1273. package/lib/shared/task-load-error.js +13 -0
  1274. package/lib/shared/task-modules.d.ts +2 -0
  1275. package/lib/shared/task-modules.js +8 -0
  1276. package/lib/shared/task-pending.d.ts +24 -0
  1277. package/lib/shared/task-pending.js +101 -0
  1278. package/lib/shared/tasks.d.ts +54 -0
  1279. package/lib/shared/tasks.js +426 -0
  1280. package/lib/shared/tier.d.ts +7 -0
  1281. package/lib/shared/tier.js +3 -0
  1282. package/lib/shared/version.d.ts +72 -0
  1283. package/lib/shared/version.js +103 -0
  1284. package/lib/shared/videos.d.ts +15 -0
  1285. package/lib/shared/videos.js +11 -0
  1286. package/lib/shared/wake.d.ts +38 -0
  1287. package/lib/shared/wake.js +76 -0
  1288. package/lib/shared/wasm-limits.d.ts +13 -0
  1289. package/lib/shared/wasm-limits.js +75 -0
  1290. package/lib/shared/wasm.d.ts +34 -0
  1291. package/lib/shared/wasm.js +151 -0
  1292. package/lib/shared/webkit.d.ts +33 -0
  1293. package/lib/shared/webkit.js +59 -0
  1294. package/lib/shared/wgsl-updates.d.ts +9 -0
  1295. package/lib/shared/wgsl-updates.js +8 -0
  1296. package/lib/shared/worker-start.d.ts +56 -0
  1297. package/lib/shared/worker-start.js +186 -0
  1298. package/lib/sketch/clock.d.ts +61 -0
  1299. package/lib/sketch/clock.js +98 -0
  1300. package/lib/sketch/define-sketch.d.ts +269 -0
  1301. package/lib/sketch/define-sketch.js +103 -0
  1302. package/lib/sketch/input-off-scenario.d.ts +7 -0
  1303. package/lib/sketch/input-off-scenario.js +24 -0
  1304. package/lib/sketch/input-off.d.ts +16 -0
  1305. package/lib/sketch/input-off.js +38 -0
  1306. package/lib/sketch/input.d.ts +243 -0
  1307. package/lib/sketch/input.js +554 -0
  1308. package/lib/sketch/preset-check.d.ts +42 -0
  1309. package/lib/sketch/preset-check.js +120 -0
  1310. package/lib/sketch/quality.d.ts +392 -0
  1311. package/lib/sketch/quality.js +355 -0
  1312. package/lib/sketch/random.d.ts +13 -0
  1313. package/lib/sketch/random.js +25 -0
  1314. package/lib/sketch/runner.d.ts +574 -0
  1315. package/lib/sketch/runner.js +2159 -0
  1316. package/lib/sketch/ui.d.ts +94 -0
  1317. package/lib/sketch/ui.js +391 -0
  1318. package/lib/stats.d.ts +4 -0
  1319. package/lib/stats.js +8 -0
  1320. package/lib/workers/drawing-host.d.ts +24 -0
  1321. package/lib/workers/drawing-host.js +48 -0
  1322. package/lib/workers/gltf-worker.d.ts +35 -0
  1323. package/lib/workers/gltf-worker.js +210 -0
  1324. package/lib/workers/job-worker.d.ts +1 -0
  1325. package/lib/workers/job-worker.js +102 -0
  1326. package/lib/workers/panorama-worker.d.ts +15 -0
  1327. package/lib/workers/panorama-worker.js +21 -0
  1328. package/lib/workers/probe-worker.d.ts +34 -0
  1329. package/lib/workers/probe-worker.js +58 -0
  1330. package/lib/workers/protocol.d.ts +377 -0
  1331. package/lib/workers/protocol.js +57 -0
  1332. package/lib/workers/render-worker.d.ts +1 -0
  1333. package/lib/workers/render-worker.js +103 -0
  1334. package/lib/workers/sketch-worker.d.ts +1 -0
  1335. package/lib/workers/sketch-worker.js +295 -0
  1336. package/lib/workers/task-worker.d.ts +1 -0
  1337. package/lib/workers/task-worker.js +5 -0
  1338. package/lib/workers/tasks.d.ts +65 -0
  1339. package/lib/workers/tasks.js +85 -0
  1340. package/package.json +106 -5
  1341. package/vendor/basis/LICENSE +201 -0
  1342. package/vendor/basis/LICENSE-zstd +30 -0
  1343. package/vendor/basis/NOTICE +15 -0
  1344. package/vendor/basis/basis_transcoder.d.mts +36 -0
  1345. package/vendor/basis/basis_transcoder.mjs +2 -0
  1346. package/vendor/basis/basis_transcoder.wasm +0 -0
  1347. package/vendor/draco/LICENSE +252 -0
  1348. package/vendor/draco/draco_decoder_gltf.wasm +0 -0
  1349. package/vendor/draco/draco_wasm_wrapper_gltf.d.ts +71 -0
  1350. package/vendor/draco/draco_wasm_wrapper_gltf.js +116 -0
  1351. package/vendor/ltc/LICENSE +31 -0
  1352. package/vendor/ltc/area-light-tables.bin +0 -0
  1353. package/vendor/meshopt/LICENSE.md +21 -0
  1354. package/vendor/meshopt/meshopt_clusterizer.wasm +0 -0
  1355. package/vendor/meshopt/meshopt_decoder.wasm +0 -0
  1356. package/vendor/meshopt/meshopt_encoder.wasm +0 -0
  1357. package/vendor/meshopt/meshopt_simplifier.wasm +0 -0
@@ -0,0 +1,297 @@
1
+ ---
2
+ id: porting/threejs-mapping
3
+ title: three.js to null3D mapping
4
+ status: generated
5
+ since: "0.3"
6
+ summary: "Every three.js API a port is likely to meet, with its null3D equivalent."
7
+ ---
8
+
9
+ # three.js to null3D mapping
10
+
11
+ Status values:
12
+
13
+ - `direct`: Same concept; the call or option changes name only.
14
+ - `changed`: Supported, with a different API or pattern. Follow the note.
15
+ - `manual`: Must be rewritten by hand, for example GLSL shaders or render hooks.
16
+ - `unsupported`: null3D has no equivalent. Use the workaround in the note.
17
+
18
+ The "Since" column gives the roadmap step that adds the feature. The roadmap's steps 0.1, 0.2 and 0.3 all ship in the first release, null3D 0.1.0.
19
+
20
+ - 0.1: the core renderer, with cameras, materials, lights and shadows
21
+ - 0.2: content, such as glTF models, animation, raycasting and post-processing
22
+ - 0.3: developer tools, such as the `null3d` command, templates and the porting tools
23
+ - 1.0: the stable API
24
+
25
+ ## Renderer and loop
26
+
27
+ | three.js | null3D | Status | Since | Notes | Docs |
28
+ | --- | --- | --- | --- | --- | --- |
29
+ | WebGLRenderer / WebGPURenderer | createEngine({ canvas, sketch }) on the page; scene code moves to sketch.ts inside defineSketch() | changed | 0.1 | The engine picks WebGPU or WebGL2 itself. antialias: true maps to createEngine({ antialias: 'msaa' }) and false to 'none'; without the option the quality preset picks FXAA on Low and MSAA 4x from Medium up; alpha: true maps to createEngine({ transparent: true }); powerPreference maps to createEngine({ powerPreference }), whose default is 'high-performance'. | `getting-started/first-scene` |
30
+ | renderer.setPixelRatio(devicePixelRatio) | createEngine({ maxPixelRatio }) and the quality presets; quality.set({ maxPixelRatio }) in the sketch | changed | 0.1 | The engine sizes the canvas to its CSS size times the screen's pixel ratio, up to the quality preset's cap. The option replaces the cap, and quality.set changes it during play. | `concepts/quality-presets` |
31
+ | renderer.setSize / window resize handler / camera.aspect + updateProjectionMatrix | Automatic | changed | 0.1 | The engine follows the canvas's CSS size. Perspective cameras, and orthographic cameras made with a height, follow its aspect ratio in every frame. Delete resize handlers and updateProjectionMatrix calls. | `api/engine` |
32
+ | requestAnimationFrame(animate) / renderer.setAnimationLoop / renderer.render(scene, camera) | onUpdate(dt) returned from defineSketch() | changed | 0.1 | The engine renders every frame by itself; never call a render function. Per-frame logic goes in onUpdate, camera-follow logic in onLateUpdate. | `api/sketch` |
33
+ | renderer.shadowMap.enabled / .type (PCFSoftShadowMap, VSMShadowMap) | castShadows: true on the light; the shadowFilter quality setting sets the filter | changed | 0.1 | PCFShadowMap and PCFSoftShadowMap become the shadowFilter setting: 3 x 3 or 5 x 5 texels, by preset. quality.set({ shadowFilter }) changes it during play. BasicShadowMap and VSMShadowMap have no equivalent. | `concepts/shadows` |
34
+ | renderer.toneMapping (ACESFilmic, AgX, Neutral, Reinhard, Cineon, Custom, Linear) / toneMappingExposure | post.set({ toneMapping: 'agx' \| 'agx-punchy' \| 'neutral' \| 'aces' \| 'none' \| curveWgsl, exposure }) | changed | 0.1 | The engine default is "agx-punchy", AgX with Filament's punchy look; three.js defaults to no tone mapping, so ports of scenes without it set toneMapping: "none". A port keeps the curve it set: AgXToneMapping becomes "agx", ACESFilmicToneMapping "aces" and NeutralToneMapping "neutral". The curves use three.js's formulas. "none" applies the exposure, as LinearToneMapping does; NoToneMapping ignores toneMappingExposure, so keep exposure at 1 when porting it. Copy toneMappingExposure to exposure unchanged: null3D multiplies it into each light rather than into the finished picture, which gives the same image, and bloom's threshold keeps its meaning. A scene in real units sets ev100 instead, and exposure then acts as exposure compensation. At ev100 15, background and unlit colors draw black unless their values are in real units too, as in three.js at the same exposure. ReinhardToneMapping and CineonToneMapping become the reinhard and cineon curves of @null3d/three-compat: post.set({ toneMapping: reinhard }), with three.js's formulas. CustomToneMapping becomes a custom tone curve: post.set({ toneMapping: wgsl }), where the WGSL declares fn toneCurve(color: vec3f) -> vec3f. Leave out the curve's multiply by toneMappingExposure, because the color arrives exposed. A custom curve needs HDR color, as bloom does, so compatibility mode draws in HDR color with FXAA while one is set; a device without an HDR target keeps the built-in curve. | `api/post` |
35
+ | renderer.outputColorSpace / outputEncoding / ColorManagement / material.dithering | Nothing to do | direct | 0.1 | Output is sRGB with a linear working space, as in three.js r152+ defaults: the final pass encodes sRGB and dithers. Hex colors are sRGB and [r, g, b] arrays are linear, as three.js reads them. Delete these lines. three.js dithers only materials with dithering: true, so delete that option. The difference is at most one step of an 8-bit color. | `concepts/color-management` |
36
+ | renderer.info / stats.js | debug.stats(true), or createEngine({ stats: true }) on the page; debug.frameStats() for numbers | changed | 0.1 | The overlay shows the frame rates, CPU time per thread and phase, draw calls and uploads, the GPU tier, the preset and the render scale. It sits at the canvas's top right, and its header shows the frame rate. A click opens a card with each thread's and the GPU's time against the target frame rate, triangles and objects drawn, and the memory of the engine, the GPU's textures and buffers, the heap and the page. Triangles count every pass, shadow maps included, as renderer.info.render.triangles does. Objects count the instances of each draw, so an object counts once per pass that draws it. Each part of a mesh with several materials counts once, as each part is a mesh of its own in three.js. The page shows it with createEngine({ stats: true }), engine.stats(true) or ?stats. @null3d/engine/stats shows a three.js page's own figures in the same panel, with StatsPanel, or as text, with statsText. engine.measure(seconds) on the page gives percentiles of CPU and GPU time, and memory. In the sketch, debug.frameStats() also gives the textures' GPU bytes, their budget and their dropped mip levels. | `api/debug` |
37
+ | renderer.info.memory.textures | quality.textureMemory; textures.memoryBytes; the quality setting textureMemoryMiB; debug.frameStats().gpuTextureBytes and gpuBufferBytes | changed | 0.2 | three.js counts the textures that the renderer holds, not their bytes, and sets no budget. null3D reports the textures' GPU bytes and holds them under the preset's budget: past it, textures from files drop their largest mip levels, which load again once room returns. debug.frameStats() also gives the bytes of every GPU texture and buffer that the engine holds, render targets and shadow maps included. | `concepts/quality-presets` |
38
+ | renderer.compile / compileAsync (pre-warming shaders) | await scene.warmUp() before hiding the loading screen | changed | 0.1 | The first frame waits for its pipelines. warmUp resolves once every pipeline that the scene needs is built, hidden objects included, so warm up a later loading stage before you show it. | `guides/loading-screens` |
39
+ | renderer.setClearColor / scene.background = color or texture | scene.setBackground('#rrggbb' \| texture \| environment \| cube map \| { sky }, options) | direct | 0.1 | A texture fills the view behind every object and stretches to its shape, as a texture background does in three.js. An environment or a cube map surrounds the scene, as a PMREM texture or a CubeTexture in scene.background does. Exposure and tone mapping change the background, as in three.js's WebGPURenderer; WebGLRenderer draws a background color, and an sRGB background texture, without them. For an exact page color, set toneMapping: "none", or use createEngine({ transparent: true }) over a CSS background. setClearColor(color, 0) on an alpha canvas becomes transparent: true with no background. | `api/scene` |
40
+ | document.body.appendChild(renderer.domElement) | createEngine({ canvas }) | changed | 0.1 | Create the canvas in HTML or in page.ts and pass it in. The engine hands it to the render worker. | `getting-started/first-scene` |
41
+ | preserveDrawingBuffer + canvas.toDataURL / readRenderTargetPixels | await engine.capture() on the page | changed | 0.1 | Resolves with a PNG Blob of the next frame that the engine draws. Tests read pixels with engine.captureFrame() instead. | `api/engine` |
42
+ | WebGLRenderTarget / RenderTarget / renderer.setRenderTarget (render to texture) | const pass = render.addPass({ kind: 'scene', camera, writes: 'myTexture', size: [width, height] }); materials.unlit({ map: textures.fromPass(pass) }) | changed | 0.2 | Passes are declared, not called: the render graph orders them, runs them only while a texture shows them, and plans their memory. The texture holds linear color after the exposure, upright with v = 0 at the bottom as three.js's render target texture. A reflection pass's texture on the HDR WebGPU path starts at the top row instead: read it with `reflection_uv`, which turns the rows. A pass never draws objects that show its own texture. Scene passes draw point and spot lights and the scene's background, unless a clearColor replaces it, and no ambient occlusion, as three.js's render targets draw none. A light that only a pass sees casts no shadow there. A render target the size of the canvas or a share of it takes scale: 1, 0.5 or 0.25 in place of size, and follows the render size. A render target that a ShaderPass fills becomes a full-screen pass: render.addPass({ kind: 'fullscreen', wgsl, writes, size or scale, textures }). | `guides/custom-passes` |
43
+ | renderer.setViewport / setScissor (split screens, picture in picture) | scene.createView({ camera, rect }): one scene drawn again from another camera, into a rectangle of the canvas, after the camera's view | changed | 0.3 | rect is [x, y, width, height] as fractions of the canvas from its top-left corner, so [0.5, 0, 0.5, 1] is its right half. Give each view its own camera; setRect changes the rectangle and allocates nothing, and destroy removes the view. The camera's view draws the whole canvas first, so a split screen that covers the canvas draws the scene once for the camera and once for each view. Each view costs one cull and one scene draw at its rectangle's pixels; the sun's shadows and the lights cost nothing more. A view's objects take no ambient occlusion or screen-space reflections; the camera's volumetric fog and outline reach the whole image, a view's rectangle included. For a minimap that a material shows in the world, a scene pass into a texture (textures.fromPass) is cheaper than a view. | `guides/multiple-views` |
44
+ | renderer.capabilities / renderer.extensions | engine.capabilities on the page, and ctx.engine.capabilities in the sketch | changed | 0.1 | Reports the GPU tier, limits and features. Never branch on GPU names: some browsers hide them. | `concepts/backends` |
45
+ | logarithmicDepthBuffer / reverseDepthBuffer | Nothing to do; createEngine({ largeWorld: true }) and batch origins for planet-scale scenes | direct | 0.1 | The engine draws reversed depth in a 32-bit float buffer. On WebGL2 without EXT_clip_control, reversed depth keeps GL's range, which is less precise. engine.capabilities.depth says which depth the device draws. The engine also renders relative to the camera through per-cell offsets. With largeWorld: true, positions that you set keep their full precision at any distance, and createInstances takes an origin that its rows are relative to. The page switch ?depth=standard draws depth as three.js's WebGLRenderer does by default, which helps compare pictures with a three.js original. It works on WebGL2 only and draws no shadows. | `concepts/large-worlds` |
46
+
47
+ ## Scene graph
48
+
49
+ | three.js | null3D | Status | Since | Notes | Docs |
50
+ | --- | --- | --- | --- | --- | --- |
51
+ | new THREE.Scene() | The scene from the sketch context: defineSketch(({ scene }) => ...) | changed | 0.1 | Objects are created in the scene directly. | `api/scene` |
52
+ | scene.environment (PMREMGenerator, RoomEnvironment, HDR files) | scene.setEnvironment(await assets.loadEnvironment('/env/sunset.ktx2')) | changed | 0.2 | `loadEnvironment` takes an HDR file as it is, or its map from `bunx @null3d/cli assets env`, which needs no filtering at load. `pmremGenerator.fromScene(new RoomEnvironment(), 0.04)` becomes `await assets.builtinEnvironment('room')`: the same room with the same blur, made on the GPU as three.js makes it, with no file to download. `pmremGenerator.fromScene(sceneWithSky)` becomes `await assets.skyEnvironment()`, once: its map follows `scene.setBackground({ sky })`, so drop the calls that make the map again after each change. Its map leaves out the sun's disc, whose light the directional light gives. scene.environmentIntensity becomes the `intensity` option. The standard material takes the environment's light with three.js's split-sum table, energy compensation and specular occlusion. three.js's PMREM blurs a little less than GGX, so each roughness reads the level that matches three.js's light best. | `concepts/lighting` |
53
+ | scene.fog = new Fog(color, near, far) | scene.setFog({ curve: 'linear', color, near, far }) | changed | 0.1 | The linear curve keeps three.js's smooth step and its defaults of 1 and 1000. null3D measures the straight-line distance from the camera, where three.js measures the depth along the view. So fog at the screen's corners is a little thicker, and it no longer shifts as the camera turns. null3D mixes the fog in linear color before the tone mapping, as WebGPURenderer does, and as WebGLRenderer does when it draws into a half-float target. Only WebGLRenderer's default 8-bit canvas mixes the fog after the sRGB encoding, so there the same fog looks a little darker at middle distances. Materials opt out with fog: false. For new scenes, the default exponential curve looks more like real haze. The fog can also thin with height (heightFalloff) and glow toward the sun (sunGlow). | `api/scene` |
54
+ | scene.fog = new FogExp2(color, density) | scene.setFog({ curve: 'exp2', color, density }) | changed | 0.1 | Pass three.js's density. Its default there is 0.00025, and null3D's is 0.01. null3D measures the straight-line distance from the camera, where three.js measures the depth along the view. So fog at the screen's corners is a little thicker, and it no longer shifts as the camera turns. null3D mixes the fog in linear color before the tone mapping, as WebGPURenderer does, and as WebGLRenderer does when it draws into a half-float target. Only WebGLRenderer's default 8-bit canvas mixes the fog after the sRGB encoding, so there the same fog looks a little darker at middle distances. Materials opt out with fog: false. | `api/scene` |
55
+ | VolumeNodeMaterial (webgpu_volume_lighting) / GodRaysEffect | scene.setFog({ color, density, heightFalloff, volumetric: { intensity, anisotropy, distance } }) | changed | 0.2 | three.js has no lit fog in its core. Its webgpu_volume_lighting example marches rays through a box with VolumeNodeMaterial, lit by point and spot lights with shadows. null3D lights the scene's own fog instead, in a grid that follows the camera's view, with the sun's shadow cascades and the point and spot lights' shadows. Drop the box: the fog's density and heightFalloff say where the air holds haze, and its scattering intensity becomes intensity. The god rays effects of add-on libraries blur a mask of the sky toward the sun on the screen. null3D's rays also come from lamps and from shadows off the screen. It draws where the quality setting fogSlices is above 0: Medium and up. On Low the fog keeps its sunGlow. | `api/scene` |
56
+ | new Group() / new Object3D() | scene.createGroup({ name, position }) | direct | 0.1 | | `api/objects` |
57
+ | parent.add(child) / remove / attach / scene.add | child.setParent(parent); setParent(parent, { keepWorld: true }) for attach(); getParent() for object.parent; destroy() to remove | changed | 0.1 | Objects are in the scene as soon as they are created. setParent keeps the local transform, like add(), and getParent() returns an object's parent, or null for a root object. Creating, destroying and re-parenting rebuild the draw tables in that frame, so during play hide with setVisible and pool with setActiveCount instead (guides/performance). Under a parent turned and scaled by different amounts per axis, keepWorld keeps the child in place. Its rotation and scale then come out close to the old ones, as with attach(). | `api/objects` |
58
+ | object.position.set / .x = / .copy / translateX/Y/Z | obj.setPosition(x, y, z); obj.translate(x, y, z) for translateX/Y/Z | changed | 0.1 | translate moves along the object's own axes, as translateX, translateY and translateZ do together. For many moving objects, use an instance batch and write its positions array directly instead of calling setters. | `api/objects` |
59
+ | object.rotation (Euler) / rotateX/Y/Z / rotateOnAxis | obj.setRotationEuler(x, y, z, 'XYZ'), obj.rotateX/Y/Z(angle), or obj.setRotation(qx, qy, qz, qw) | changed | 0.1 | Euler order strings match three.js. rotateX, rotateY and rotateZ turn the object about its own axes, as in three.js. For rotateOnAxis, multiply the quaternion from obj.getRotation by one from quat.setAxisAngle, and pass the product to setRotation. | `api/objects` |
60
+ | object.quaternion.set / slerp / setFromAxisAngle | obj.setRotation(x, y, z, w), with the quaternion from quat.setAxisAngle, quat.fromEuler, quat.multiply or quat.slerp | changed | 0.1 | The quat helpers write into an array that you create once with quat.create(). Pass its four numbers to setRotation. The rotations array of an instance batch takes the same order. | `api/math` |
61
+ | object.scale.set / setScalar | obj.setScale(x, y, z) | changed | 0.1 | | `api/objects` |
62
+ | object.lookAt(target) | obj.lookAt(x, y, z) | changed | 0.1 | Meshes and groups turn their +Z axis to the point. Cameras and lights turn their -Z axis there, as in three.js. The call assumes that the object's parents are not rotated. | `api/objects` |
63
+ | object.getWorldPosition / getWorldQuaternion / matrixWorld | obj.getWorldPosition(out), obj.getWorldQuaternion(out), obj.getWorldMatrix(out) | changed | 0.1 | Each getter copies into an array that you make once, with vec3.create(), quat.create() or mat4.create(). They read the engine's last transform update, so a change made in onUpdate shows in the same frame's onLateUpdate. getWorldMatrix gives 16 numbers, column by column, like matrixWorld.elements. | `api/objects` |
64
+ | matrixAutoUpdate = false / updateMatrix / updateMatrixWorld / matrixWorldNeedsUpdate | Nothing to do: objects are static by default and update when a setter changes them; create objects that move every frame with dynamic: true | changed | 0.1 | Remove manual matrix calls. Move single objects with their setters. Only instance batches take writes to their typed arrays, and a static batch uploads only the rows you mark with markDirty. | `concepts/static-dynamic` |
65
+ | object.traverse / getObjectByName / children | scene.find(name) for getObjectByName; scene.listObjects() at setup, or your own arrays of objects, instead of traverse and children | changed | 0.1 | scene.find returns the first object created with the name, from an index. scene.listObjects() returns every object of the scene as a new array, and getParent() returns an object's parent. scene.listObjects walks the whole scene and allocates, so call it at setup, never in every frame. No call returns an object's children, so keep the objects you need in arrays at setup time. | `api/objects` |
66
+ | object.visible = false | obj.setVisible(false) | direct | 0.1 | Cheap: it uploads the object's matrix and draw entry and never rebuilds the draw tables, so use it instead of removing and adding objects during play. The objects under a hidden object, dynamic ones too, stop updating until it shows again, where three.js updates their matrices anyway. So hide a pool of spare objects under one parent. | `api/objects` |
67
+ | object.castShadow / receiveShadow | mesh.setCastShadows(true) / setReceiveShadows(true), or the castShadows and receiveShadows options of createMesh | direct | 0.1 | Both are false by default, as in three.js. The directional light, spot lights and point lights cast them on both GPU paths; point lights where the preset's pointLightShadows is on. Unlit materials show no shadows. An instance batch takes castShadows and receiveShadows in createInstances, or batch.setCastShadows(true) / setReceiveShadows(true), for every row. | `api/objects` |
68
+ | object.layers / camera.layers (set, enable, disable) | obj.setLayers(mask), obj.getLayers(), camera.setLayers(mask), batch.setLayers(mask); the layers option of createMesh, createInstances and createPerspectiveCamera | changed | 0.1 | Masks have the same 32 bits and the same default, layer 0 alone, and a camera draws an object when their masks share a bit. layers.set(n) becomes setLayers(1 << n), layers.enableAll() becomes setLayers(0xffffffff), and layers.mask becomes getLayers(). For enable and disable, read the mask with getLayers() and pass the new mask. An InstancedMesh's layers become its batch's, for every row. Raycasts and declared passes take layer masks. Shadow casters differ: three.js tests them against the camera's layers, and null3D against the light's. Give each light that casts shadows the layers of every object that must cast, or those objects cast nothing. | `concepts/render-layers` |
69
+ | object.renderOrder | mesh.setRenderOrder(n) | direct | 0.1 | Orders blended objects, lower first, before their depth, as in three.js. An object's depth is the depth of its bounding sphere's center, as in three.js. The engine orders opaque and masked objects itself for speed. The rows of an instance batch sort by depth one by one, where three.js sorts an InstancedMesh as one object. | `api/objects` |
70
+ | object.frustumCulled = false | mesh.setFrustumCulled(false) | direct | 0.1 | Usually needed only for shader-displaced geometry; prefer mesh.setBounds(center, radius) with larger bounds, which keeps culling at work. | `api/objects` |
71
+ | object.userData | Your own arrays, or a Map keyed by the object | manual | 0.1 | Engine objects have no userData, and their TypeScript types refuse new properties. A Map from each object to its data keeps the data beside the object. Arrays indexed the way your sketch counts objects stay fastest in per-frame loops. | `concepts/handles` |
72
+ | object.onBeforeRender / onAfterRender | onUpdate / onLateUpdate, or a declared pass | manual | 0.1 | The engine draws from lists that the sketch records, so it calls no sketch code per draw. Move per-object work into onUpdate or onLateUpdate. | `api/sketch` |
73
+ | object.clone() / SkeletonUtils.clone(gltf.scene) | scene.instantiate(prefab) for loaded models; scene.clone(obj) for built objects | changed | 0.2 | Each instantiate shares the model's meshes, materials and textures. scene.clone copies an object and every object below it, lights and cameras included, under the same parent. A copy of an animated model gets an animator of its own, as SkeletonUtils.clone gives a copy its own skeleton. | `api/scene` |
74
+ | geometry.dispose() / material.dispose() / texture.dispose() | texture.destroy(); material.destroy(); mesh.destroy(); prefab.destroy() for a loaded glTF model | changed | 0.1 | texture.destroy() frees a texture's GPU memory, and materials that map it draw with their colors alone. material.destroy() frees the material's place, and a custom material's pipelines with its last material, once no object uses it; objects that still use it draw nothing. mesh.destroy() frees a mesh's GPU memory and data at the next frame, and throws E1111 while an object or instance batch uses it, so destroy those first, in the same frame or before. prefab.destroy() frees every mesh, material and texture of a loaded model, and its skeleton and clips, once its copies are destroyed. three.js's dispose leaves the object usable and uploads it again on the next render; null3D's destroy ends it, and later calls throw E1101. | `api/textures` |
75
+ | scene.overrideMaterial | scene.overrideMaterial = material, and null for each object's own material | direct | 0.3 | Draws every mesh and instance batch of the main pass with the material, each keeping its mesh, place and instances, as three.js does. Sprites, points, lines and particle systems keep their own materials, and the shadow maps keep each object's material, so a masked caster still cuts its shadow. A sprite, point or line material throws E1224. The change rebuilds the engine's draw tables in the next frame, and adds no draw call or pipeline after that. | `api/scene` |
76
+ | scene.environmentRotation / backgroundRotation / material.envMapRotation | scene.setEnvironment(env, { rotation }) and scene.setBackground(env, { rotation }) | direct | 0.2 | Rotation is an Euler array in radians, in the order X, Y, Z, as in three.js. Each material shares the scene's rotation, so material.envMapRotation has none of its own. scene.setBackground turns environments and cube maps, not textures or the sky. | `api/scene` |
77
+ | scene.backgroundBlurriness / backgroundIntensity | scene.setBackground(env, { blur, intensity }) | direct | 0.2 | Each setBackground call sets the options of that background, where three.js keeps them on the scene. The blur reads the environment's level for that roughness, as three.js reads its PMREM texture, so it costs nothing extra. Only environments blur: three.js turns a blurred CubeTexture into a PMREM texture, and the engine asks for an environment from assets.loadEnvironment. intensity applies to textures, environments, cube maps and the sky. | `api/scene` |
78
+
79
+ ## Cameras
80
+
81
+ | three.js | null3D | Status | Since | Notes | Docs |
82
+ | --- | --- | --- | --- | --- | --- |
83
+ | PerspectiveCamera(fov, aspect, near, far) | scene.createPerspectiveCamera({ fov, near, far, position, target }) | direct | 0.1 | fov is vertical and in degrees, as in three.js. The aspect ratio is automatic. The fov, near and far properties are read-only: change them with camera.setFov(degrees) and camera.setNearFar(near, far). The defaults are three.js's: fov 50, near 0.1 and far 2000. | `api/cameras` |
84
+ | PerspectiveCamera.setFocalLength / getFocalLength / filmGauge | camera.setFocalLength(mm) and camera.focalLength | changed | 0.2 | null3D's sensor is a full-frame camera's, 24 mm tall, along the canvas's height, so a focal length gives the same field of view on every canvas shape. three.js measures its filmGauge, 35 mm by default, along the longer side. The two agree on a square canvas with filmGauge 24. Depth of field takes the camera's focal length unless its settings give one. | `api/cameras` |
85
+ | OrthographicCamera(left, right, top, bottom, near, far) | scene.createOrthographicCamera({ height, near, far, position, target }), or left, right, top and bottom in place of height | direct | 0.1 | With height alone, the width follows the canvas's aspect ratio, so code that recomputes left and right on resize goes away. The four edges keep their shape on any canvas, as in three.js. To zoom, call camera.setOrthoHeight with the original height divided by three.js's zoom. The default height of 2 gives the same view as three.js's default edges, -1 to 1. | `api/cameras` |
86
+ | Vector3.project(camera) / Vector3.unproject(camera) | camera.worldToScreen(point, out) for [x, y, depth]; camera.screenToRay(x, y, ray) for a ray through a point | changed | 0.2 | Both take and give CSS pixels from the canvas's top-left corner, not device coordinates from -1 to 1. The depth is the distance in front of the camera, below 0 behind it. A ray through the pointer's position uses the camera of the frame on screen at the pointer's event. three.js starts an orthographic ray on the camera's plane, and screenToRay starts it on the near plane. | `api/cameras` |
87
+ | CubeCamera (dynamic reflections) | scene.createReflectionProbe({ box: { min, max }, position, refresh: 'always' }); a reflection pass for a flat mirror: render.addPass({ kind: 'reflection', writes, plane }) | changed | 0.2 | A CubeCamera with a WebGLCubeRenderTarget, filtered by PMREMGenerator and set as a material's envMap, becomes a reflection probe. The probe captures the scene from its position on the GPU and filters it for each roughness. It lights every surface inside its box, not one material, and its box projects the reflections, so walls reflect at their own distance. Give the probe a box around the space that the object moves in. boxProjection: false reads it as three.js reads a cube map, as light from far away. cubeCamera.update() in every frame becomes refresh: 'always'; one update after a change becomes probe.capture(). The near and far of the CubeCamera fall away: captures draw from 5 cm out to the camera's far plane. Leave the reflecting object out of its own probe's captures with layers. | `api/scene` |
88
+ | ArrayCamera / StereoCamera | None; split screens use scene.createView with one camera for each view | unsupported | - | null3D has no stereo rendering. For split screens, give each view a camera and a rectangle of the canvas. | `porting/threejs-unsupported` |
89
+
90
+ ## Lights and shadows
91
+
92
+ | three.js | null3D | Status | Since | Notes | Docs |
93
+ | --- | --- | --- | --- | --- | --- |
94
+ | DirectionalLight (+ target, shadow.camera bounds) | scene.createDirectionalLight({ direction, color, intensity, castShadows, shadow }) | changed | 0.1 | The light is an object. Pass the target minus the position as direction, or call light.lookAt(x, y, z), again whenever the target moves. Surfaces show up to four directional lights: the first one created casts the shadows, and up to three more add fill and rim light, without shadows. Delete shadow.camera bounds: the engine's shadow cascades fit the view by themselves, and the shadow distance follows the farthest visible receiver by default, so a port with its own shadow.camera.far passes that number as shadow: { distance }. It also draws contact shadows, which three.js lacks: on High and Ultra, and on Medium on WebGL2. Set shadow: { contactDistance: 0 } to match three.js's look. intensity stays in lux, three.js's unit. three.js has no hero shadow. A port that fits a second shadowed light or a shadow camera to one object uses light.setShadow({ hero: object }), which follows it. | `api/lights` |
95
+ | PointLight(color, intensity, distance, decay) | scene.createPointLight({ position, color, intensity, range, decay, castShadows, shadow, intensityUnit }) | direct | 0.1 | distance becomes range, which every point light needs: 0, a light with no end, is not allowed, because the engine finds the lights near each surface by their ranges. intensity stays in candela. light.power = lumens becomes intensity: lumens with intensityUnit: 'lumen', which divides by 4π as power does; setIntensity then takes lumens. castShadow becomes castShadows, and shadow takes bias and normalBias in meters. The quality preset sets the tile size in place of shadow.mapSize, and shadow.camera has no equivalent. | `api/lights` |
96
+ | SpotLight(color, intensity, distance, angle, penumbra, decay) | scene.createSpotLight({ position, direction \| target, angle, penumbra, range, decay, intensity, map, castShadows, shadow, intensityUnit }) | direct | 0.1 | distance becomes range, which every spot light needs. intensity stays in candela; light.power = lumens becomes intensity: lumens with intensityUnit: 'lumen', which divides by π at any cone angle, as power does. target is a point: call light.lookAt(x, y, z) when it moves. castShadow becomes castShadows, and shadow takes bias and normalBias in meters. The quality preset sets the tile size in place of shadow.mapSize, and shadow.camera has no equivalent. light.map becomes map: sRGB pixels as { width, height, data }, or an engine texture, and setMap takes the same. The light projects it over its cone as three.js projects it; its top row follows the world's up, as three.js aims its map's camera, so a light rolled about its axis shows the same map. The engine copies a texture into its own light image once, so a texture that changes every frame, a VideoTexture included, throws E1112. The engine keeps the picture's detail up to 512 texels a side and reduces a larger texture to that, where three.js samples the texture itself. Up to 32 lights show a map at once. | `api/lights` |
97
+ | HemisphereLight | scene.createHemisphereLight({ skyColor, groundColor, intensity }) | changed | 0.2 | The sky lies along the light's +Y axis: turn the light to tilt it, where three.js moves it. It lights surfaces as three.js's does, diffuse only, and its light adds to the environment's. Any number of them cost the same per pixel. intensity stays in lux, three.js's unit. | `api/lights` |
98
+ | AmbientLight | scene.createAmbientLight({ color, intensity }) | direct | 0.1 | Several ambient lights add up. intensity stays in lux, three.js's unit. | `api/lights` |
99
+ | RectAreaLight | scene.createRectAreaLight({ color, intensity, width, height, range }) | changed | 0.2 | Needs a range, where three.js's light has no end. No RectAreaLightUniformsLib.init() call. The light leaves along -Z, as in three.js. Casts no shadows, as in three.js. The engine shades it with linearly transformed cosines, as three.js does, so a rectangle light gives three.js's look. intensity stays in nits, three.js's unit. | `api/lights` |
100
+ | RectAreaLightUniformsLib / RectAreaLightTexturesLib | Nothing: the engine loads the area lights' tables with the first area light | changed | 0.2 | Remove the init() call. | `api/lights` |
101
+ | LightProbe / LightProbeGenerator | scene.setLightProbeGrid: a grid of irradiance probes lights the scene where a surface stands | changed | 0.2 | One LightProbe that lights the whole scene is an environment: scene.setEnvironment takes the diffuse spherical harmonics with the environment map, which `bunx @null3d/cli assets env` computes offline. For light that changes from place to place, bake a grid with bakeProbes and set it with scene.setLightProbeGrid. The grid holds L1 spherical harmonics per probe, where three.js's LightProbeGrid holds L2. The light probe grid section of the scene page shows both calls. | `api/scene` |
102
+ | LightProbeGrid (addons: a baked grid of L2 irradiance probes) | scene.setLightProbeGrid with a grid that bakeProbes bakes in the sketch | changed | 0.2 | three.js's grid stores L2 spherical harmonics per probe. null3D's stores L1, which takes four texture reads per pixel in place of seven: three of coefficients and one of its masks. The light keeps its direction, but small bright patches spread a little wider. three.js adds the grid's light to the environment's diffuse light; null3D's grid takes the environment's place, and the live environment's light times each probe's sky visibility. Bake the grid again with bakeProbes when the scene changes. | `api/scene` |
103
+ | ClusteredLighting / ClusteredLightsNode (addons, webgpu_lights_clustered) | Built in: scene.createPointLight and scene.createSpotLight; the engine clusters every light | changed | 0.1 | Delete the add-on and its setup. null3D sorts point and spot lights into clusters on both GPU paths, and they may cast shadows. three.js's add-on takes point lights without shadows, on WebGPU only. | `api/lights` |
104
+ | CSM addon (three/addons/csm) | Built in: shadow: { cascades } on the directional light | direct | 0.1 | Delete the addon. Its cascades, maxFar and shadowMapSize become the cascades, distance and mapSize settings. The cascades keep still edges as the camera turns, and far cascades draw every few frames, as the farCascadeInterval quality setting says. The fade option is on by default: neighboring cascades blend over a band, which the shadowCascadeBlend quality setting sizes, and fade: false maps to shadowCascadeBlend: 0. The mode setting has no equivalent: the engine's split leans a little more toward the camera than the addon's practical mode, so its near cascade is shorter. debug.shadowCamera(camera) lets the cascades follow a camera other than the one that renders, as the addon's camera option does. It works in development builds only. | `concepts/shadows` |
105
+ | SunLight / SunLightShadow / SunShadowNode (addons) | scene.createDirectionalLight({ direction, castShadows: true, shadow: { cascades: 2 } }) | changed | 0.1 | Delete the add-on. The directional light's shadow takes cascades fitted to the camera's view, with a blend between neighbours. SunLight's two cascades become cascades: 2. The CSM entry maps the other settings. | `concepts/shadows` |
106
+ | SSSNode / sss() (screen-space shadows) | Contact shadows of the directional light: scene.createDirectionalLight({ castShadows: true, shadow: { contactDistance } }) | changed | 0.2 | Both search the camera's depth toward the main light for short shadows where objects touch. shadow.contactDistance sets their reach in meters, 0.3 by default. Only the first directional light draws them, while it casts shadows. They draw where the quality setting contactShadowSteps is above 0: on High and Ultra, and on Medium on WebGL2. | `api/lights` |
107
+ | light.shadow.mapSize / bias / normalBias / intensity / radius / camera | shadow: { mapSize, bias, normalBias, intensity, cascades, distance } in the directional light's options, or light.setShadow() | changed | 0.1 | mapSize is one number, the texels on each side. bias and normalBias are in meters, where three.js gives bias in depth units, so start from the defaults. The directional light's map stores 16-bit depth, so in each cascade bias covers at least 1.5 of its depth steps, about 2 cm in a far cascade 200 m out. radius and blurSamples become the shadowFilter quality setting, 3 or 5 texels on each side. shadow.camera has no equivalent: the cascades fit the camera's view. intensity is 0 to 1 and carries over as it stands: the shader mixes each shadow lookup toward full light by the rest, at no cost to the frame. Casters draw only the faces that point away from the light, as three.js's default shadowSide does, and double-sided materials draw both. shadowSide has no option. | `concepts/shadows` |
108
+ | physicallyCorrectLights / useLegacyLights | Physical light units, as in three.js r155 and later | changed | 0.1 | Scenes tuned in three.js's legacy light mode need new intensities: retune them with parity images. | `concepts/lighting` |
109
+
110
+ ## Geometry
111
+
112
+ | three.js | null3D | Status | Since | Notes | Docs |
113
+ | --- | --- | --- | --- | --- | --- |
114
+ | Box / Sphere / Plane / Cylinder / Cone / Torus / Capsule / Circle / Ring Geometry | geometry.box({ width, height, depth }), geometry.sphere({ radius }), and one generator for each class | direct | 0.1 | The constructor's arguments become options with the same names and defaults: new CylinderGeometry(0.3, 0.4, 2) is geometry.cylinder({ radiusTop: 0.3, radiusBottom: 0.4, height: 2 }). The meshes match three.js's vertex for vertex, with the same positions, normals, texture coordinates and triangles. Each object has one material, so an array of materials for the face groups of a box or a cylinder needs one object for each group. | `api/geometry` |
115
+ | geometry.rotateX / rotateY / rotateZ / translate / scale / center / applyMatrix4 | obj.setRotationEuler(x, y, z), obj.setPosition(x, y, z) or obj.setScale(x, y, z) on the object that draws the mesh | changed | 0.1 | A mesh keeps the vertices its generator built, so the transform goes on each object or instance row: floor.setRotationEuler(-Math.PI / 2, 0, 0) lays a plane flat. To build the transform into the vertices, transform the arrays and pass them to geometry.fromArrays. | `api/geometry` |
116
+ | TorusKnot / Icosahedron / Octahedron / Tetrahedron / Dodecahedron / Polyhedron / Lathe / Extrude / Shape / Tube Geometry | geometry.fromArrays(torusKnot({ radius, tube, tubularSegments, radialSegments, p, q })), and icosahedron, octahedron, tetrahedron, dodecahedron, polyhedron, lathe, shape, extrude and tube, from @null3d/geometry | direct | 0.2 | Install @null3d/geometry. Each function takes the constructor's arguments as named options with three.js's defaults, and returns arrays with three.js's vertices, normals and texture coordinates for geometry.fromArrays. Shape, Path, the curves and ShapeUtils come with the same names and methods, but points are [x, y] or [x, y, z] arrays, not Vector2 or Vector3. ExtrudeGeometry's caps and sides form one mesh, which takes one material. CurvePath.getPoint(t), and Path's and Shape's, throws a RangeError when t is above 1 or the path is empty, where three.js returns null. A custom UVGenerator's generateTopUV and generateSideWallUV take no geometry argument first, so drop it. A list of shapes makes one mesh with one material, where ShapeGeometry gives each shape a group: make one shape call per material. | `api/geometry` |
117
+ | BufferGeometry + setAttribute / setIndex / BufferAttribute | geometry.fromArrays({ positions, normals, uvs, uvs1, colors, tangents, joints, weights, indices }) | changed | 0.1 | Returns a mesh that createMesh and createInstances accept. The attributes position, normal, uv, uv1, color and tangent each become one array, and setIndex becomes indices, 16-bit or 32-bit. The engine copies the arrays. skinIndex and skinWeight become joints and weights, 8-bit and 16-bit integer arrays stay integers on the GPU, and { array, normalized: true } keeps a BufferAttribute's normalized flag. | `api/geometry` |
118
+ | attribute.needsUpdate / setUsage(DynamicDrawUsage) / addUpdateRange (vertices changing every frame) | mesh.updateVertices(name, values, start, count) | changed | 0.2 | Pass the attribute's values of every vertex, in the array type the mesh was made with; start and count pick the vertices that change, as addUpdateRange does, but in vertices. The mesh keeps the bounding sphere it was made with, so give objects bounds with setBounds when vertices move outside it. Meshes with joints or morph targets take no updates. For many moving objects, use instances instead of rewriting vertices. | `api/geometry` |
119
+ | computeVertexNormals / computeTangents / computeBoundingSphere | geometry.fromArrays({ ..., computeNormals: true, computeTangents: true }) | changed | 0.1 | The results match three.js's bit for bit. computeTangents needs uvs, and works without indices too. Bounds are always automatic, so computeBoundingSphere and computeBoundingBox need no call. | `api/geometry` |
120
+ | EdgesGeometry / WireframeGeometry | WireframeGeometry: a material with wireframe: true on the mesh itself. EdgesGeometry: scene.createLines({ positions, mode: 'segments' }) with two points per edge | changed | 0.2 | A wireframe material draws each triangle's three edges, as WireframeGeometry lists them, with no copy of the mesh. null3D does not find a mesh's feature edges for you, as EdgesGeometry does with its angle threshold. Build that list of edge points from the mesh's arrays, or with EdgesGeometry at build time, and draw it as pairs of points. | `api/lines` |
121
+ | TextGeometry / FontLoader / troika-three-text | DOM labels (ui.trackLabel), a texture with pre-rendered text, or a text mesh baked into glTF | changed | 0.3 | null3D draws no text of its own. Use DOM labels for text that follows an object, a texture for text on a surface, and a baked mesh for 3D letters. | `porting/threejs-unsupported` |
122
+ | morphAttributes / morphTargetInfluences / morphTargetDictionary | mesh.setMorphWeight(indexOrName, weight) and mesh.getMorphWeight(indexOrName); geometry.fromArrays({ ..., morphTargets: { positions, normals, colors, names } }) | changed | 0.2 | glTF morph targets and their default weights load with the model, and its clips animate the weights. Targets are deltas, as with morphTargetsRelative = true. Color targets (morphAttributes.color, glTF's COLOR_0 targets) change vertex colors, so the mesh needs colors too. The colors stay between 0 and 1 as glTF asks; three.js does not clamp them. A glTF target without COLOR_0, while another target has it, changes no color, as glTF says; three.js r186 adds the base color there. Tangent targets morph tangents, as glTF gives them, which three.js does not do. mesh.mesh.morphTargetNames lists the names in target order, in place of morphTargetDictionary. A clip blends its weights with the object's own, as AnimationMixer does. On WebGL2 each object draws only its largest weights, by the morphTargets quality setting: 8 on Low up to 64 on Ultra. | `api/animation` |
123
+ | DecalGeometry (addon), with a material that has polygonOffset | scene.createMesh({ mesh: geometry.box(), material: materials.decal({ map, normalMap, roughness }), position, rotation, scale: size }) | changed | 0.2 | No geometry is cut: the box projects the material onto every opaque surface inside it, in a pass after the opaque objects, lit by every light and shadow. DecalGeometry's position, orientation and size become the box's position, rotation and scale. The image lies on the box's x and y sides and looks along its z axis, as DecalGeometry lays it. There is no target mesh: the decal marks every opaque surface in its box. polygonOffset, depthWrite: false and transparent: true are not needed. angleFade and edgeFade fade the decal on surfaces that turn away and near the box's ends, where DecalGeometry stretches the image. A batch of boxes with one decal material draws many decals in one draw. Blended surfaces show no decals. Projected texture libraries, such as three-projected-material, become a large decal box. | `api/materials` |
124
+ | A PlaneGeometry displaced on the CPU, with heights from ImprovedNoise or a height map | createTerrain(ctx, { size, height, layers, splat, maxLevel, camera }) from @null3d/terrain; terrain.update(eye) in onUpdate; terrain.heightAt(x, z) | changed | 0.2 | A port replaces one displaced grid with a height field drawn as a camera-centered quadtree of blocks. The ground near the camera keeps fine detail, and the far hills draw coarse blocks. A skirt around each block hides the seam between neighbours more than one level apart. Up to four tiled layers blend by a splat map. The add-on fills the map by default from the height and the slope, in place of a hand-painted or vertex-colored ground. Each layer's own height pushes it through its neighbours at a boundary. Every pixel lights from normals baked over the whole ground, so the far hills keep their relief. The terrain carries no collision, so a port that walked on the ground reads heightAt and normalAt to place objects instead of a physics collider. A port that morphed between levels drops its own morph. Each block morphs toward its parent block's surface before it hands over, so the ground does not pop. morph: false switches each block at once. | `api/terrain` |
125
+ | A tree model per species loaded from a glTF file, or a procedural plant from an add-on such as Sapling or ez-tree, swaying in a custom wind shader | const tree = await assets.loadGltf(url); scene.createInstances(tree.find(name).mesh, count, { material }) for the copies of each species; a materials.shader material whose vertexOffset samples the field of createWind(ctx, { camera }) from @null3d/wind, with swayDistance; far copies as cards from @null3d/impostors, with handOverToCards(meshes, cards.batch, switchDistance) | changed | 0.3 | null3D ships no plant generator. A port keeps its tree models: export a procedural tree from Blender's Sapling, ez-tree or a similar tool as a glTF file, or build the tree in code, as the forest demo that api/wind names does. Draw each species' copies as one instance batch, so the engine gives them levels of detail and culling. For wind, replace the three.js shader's sway with one custom material whose vertex offset reads the wind add-on's field, as api/wind shows. The sway fades to nothing at the material's swayDistance, so far trees stand still and keep their cached shadows. Past the last level, cards from the impostors add-on stand in for the trees, and handOverToCards sets the two distance bands. | `api/wind` |
126
+ | A field of grass blades as an InstancedMesh or a custom shader that bends them in a time-based wind | await createGrass(ctx, { height, area, count, seed, mask, wind, camera, swayDistance }) from @null3d/grass, with grass.setWindLayer(field) in each frame to bend the blades in the wind add-on's field, grass.fit(preset) for a preset's share and grass.setSwayDistance(swayDistanceFor(preset)) when the preset changes | changed | 0.3 | three.js has no grass. A port replaces the hand-made blades and their wind shader with one call: the add-on places the tufts on the ground's height by integer hash, so one seed places the same grass on every device, and bends the blades in the wind add-on's field, so the grass answers the same gusts as the rest of the scene. On WebGPU a compute pass builds the blade list each frame, culls it to the view and thins the far tufts; WebGL2 draws the same rows as an instance batch. The grass casts and receives the sun's shadows. A blade shape, a width along the blade and the fold of its keel, takes the place of a hand-made blade geometry. | `api/grass` |
127
+
128
+ ## Materials
129
+
130
+ | three.js | null3D | Status | Since | Notes | Docs |
131
+ | --- | --- | --- | --- | --- | --- |
132
+ | MeshStandardMaterial | materials.standard({ color, map, metalness, roughness, normalMap, aoMap, emissive, ... }) | direct | 0.1 | Both follow glTF's metallic-roughness model with the same formulas, so color, metalness, roughness and emissive values carry over. roughnessMap and metalnessMap become one metalnessRoughnessMap, and a texture's repeat, offset and rotation become the material's uvTransform, or its own mapUvTransforms entry where one map differs from the rest. Roughness has three.js r187's floor of 0.045. Highlights on small curved shapes widen by Filament's specular anti-aliasing, where three.js adds its own term, so they are a little brighter and narrower there. A normal map that tilts a reflection below the surface fades the environment's reflection, which three.js does not. A normal map on a mesh without tangents takes its frame from how positions and texture coordinates change between pixels, as in three.js. | `api/materials` |
133
+ | MeshPhysicalMaterial (clearcoat, transmission, dispersion, sheen, iridescence, anisotropy, specular) | materials.standard, with ior, specularIntensity, specularColor and their maps, transmission, dispersion, clearcoat, sheen, iridescence and anisotropy | changed | 0.1 | materials.standard takes ior, specularIntensity, specularColor, specularIntensityMap and specularColorMap with three.js's names and formulas, transmission, thickness, attenuationColor and attenuationDistance (see the transmission entry), the clear coat and the sheen (see their entries), and iridescence and anisotropy (see their entries). | `api/materials` |
134
+ | MeshPhysicalMaterial ior / reflectivity / specularIntensity / specularColor / specularIntensityMap / specularColorMap | materials.standard({ ior, specularIntensity, specularColor, specularIntensityMap, specularColorMap }) | direct | 0.2 | Same names, ranges and formulas, so the values carry over, and glTF's KHR_materials_ior and KHR_materials_specular load into them. specularColor takes linear components above 1, as three.js's Color does. reflectivity has no option: set ior = (1 + 0.4 * reflectivity) / (1 - 0.4 * reflectivity), as three.js converts it. A glTF ior of 0 becomes 1000, as GLTFLoader reads it. | `api/materials` |
135
+ | MeshPhysicalMaterial transmission / thickness / attenuationColor / attenuationDistance / dispersion | materials.standard({ transmission, thickness, ior, dispersion, roughness, attenuationColor, attenuationDistance }) | changed | 0.2 | Same names, ranges and formulas: the surface samples a mipmapped copy of the opaque objects' colors where its bent ray leaves the volume, as three.js does, and glTF's KHR_materials_transmission, KHR_materials_volume and KHR_materials_dispersion load into them. Give transmission when you create the material, even as 0, to change it later. A masked material keeps its transmission, as three.js's alphaTest with transmission draws one: the cut-out leaves the pixels that show what lies behind, and the mask cuts the shadow the same way. The hash alpha mode has no three.js counterpart and throws. transmissionMap and thicknessMap keep row slots of their own and sample the specular slots' arrays, whose red and green scale the transmission and the thickness, so a material with them may also give the specular maps where the two textures share an array. A thickness map never shares a specular color map's array, because one is linear and the other sRGB, and a development build refuses that pair. A layered material keeps the two maps beside its layers unless a layer map fills the array that one of them samples, which a development build refuses. dispersion spreads the index of refraction over three rays, one per color, with red taking the lowest, so a prism separates the light behind it into colors; its cost falls on the materials that set it. The copy holds opaque objects only: three.js also draws the back faces of double-sided glass into it. Where the bent ray lands on an opaque object in front of the surface, null3D shows what lies straight behind the surface, and three.js shows that object's color. A custom material sets s.transmission in its surface function. | `api/materials` |
136
+ | MeshSSSNodeMaterial / SubsurfaceScatteringShader (thicknessColor, thicknessDistortion, thicknessAmbient, thicknessAttenuation, thicknessPower, thicknessScale, thicknessMap) | materials.standard({ diffuseTransmission, diffuseTransmissionColor, diffuseTransmissionMap, doubleSided: true }), with subsurfaceRadius and subsurfaceColor for skin | changed | 0.2 | Light from behind a thin surface shows on its front through glTF's diffuse transmission, which glTF's KHR_materials_diffuse_transmission also loads into. Map thicknessColor to diffuseTransmissionColor and thicknessScale to diffuseTransmission, kept from 0 to 1, and a thicknessMap to diffuseTransmissionMap with its value in alpha. three.js's term glows most when the camera looks toward the light, with thicknessDistortion and thicknessPower shaping the glow; null3D's light from behind spreads evenly, as glTF describes, so those two have no option and the glow looks softer head on. thicknessAmbient maps to the ambient and environment light, which shine through by themselves. The front keeps 1 - diffuseTransmission of its diffuse light, where three.js adds the glow on top. A custom material sets s.diffuseTransmission in its surface function. For skin, wax and marble, whose light spreads under the surface, which three.js's term does not draw, add subsurfaceRadius and subsurfaceColor: the subsurface blur spreads the diffuse light on the High and Ultra presets. | `api/materials` |
137
+ | MeshPhysicalMaterial clearcoat / clearcoatRoughness / clearcoatNormalScale / clearcoatMap / clearcoatRoughnessMap / clearcoatNormalMap | materials.standard({ clearcoat, clearcoatRoughness, clearcoatNormalScale, clearcoatMap, clearcoatRoughnessMap, clearcoatNormalMap }) | changed | 0.2 | Same names, ranges and formulas, and glTF's KHR_materials_clearcoat loads into them. Give a clear coat option when you create the material, even as 0, to change it later. clearcoatMap and clearcoatRoughnessMap must be one texture, with the coat in red and its roughness in green, as glTF packs them: pack two textures into one. A material with a clear coat or a sheen takes no lightMap, specularIntensityMap or specularColorMap. A custom material sets s.clearcoat in its surface function. The car paint example add-on (guides/car-paint) builds metal flakes and panel seams over this clear coat, and three.js has no flake lobe: its metal flakes are a normal map. | `api/materials` |
138
+ | MeshPhysicalMaterial iridescence / iridescenceIOR / iridescenceThicknessRange / iridescenceMap / iridescenceThicknessMap | materials.standard({ iridescence, iridescenceIor, iridescenceThicknessRange, iridescenceMap, iridescenceThicknessMap }) | changed | 0.3 | The same thin-film formulas, and glTF's KHR_materials_iridescence loads into them. three.js names the index of refraction iridescenceIOR and takes its thickness as one range; give iridescenceIor and iridescenceThicknessRange, in nanometers. Give an iridescence option when you create the material to change it later. A material with iridescence takes no lightMap, specularIntensityMap or specularColorMap, and no clear coat's or sheen's maps. A custom material sets s.iridescence, s.iridescenceIor and s.iridescenceThickness in its surface function. | `api/materials` |
139
+ | MeshPhysicalMaterial anisotropy / anisotropyRotation / anisotropyMap | materials.standard({ anisotropy, anisotropyRotation, anisotropyMap }) | changed | 0.3 | The same anisotropic GGX lobe with three.js's formulas, and glTF's KHR_materials_anisotropy loads into it. Leave the map out and the stretch still draws: its direction comes from the mesh's tangents, else the texture coordinates, as three.js builds the frame, and a surface with neither takes a steady direction of its own. It takes no lightMap, specularIntensityMap or specularColorMap, and no clear coat's or sheen's maps. Rectangles and tubes of light shade it as three.js does, without the stretch. | `api/materials` |
140
+ | MeshPhysicalMaterial sheen / sheenColor / sheenRoughness / sheenColorMap / sheenRoughnessMap | materials.standard({ sheenColor, sheenRoughness, sheenColorMap, sheenRoughnessMap }) | changed | 0.2 | The same Charlie sheen with three.js's formulas, and glTF's KHR_materials_sheen loads into it. There is no sheen option: give sheenColor times three.js's sheen, which defaults to 0, so a three.js material without sheen shows none and its port leaves the sheen options out. Give a sheen option when you create the material to change it later. sheenColorMap and sheenRoughnessMap must be one texture, with the roughness in alpha, as glTF packs them. A material with a clear coat or a sheen takes no lightMap, specularIntensityMap or specularColorMap. | `api/materials` |
141
+ | MeshBasicMaterial | materials.unlit({ color, map, opacity, alphaMode, vertexColors }) | direct | 0.1 | Its map's alpha and the vertex alpha join the opacity, as in three.js. The exposure and the tone mapping apply to it, as three.js applies them. | `api/materials` |
142
+ | MeshLambertMaterial / MeshPhongMaterial | materials.standard with metalness 0 and roughness near 1 (Lambert), or roughness tuned to the Phong shininess | changed | 0.1 | Expect small visual differences: the standard material adds a faint highlight and keeps energy as three.js's MeshStandardMaterial does. Compare screenshots of both versions, then accept or tune. | `api/materials` |
143
+ | MeshToonMaterial | materials.shader({ wgsl, uniforms }) with a toon surface function | manual | 0.1 | A surface function cannot read the scene's lights. Pass the light direction as a uniform, step the light into bands, and return the result as emissive. A lobe function, fn lobe(input: LobeInput) -> vec3f, does read each light. The engine calls it for the main directional light and for each point and spot light, with the light's direction and its shadowed irradiance. It adds the lobe's color to that light's specular, beside the base lighting. So bands made there follow every such light and its shadows. Set the surface's baseColor to black and its roughness to 1, as the uniform recipe does, so the base lighting adds little beside the bands. The engine calls no lobe for the fill directional lights and the area lights, so the bands do not follow them. | `shaders/surface-functions` |
144
+ | MeshNormalMaterial / MeshDepthMaterial / MeshDistanceMaterial / MeshMatcapMaterial | debug.view('normals' \| 'depth') for debugging; matcap is a recipe with an unlit function, fn unlit | changed | 0.1 | debug.view shades the whole scene, in development builds only. Its normals are in world space, where MeshNormalMaterial's are in view space. Its depth is white at the near plane, on a logarithmic scale for a perspective camera. | `api/debug` |
145
+ | ShaderMaterial / RawShaderMaterial (GLSL) | materials.shader({ wgsl, uniforms, textures }) with a WGSL surface function, an unlit function (fn unlit), or a full WGSL shader | manual | 0.1 | Rewrite in WGSL, in one literal tagged /* wgsl */. Prefer a surface function, so lighting, shadows, fog and instancing keep working. A shader that ignores the lights becomes an unlit function, fn unlit, which keeps the uniforms, the textures and the fog. The built-ins that ShaderMaterial adds have WGSL names of their own (see the ShaderMaterial built-ins entry). Declare the uniforms once, as struct Uniforms. Updates such as material.uniforms.uSpeed.value = 2 become material.set({ speed: 2 }), and the type check rejects a name that struct Uniforms lacks. A sampler2D uniform becomes var name: texture_2d<f32>; in the WGSL and an entry of the textures option, sampled with textureSample(name, nameSampler, uv). Textures are fixed when the material is created. Full shaders take no textures. | `shaders/surface-functions` |
146
+ | material.onBeforeCompile (shader-chunk patching) | materials.shader({ wgsl }) with a surface function or a vertex-offset function | manual | 0.1 | The engine has no shader chunks to patch. Keep the standard options on the new material: defaultSurface applies them. A custom material takes no standard maps (map, normalMap and the rest): declare textures in the WGSL and pass them with the textures option. | `shaders/surface-functions` |
147
+ | A ShaderMaterial that samples the scene's depth texture | materials.shader({ sceneInputs: ['sceneDepth'], wgsl }) with sceneDepth(uv) or sceneDistance(uv) | changed | 0.3 | Declare sceneInputs: ['sceneDepth'] and read the opaque scene's depth in the surface function, with uv = input.fragCoord.xy / frame.resolution. The engine binds a copy of the opaque depth. sceneDepth gives 1 at the near plane and 0 at the far plane, and sceneDistance gives the distance in world units. A surface in the opaque pass, or in a scene or reflection pass, reads 0, the far plane. | `api/materials` |
148
+ | ShaderMaterial built-ins: uv1, gl_FragCoord, gl_InstanceID / instanceIndex, modelMatrix, normalMatrix, viewMatrix, projectionMatrix, cameraNear, cameraFar | input.uv1, input.fragCoord, input.instance, object.worldMatrix, object.normalMatrix, camera.view, camera.projection, camera.near, camera.far | changed | 0.2 | The engine works relative to the camera, so its matrices do too. object.worldMatrix has its translation relative to the camera, and camera.view holds the camera's rotation only: camera.projection * camera.view * object.worldMatrix places a vertex, as projectionMatrix * modelViewMatrix does. object.position gives the origin in the world. object.normalMatrix turns normals into world space, where three.js's normalMatrix turns them into view space: multiply by camera.view for view space. camera.projection has reversed depth, 1 at the near plane. input.fragCoord counts from the top left, so gl_FragCoord.y becomes frame.resolution.y - input.fragCoord.y. input.instance is the row in an instance batch, 0 for an object of the scene. object.id and mesh.shaderId tell objects apart, which three.js leaves to uniforms. Only WGSL that reads uv1, instance, an id or the object's matrices pays for them. | `shaders/builtins` |
149
+ | TSL / NodeMaterial (three/tsl, three/webgpu) | materials.shader({ wgsl }) with a WGSL surface function | manual | 0.1 | Most TSL nodes map to one WGSL expression; see the shader porting reference. | `shaders/surface-functions` |
150
+ | transparent / opacity / alphaTest / depthWrite / depthTest / blending / vertexColors / flatShading / colorWrite | alphaMode: 'blend' \| 'mask' (with alphaCutoff), depthWrite, depthTest, colorWrite, blending: 'normal' \| 'additive' \| 'multiply' \| 'weighted', vertexColors, flatShading | changed | 0.1 | transparent: true becomes alphaMode: 'blend'; alphaTest becomes alphaMode: 'mask' with alphaCutoff; its cut edges are smoothed by default, and alphaToCoverage: false keeps three.js's hard edges. depthTest: false writes no depth either, as in three.js's WebGL renderer. colorWrite: false writes depth and no color. Its objects draw before the opaque objects that write color, so the depth holds back their color behind the surface. three.js orders that by material. blending takes effect with alphaMode: 'blend' only, where three.js blends an opaque material with additive or multiply blending too. The engine blends in linear color before the tone mapping, as WebGPURenderer does; WebGLRenderer blends after its tone mapping and sRGB encoding, so see-through surfaces look a little lighter in null3D and additive glows a little weaker. A blended material writes depth by default, as three.js's transparent materials do. Set depthWrite: false on glows and on surfaces that cross, so they never hide each other. | `api/materials` |
151
+ | oitPass(scene, camera) (OITPassNode) | alphaMode: 'blend' with blending: 'weighted' on each material that the pass blended, or the quality setting momentTransparency: true for the better layer | changed | 0.2 | The same weighted blended order-independent transparency (McGuire and Bavoil 2013), with three.js's default weight, the paper's equation 9. three.js's pass takes every transparent material of normal blending without transmission; null3D takes the materials that ask for it. Like three.js's pass, the weighted surfaces blend over the other see-through surfaces, test the scene's depth and write none. The coverage sums -log2(1 - alpha) instead of multiplying 1 - alpha, so both targets blend alike, which compatibility mode needs; the result is the same. The layer draws at one sample on every path, where three.js's matches the scene's samples on WebGPU. weightNode has no counterpart. Custom materials do not take it. The quality setting `momentTransparency` blends the same surfaces with a store of four depth moments instead, which is nearer an exact back-to-front blend than the weighted average is and draws them twice. It is off on every preset, and it takes the standard, basic and sprite materials whose blending is normal or weighted. | `api/materials` |
152
+ | side: DoubleSide | doubleSided: true | changed | 0.1 | Fixed when the material is created. A back face lights as if it faced the camera, as in three.js. A double-sided material with alphaMode: 'blend' draws its back faces first, then its front faces, as three.js does. BackSide has no equivalent: flip the geometry. | `api/materials` |
153
+ | forceSinglePass: true | forceSinglePass: true | direct | 0.2 | With alphaMode: 'blend' and doubleSided: true, both faces draw in one draw, in the mesh's triangle order. Fixed when the material is created. | `api/materials` |
154
+ | alphaToCoverage: true (with alphaTest) | alphaMode: 'mask', alphaCutoff (alphaToCoverage is on by default) | changed | 0.2 | The cut edges fade over one pixel above the cutoff and MSAA covers that share of each pixel, as in three.js. null3D turns it on for every mask; alphaToCoverage: false turns it off. Without MSAA it is a plain mask. Without alphaTest, three.js turns raw alpha into coverage: use alphaMode: 'hash' for that look. A custom material takes it too, where its WGSL sets or reads the surface's alpha, and then its shadow caster keeps the mask's holes. Fixed when the material is created. Its shadow cuts at alphaCutoff, where three.js's shadow cuts at 0.5. | `api/materials` |
155
+ | alphaHash: true | alphaMode: 'hash' | changed | 0.2 | Three.js's cells and threshold on each point's place on the mesh, so the alpha sets the share of the surface that draws. The noise pattern differs: null3D hashes each cell with integer math, so every GPU draws the same pattern, where three.js's sine hash changes from GPU to GPU. alphaCutoff has no effect in this mode. A hashed surface casts a hashed shadow, where three.js casts the whole shape. A custom material takes the mode where its WGSL sets or reads the surface's alpha, and its shadow and motion keep the same pattern. | `api/materials` |
156
+ | material.wireframe = true | materials.standard({ wireframe: true }), and the same option on unlit and custom materials | direct | 0.2 | Each triangle's edges draw as lines one pixel wide with the material's own shading, from an edge list that the engine keeps for each mesh, as three.js does. Its shadows draw lines too. Flat shading and bump maps have no effect, as in three.js. wireframeLinewidth has no effect, as in three.js on most platforms. Fixed when the material is created. | `api/materials` |
157
+ | material.envMap / envMapIntensity | scene.setEnvironment(env); materials.standard({ envIntensity }) | changed | 0.2 | One environment lights the scene; a material takes no environment of its own. envMapIntensity becomes `envIntensity`, which multiplies the scene's intensity. three.js uses scene.environmentIntensity in place of envMapIntensity under scene.environment. | `concepts/lighting` |
158
+ | material.needsUpdate = true | Nothing to do | changed | 0.1 | Options that change the shader or the pipeline, such as texture maps, vertexColors, doubleSided and flatShading, are fixed when a material is created. Create each variant during loading: a new one compiles a pipeline, which can make a frame late. | `concepts/materials` |
159
+ | ShadowMaterial (shadow-catcher planes) | materials.shadowCatcher({ color, opacity }) | direct | 0.2 | The plane shows the main directional light's shadow in the material's color where the shadow falls, and nothing where the light reaches it. The default color is black, as three.js's. Create the mesh with receiveShadows: true, or call setReceiveShadows(true), as the material needs it. Point and spot light shadows do not show on it. The scene's fog leaves it alone. Put the plane just above the surface whose shadows it catches. | `api/materials` |
160
+ | material fog: false | fog: false in the material options | direct | 0.1 | | `api/materials` |
161
+ | material.bumpMap / bumpScale | materials.standard({ bumpMap, bumpScale }) | direct | 0.2 | The same formula as three.js: the red channel's change from one pixel to the next bends the normal, so the look is the same, and it depends on the surface's size on screen as three.js's does. A normal map wins over it, as in three.js. bumpScale changes with set. A normal map converted offline (`bunx @null3d/cli assets normal-from-bump bump.png normal.ktx2 --scale <bumpScale>`) costs less at run time. | `api/materials` |
162
+ | material.displacementMap / displacementScale / displacementBias | materials.standard({ displacementMap, displacementScale, displacementBias }) | changed | 0.2 | Vertices move as in three.js: along the normal by the red channel times the scale, plus the bias, after skinning and morph targets. Shadows and the depth prepass follow, and culling grows each object's bounds by the farthest move, so no setBounds call is needed. One visible difference: without a normalMap or bumpMap, null3D bends the normals by the map's slope, so the light follows the moved surface. three.js keeps the flat mesh's normals, so there a displaced surface without a normal map shades as if it were flat. With a normal map, both engines light it the same. parallax: true adds parallax occlusion mapping from the same map, which three.js does not have. Raycasts see the mesh before the map moves it, in both engines. | `api/materials` |
163
+ | material.alphaMap | Alpha packed into the base color map's alpha channel offline, or a surface function that sets s.alpha from the texture | manual | 0.1 | three.js reads the alpha map from its green channel. Copy that channel into the base color map's alpha, and set alphaMode to 'mask' or 'blend'. | `api/materials` |
164
+ | renderer.clippingPlanes / material.clippingPlanes / localClippingEnabled | A surface function with alphaMode 'mask' that sets alpha to 0 beyond the plane, using input.worldPosition | manual | 0.1 | Pass the plane as a vec4f uniform. The shadow is cut at the plane too, as three.js does with clipShadows: true. A masked material's shadow caster runs the alpha that its surface function sets. three.js's default is clipShadows: false, which keeps the whole shadow. For that, also declare fn coverage(input: SurfaceInput) -> f32 and return 1.0: the shadow caster then tests the coverage in place of the alpha. | `shaders/surface-functions` |
165
+ | material.polygonOffset / polygonOffsetFactor / polygonOffsetUnits | depthBias: { constant, slopeScale } in the material options | direct | 0.1 | depthBias.constant takes polygonOffsetUnits, and depthBias.slopeScale takes polygonOffsetFactor. Signs differ because WebGPU uses reversed depth: the engine converts, so keep the three.js intent (push away from the camera). | `api/materials` |
166
+ | material.lightMap / lightMapIntensity, with the light map texture's offset and repeat | materials.standard({ lightMap, lightMapIntensity, lightMapOffset, lightMapRepeat }) | changed | 0.1 | The light map adds baked light to the ambient light, times lightMapIntensity. The texture's offset and repeat become lightMapOffset and lightMapRepeat, fixed when the material is created. The engine computes uv × repeat + offset for the light map alone, and the other maps keep their transform. Load the map with uvSet: 1 where three.js sets its channel to 1. A material with a clear coat, a sheen, iridescence or anisotropy takes no light map. | `api/materials` |
167
+ | material.toneMapped = false | toneMapped: false in the material's options, fixed when the material is created | changed | 0.3 | The material keeps its color as the display shows it on both paths. The 8-bit path decides that in the material's own shader. The HDR path's final pass reads a mask of these surfaces and skips the curve where one draws. A blended surface keeps the curve on the HDR path, so draw it on the 8-bit path with hdr: false if it needs the exact color. | `porting/threejs-postprocessing` |
168
+
169
+ ## Textures
170
+
171
+ | three.js | null3D | Status | Since | Notes | Docs |
172
+ | --- | --- | --- | --- | --- | --- |
173
+ | new TextureLoader().load / loadAsync | await assets.loadTexture(url, { colorSpace, flipY, wrap, filter, mipmaps, anisotropy, uvSet, premultipliedAlpha }) | changed | 0.1 | It returns a promise of the texture, which draws once its texels upload. flipY is true by default, as in three.js, and colorSpace is 'srgb'. | `api/textures` |
174
+ | texture.colorSpace = SRGBColorSpace (older: encoding = sRGBEncoding) | colorSpace: 'srgb' for color maps, 'linear' for data maps | direct | 0.1 | Same rule as three.js: base color and emissive maps are sRGB; normal, roughness, metalness and AO maps are linear. The default is 'srgb' for images and 'linear' for data. glTF models set them automatically. NoColorSpace and LinearSRGBColorSpace become colorSpace: 'linear'. | `concepts/color-management` |
175
+ | texture.flipY | flipY in the loadTexture options | direct | 0.1 | The default is true, as in three.js. A KTX2 file takes no flipY: true, so encode it flipped. glTF textures never flip. | `api/textures` |
176
+ | wrapS / wrapT / repeat / offset / rotation / center | wrap: 'repeat' \| 'clamp' \| 'mirror' in the texture options; repeat, offset and rotation go in the material's uvTransform | changed | 0.1 | uvTransform takes three.js's repeat, offset and rotation with the default center, and places every map of the material with it. mapUvTransforms gives one map, by its option name such as emissiveMap, a transform of its own, as three.js keeps one transform for each texture. A glTF file's transforms stay per map. The default wrap is 'clamp', as three.js's default is ClampToEdgeWrapping. | `api/textures` |
177
+ | minFilter / magFilter / generateMipmaps / anisotropy | filter: 'linear' \| 'nearest', mipmaps, anisotropy (capped by the preset) | changed | 0.1 | | `api/textures` |
178
+ | DataTexture / DataArrayTexture / Data3DTexture | textures.fromData({ width, height, depth, format, data }) | changed | 0.1 | Formats rgba8unorm and rgba16float (a Uint16Array of half floats or a Float32Array). depth above 1 makes a texture array. The standard materials read its first layer. A custom material declares it as var name: texture_2d_array<f32> and samples a layer with textureSample(name, nameSampler, uv, layer). Filters are linear by default, where three.js's DataTexture is nearest: pass filter: 'nearest'. A Data3DTexture made as a color grading table for LUTPass becomes assets.lutFromData({ size, data }). Data textures have no mip levels unless mipmaps is true, as DataTexture's generateMipmaps is false. | `api/textures` |
179
+ | CanvasTexture (a 2D canvas redrawn at run time) | Draw on an OffscreenCanvas in the sketch, then textures.fromCanvas(canvas, { refreshHz }) and texture.refresh(rect) | changed | 0.2 | The sketch worker has no DOM canvas; OffscreenCanvas with a 2D context works in workers. The canvas's last row goes to v = 0, so it stands upright on a plane, as three.js shows a CanvasTexture. In three.js, setting texture.needsUpdate uploads the whole canvas; here refresh uploads only the rectangle. Ask for the 2D context with willReadFrequently: true, so the browser keeps the pixels where the engine reads them. | `api/textures` |
180
+ | VideoTexture | engine.registerVideo(video, { name }) on the page, then textures.fromVideo(name) in the sketch | changed | 0.3 | A video element lives on the page, where it plays with its own controls and sound, so the page owns it and the sketch shows it. The page sends the image of each frame that the video presents, scaled down to maxSize, and the sketch uploads the newest one within the frame's upload budget. A paused video presents no frame, so it costs nothing, and the sketch's call sends the frame that the video holds then. Keep a frame within the upload budget, 2 MiB on Low: 512 texels of a 16:9 video is 576 KiB. Safari and Firefox cannot make a VideoFrame from a video element, so every browser reads frames through createImageBitmap. | `guides/video-textures` |
181
+ | CubeTextureLoader / CubeTexture | assets.loadCubemap([px, nx, py, ny, pz, nz]) for sky boxes with scene.setBackground; assets.loadEnvironment for lighting | changed | 0.2 | The faces come in three.js's order and draw as three.js draws a CubeTexture background, mirrored across x. Each face is square, of one size, at most 2,048 pixels a side. A cube map does not light materials and does not blur: for envMap or a blurred background, load an environment from an HDR or EXR image with assets.loadEnvironment. | `api/assets` |
182
+ | RGBELoader / EXRLoader / HDRLoader / UltraHDRLoader + PMREMGenerator | await assets.loadEnvironment('sunset.hdr'), or `bunx @null3d/cli assets env sunset.hdr sunset.ktx2` and assets.loadEnvironment('sunset.ktx2') | changed | 0.2 | One call loads a Radiance (.hdr) or OpenEXR (.exr) file and prefilters it on the GPU, as HDRLoader or EXRLoader with PMREMGenerator.fromEquirectangular do. No loader object and no generator to dispose. The tool's file skips the filtering at load. UltraHDRLoader's JPEG files with gain maps do not load: convert them to .hdr or .exr. EXR files with DWAA or DWAB compression, tiled or multi-part EXR files do not load either. | `api/assets` |
183
+ | KTX2Loader + setTranscoderPath + detectSupport | assets.loadTexture('x.ktx2') | direct | 0.1 | Built in: delete the setup. The engine loads the transcoder with the first KTX2 file and picks the device's format. The file's first row is at v = 0, as with KTX2Loader. UASTC HDR files load too: as BC6H where the device has BC formats, else as rgb9e5ufloat, where three.js uses ASTC HDR or half floats. Both stay linear, so keep tone mapping on. The engine also keeps each transcoded texture in its cache of derived data, so a repeat visit skips the transcoder; KTX2Loader transcodes on every visit. | `api/textures` |
184
+ | CompressedTexture / CompressedArrayTexture | assets.loadTexture('x.ktx2'); texture.format names the compressed format | changed | 0.1 | Compressed textures come from KTX2 files of ETC1S or UASTC data, with the file's mip levels. No call takes compressed blocks from code. | `api/textures` |
185
+ | texture.channel (which UV set a map uses) | uvSet: 0 or 1 in the texture's options | direct | 0.1 | Each map of a material reads the set that its texture names. glTF models carry this per texture, so loaded models need nothing. | `api/textures` |
186
+ | material.premultipliedAlpha / texture.premultiplyAlpha | loadTexture(url, { premultipliedAlpha: true }), which multiplies each color by its alpha as the image decodes | changed | 0.1 | Blending needs no material flag: the engine blends premultiplied colors. On a blended material, a base color map loaded with premultipliedAlpha: true looks the same as the image loaded without it, because the shader divides its colors by their alpha before it lights them. Other materials show the multiplied colors, as three.js does. | `api/textures` |
187
+
188
+ ## Loaders
189
+
190
+ | three.js | null3D | Status | Since | Notes | Docs |
191
+ | --- | --- | --- | --- | --- | --- |
192
+ | GLTFLoader().load / loadAsync | const prefab = await assets.loadGltf(url); scene.instantiate(prefab) | changed | 0.2 | A worker parses the file. Named nodes via prefab.find(name), and a copy's objects via instance.find(name); prefab.bounds frames the model. A node's textures, which three.js reads from mesh.material.map and its other maps, come from prefab.find(name).maps. KTX2 textures, WebP and AVIF textures (EXT_texture_webp, EXT_texture_avif) and meshopt compression need no decoder setup. Clips play through the copy's animator: scene.instantiate(prefab).animator().play(name), with the names in prefab.clips. Joints are not objects. Morph targets draw, and clips animate their weights. Materials follow GLTFLoader's rules. Vertex colors turn on, a mesh without normals shades flat, and blended materials write no depth. A mesh without tangents turns the normal map's green channel over. KHR_lights_punctual lights load with the intensities that three.js gives them. A clip without a name is named animation_0, animation_1 and so on, as three.js names it. KHR_animation_pointer needs no plugin: the loader reads it, and moves the same texture transform values as three.js's plugin. assets.registerGltfExtension(handler) takes the place of GLTFLoader.register() for an add-on's extensions. GLTFLoader ignores the MSFT_lod levels of `bunx @null3d/cli assets optimize --lod` and draws the full mesh. | `api/assets` |
193
+ | LoadingManager.setURLModifier | assets.loadGltf(url, { rewriteUrl: (address) => address }) | changed | 0.2 | Checks or changes each address that a glTF file names, for its buffers and images. Return null to refuse the file with E1416. It covers glTF files only. | `api/assets` |
194
+ | DRACOLoader + setDecoderPath | Built in: assets.loadGltf(url) decodes Draco data | direct | 0.2 | Delete the setup and the decoder files. The engine ships Draco's glTF decoder and downloads it, about 60 KB after Brotli, with the first Draco file. Convert the files to meshopt with `bunx @null3d/cli assets optimize`: meshopt files decode faster, with a decoder of about 6 KB. | `concepts/assets` |
195
+ | MeshoptDecoder / setMeshoptDecoder | Built in: assets.loadGltf(url) decodes meshopt data | direct | 0.2 | Delete the setup. The loader reads KHR_meshopt_compression and EXT_meshopt_compression, and downloads the decoder with the first compressed file. | `concepts/assets` |
196
+ | FBXLoader / OBJLoader / MTLLoader / ColladaLoader / STLLoader / PLYLoader / 3DMLoader / USDZLoader | Convert to glTF before release: `bunx @null3d/cli assets convert model.fbx model.glb` for FBX, OBJ with MTL, STL and PLY; Blender for Collada, 3DM and USDZ | changed | 0.2 | The engine loads glTF only. The command keeps FBX skins, blend shapes and clips, turns materials into metal-rough ones, and puts units in meters with Y up. Bump maps become normal maps. The engine draws no glTF points, so a converted PLY point cloud loads with nothing to draw, where three.js draws it. | `guides/assets-pipeline` |
197
+ | LoadingManager / onProgress callbacks | assets.onProgress((loaded, total) => ...) and assets.preload([...urls]) | changed | 0.1 | loaded and total count bytes, not files: a download that announces no length still adds its bytes to loaded while total stays unknown, so divide by Math.max(total, loaded). | `guides/loading-screens` |
198
+ | FileLoader / ImageLoader / ImageBitmapLoader | assets.loadBinary(url), assets.loadJson(url), assets.loadImageBitmap(url) | changed | 0.1 | ImageBitmapLoader's texture becomes textures.fromImageBitmap, which puts the bitmap's first row at v = 0. assets.loadImageBitmap flips the rows by default, as createImageBitmap does with imageOrientation: 'flipY', so the texture stands upright, as three.js's TextureLoader shows it. | `api/assets` |
199
+ | THREE.Cache.enabled | Nothing to do | changed | 0.1 | Loads of one URL at the same time share one download, files that assets.preload downloaded wait in memory until a load takes them, and the HTTP cache keeps the rest. | `api/assets` |
200
+
201
+ ## Instancing and batching
202
+
203
+ | three.js | null3D | Status | Since | Notes | Docs |
204
+ | --- | --- | --- | --- | --- | --- |
205
+ | InstancedMesh + setMatrixAt / setColorAt / instanceMatrix.needsUpdate | scene.createInstances(mesh, count, { material, dynamic, colors }); write batch.positions / rotations / scales / colors | changed | 0.1 | Static batches call markDirty(start, count) after writes; dynamic batches upload every frame without it. colors: true adds the colors array: linear RGBA per row, which multiplies the base color and opacity as setColorAt's color does. scene.createInstances(prefab, count) instances a glTF model. One set of rows serves all its meshes, in place of an InstancedMesh per mesh kept in step by hand. castShadow and receiveShadow become the castShadows and receiveShadows options, or batch.setCastShadows / setReceiveShadows. An InstancedMesh's boundingSphere becomes batch.setBoundingRadius(radius) for that batch: each row's sphere then holds the sphere of that radius around the row's origin. | `concepts/instances` |
206
+ | BatchedMesh | Nothing special: the engine batches objects that share a mesh and material | changed | 0.1 | Use createInstances for many copies of one mesh, and separate meshes for varied geometry. | `concepts/instances` |
207
+ | InstancedBufferGeometry / InstancedBufferAttribute (custom per-instance data) | createInstances(mesh, count, { material, values: true }) adds batch.values, four floats per row, which a custom material's vertexOffset and surface functions read as object.values | changed | 0.2 | Four floats per row replace named attributes: pack a phase, an age, a tint or a size into them. A shader that read an instanced attribute reads object.values.x to .w instead. A material with a vertexOffset casts shadows that follow it. | `concepts/instances` |
208
+ | A BufferGeometry with no attributes, drawn from a vertex count in a ShaderMaterial (gl_VertexID and gl_InstanceID) | scene.createVertexDraw({ shader, vertices, instances, bounds, ...material options }) | changed | 0.2 | The shader makes every vertex from @builtin(vertex_index) and @builtin(instance_index), and the draw holds no mesh data and no per-instance data, so a frame uploads nothing for it. three.js needs a geometry with a placeholder attribute and an InstancedBufferGeometry for the instance count. A draw blends, sorts as one object, takes no texture, casts no shadow, and a raycast does not hit its shapes. | `api/vertex-draws` |
209
+ | LOD (addLevel) / SimplifyModifier | Nothing for a mesh made in code of 4,096 triangles or more, or of 256 or more whose copies hold 65,536: it plans its levels on the job workers at its first draw, and `await mesh.buildLevels()` plans another; or baseMesh.setLevels([{ mesh, distance }]) on the base mesh, then draw the base mesh; or levels from `bunx @null3d/cli assets optimize --lod`, which assets.loadGltf reads | changed | 0.2 | Levels belong to the mesh, and every object and instance row picks its own level each frame. A mesh made in code plans measured levels with the asset tool's planner, as three.js's SimplifyModifier would make far copies by hand, and they switch at once while the threshold stays small; `levels: false` in its arrays opts out. Each object and row picks its level on the GPU or on job workers, by the level's error, distance or screen coverage. A distance holds on every screen height, and so does a coverage. It measures to the nearest point of an object's bounds, where three.js measures to its position, so a large object switches later. A hand-set level fades over a dithered band, which replaces hysteresis; a level with a measured error switches at once while the threshold stays small and fades above about one and a half pixels. A mesh whose bound covers fewer pixels than the threshold draws nothing. Each shadow map picks a caster's level in its own texels, so the level holds while the camera moves. A level may name a material of its own, so a far level shades more cheaply, such as without a normal map. `object.setLevelBias(bias)` moves one object's threshold, as Godot's `lod_bias` does: above 1 it draws coarser levels, and below 1 it keeps more detail. `object.setDrawRange(start, end)` draws a mesh only inside a band of distances, and fades it at each edge. getCurrentLevel and autoUpdate have no match. Far copies can also draw as impostor cards or as one merged mesh per far cell, from @null3d/impostors. The cards blend the three nearest stored views and light from the normals the bake stores, so a moving sun relights them with the meshes. A large static mesh can also take a tree of cluster patches from `bunx @null3d/cli assets optimize --clusters`: the engine then draws fine patches near the camera and coarse ones far from it, on both GPU paths where the browser draws many ranges in one call, and whole levels elsewhere. three.js has no equivalent, and its LOD picks one level for the whole object. | `concepts/lod` |
210
+
211
+ ## Animation
212
+
213
+ | three.js | null3D | Status | Since | Notes | Docs |
214
+ | --- | --- | --- | --- | --- | --- |
215
+ | AnimationMixer / clipAction / play / crossFadeTo / fadeIn / fadeOut / time / setEffectiveWeight / timeScale / mixer.update(dt) | const anim = obj.animator(); anim.play('run', { fade: 0.2, loop: true, speed: 1 }); anim.crossFade('walk', 0.3); anim.play('walk', { time: 0.4, weight: 0.7 }); anim.setWeight('walk', 0.5); anim.setLayerWeight(1, 0.5); anim.setTimeScale(0.5); anim.onEvent('finished', handler) | changed | 0.2 | No update call: the engine advances and blends every animator on its job workers. action.time = t before play() becomes play(name, { time: t }). setEffectiveWeight(w) on actions that play together becomes play(name, { weight: w }), then setWeight(name, w): a play with a weight joins its layer's clips, and a play without one fades them out. setWeight leaves a running fade in place, which multiplies the weight. A fade out starts from the clip's current weight, not from full weight. setLoop(LoopOnce) becomes loop: false, which holds the last frame, as clampWhenFinished does. fadeOut(duration) becomes stop(name, { fade: duration }). A clip with a negative speed starts at its end. Filtered clips for upper and lower body become layers with setLayerMask. Walk and run blends whose weights and time scales the code works out from a speed become playBlend and setBlend, which keep the clips in step. crossFadeTo and crossFadeFrom map to crossFade, which keeps the weighted blend that three.js shows; it never uses an inertial transition, which samples only the new clip. startAt has no counterpart: call play at that time. mixer.addEventListener('loop' or 'finished') becomes anim.onEvent('loop' or 'finished', handler), which also gets the events in the clip's data. Handlers run at the start of the next frame, before onUpdate, so code sees what the clips reached in the frame before, as after mixer.update. A clip blends only where it has tracks, as in three.js. Poses, fades, masked layers, additive clips and blends match three.js's within 0.0004. A clip whose keys follow no single grid is stored at 30 keys per second. Its fastest joints can then cut corners by up to 0.005. | `api/animation` |
216
+ | AnimationClip / KeyframeTrack built in code | const pulse = scene.animateProperty(lamp, 'light.intensity', { times: [0, 1, 2], values: [0, 5, 0], loop: true }); const recolor = scene.animateProperty(material, 'color', { times: [0, 1], values: [1, 0, 0, 0, 0, 1] }) | changed | 0.2 | A track names a value of a light, a camera, a material or an object: 'light.intensity', 'light.color', 'camera.fov', a material value that setUniform takes, 'material.uvOffset' or 'material.uvScale' for where its maps sit on the texture coordinates, or 'position', 'rotation', 'scale' and 'visible'. Keys hold a number, two numbers for the offset or the scale of the maps, three for a color, a position or a scale, and four for a rotation. Interpolation: 'linear', 'step' or glTF's cubic spline ('cubic'), and a cubic key holds an in-tangent, the value and an out-tangent. animation.setTime(t) places the animation, setSpeed, setPaused, setLoop and stop control it, and a material animation changes every object that uses the material. glTF files play their KHR_animation_pointer tracks through the model's animator, with the clip's time, speed, fades and weights: a light's intensity, color and range, a material's values, the offset and scale of a base color or emissive texture's transform, a node's visibility, and a node's transform or morph weights. A material keeps a transform for each of its maps, so a file that moves two of them apart plays both, each on its own map. A pointer the engine does not read leaves its value as the file has it, with a warning in development builds. three.js needs a plugin for the extension. | `api/animation` |
217
+ | SkinnedMesh / Skeleton / Bone built by hand | Author the skeleton in a modeling tool and export glTF: const hero = scene.instantiate(await assets.loadGltf(url)); hero.animator().play('walk') | manual | 0.2 | Building skeletons in code is not supported, and joints are not objects. Meshes that hang on bones, such as a sword in a hand, follow their joints when the file puts them under the bone. To turn a joint from code, use the animator's joint calls (see the bone rotation entry). The mesh's own world matrix places the skinned vertices, as three.js draws a SkinnedMesh. Each pass skins the mesh in its vertex shader, as three.js does, custom materials included. | `api/animation` |
218
+ | bone.quaternion / bone.rotation set after mixer.update(dt); bone.lookAt(target); skeleton.getBoneByName | const head = anim.joint('Head'); anim.setJointRotation(head, q, weight); anim.addJointRotation(head, q, weight); anim.lookAt(target, { joints: ['Spine', 'Neck', 'Head'], limit }, weight) | changed | 0.2 | Setting bone.quaternion after the mixer's update becomes setJointRotation, and multiplying it becomes addJointRotation, which turns the joint in its own frame. Turn a bone.rotation Euler into a quaternion with quat.fromEuler first. Both take a weight from 0 to 1 that blends with the animated rotation. A rotation holds in every frame until clearJoint, where three.js's mixer overwrites the bone in its next update. bone.lookAt becomes lookAt, which turns a chain of up to 4 joints toward a point in the world, each within its limit, and aims again every frame until lookAt(null). The joints below follow, so a held rifle aims with the arms. | `api/animation` |
219
+ | AnimationUtils.subclip / makeClipAdditive | anim.play(name, { additive: true }) for makeClipAdditive. Split clips for subclip in the modeling tool | changed | 0.2 | An additive play adds the clip's change from its first frame, as makeClipAdditive does with its default reference frame. The engine makes the additive form once, at the first additive play. | `api/animation` |
220
+
221
+ ## Interaction and controls
222
+
223
+ | three.js | null3D | Status | Since | Notes | Docs |
224
+ | --- | --- | --- | --- | --- | --- |
225
+ | Raycaster.setFromCamera + intersectObject(s) | camera.screenToRay(x, y, ray); scene.raycast(ray.origin, ray.direction, { layers }, hit) | changed | 0.2 | scene.raycast writes the closest hit into a hit object that you create once, and scene.raycastAll writes every hit, nearest first, into an array. A hit has object, instance (instanceId), point, normal, distance and triangle (faceIndex), and uv (intersection.uv) with hasUv, which says whether the hit triangle has texture coordinates. The layer mask defaults to layer 0 alone, as Raycaster's does, and the whole scene is tested. Hidden objects are never hit. A skinned mesh is tested in its bind pose, not its animated pose. camera.screenToRay uses the camera of the frame on screen at the pointer's event. For clicks and hover on objects, obj.on('click', fn) casts the ray itself. Acceleration structures are built in. Rays hit sprites, points and lines as they draw. raycaster.far becomes maxDistance. params.Points.threshold and params.Line.threshold become the pointThreshold and lineThreshold options. three.js gives both a default of 1 world unit, and null3D none. Without them, a ray hits a point's square, or a line within half its width. A hit near a line, or near a point within a threshold, is the ray's closest point. three.js puts a Line's hit on the line instead. Triangles hit as their material draws them, front faces only or both with doubleSided: true, as Raycaster reads material.side. A ray hits a dashed line's gaps, and a sprite or point where its map is clear, as in three.js. scene.pick(x, y) tests the pixel that the image shows, through the GPU, and returns a promise; three.js has no pixel pick. Sprites, points and lines sized in pixels use the active camera, or the camera of the event's frame, in place of raycaster.camera. three.js's Line2 and LineSegments2 ignore raycaster.far; maxDistance limits every null3D hit, lines too. | `api/raycast` |
226
+ | DOM pointer, mouse, touch and keyboard listeners | input.pointer, input.isDown('KeyW'), input.wasPressed('Mouse0'), input.touches, input.actions.define(); obj.on('click' \| 'pointerdown' \| 'pointerup' \| 'pointermove' \| 'pointerenter' \| 'pointerleave', fn) | changed | 0.1 | The page forwards pointer, touch, keyboard and gamepad input to the sketch, which reads it once per frame and adds no DOM listeners. Keys take KeyboardEvent.code names, and the main mouse button or a tap is Mouse0. A canvas that takes touch gestures needs touch-action: none in its CSS. obj.on replaces a canvas listener that raycasts: the closest object under the pointer gets the event, then its parents. input.pointer.wheel gives the scroll in pixels, counting a line as 16 pixels and a page as 100, as three.js's controls count deltaMode. | `api/input` |
227
+ | OrbitControls / MapControls / TrackballControls / ArcballControls | createOrbitControls(ctx, camera, { target, enableDamping, dampingFactor, minDistance, maxDistance, maxPolarAngle }) or createMapControls(ctx, camera) from @null3d/controls; controls.update(dt) in onUpdate | changed | 0.1 | Option names and defaults match OrbitControls and MapControls, and the same input gives the camera the same pose. mouseButtons and touches take strings such as 'rotate' and 'dolly-pan'. There is no DOM element, so connect, disconnect and dispose have no equivalent, and listenToKeyEvents() takes no element: it turns on the keys, which the sketch's input already reads. There are no change, start or end events: update(dt) returns true when the camera moved. zoomToCursor, keys, keyPanSpeed, keyRotateSpeed, cursor, minTargetRadius, maxTargetRadius, saveState and reset keep three.js's names and behavior. A held key repeats after half a second, then 30 times a second, where three.js follows the system's key repeat. An orthographic camera zooms by its view height, and minZoom and maxZoom count zoom as three.js does from the height when the controls start. getDistance, getPolarAngle and getAzimuthalAngle keep three.js's meaning. rotateLeft, rotateUp, pan, dollyIn and dollyOut take effect at the next update, not at once. dampingFactor is the share at 60 frames per second. The engine scales it to each frame's step, so the motion takes the same time at any frame rate. The controls orbit around +Y, where three.js orbits around the camera's up. Trackball and Arcball controls have no equivalent. three.js takes a frame's events one at a time, so a two-finger pan can differ by a few percent of the move. | `api/controls` |
228
+ | FlyControls / FirstPersonControls / PointerLockControls | createFlyControls(ctx, camera, { movementSpeed, rollSpeed, dragToLook, autoForward }) or createFirstPersonControls(ctx, camera, { movementSpeed, lookSpeed, pointerSpeed, minPolarAngle, maxPolarAngle }) from @null3d/controls; controls.update(dt) in onUpdate | changed | 0.2 | Option names and defaults match FlyControls, FirstPersonControls and PointerLockControls, and the same input gives the camera the same pose. First-person controls take the place of both FirstPersonControls and PointerLockControls: while the canvas holds the pointer lock, the mouse turns the view as PointerLockControls turn it. The page asks for the lock in a click handler with engine.requestPointerLock(), and the sketch reads input.pointer.locked; lock(), unlock(), isLocked and the lock and unlock events have no equivalent. For code that moves the camera itself, set movementSpeed: 0 and call controls.moveForward and controls.moveRight. There is no DOM element, dispose or change event: update(dt) returns true when the camera moved. In fly controls, the keys add to the pointer's turn, where three.js's pointer replaces the arrow keys' turn. First-person controls turn the camera with no roll, where PointerLockControls keep a roll the camera had. With the pointer locked, a frame's mouse moves add up before the polar limits apply. three.js applies the limits after each move, so a frame can end at a different angle. With two fingers down, the first finger turns the view, where three.js follows the finger that touched down last. dampingFactor is the share at 60 frames per second, scaled to each frame's step. | `api/controls` |
229
+ | TransformControls / DragControls | createTransformControls(ctx, camera, { mode, space, size, showX, showY, showZ, translationSnap, rotationSnap, scaleSnap }) from @null3d/controls, then attach(object) and controls.update(dt) in onUpdate; createDragControls(ctx, camera, objects, { recursive, transformGroup, rotateSpeed, mouseButtons, touches }) | changed | 0.3 | Option names and defaults match TransformControls and DragControls. There is no DOM element, getHelper or event: the controls make their handles in the scene, report dragging, axis, hovered and state, and update(dt) returns true when it moved something. A gizmo turns an object by the exact angle that the pointer sweeps around the axis, where three.js scales a linear approximation of it. minX to maxZ clamp a move, and showXY, showYZ and showXZ hide the plane handles, as in three.js. showX, showY and showZ hide the plane handles too. A press on a handle reaches the handle alone, so a click handler on the object behind it does not hear it. dragging and axis replace the dragging-changed, objectChange, mouseDown and mouseUp events of TransformControls. dragging, hovered and state replace the dragstart, drag, dragend, hoveron and hoveroff events of DragControls. | `api/controls` |
230
+
231
+ ## Helpers and debugging
232
+
233
+ | three.js | null3D | Status | Since | Notes | Docs |
234
+ | --- | --- | --- | --- | --- | --- |
235
+ | AxesHelper / GridHelper / BoxHelper / Box3Helper / ArrowHelper / CameraHelper / light helpers / SkeletonHelper / PlaneHelper | debug.axes, debug.grid, debug.box, debug.sphere, debug.arrow, debug.frustum, debug.light, debug.skeleton | changed | 0.1 | Call them in onUpdate: each call draws for one frame. Debug drawing exists in development builds only. debug.grid takes GridHelper's size and divisions, and its color and centerColor default to GridHelper's color2 and color1. debug.frustum draws orange by default, as CameraHelper draws a frustum. debug.box takes a box's lowest and highest corners. debug.light draws directional lights only. debug.skeleton draws an animated object's skin joints, blue at the joint and green at its parent, as SkeletonHelper does. PlaneHelper and PolarGridHelper have no equivalent. | `api/debug` |
236
+ | three.js's Inspector add-on or developer tools extension, or code that walks scene.children to find an object while debugging | ?inspect on the page in a development build; engine.inspect(call, args) from page code; bunx @null3d/cli mcp for a coding agent | changed | 0.3 | The ?inspect panel lists the scene as a tree and outlines the object that you select. It shows and changes the object's transform, and a mesh's base color, roughness, metalness and opacity. A change lasts until the page reloads, so copy the final values into the sketch. engine.inspect runs the same calls from code, and the page answers capture itself with { png, bytes }. The MCP server gives a coding agent the same calls, frame captures and the frame figures. All three work in a development build only, because a production build leaves the channel out. A held page or a replay opens no panel. | `guides/debugging` |
237
+
238
+ ## Math
239
+
240
+ | three.js | null3D | Status | Since | Notes | Docs |
241
+ | --- | --- | --- | --- | --- | --- |
242
+ | new Vector3 / Quaternion / Matrix4 / Euler / Color / Box3 / Sphere / Ray / Plane | Plain arrays and the vec3, quat, mat4 and color helpers from @null3d/engine, such as vec3.add(out, a, b) and quat.slerp(out, a, b, t) | changed | 0.1 | Create scratch arrays once with vec3.create(), quat.create() or mat4.create(), outside onUpdate. Most names match three.js, and where three.js has the same operation, a helper does three.js's arithmetic, so the results match. Coordinates are right-handed with +Y up, as in three.js. A mat4 holds its 16 numbers column by column, as Matrix4.elements does, with the translation in elements 12, 13 and 14. multiplyMatrices(a, b) is mat4.multiply(out, a, b), and multiplyQuaternions(a, b) is quat.multiply(out, a, b): both apply b first, then a. setFromRotationMatrix(m) is quat.fromMat4(out, m), which needs a matrix without scale; use mat4.decompose for one with scale. applyQuaternion is vec3.transformQuat, applyMatrix4 is vec3.transformMat4, multiplyScalar is vec3.scale and addScaledVector is vec3.scaleAndAdd. setFromUnitVectors is quat.rotationTo, and setFromEuler is quat.fromEuler, in radians. There are no helpers for Box3, Sphere, Ray or Plane. three.js math classes may stay in setup code during a port, but not in per-frame code. Game rules that a server replays import the exact helpers from @null3d/engine/math/vec3, quat, mat4 and math, and build setAxisAngle, fromEuler, rotateX, rotateY, rotateZ, slerp, vec3.angle and math.damp with createMath on an exact math library. | `api/math` |
243
+ | Clock / getDelta / getElapsedTime | onUpdate(dt) or ctx.time.dt, and ctx.time.now | changed | 0.1 | getDelta() becomes the dt that onUpdate gets, also in ctx.time.dt, and getElapsedTime() becomes ctx.time.now. Sketch time stops while the engine is paused or the page is hidden. A fixed-step simulation, such as world.step(1 / 60), moves to onFixedUpdate. | `api/time` |
244
+ | MathUtils (degToRad, clamp, lerp, damp, randFloat, seededRandom) | math.degToRad, radToDeg, clamp, lerp, inverseLerp, mapLinear, damp, smoothstep, euclideanModulo, randFloat, randInt and randFloatSpread; math.seed and math.random | direct | 0.1 | Same names and arithmetic. The random helpers draw from math.random, which hold mode seeds. MathUtils.seededRandom(s) becomes math.seed(s) once, then math.random(). smootherstep, pingpong, generateUUID and the power of two helpers have no equivalent. Game rules that a server replays import clamp, lerp and the other exact helpers from @null3d/engine/math/math, build damp with createMath on an exact math library, and draw random numbers from a generator of their own. | `api/math` |
245
+ | Color.set / setHex / setHSL / setRGB / lerp | '#rrggbb' or '#rgb' strings, 0xrrggbb numbers, or [r, g, b] linear arrays from 0 to 1; color.fromHex, color.fromSrgb and color.fromHsl give linear RGB | changed | 0.1 | Hex values are sRGB, as setHex and setStyle read them, and the engine converts them to linear. [r, g, b] arrays are linear, as setRGB reads them, so the color helpers' results go straight into color options and instance colors. color.fromSrgb converts sRGB components, color.fromHsl gives what setHSL gives, and vec3.lerp blends two colors. color.srgbToLinear and color.linearToSrgb convert one component by the same curve as SRGBToLinear and LinearToSRGB. | `concepts/color-management` |
246
+
247
+ ## Post-processing
248
+
249
+ | three.js | null3D | Status | Since | Notes | Docs |
250
+ | --- | --- | --- | --- | --- | --- |
251
+ | EffectComposer / RenderPass / OutputPass / PostProcessing (three/webgpu) / pmndrs postprocessing | post.set({ ... }) | changed | 0.2 | The chain is built in and merged into few passes. Delete the composer, RenderPass and OutputPass; keep only each pass's settings. | `concepts/post-processing` |
252
+ | UnrealBloomPass / BloomEffect / bloom() node | post.set({ bloom: { intensity, threshold, knee, blend, weights } }) | changed | 0.2 | null3D draws bloom through a chain of mip levels whose glow keeps its size as a share of the screen, so the settings map rather than copy. UnrealBloomPass: blend 'add', the same threshold, knee 0.01, intensity about 8.8 x strength, and weights from radius (the port skill's table, or its map-bloom.mjs script for the app's canvas size). The bloom() node: the same at a third of the intensity. pmndrs BloomEffect: blend 'screen', intensity as is, luminanceThreshold becomes threshold and luminanceSmoothing becomes knee, weights from radius and levels. Drop the resolution argument. The match holds at one canvas size, 1080 pixels on the shorter side by default; three.js's glow spans pixels, so on a larger screen null3D's looks wider. A strong bloom also spreads a little wider at the frame's edges than three.js's, whose faint haze fades toward the corners; lower strength or radius to soften it. In WebGPU's compatibility mode with MSAA, bloom moves the engine to HDR color with FXAA. | `concepts/post-processing` |
253
+ | SSAOPass / SAOPass / GTAOPass / N8AO | post.set({ ao: { radius, thickness, distanceExponent, distanceFalloff, scale, samples, intensity } }) | changed | 0.2 | GTAOPass's search and denoise at half resolution, with its setting names; blendIntensity becomes intensity, and distanceFallOff is spelled distanceFalloff. It darkens only the ambient light, where GTAOPass darkens the whole image. It draws where the quality setting aoScale is above 0: on High and Ultra, or after quality.set({ aoScale: 0.5 }) on phones and tablets. For SSAOPass, SAOPass and N8AO, start from the defaults and tune radius and scale by eye. In the engine's parity tests with GTAOPass's defaults, under 0.1% of the pixels differ from three.js's image on every GPU path. With a wider, darker search, under 1% differ, along the soft edges. A scene that only ambient light lights gives the same image in both. | `concepts/post-processing` |
254
+ | SSGINode / ssgi() (bounce light from the screen) / VXGINode | A light probe grid for bounce light (scene.setLightProbeGrid), with ambient occlusion (post.set({ ao })) | changed | 0.2 | null3D has no bounce light from the screen and no voxel cone tracing. The probe grid gives colored bounce light everywhere, from objects off the screen too, at a fixed cost per pixel. Light from moving objects reaches it only when the sketch bakes it again. | `api/scene` |
255
+ | FXAAPass / FXAAShader / SMAAPass / TAARenderPass / SSAARenderPass | createEngine({ antialias: 'fxaa' }); the quality presets take MSAA 4x from Medium, and FXAA on Low | changed | 0.1 | FXAA runs inside the final pass, where three.js adds FXAAPass after OutputPass. SMAA 1x smooths the moment transparency layer's edges under the share that its moments cover, where that layer draws, and the rest of the image keeps MSAA's samples or FXAA. TAARenderPass and SSAARenderPass need no pass on a still camera, and sampleLevel has no counterpart: a view that holds still blends jittered frames into a sharper picture by itself and then stops drawing (concepts/post-processing). TAA of a moving view is a prototype that does not ship: the temporal resolve passes the engine's own paths, and its quality against the presets was measured and did not pass (D-206). The engine records each object's motion vectors, which the motion debug view reads. | `concepts/quality-presets` |
256
+ | TRAANode / traa() / TAAUNode / TemporalReprojectNode | MSAA, which the quality presets take from Medium up, with FXAA on Low | changed | 0.1 | null3D has no temporal anti-aliasing and no temporal upscaler. The temporal resolve's prototype passes the engine's own paths, and its quality against the reference was measured: it does not beat the presets, so no version ships it. Drop the node and keep the scene's MSAA, which TAAUNode had to turn off. For speed on phones, the governor lowers the render scale, and the final pass scales the image up. | `concepts/quality-presets` |
257
+ | FSR1Node / fsr1() (spatial upscale and sharpening) | The render scale: quality.set({ minRenderScale, maxRenderScale }) | changed | 0.1 | The engine draws the scene below the canvas size when the render scale is under 1, and its final pass scales the image up with GSR 1, an edge-aware spatial upscaler, which fills FSR 1's role. It has no FSR 1 pass. Sharpening is a setting of its own, post.set({ sharpen }), which draws at the whole canvas's render scale. | `api/quality` |
258
+ | SharpenNode / sharpen() (RCAS) | post.set({ sharpen }) | changed | 0.2 | Both sharpen display color with FSR 1's RCAS in the final pass, so the port needs no render target and no pass of its own. three.js scales the sharpening by 2^-sharpness, where 0 sharpens the most and 2 does nothing: set sharpen to that factor, so three.js's default of 0.2 is sharpen: 0.87. null3D damps the sharpening where the ring around a pixel is noise, which three.js does only with denoise: true. It draws at the whole canvas's render scale; below one, the upscale sharpens the image itself. | `api/post` |
259
+ | OutlinePass / OutlineEffect | post.set({ outline: { color, hiddenColor, width } }) and mesh.setOutlined(true), or createOutlinePass(ctx, { color, hiddenColor, strength, thickness, glow, pulsePeriod }) from @null3d/three-compat | changed | 0.2 | selectedObjects becomes setOutlined(true) on each mesh, or on a model's copy from scene.instantiate. null3D draws a crisp line of one width in CSS pixels, with no blur. visibleEdgeColor and hiddenEdgeColor become color and hiddenColor. OutlinePass draws its edge at half size, so edgeThickness t becomes width of about 2t. OutlinePass draws a dark brown line around hidden parts by default; null3D draws none until hiddenColor is set, so set hiddenColor: [0.1, 0.04, 0.02], its linear default, to keep it. pmndrs OutlineEffect: xRay: false becomes hiddenColor: false, and its edge is one texel of its mask at resolutionScale, so width is about 1 / resolutionScale. For OutlinePass itself, install @null3d/three-compat and call createOutlinePass(ctx, { color, hiddenColor, strength, thickness, glow, pulsePeriod }). edgeStrength, edgeThickness and edgeGlow keep their values as strength, thickness and glow, and pulsePeriod keeps its name. visibleEdgeColor and hiddenEdgeColor become color and hiddenColor. It draws the soft edge, the glow and the pulse, and it turns the crisp line off. The pattern texture has no setting, the mask reads at half size, and downSampleRatio is fixed at 2. The core's crisp line stays the cheaper choice where a soft edge is not needed. One outline style covers every outlined object in either form. For a soft glow built by hand, a full-screen pass reads the mask with input: 'outlineMask', at scale 0.5, and an effect adds its texture to the scene color; width: 0 drops the crisp line (guides/custom-passes, a soft outline glow). | `porting/threejs-postprocessing` |
260
+ | BokehPass / DepthOfFieldEffect / dof() node | post.set({ dof: { focusDistance, focusPoint, aperture, focalLength, maxBlur, blades } }), with camera.setFocalLength(mm) | changed | 0.2 | The same intent with a camera's lens: the blur grows with the distance from the focus, and the near and far fields blur apart, so a sharp object spreads no halo into a blurred background. BokehPass's focus becomes focusDistance. Its aperture scales the blur with the distance from the focus, and null3D's aperture is an f-number, so pick one by eye, such as 2.8, with the camera's focal length (camera.setFocalLength). maxblur is a share of the canvas's width, and maxBlur of its height, so multiply by the aspect ratio. pmndrs DepthOfFieldEffect: worldFocusDistance becomes focusDistance, a target to focus on becomes focusPoint, and bokehScale becomes maxBlur with the aperture, tuned by eye. It draws where the quality setting dofSamples is above 0: Medium and up, or quality.set({ dofSamples: 16 }) on Low. | `concepts/post-processing` |
261
+ | None built in; pmndrs ToneMappingEffect with ToneMappingMode.REINHARD2_ADAPTIVE (adaptationRate, middleGrey), AdaptiveLuminancePass, AdaptiveToneMappingPass | post.set({ autoExposure: { metering, percentiles, centerWeight, speedUp, speedDown, minEv, maxEv, compensation } }) | changed | 0.2 | three.js has no automatic exposure; renderer.toneMappingExposure stays post.set({ exposure }), and the eye adapts from it. pmndrs's adaptive tone mapping becomes autoExposure with metering: 'mean'. Its adaptationRate becomes about speedUp and speedDown, and its middleGrey the compensation, log2(middleGrey / 0.18) stops. Its Reinhard curve becomes a custom tone curve. The meter runs on the GPU in the same frame: a histogram on WebGPU, or 16 x 16 cells on WebGL2 and the Low preset (quality setting exposureMeter). It weights the center, adapts at its own speeds for brighter and darker scenes, and stays within minEv and maxEv, in stops from the camera's exposure. Hold mode settles at once, so image tests stay the same. It needs HDR color, as bloom does. | `api/post` |
262
+ | ShaderPass (custom full-screen GLSL) | post.addEffect({ wgsl, uniforms, textures, order }), or render.addPass({ kind: 'fullscreen', wgsl, writes, size or scale }) for a pass that writes a render target of its own | manual | 0.2 | Rewrite the fragment shader in WGSL as fn effect(input: EffectInput) -> vec4f. texture2D(tDiffuse, vUv) becomes effectColor(input.uv), and pass.uniforms.x.value = v becomes post.setEffectUniform(effect, 'x', v). The engine joins effects that read only their own pixel into one pass. Effects run on linear HDR color before the tone curve. A ShaderPass after OutputPass sees display color, so retune its numbers. The uv's y axis is flipped: replace vUv.y with 1.0 - input.uv.y where direction matters. Other textures of the shader become var name: texture_2d<f32> with the textures option; sample a render pass's texture at effectPassUv(input.uv). A reflection pass's texture on the HDR WebGPU path starts at the top row instead: sample it at input.uv. A ShaderPass that writes a render target of its own, which a later pass reads, becomes a full-screen pass, with its input image as input: 'sceneColor', or a texture. effectViewPosition(uv) gives the surface's view-space position, whose z is negative in front of the camera, as in three.js. | `porting/threejs-postprocessing` |
263
+ | FilmPass / GlitchPass / HalftonePass / AfterimagePass / DotScreenPass / RenderPixelatedPass | A custom effect for each, with post.addEffect | manual | 0.2 | Port each shader as a ShaderPass is ported. Grain and noise sized for display color look weaker on HDR color, so tune them by eye. GlitchPass's random texture becomes a texture of the effect, from textures.fromData, or noise from null3d::noise. AfterimagePass blends in the frame before, which an effect cannot read, so it has no port. | `porting/threejs-postprocessing` |
264
+ | LUTPass / LUTCubeLoader / LUT3dlLoader | post.set({ lut: await assets.loadLut('grade.cube'), lutIntensity }), or a table from assets.lutFromData({ size, data }) | direct | 0.2 | LUTPass's intensity becomes lutIntensity. The table grades display color after the tone mapping, as LUTPass after OutputPass does. A Data3DTexture that code fills for LUTPass becomes await assets.lutFromData({ size, data }): the same order, red fastest, with three or four numbers per texel, whose fourth is skipped. Give floats from 0 to 1, so divide 8-bit values by 255. LUTImageLoader's PNG strips are not read: export the grade as a .cube file. Both read the table with a linear filter between its texel centers. The engine maps the colors of a .cube file's domain onto the table, which LUTPass leaves out. A .3dl input grid whose points differ from even steps by one loads, where LUT3dlLoader refuses it. In the engine's parity test, a .cube table matches three.js's composer in all but under 0.1% of the pixels on every GPU path. | `porting/threejs-postprocessing` |
265
+ | VignetteShader / VignetteEffect | post.set({ vignette: { intensity, size, falloff, roundness } }) | changed | 0.2 | null3D's vignette multiplies HDR color before the tone mapping, so bright corners darken instead of turning gray. VignetteShader's offset becomes size and darkness becomes intensity; under ACES the default falloff of 2 and roundness of 0 give a close match, and under AgX intensity stays at 1 or less with a falloff of 3. With darkness below 1, three.js also lifts dark corners toward a gray, and null3D does not. The postprocessing library's VignetteEffect maps the same way with its ESKIL technique; its default technique darkens with another curve, so tune intensity and size by eye. | `porting/threejs-postprocessing` |
266
+ | SSRPass / ReflectorForSSRPass / ssr() node | post.set({ ssr: { maxDistance, thickness, intensity } }) with quality.set({ ssrScale }) | changed | 0.2 | Reflects what the screen shows in smooth opaque surfaces, in place of the environment's reflection, through the material's Fresnel term, where SSRPass adds its reflections over the finished image. maxDistance and thickness keep their names, and opacity becomes intensity. The material's roughness picks the surfaces and blurs their reflections, up to maxRoughness, so selects and blur have no settings. A groundReflector (ReflectorForSSRPass) becomes a reflection pass, which wins on its plane. The ssr() node's resolutionScale becomes the ssrScale quality setting, which is 0 on the Low preset of phones, and its quality becomes ssrSteps, the most steps of each ray. Where a ray hits nothing on the screen, the environment's reflection shows. | `api/post` |
267
+ | Reflector / Refractor / Water / Water2 (addons) | const pass = render.addPass({ kind: 'reflection', writes: 'water', plane: { point, normal } }); materials.shader({ wgsl, textures: { mirror: textures.fromPass(pass) } }), whose surface function sets s.reflection from reflection_uv | changed | 0.2 | A reflection pass draws the camera's view mirrored across the plane, with an oblique near plane that clips everything below it, as Reflector's clip plane does. The mesh no longer carries the reflection: a custom material reads the texture by screen position with null3d::reflection::reflection_uv and puts it in the surface's reflection, which the engine lights with the material's Fresnel. The texture's rows start at the top on the HDR WebGPU path, and reflection_uv turns the lookup there. Reflector's textureWidth and textureHeight become scale, a share of the render size; its color becomes the material's color with metalness 1 and roughness 0. Water's distortionScale becomes the factor on the normal's tilt in reflection_uv's offset, waterColor the material's color and sunColor the scene's sun. Water's normal map becomes ripples in the surface function. The reflection draws the scene's background, the sun's light and shadows, and the point and spot lights that it sees. For a river or a lake, createWater from @null3d/water does this work and adds the soft shore, the foam, the caustics and the view from under the water; a reflection pass stays the way to mirror a floor. For an open sea, createOcean from @null3d/water transforms wave spectra into the surface's heights and slopes on the GPU. Refractor and Water2's refraction become transmission: give the water's custom material transmission and thickness, and its surface function sets s.transmission and its rippled normal. | `api/render` |
268
+ | Sky / SkyMesh (addons) | scene.setBackground({ sky: { sunPosition, turbidity, rayleigh, mieCoefficient, mieDirectionalG, cloudCoverage, ... } }) | changed | 0.2 | three.js's Sky as the scene's background, with its uniforms' names, defaults and formulas, clouds and sun disc included. Drop the mesh and its scale: the sky draws behind every object. SkyMesh moves its clouds by the renderer's clock; pass the sketch's time as time instead. The sky lights nothing, as in three.js: for its light, `scene.setEnvironment(await assets.skyEnvironment())` follows the sky in place of `pmremGenerator.fromScene`. `timeOfDay(hours)` gives a sky, a sun, fog and an exposure that match each other. For a physical sky with ozone, twilight and haze on distant objects, move to `{ atmosphere }`, which looks different from three.js's sky. The default sunPosition is the sun of three.js's sky example, 2 degrees over the horizon toward -Z, not a Sky uniform default. The sky is about 5 at the horizon by day, and three.js's sky examples use an exposure of 0.5. So a port lit by the sky's environment at full intensity looks brighter: lower the environment's intensity or the exposure. | `api/scene` |
269
+ | A physical sky and aerial perspective (add-ons such as @takram/three-atmosphere: SkyMaterial, AerialPerspectiveEffect) | scene.setBackground({ atmosphere: { sunPosition, sunIntensity, rayleigh, haze, ozone, aerialPerspective, metersPerUnit, moonPosition, moonIntensity, stars, cloudCoverage, ... } }) | changed | 0.2 | The engine's own physical sky, from Hillaire's lookup tables, with no files to load. One background call draws the sky and hazes every object by its distance, so drop the sky mesh, the precomputed textures and the aerial perspective effect. Set metersPerUnit to the scene's scale, and aerialPerspective above 1 to make a small scene look larger. The sun's light is in the units of a directional light: aim the scene's light at the sun yourself, or take it from timeOfDay(hours, { model: 'physical' }). The sky lights nothing by itself: scene.setEnvironment(await assets.skyEnvironment()) follows it. The Low preset draws the analytic sky in its place. | `api/scene` |
270
+ | Lensflare / LensflareElement (addons) | Screen-space sprites placed with camera.worldToScreen | manual | 0.2 | | `api/sprites` |
271
+ | GammaCorrectionShader / sRGB conversion passes in the composer | Delete: output is converted to sRGB exactly once | changed | 0.1 | Keeping such a pass applies gamma twice and washes the image out. | `concepts/color-management` |
272
+
273
+ ## Sprites, points, lines and labels
274
+
275
+ | three.js | null3D | Status | Since | Notes | Docs |
276
+ | --- | --- | --- | --- | --- | --- |
277
+ | Sprite / SpriteMaterial | await scene.createSprites({ count, map, atlas, sizeAttenuation, center }) | changed | 0.2 | Camera-facing quads drawn in one batch, with typed arrays of positions, sizes, rotations, colors and atlas frames per sprite. The call is async, because the first one downloads the sprite code. Sprites blend by default, as three.js's do. Without size attenuation, sizes are in CSS pixels, not a fraction of the view's height. A three.js scale s shows s × h / (2 × tan(fov / 2)) CSS pixels on a canvas h CSS pixels high. center holds one value for the whole batch, not one per sprite. An atlas read through texture.offset and texture.repeat becomes atlas and frames. alphaTest becomes alphaMode 'mask' with alphaCutoff. Raycasts hit each sprite's quad, as Raycaster does, with the active camera in place of raycaster.camera. sprites.on('click', fn) takes pointer events, and the event's instance is the sprite. | `api/sprites` |
278
+ | Points / PointsMaterial | await scene.createPoints({ positions, colors, size, sizeAttenuation, map }) | changed | 0.2 | Points of one size drawn in one batch as squares that face the camera, at any size on every backend. The call is async, because the first one downloads the sprite code. Points are opaque by default, as three.js's are; transparent becomes alphaMode 'blend', and alphaTest becomes alphaMode 'mask' with alphaCutoff. With size attenuation, size is in world units: three.js's size times tan(fov / 2). Without it, size is in CSS pixels, as in three.js. A point does not vanish when its center leaves the screen, as a WebGL point does. Blended points sort back to front. Raycasts hit each point's square by default. The pointThreshold option gives Raycaster.params.Points.threshold's test instead: a hit within that distance of the point, whatever its size. points.on('click', fn) takes pointer events, and the event's instance is the point. The geometry's position and color attributes become positions and colors. With an orthographic camera, three.js ignores size attenuation, so port with sizeAttenuation: false and three.js's size. three.js's WebGPU renderer draws points one pixel wide, and WebGL lets a GPU cap their size as low as 1 pixel. PointsMaterial's alphaMap has no counterpart. | `api/points` |
279
+ | Line / LineSegments / LineLoop / LineBasicMaterial / LineDashedMaterial / Line2 / LineSegments2 / LineMaterial | await scene.createLines({ positions, colors, mode, width, worldUnits, dashed }) | changed | 0.2 | Segments between points drawn in one batch as quads with round ends, as Line2 draws them, at any width on every backend. mode 'strip', 'loop' or 'segments' replaces Line, LineLoop and LineSegments, and width replaces linewidth, in CSS pixels or with worldUnits. 'segments' also replaces LineSegments2 with LineSegmentsGeometry. A one-pixel Line ports as width 1. Point colors are linear RGB, stored at 8 bits per channel. positions replaces LineGeometry.setPositions or the position attribute, and colors replaces setColors or the color attribute. LineMaterial.resolution needs no counterpart: the engine knows the canvas size. dashed and the dash values replace LineDashedMaterial and computeLineDistances. dashed is fixed when the batch is created, and lines.material.set changes the four dash values, whose defaults match LineMaterial's. The call is async, because the first one downloads the line code. lit: true shades lines with the scene's lights. Raycasts hit a segment within half its width, as Line2 does, in pixels through the active camera or in world units. The lineThreshold option gives Raycaster.params.Line.threshold's test instead, as for Line. maxDistance limits line hits too, though three.js's Line2 ignores raycaster.far. lines.on('click', fn) takes pointer events, and the event's instance is the segment. | `api/lines` |
280
+ | Points or InstancedMesh particles moved on the CPU / three.quarks ParticleSystem / three-nebula | await createParticles(ctx, { rate, bursts, lifetime, shape, speed, gravity, drag, wind, turbulence, size, colors, alphaOverLife, blending, map, flipbook }) from @null3d/particles; system.update() in onLateUpdate | changed | 0.2 | three.js has no particle system. A port replaces the loop that moves Points or InstancedMesh rows with an emitter whose particles the GPU moves in closed form: gravity, drag toward the wind, turbulence and a ground that bounces them. Write the effect's look as curves over life in place of per-frame color and size code. AdditiveBlending becomes blending 'additive'; particles never write depth. A sprite atlas becomes map with flipbook. three.quarks's sub-emitters become subEmitters on 'death' or 'ground'. A system does not sort its own particles, cast shadows or take light. | `api/particles` |
281
+ | CSS2DRenderer / CSS3DRenderer (HTML labels) | Sketch: ui.trackLabel(obj, 'hp-12', { offset: [0, 2, 0] }). Page: engine.labels.bind('hp-12', element). A plane of the scene: ui.trackLabel(obj, 'card', { transform: 'world' }), or 'billboard' with a rotation | changed | 0.2 | The sketch places each label with the camera of each frame, and the page moves the element over it in the frame on screen; no messages per frame. The element's center sits where CSS2DRenderer puts a CSS2DObject's, and the offset turns and scales with the object, as a CSS2DObject's position does under its parent. Put the elements in a container that covers the canvas. Hidden labels get visibility: hidden, not display: none. No z-index by distance, and no center. For CSS3DRenderer, a label with transform 'world' takes a CSS3DObject's matrix and 'billboard' takes a CSS3DSprite's, with rotation2D as rotation: the page moves the element into a container inside its parent, which holds the camera's perspective, and turns the element with its world matrix, as CSS3DRenderer draws it. An element is sized in CSS pixels, which are the scene's units. Both a perspective camera and an orthographic camera carry the planes, so a scene that uses either lens ports as it is. The engine hides a plane whose anchor is behind the camera or outside the near and far planes, which CSS3DRenderer does not do, and it leaves the pointer to your CSS, so give an element pointer-events: auto for the clicks that CSS3DRenderer gives it. The engine has no camera view offset, which some examples offer only in a debug panel. It writes a transform only when it changes, and a page holds its planes with maxLabels3d. All seven of three.js's CSS3D examples have a port: css3d_periodictable, css3d_molecules, css3d_sprites, css3d_sandbox, css3d_orthographic, css3d_mixed and css3d_youtube. Each port's test draws its scene with null3D, and with three.js's CSS3DRenderer from the same data and camera. It then compares the two layers of elements. Three examples also draw WebGL content: mixed, sandbox and orthographic. Only the mixed port's twin draws that content, the example's room, light, cut-out and frame, and the test compares those frames, so a surface that the engine draws over the page shows. The sandbox and orthographic twins return elements only; their drawn wireframe planes are not compared. Where the mixed example's invisible plane writes depth alone to show its embedded page clean, a material with colorWrite: false does the same. The comparison shows where a port matches three.js and where it differs by design. A cell table ports directly: one object and one ui.trackLabel(object, id, { transform: 'world' }) for each cell, the cell's HTML in the element, and the example's camera; the port skill's architecture guide shows it. | `api/ui` |
282
+
283
+ ## Other
284
+
285
+ | three.js | null3D | Status | Since | Notes | Docs |
286
+ | --- | --- | --- | --- | --- | --- |
287
+ | WebXR (renderer.xr, VRButton, ARButton) | None | unsupported | - | null3D has no WebXR support. Keep an XR view in three.js. | `porting/threejs-unsupported` |
288
+ | GaussianSplat / GaussianSplatPLYLoader / SPZLoader / SPLATLoader / KSPLATLoader (addons) | const splats = await createSplats(ctx, { url }) from @null3d/splats; assets.loadGltf for a KHR_gaussian_splatting model | changed | 0.3 | Importing @null3d/splats registers the KHR_gaussian_splatting reader, so a glTF model of splats loads with assets.loadGltf. An SPZ file loads through createSplats, which cuts the cloud into detail levels, chooses the splats that draw within a budget that follows the quality preset and the GPU path, and lets the engine sort them by depth. A large cloud loads as a splat stream: createSplats reads an index of chunk files and downloads only the chunks that the view needs, so the cloud draws before its whole file arrives. three.js has no equivalent. Update them once in each frame with splats.update(eye), from the camera's getPosition. The first spherical-harmonic band gives each splat's color; higher bands are ignored. three.js's GaussianSplat and its loaders are add-ons, so each name maps to this one add-on. | `api/splats` |
289
+ | Audio / PositionalAudio / AudioListener / AudioLoader | @null3d/sound: createSound in the sketch, connectSound on the page | changed | 0.3 | AudioListener is createSound's listener option, usually the camera. A looping PositionalAudio is a sound.loop at a place, with refDistance as near; one that plays once per event is a sound.shot. three.js's maxDistance only stops the fall with distance, while far fades the sound out: give far where the sound should end. A non-positional Audio is a loop with positional: false. AudioLoader has no counterpart: name the file by its address, and the page loads it once the user starts the sound. An AudioAnalyser has no counterpart; analyze the page's own Web Audio. | `api/sound` |
290
+ | lil-gui / dat.gui panels | Keep the panel on the page; send changes with engine.postToSketch and receive them with page.onMessage | changed | 0.1 | For values that you only tune while you develop, the ?inspect panel of a development build changes transforms and material values with no code of your own (guides/debugging). | `api/page` |
291
+ | cannon-es / Rapier / Ammo / Oimo | Run the physics library in the sketch worker; copy body transforms into dynamic arrays after each step | changed | 0.1 | null3D has no physics API. WebAssembly physics builds run in workers. | `guides/physics` |
292
+ | three-mesh-bvh (computeBoundsTree, acceleratedRaycast) | Built in | direct | 0.2 | Delete the setup. Every query walks the engine's own trees over each mesh's triangles and over the scene's objects. | `api/raycast` |
293
+ | React Three Fiber / drei (Canvas, useFrame, useGLTF, OrbitControls, Environment, Html) | React stays for the page UI; the scene moves into sketch.ts | manual | 0.1 | React keeps the page UI and talks to the sketch through messages. Rewrite each scene component and drei helper by hand. drei's <Html> becomes ui.trackLabel in the sketch and engine.labels.bind on the page. drei's ContactShadows, a blurred shadow on a ground plane, has no counterpart; the directional light's contact shadows are another technique. Mesh events such as onClick and onPointerEnter become obj.on('click') and obj.on('pointerenter'). React Three Fiber casts only against objects with handlers, and passes an event to every hit until stopPropagation. null3D passes it to the closest drawn object and its parents, so an object without handlers in front takes it. React Three Fiber's onClick also fires after a drag. null3D gives no click after a drag past 2 CSS pixels, or 10 for a finger. onPointerMissed has no equivalent: set a flag in click handlers, and treat input.wasReleased('Mouse0') without it as a miss. | `api/page` |
294
+ | GLSL source strings (gl_FragColor, gl_Position, #include <chunk>) | WGSL, which the null3D Vite plugin compiles | manual | 0.1 | See the custom shaders guide and the WGSL rules for portable shaders. | `guides/custom-shaders` |
295
+ | document or window access inside scene code | DOM code stays in page.ts; data travels in messages; sizes come from ctx.engine.viewport | changed | 0.1 | The sketch worker has no DOM. createEngine({ sketchThread: 'main' }) runs the sketch on the page's thread, where it can reach the DOM. | `api/sketch` |
296
+ | vite.config.js (the app built with Vite) | `plugins: [null3d()]` in vite.config.ts, with `null3d` imported from `@null3d/vite-plugin` | changed | 0.1 | Every Vite build of a null3D project needs the plugin, for the dev server and for production, which a three.js project does not. It sends the headers that let worker threads share memory, compiles the WGSL, and builds the engine's workers. null3D supports Vite alone, so a project on another bundler moves to Vite. A one-file trial can load the engine from a CDN instead. | `getting-started/install` |
297
+ | new Worker(...) / worker.postMessage / SharedArrayBuffer | runTask: the task's module and its WebAssembly run in the engine's job workers | changed | 0.3 | An add-on starts no worker of its own. Give runTask the address of a module that exports run, and await its answer. A SharedArrayBuffer in the task's input is shared with the worker rather than copied. The engine never waits for a task in a frame, and an answer arrives between frames. | `api/tasks` |