@pmndrs/vdb 0.1.0 → 0.2.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 (576) hide show
  1. package/CHANGELOG.md +592 -2
  2. package/README.md +85 -37
  3. package/THIRD_PARTY_NOTICES.md +197 -29
  4. package/dist/core/compute/atlas.d.ts +10 -2
  5. package/dist/core/compute/atlas.js +6 -1
  6. package/dist/core/compute/atlas.js.map +1 -1
  7. package/dist/core/compute/index.d.ts +3 -3
  8. package/dist/core/compute/index.js +2 -2
  9. package/dist/core/compute/index.js.map +1 -1
  10. package/dist/core/compute/majorant-build.d.ts +45 -0
  11. package/dist/core/compute/majorant-build.js +193 -0
  12. package/dist/core/compute/majorant-build.js.map +1 -0
  13. package/dist/core/compute/multi-scale.d.ts +155 -0
  14. package/dist/core/compute/multi-scale.js +684 -0
  15. package/dist/core/compute/multi-scale.js.map +1 -0
  16. package/dist/core/compute/pyramid.d.ts +22 -7
  17. package/dist/core/compute/pyramid.js +22 -9
  18. package/dist/core/compute/pyramid.js.map +1 -1
  19. package/dist/core/compute/shared.d.ts +1 -0
  20. package/dist/core/compute/shared.js.map +1 -1
  21. package/dist/core/compute/stats.d.ts +10 -3
  22. package/dist/core/compute/stats.js +6 -1
  23. package/dist/core/compute/stats.js.map +1 -1
  24. package/dist/core/compute/value-transform.d.ts +8 -1
  25. package/dist/core/compute/value-transform.js +9 -3
  26. package/dist/core/compute/value-transform.js.map +1 -1
  27. package/dist/core/errors.d.ts +10 -0
  28. package/dist/core/errors.js +8 -0
  29. package/dist/core/errors.js.map +1 -1
  30. package/dist/core/frame/emission.d.ts +85 -0
  31. package/dist/core/frame/emission.js +422 -0
  32. package/dist/core/frame/emission.js.map +1 -0
  33. package/dist/core/frame/environment.d.ts +47 -0
  34. package/dist/core/frame/environment.js +178 -0
  35. package/dist/core/frame/environment.js.map +1 -0
  36. package/dist/core/frame/index.d.ts +39 -0
  37. package/dist/core/frame/index.js +27 -0
  38. package/dist/core/frame/index.js.map +1 -0
  39. package/dist/core/frame/kernels.d.ts +115 -0
  40. package/dist/core/frame/kernels.js +496 -0
  41. package/dist/core/frame/kernels.js.map +1 -0
  42. package/dist/core/frame/limits.d.ts +67 -0
  43. package/dist/core/frame/limits.js +109 -0
  44. package/dist/core/frame/limits.js.map +1 -0
  45. package/dist/core/frame/phase.d.ts +17 -0
  46. package/dist/core/frame/phase.js +53 -0
  47. package/dist/core/frame/phase.js.map +1 -0
  48. package/dist/core/frame/pipelines.d.ts +49 -0
  49. package/dist/core/frame/pipelines.js +147 -0
  50. package/dist/core/frame/pipelines.js.map +1 -0
  51. package/dist/core/frame/renderer.d.ts +122 -0
  52. package/dist/core/frame/renderer.js +1712 -0
  53. package/dist/core/frame/renderer.js.map +1 -0
  54. package/dist/core/frame/resources.d.ts +71 -0
  55. package/dist/core/frame/resources.js +100 -0
  56. package/dist/core/frame/resources.js.map +1 -0
  57. package/dist/core/frame/scattering.d.ts +97 -0
  58. package/dist/core/frame/scattering.js +332 -0
  59. package/dist/core/frame/scattering.js.map +1 -0
  60. package/dist/core/frame/settings.d.ts +243 -0
  61. package/dist/core/frame/settings.js +67 -0
  62. package/dist/core/frame/settings.js.map +1 -0
  63. package/dist/core/frame/shadows.d.ts +55 -0
  64. package/dist/core/frame/shadows.js +460 -0
  65. package/dist/core/frame/shadows.js.map +1 -0
  66. package/dist/core/frame/types.d.ts +415 -0
  67. package/dist/core/frame/types.js +49 -0
  68. package/dist/core/frame/types.js.map +1 -0
  69. package/dist/core/frame/uniforms.d.ts +105 -0
  70. package/dist/core/frame/uniforms.js +276 -0
  71. package/dist/core/frame/uniforms.js.map +1 -0
  72. package/dist/core/frame/wgsl/chunks.d.ts +4 -0
  73. package/dist/core/frame/wgsl/chunks.js +728 -0
  74. package/dist/core/frame/wgsl/chunks.js.map +1 -0
  75. package/dist/core/frame/wgsl/emission.d.ts +82 -0
  76. package/dist/core/frame/wgsl/emission.js +353 -0
  77. package/dist/core/frame/wgsl/emission.js.map +1 -0
  78. package/dist/core/frame/wgsl/environment.d.ts +42 -0
  79. package/dist/core/frame/wgsl/environment.js +711 -0
  80. package/dist/core/frame/wgsl/environment.js.map +1 -0
  81. package/dist/core/frame/wgsl/gather.d.ts +55 -0
  82. package/dist/core/frame/wgsl/gather.js +850 -0
  83. package/dist/core/frame/wgsl/gather.js.map +1 -0
  84. package/dist/core/frame/wgsl/integrate.d.ts +78 -0
  85. package/dist/core/frame/wgsl/integrate.js +213 -0
  86. package/dist/core/frame/wgsl/integrate.js.map +1 -0
  87. package/dist/core/frame/wgsl/lighting.d.ts +103 -0
  88. package/dist/core/frame/wgsl/lighting.js +1636 -0
  89. package/dist/core/frame/wgsl/lighting.js.map +1 -0
  90. package/dist/core/frame/wgsl/occluders.d.ts +20 -0
  91. package/dist/core/frame/wgsl/occluders.js +95 -0
  92. package/dist/core/frame/wgsl/occluders.js.map +1 -0
  93. package/dist/core/frame/wgsl/resolve.d.ts +19 -0
  94. package/dist/core/frame/wgsl/resolve.js +205 -0
  95. package/dist/core/frame/wgsl/resolve.js.map +1 -0
  96. package/dist/core/frame/wgsl/shadows.d.ts +35 -0
  97. package/dist/core/frame/wgsl/shadows.js +328 -0
  98. package/dist/core/frame/wgsl/shadows.js.map +1 -0
  99. package/dist/core/half.d.ts +11 -0
  100. package/dist/core/half.js +22 -0
  101. package/dist/core/half.js.map +1 -0
  102. package/dist/core/index.d.ts +25 -3
  103. package/dist/core/index.js +23 -4
  104. package/dist/core/index.js.map +1 -1
  105. package/dist/core/internal.d.ts +17 -1
  106. package/dist/core/internal.js +18 -1
  107. package/dist/core/internal.js.map +1 -1
  108. package/dist/core/pool/image-header.d.ts +13 -2
  109. package/dist/core/pool/image-header.js +24 -5
  110. package/dist/core/pool/image-header.js.map +1 -1
  111. package/dist/core/pool/layout.d.ts +35 -1
  112. package/dist/core/pool/layout.js +51 -2
  113. package/dist/core/pool/layout.js.map +1 -1
  114. package/dist/core/pool/limits.d.ts +1 -0
  115. package/dist/core/pool/limits.js +1 -0
  116. package/dist/core/pool/limits.js.map +1 -1
  117. package/dist/core/pool/pool.d.ts +120 -15
  118. package/dist/core/pool/pool.js +255 -24
  119. package/dist/core/pool/pool.js.map +1 -1
  120. package/dist/core/reference/index.d.ts +6 -0
  121. package/dist/core/reference/index.js +7 -0
  122. package/dist/core/reference/index.js.map +1 -0
  123. package/dist/core/reference/renderer.d.ts +105 -0
  124. package/dist/core/reference/renderer.js +474 -0
  125. package/dist/core/reference/renderer.js.map +1 -0
  126. package/dist/core/reference/wgsl.d.ts +65 -0
  127. package/dist/core/reference/wgsl.js +803 -0
  128. package/dist/core/reference/wgsl.js.map +1 -0
  129. package/dist/{three → core}/sequence.d.ts +32 -2
  130. package/dist/{three → core}/sequence.js +24 -2
  131. package/dist/core/sequence.js.map +1 -0
  132. package/dist/core/source/brick-cache.d.ts +165 -0
  133. package/dist/core/source/brick-cache.js +627 -0
  134. package/dist/core/source/brick-cache.js.map +1 -0
  135. package/dist/core/source/dense-fill.d.ts +53 -0
  136. package/dist/core/source/dense-fill.js +377 -0
  137. package/dist/core/source/dense-fill.js.map +1 -0
  138. package/dist/core/source/dense.d.ts +33 -2
  139. package/dist/core/source/dense.js +121 -24
  140. package/dist/core/source/dense.js.map +1 -1
  141. package/dist/core/source/sparse-wgsl.d.ts +92 -0
  142. package/dist/core/source/sparse-wgsl.js +481 -0
  143. package/dist/core/source/sparse-wgsl.js.map +1 -0
  144. package/dist/core/source/sparse.d.ts +192 -0
  145. package/dist/core/source/sparse.js +762 -0
  146. package/dist/core/source/sparse.js.map +1 -0
  147. package/dist/core/source/types.d.ts +59 -2
  148. package/dist/core/source/types.js.map +1 -1
  149. package/dist/core/surface/index.d.ts +10 -0
  150. package/dist/core/surface/index.js +9 -0
  151. package/dist/core/surface/index.js.map +1 -0
  152. package/dist/core/surface/level-set-pass.d.ts +140 -0
  153. package/dist/core/surface/level-set-pass.js +291 -0
  154. package/dist/core/surface/level-set-pass.js.map +1 -0
  155. package/dist/core/surface/level-set-wgsl.d.ts +46 -0
  156. package/dist/core/surface/level-set-wgsl.js +99 -0
  157. package/dist/core/surface/level-set-wgsl.js.map +1 -0
  158. package/dist/core/surface/points.d.ts +109 -0
  159. package/dist/core/surface/points.js +226 -0
  160. package/dist/core/surface/points.js.map +1 -0
  161. package/dist/core/types.d.ts +12 -3
  162. package/dist/core/types.js +6 -2
  163. package/dist/core/types.js.map +1 -1
  164. package/dist/core/wgsl/api.d.ts +29 -5
  165. package/dist/core/wgsl/api.js +110 -27
  166. package/dist/core/wgsl/api.js.map +1 -1
  167. package/dist/core/wgsl/generate.d.ts +8 -0
  168. package/dist/core/wgsl/generate.js +195 -22
  169. package/dist/core/wgsl/generate.js.map +1 -1
  170. package/dist/core/wgsl/lean.d.ts +50 -0
  171. package/dist/core/wgsl/lean.js +327 -0
  172. package/dist/core/wgsl/lean.js.map +1 -0
  173. package/dist/core/wgsl/level-set.d.ts +5 -1
  174. package/dist/core/wgsl/level-set.js +11 -5
  175. package/dist/core/wgsl/level-set.js.map +1 -1
  176. package/dist/core/wgsl/majorant.d.ts +62 -0
  177. package/dist/core/wgsl/majorant.js +381 -0
  178. package/dist/core/wgsl/majorant.js.map +1 -0
  179. package/dist/core/wgsl/pnanovdb.chunks.generated.d.ts +2 -2
  180. package/dist/core/wgsl/pnanovdb.chunks.generated.js +15 -12
  181. package/dist/core/wgsl/pnanovdb.chunks.generated.js.map +1 -1
  182. package/dist/core/wgsl/types.d.ts +97 -3
  183. package/dist/core/wgsl/types.js.map +1 -1
  184. package/dist/three/coarse-first.d.ts +53 -8
  185. package/dist/three/coarse-first.js +24 -6
  186. package/dist/three/coarse-first.js.map +1 -1
  187. package/dist/three/compute.d.ts +12 -2
  188. package/dist/three/compute.js +16 -6
  189. package/dist/three/compute.js.map +1 -1
  190. package/dist/three/device.d.ts +7 -0
  191. package/dist/three/device.js +3 -0
  192. package/dist/three/device.js.map +1 -1
  193. package/dist/three/frame/core-environment.d.ts +38 -0
  194. package/dist/three/frame/core-environment.js +154 -0
  195. package/dist/three/frame/core-environment.js.map +1 -0
  196. package/dist/three/frame/core-integrate-material.d.ts +34 -0
  197. package/dist/three/frame/core-integrate-material.js +162 -0
  198. package/dist/three/frame/core-integrate-material.js.map +1 -0
  199. package/dist/three/frame/core-occluders.d.ts +53 -0
  200. package/dist/three/frame/core-occluders.js +193 -0
  201. package/dist/three/frame/core-occluders.js.map +1 -0
  202. package/dist/three/frame/core-structs.d.ts +34 -0
  203. package/dist/three/frame/core-structs.js +61 -0
  204. package/dist/three/frame/core-structs.js.map +1 -0
  205. package/dist/three/frame/core-textures.d.ts +41 -0
  206. package/dist/three/frame/core-textures.js +114 -0
  207. package/dist/three/frame/core-textures.js.map +1 -0
  208. package/dist/three/frame/emission-light.d.ts +64 -114
  209. package/dist/three/frame/emission-light.js +188 -567
  210. package/dist/three/frame/emission-light.js.map +1 -1
  211. package/dist/three/frame/index.d.ts +11 -31
  212. package/dist/three/frame/index.js +9 -29
  213. package/dist/three/frame/index.js.map +1 -1
  214. package/dist/three/frame/medium.d.ts +12 -0
  215. package/dist/three/frame/medium.js.map +1 -1
  216. package/dist/three/frame/renderer.d.ts +58 -454
  217. package/dist/three/frame/renderer.js +409 -1427
  218. package/dist/three/frame/renderer.js.map +1 -1
  219. package/dist/three/frame/spectrum.d.ts +0 -14
  220. package/dist/three/frame/spectrum.js +2 -23
  221. package/dist/three/frame/spectrum.js.map +1 -1
  222. package/dist/three/frame/three-internals.d.ts +3 -8
  223. package/dist/three/frame/three-internals.js +13 -11
  224. package/dist/three/frame/three-internals.js.map +1 -1
  225. package/dist/three/frame/volume-shadows.d.ts +93 -107
  226. package/dist/three/frame/volume-shadows.js +278 -631
  227. package/dist/three/frame/volume-shadows.js.map +1 -1
  228. package/dist/three/frame/volume.d.ts +91 -33
  229. package/dist/three/frame/volume.js +63 -51
  230. package/dist/three/frame/volume.js.map +1 -1
  231. package/dist/three/grid-node.d.ts +34 -1
  232. package/dist/three/grid-node.js +36 -1
  233. package/dist/three/grid-node.js.map +1 -1
  234. package/dist/three/index.d.ts +20 -11
  235. package/dist/three/index.js +21 -12
  236. package/dist/three/index.js.map +1 -1
  237. package/dist/three/internal.d.ts +14 -8
  238. package/dist/three/internal.js +11 -7
  239. package/dist/three/internal.js.map +1 -1
  240. package/dist/three/level-set-material.d.ts +81 -8
  241. package/dist/three/level-set-material.js +162 -125
  242. package/dist/three/level-set-material.js.map +1 -1
  243. package/dist/three/level-set-physical-material.d.ts +154 -0
  244. package/dist/three/level-set-physical-material.js +253 -0
  245. package/dist/three/level-set-physical-material.js.map +1 -0
  246. package/dist/three/level-set-velocity.d.ts +94 -0
  247. package/dist/three/level-set-velocity.js +208 -0
  248. package/dist/three/level-set-velocity.js.map +1 -0
  249. package/dist/three/material.d.ts +141 -11
  250. package/dist/three/material.js +161 -18
  251. package/dist/three/material.js.map +1 -1
  252. package/dist/three/points.d.ts +60 -4
  253. package/dist/three/points.js +140 -9
  254. package/dist/three/points.js.map +1 -1
  255. package/dist/three/sparse-source.d.ts +49 -117
  256. package/dist/three/sparse-source.js +109 -580
  257. package/dist/three/sparse-source.js.map +1 -1
  258. package/dist/three/volume-source.d.ts +11 -156
  259. package/dist/three/volume-source.js +29 -272
  260. package/dist/three/volume-source.js.map +1 -1
  261. package/dist/tools/cpu/brick-atlas.d.ts +36 -0
  262. package/dist/tools/cpu/brick-atlas.js +129 -0
  263. package/dist/tools/cpu/brick-atlas.js.map +1 -0
  264. package/dist/tools/cpu/compute.d.ts +23 -4
  265. package/dist/tools/cpu/compute.js +35 -14
  266. package/dist/tools/cpu/compute.js.map +1 -1
  267. package/dist/tools/cpu/lean-reads.d.ts +81 -0
  268. package/dist/tools/cpu/lean-reads.js +262 -0
  269. package/dist/tools/cpu/lean-reads.js.map +1 -0
  270. package/dist/tools/cpu/level-set.d.ts +42 -3
  271. package/dist/tools/cpu/level-set.js +59 -7
  272. package/dist/tools/cpu/level-set.js.map +1 -1
  273. package/dist/tools/cpu/majorant.d.ts +265 -0
  274. package/dist/tools/cpu/majorant.js +541 -0
  275. package/dist/tools/cpu/majorant.js.map +1 -0
  276. package/dist/tools/cpu/march.d.ts +93 -2
  277. package/dist/tools/cpu/march.js +165 -14
  278. package/dist/tools/cpu/march.js.map +1 -1
  279. package/dist/tools/cpu/mesh-decimate.d.ts +124 -0
  280. package/dist/tools/cpu/mesh-decimate.js +1225 -0
  281. package/dist/tools/cpu/mesh-decimate.js.map +1 -0
  282. package/dist/tools/cpu/points.d.ts +29 -0
  283. package/dist/tools/cpu/points.js +38 -0
  284. package/dist/tools/cpu/points.js.map +1 -0
  285. package/dist/tools/cpu/read-value.d.ts +19 -6
  286. package/dist/tools/cpu/read-value.js +32 -17
  287. package/dist/tools/cpu/read-value.js.map +1 -1
  288. package/dist/tools/cpu/sample-trilinear.d.ts +17 -4
  289. package/dist/tools/cpu/sample-trilinear.js +19 -7
  290. package/dist/tools/cpu/sample-trilinear.js.map +1 -1
  291. package/dist/tools/cpu/stride-tables.d.ts +2 -2
  292. package/dist/tools/cpu/stride-tables.generated.d.ts +6 -5
  293. package/dist/tools/cpu/stride-tables.generated.js +7 -6
  294. package/dist/tools/cpu/stride-tables.generated.js.map +1 -1
  295. package/dist/tools/cpu/stride-tables.js +1 -1
  296. package/dist/tools/cpu/stride-tables.js.map +1 -1
  297. package/dist/tools/cpu/surface-nets.d.ts +90 -0
  298. package/dist/tools/cpu/surface-nets.js +597 -0
  299. package/dist/tools/cpu/surface-nets.js.map +1 -0
  300. package/dist/tools/errors.d.ts +9 -0
  301. package/dist/tools/errors.js +9 -0
  302. package/dist/tools/errors.js.map +1 -1
  303. package/dist/tools/frame/ambient.d.ts +98 -0
  304. package/dist/tools/frame/ambient.js +274 -0
  305. package/dist/tools/frame/ambient.js.map +1 -0
  306. package/dist/tools/frame/blackbody.d.ts +15 -0
  307. package/dist/tools/frame/blackbody.js +35 -0
  308. package/dist/tools/frame/blackbody.js.map +1 -1
  309. package/dist/tools/frame/brick-cache.d.ts +165 -0
  310. package/dist/tools/frame/brick-cache.js +326 -0
  311. package/dist/tools/frame/brick-cache.js.map +1 -0
  312. package/dist/tools/frame/emission.d.ts +9 -0
  313. package/dist/tools/frame/emission.js +9 -1
  314. package/dist/tools/frame/emission.js.map +1 -1
  315. package/dist/tools/frame/environment-gpu.d.ts +111 -0
  316. package/dist/tools/frame/environment-gpu.js +280 -0
  317. package/dist/tools/frame/environment-gpu.js.map +1 -0
  318. package/dist/tools/frame/environment.d.ts +3 -2
  319. package/dist/tools/frame/environment.js +8 -4
  320. package/dist/tools/frame/environment.js.map +1 -1
  321. package/dist/tools/frame/froxel.d.ts +58 -0
  322. package/dist/tools/frame/froxel.js +115 -0
  323. package/dist/tools/frame/froxel.js.map +1 -0
  324. package/dist/tools/frame/grid.d.ts +90 -0
  325. package/dist/tools/frame/grid.js +112 -13
  326. package/dist/tools/frame/grid.js.map +1 -1
  327. package/dist/tools/frame/index.d.ts +14 -0
  328. package/dist/tools/frame/index.js +45 -4
  329. package/dist/tools/frame/index.js.map +1 -1
  330. package/dist/tools/frame/medium.d.ts +16 -0
  331. package/dist/tools/frame/medium.js +3 -1
  332. package/dist/tools/frame/medium.js.map +1 -1
  333. package/dist/tools/frame/mie.d.ts +9 -0
  334. package/dist/tools/frame/mie.js +18 -0
  335. package/dist/tools/frame/mie.js.map +1 -1
  336. package/dist/tools/frame/mlp-nn.d.ts +36 -0
  337. package/dist/tools/frame/mlp-nn.js +159 -0
  338. package/dist/tools/frame/mlp-nn.js.map +1 -0
  339. package/dist/tools/frame/mlp-tza.d.ts +29 -0
  340. package/dist/tools/frame/mlp-tza.js +186 -0
  341. package/dist/tools/frame/mlp-tza.js.map +1 -0
  342. package/dist/tools/frame/mlp.d.ts +183 -0
  343. package/dist/tools/frame/mlp.js +434 -0
  344. package/dist/tools/frame/mlp.js.map +1 -0
  345. package/dist/tools/frame/ms-exit.d.ts +42 -0
  346. package/dist/tools/frame/ms-exit.js +90 -0
  347. package/dist/tools/frame/ms-exit.js.map +1 -0
  348. package/dist/tools/frame/multi-scale.d.ts +152 -0
  349. package/dist/tools/frame/multi-scale.js +302 -0
  350. package/dist/tools/frame/multi-scale.js.map +1 -0
  351. package/dist/tools/frame/neural-weights.d.ts +6 -5
  352. package/dist/tools/frame/neural-weights.js +234 -235
  353. package/dist/tools/frame/neural-weights.js.map +1 -1
  354. package/dist/tools/frame/neural.js +1 -1
  355. package/dist/tools/frame/neural.js.map +1 -1
  356. package/dist/tools/frame/occluders.d.ts +51 -0
  357. package/dist/tools/frame/occluders.js +72 -0
  358. package/dist/tools/frame/occluders.js.map +1 -0
  359. package/dist/tools/frame/pyramid-layout.d.ts +17 -0
  360. package/dist/tools/frame/pyramid-layout.js +47 -0
  361. package/dist/tools/frame/pyramid-layout.js.map +1 -1
  362. package/dist/tools/frame/shadows.d.ts +110 -0
  363. package/dist/tools/frame/shadows.js +286 -0
  364. package/dist/tools/frame/shadows.js.map +1 -1
  365. package/dist/tools/frame/sparse.d.ts +82 -0
  366. package/dist/tools/frame/sparse.js +242 -1
  367. package/dist/tools/frame/sparse.js.map +1 -1
  368. package/dist/tools/frame/spectral-stack.d.ts +159 -0
  369. package/dist/tools/frame/spectral-stack.js +391 -0
  370. package/dist/tools/frame/spectral-stack.js.map +1 -0
  371. package/dist/tools/frame/spectral.d.ts +21 -2
  372. package/dist/tools/frame/spectral.js +30 -8
  373. package/dist/tools/frame/spectral.js.map +1 -1
  374. package/dist/tools/frame/stack.d.ts +115 -0
  375. package/dist/tools/frame/stack.js +290 -0
  376. package/dist/tools/frame/stack.js.map +1 -0
  377. package/dist/tools/frame/view.d.ts +131 -0
  378. package/dist/tools/frame/view.js +337 -0
  379. package/dist/tools/frame/view.js.map +1 -0
  380. package/dist/tools/index.d.ts +66 -15
  381. package/dist/tools/index.js +55 -11
  382. package/dist/tools/index.js.map +1 -1
  383. package/dist/tools/internal.d.ts +58 -17
  384. package/dist/tools/internal.js +65 -11
  385. package/dist/tools/internal.js.map +1 -1
  386. package/dist/tools/nanovdb/build-from-vdb.d.ts +11 -2
  387. package/dist/tools/nanovdb/build-from-vdb.js +10 -2
  388. package/dist/tools/nanovdb/build-from-vdb.js.map +1 -1
  389. package/dist/tools/nanovdb/bytes.d.ts +17 -4
  390. package/dist/tools/nanovdb/bytes.js +46 -3
  391. package/dist/tools/nanovdb/bytes.js.map +1 -1
  392. package/dist/tools/nanovdb/coarse-first.d.ts +19 -3
  393. package/dist/tools/nanovdb/coarse-first.js +7 -1
  394. package/dist/tools/nanovdb/coarse-first.js.map +1 -1
  395. package/dist/tools/nanovdb/half.d.ts +22 -0
  396. package/dist/tools/nanovdb/half.js +73 -0
  397. package/dist/tools/nanovdb/half.js.map +1 -0
  398. package/dist/tools/nanovdb/index.d.ts +3 -1
  399. package/dist/tools/nanovdb/index.js +2 -1
  400. package/dist/tools/nanovdb/index.js.map +1 -1
  401. package/dist/tools/nanovdb/inspect.d.ts +10 -1
  402. package/dist/tools/nanovdb/inspect.js +8 -1
  403. package/dist/tools/nanovdb/inspect.js.map +1 -1
  404. package/dist/tools/nanovdb/leaf-codec.d.ts +35 -1
  405. package/dist/tools/nanovdb/leaf-codec.js +40 -4
  406. package/dist/tools/nanovdb/leaf-codec.js.map +1 -1
  407. package/dist/tools/nanovdb/quantize.d.ts +39 -10
  408. package/dist/tools/nanovdb/quantize.js +96 -44
  409. package/dist/tools/nanovdb/quantize.js.map +1 -1
  410. package/dist/tools/nanovdb/resample.d.ts +20 -3
  411. package/dist/tools/nanovdb/resample.js +20 -7
  412. package/dist/tools/nanovdb/resample.js.map +1 -1
  413. package/dist/tools/nanovdb/serialize.d.ts +34 -3
  414. package/dist/tools/nanovdb/serialize.js +51 -7
  415. package/dist/tools/nanovdb/serialize.js.map +1 -1
  416. package/dist/tools/nanovdb/stats.d.ts +34 -5
  417. package/dist/tools/nanovdb/stats.js +87 -11
  418. package/dist/tools/nanovdb/stats.js.map +1 -1
  419. package/dist/tools/nanovdb/transform.d.ts +4 -0
  420. package/dist/tools/nanovdb/transform.js +3 -0
  421. package/dist/tools/nanovdb/transform.js.map +1 -1
  422. package/dist/tools/nanovdb/tree.d.ts +14 -3
  423. package/dist/tools/nanovdb/tree.js +25 -13
  424. package/dist/tools/nanovdb/tree.js.map +1 -1
  425. package/dist/tools/nanovdb/write-nvdb.d.ts +47 -12
  426. package/dist/tools/nanovdb/write-nvdb.js +108 -28
  427. package/dist/tools/nanovdb/write-nvdb.js.map +1 -1
  428. package/dist/tools/nvdb-file.d.ts +77 -7
  429. package/dist/tools/nvdb-file.js +177 -20
  430. package/dist/tools/nvdb-file.js.map +1 -1
  431. package/dist/tools/nvdb-stream.d.ts +23 -7
  432. package/dist/tools/nvdb-stream.js +78 -34
  433. package/dist/tools/nvdb-stream.js.map +1 -1
  434. package/dist/tools/reference/analytic.d.ts +41 -0
  435. package/dist/tools/reference/analytic.js +95 -0
  436. package/dist/tools/reference/analytic.js.map +1 -0
  437. package/dist/tools/reference/environment.d.ts +62 -0
  438. package/dist/tools/reference/environment.js +154 -0
  439. package/dist/tools/reference/environment.js.map +1 -0
  440. package/dist/tools/reference/index.d.ts +12 -0
  441. package/dist/tools/reference/index.js +13 -0
  442. package/dist/tools/reference/index.js.map +1 -0
  443. package/dist/tools/reference/media.d.ts +14 -0
  444. package/dist/tools/reference/media.js +30 -0
  445. package/dist/tools/reference/media.js.map +1 -0
  446. package/dist/tools/reference/rng.d.ts +20 -0
  447. package/dist/tools/reference/rng.js +30 -0
  448. package/dist/tools/reference/rng.js.map +1 -0
  449. package/dist/tools/reference/scene.d.ts +312 -0
  450. package/dist/tools/reference/scene.js +169 -0
  451. package/dist/tools/reference/scene.js.map +1 -0
  452. package/dist/tools/reference/tables.d.ts +98 -0
  453. package/dist/tools/reference/tables.js +264 -0
  454. package/dist/tools/reference/tables.js.map +1 -0
  455. package/dist/tools/reference/trace.d.ts +160 -0
  456. package/dist/tools/reference/trace.js +497 -0
  457. package/dist/tools/reference/trace.js.map +1 -0
  458. package/dist/tools/vdb/blosc-write.d.ts +43 -0
  459. package/dist/tools/vdb/blosc-write.js +197 -0
  460. package/dist/tools/vdb/blosc-write.js.map +1 -0
  461. package/dist/tools/vdb/blosc.d.ts +35 -5
  462. package/dist/tools/vdb/blosc.js +82 -26
  463. package/dist/tools/vdb/blosc.js.map +1 -1
  464. package/dist/tools/vdb/blosclz.d.ts +33 -0
  465. package/dist/tools/vdb/blosclz.js +112 -0
  466. package/dist/tools/vdb/blosclz.js.map +1 -0
  467. package/dist/tools/vdb/byte-reader.d.ts +13 -3
  468. package/dist/tools/vdb/byte-reader.js +26 -4
  469. package/dist/tools/vdb/byte-reader.js.map +1 -1
  470. package/dist/tools/vdb/compression.d.ts +13 -5
  471. package/dist/tools/vdb/compression.js +13 -2
  472. package/dist/tools/vdb/compression.js.map +1 -1
  473. package/dist/tools/vdb/grid.js +8 -2
  474. package/dist/tools/vdb/grid.js.map +1 -1
  475. package/dist/tools/vdb/index.d.ts +2 -1
  476. package/dist/tools/vdb/index.js.map +1 -1
  477. package/dist/tools/vdb/lz4.d.ts +30 -0
  478. package/dist/tools/vdb/lz4.js +228 -0
  479. package/dist/tools/vdb/lz4.js.map +1 -0
  480. package/dist/tools/vdb/metadata.js +1 -1
  481. package/dist/tools/vdb/metadata.js.map +1 -1
  482. package/dist/tools/vdb/parse.d.ts +24 -2
  483. package/dist/tools/vdb/parse.js +102 -32
  484. package/dist/tools/vdb/parse.js.map +1 -1
  485. package/dist/tools/vdb/point-render-data.d.ts +49 -1
  486. package/dist/tools/vdb/point-render-data.js +91 -11
  487. package/dist/tools/vdb/point-render-data.js.map +1 -1
  488. package/dist/tools/vdb/points.d.ts +26 -0
  489. package/dist/tools/vdb/points.js +46 -5
  490. package/dist/tools/vdb/points.js.map +1 -1
  491. package/dist/tools/vdb/types.d.ts +59 -2
  492. package/dist/tools/vdb/types.js.map +1 -1
  493. package/dist/tools/wvdb/bake.d.ts +38 -9
  494. package/dist/tools/wvdb/bake.js +63 -13
  495. package/dist/tools/wvdb/bake.js.map +1 -1
  496. package/dist/tools/wvdb/dense.d.ts +80 -1
  497. package/dist/tools/wvdb/dense.js +67 -8
  498. package/dist/tools/wvdb/dense.js.map +1 -1
  499. package/dist/tools/wvdb/format.d.ts +59 -0
  500. package/dist/tools/wvdb/format.js +3 -0
  501. package/dist/tools/wvdb/format.js.map +1 -1
  502. package/dist/tools/wvdb/index.d.ts +1 -0
  503. package/dist/tools/wvdb/index.js +1 -0
  504. package/dist/tools/wvdb/index.js.map +1 -1
  505. package/dist/tools/wvdb/level-set.d.ts +10 -2
  506. package/dist/tools/wvdb/level-set.js.map +1 -1
  507. package/dist/tools/wvdb/nanovdb.d.ts +6 -1
  508. package/dist/tools/wvdb/nanovdb.js +5 -1
  509. package/dist/tools/wvdb/nanovdb.js.map +1 -1
  510. package/dist/tools/wvdb/partial.d.ts +74 -0
  511. package/dist/tools/wvdb/partial.js +233 -0
  512. package/dist/tools/wvdb/partial.js.map +1 -0
  513. package/dist/tools/wvdb/read.d.ts +77 -1
  514. package/dist/tools/wvdb/read.js +30 -7
  515. package/dist/tools/wvdb/read.js.map +1 -1
  516. package/dist/tools/wvdb/write.d.ts +23 -1
  517. package/dist/tools/wvdb/write.js +8 -1
  518. package/dist/tools/wvdb/write.js.map +1 -1
  519. package/package.json +2 -1
  520. package/vendor/VENDOR.md +21 -6
  521. package/vendor/pnanovdb.wgsl +52 -14
  522. package/dist/three/frame/blackbody.d.ts +0 -42
  523. package/dist/three/frame/blackbody.js +0 -74
  524. package/dist/three/frame/blackbody.js.map +0 -1
  525. package/dist/three/frame/chunks.d.ts +0 -157
  526. package/dist/three/frame/chunks.js +0 -559
  527. package/dist/three/frame/chunks.js.map +0 -1
  528. package/dist/three/frame/density-material.d.ts +0 -53
  529. package/dist/three/frame/density-material.js +0 -353
  530. package/dist/three/frame/density-material.js.map +0 -1
  531. package/dist/three/frame/environment-grid-material.d.ts +0 -21
  532. package/dist/three/frame/environment-grid-material.js +0 -184
  533. package/dist/three/frame/environment-grid-material.js.map +0 -1
  534. package/dist/three/frame/environment-material.d.ts +0 -22
  535. package/dist/three/frame/environment-material.js +0 -87
  536. package/dist/three/frame/environment-material.js.map +0 -1
  537. package/dist/three/frame/grid-mip-material.d.ts +0 -12
  538. package/dist/three/frame/grid-mip-material.js +0 -61
  539. package/dist/three/frame/grid-mip-material.js.map +0 -1
  540. package/dist/three/frame/inject-material.d.ts +0 -56
  541. package/dist/three/frame/inject-material.js +0 -424
  542. package/dist/three/frame/inject-material.js.map +0 -1
  543. package/dist/three/frame/integrate-material.d.ts +0 -26
  544. package/dist/three/frame/integrate-material.js +0 -198
  545. package/dist/three/frame/integrate-material.js.map +0 -1
  546. package/dist/three/frame/layout.d.ts +0 -34
  547. package/dist/three/frame/layout.js +0 -48
  548. package/dist/three/frame/layout.js.map +0 -1
  549. package/dist/three/frame/lighting-material.d.ts +0 -41
  550. package/dist/three/frame/lighting-material.js +0 -257
  551. package/dist/three/frame/lighting-material.js.map +0 -1
  552. package/dist/three/frame/lights.d.ts +0 -11
  553. package/dist/three/frame/lights.js +0 -16
  554. package/dist/three/frame/lights.js.map +0 -1
  555. package/dist/three/frame/neural.d.ts +0 -14
  556. package/dist/three/frame/neural.js +0 -105
  557. package/dist/three/frame/neural.js.map +0 -1
  558. package/dist/three/frame/phase.d.ts +0 -44
  559. package/dist/three/frame/phase.js +0 -80
  560. package/dist/three/frame/phase.js.map +0 -1
  561. package/dist/three/frame/shadow-density-material.d.ts +0 -30
  562. package/dist/three/frame/shadow-density-material.js +0 -123
  563. package/dist/three/frame/shadow-density-material.js.map +0 -1
  564. package/dist/three/frame/temporal-material.d.ts +0 -29
  565. package/dist/three/frame/temporal-material.js +0 -152
  566. package/dist/three/frame/temporal-material.js.map +0 -1
  567. package/dist/three/frame/transmittance-material.d.ts +0 -31
  568. package/dist/three/frame/transmittance-material.js +0 -315
  569. package/dist/three/frame/transmittance-material.js.map +0 -1
  570. package/dist/three/frame/view.d.ts +0 -103
  571. package/dist/three/frame/view.js +0 -296
  572. package/dist/three/frame/view.js.map +0 -1
  573. package/dist/three/frame/volume-shadow-material.d.ts +0 -36
  574. package/dist/three/frame/volume-shadow-material.js +0 -128
  575. package/dist/three/frame/volume-shadow-material.js.map +0 -1
  576. package/dist/three/sequence.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,598 @@ All notable changes to `@pmndrs/vdb` are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.2.0] - 2026-11-30
10
+
11
+ The froxel renderer moves into the engine-free core (WGSL compute kernels; `@pmndrs/vdb/three` becomes a thin
12
+ adapter), the core gains level-set and point passes, majorants and a lean reader, and the tools gain Half grids, Blosc
13
+ writing, a level-set mesher and partial `.wvdb` streaming. Upgrade guide:
14
+ [Migrating from 0.1 to 0.2](https://pmndrs.github.io/vdb/reference/migrating-0-2).
15
+
16
+ ### Upgrading from 0.1.0: the short list
17
+
18
+ Every entry is described in full below.
19
+
20
+ | What | 0.1.0 | 0.2.0 | What to do |
21
+ |---|---|---|---|
22
+ | Core GPU names | `vdbGridStatsGpu`, `vdbDecodeToAtlasGpu`, `VDBBoxPyramidGpu(Options)` | `vdbGridStats`, `vdbDecodeToAtlas`, `VDBBoxPyramid(Options)` | Rename. Alias when you also import the `./three` function of the same name |
23
+ | Tools CPU readers | `vdbSampleTrilinear`, `vdbSampleNearest`, `vdbSampleTrilinearVec3`, `vdbReadValueF32`, `vdbReadValueVec3` | the same names with `Cpu` at the end | Rename |
24
+ | Tools helpers | `wvdbPrefixLength`, `nvdbResponseLength`, `vdbMakeFpNLeafCodec` | not exported | No replacement (internal) |
25
+ | Sequence loader type | `VDBFrameLoader` (`./three`) | `VDBSequenceFrameLoader` (core, re-exported by `./three`) | Rename |
26
+ | Froxel renderer (`./three`) | TSL passes | the core's compute kernels; several settings, members and types renamed or removed | See "K6.8" below and the migration page |
27
+ | Sources' TSL half | `vdbVolumeUniforms`, `vdbVolumeNodes`, the sparse source's pyramid and node functions | deleted | Sample a pooled grid through `VDBGridNode`; use the core sources' `wgsl()` in WGSL |
28
+ | Emission colour | `vdbFrameBlackbodyEmission(s, e)`, a TSL hook | `VDBEmissionColor` data | `emissionColor: { spectrum: s, exponent: e }` |
29
+ | Light bits | `vdbFrameLights`, `vdbFrameAllLights` | `VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS` | Rename |
30
+ | Froxel renderer default phase | `'henyey-greenstein'` g 0.8 | `'dual-lobe'` 0.8 / −0.3 / 0.2 | `settings.phase = 'henyey-greenstein'` for 0.1's look |
31
+ | Ambient-class light on volumes | unshadowed | attenuated by the medium (`ambientOcclusion`, on) | `settings.ambientOcclusion = false` for 0.1's frames |
32
+ | Meshes shadowing volumes | none | three's light shadow maps shadow the volumes (`occlusion`, on) | `settings.occlusion = false` for 0.1's frames |
33
+ | `'neural'` multiple scattering (the default mode) | mjurczyk's weights | our own weights | None: frames with `'neural'` change a little. Other modes are unchanged |
34
+ | Overlapping volumes | blended in draw order ("over") | combined order-independently | None: frames change only where two volumes share a froxel |
35
+ | `VDB_ALL_SCALAR_TYPES` | Float, Fp4, Fp8, Fp16, FpN | adds `'half'` | A module made with it is larger; list the types you use to keep 0.1's bytes |
36
+ | Written grid and file bytes | version 32.9.1, unsigned root order, f32 stats | version 32.11.0, native's signed root order, native's f64 stats, `nameKey` set | Values are unchanged. Retake any stored hash of a built, quantized or written grid |
37
+ | `vdbQuantize` of a level set | dropped inactive tiles (the interior read as the background) | keeps them | Re-quantize level sets made with 0.1 |
38
+ | `.nvdb` of another NanoVDB major | `NvdbFormatError` | `VDBUnsupportedError` | Catch `VDBToolsError`, or check `code` |
39
+ | `.vdb` strings | latin1 | UTF-8 (latin1 fallback) | Non-ASCII grid names read correctly now |
40
+ | `VDBPoints.pointCount` | a number | also sets the drawn instance count | Set `pointCount`, never three's `count` |
41
+ | `VDBVolumeMaterial` defaults | `densityScale` 40 per index voxel, `sunIntensity` 3, a shadow ray of `shadowSteps × stepSize` voxels | `opticalDepth` 6 across the grid's longest side at its mean density (`densityScale` 0), `sunIntensity` 16, a shadow ray of `shadowReach` 0.3 of that side | `{ densityScale: 40, sunIntensity: 3, shadowReach: 0 }` for 0.1's frames |
42
+
43
+ ### Breaking (0.2.0, D36: naming)
44
+
45
+ - `@pmndrs/vdb` (core): no name carries a `Gpu` suffix any more; the GPU is the default and `Cpu` marks the CPU twin of a
46
+ GPU function (`@pmndrs/vdb/tools`). The names 0.1.0 published: `vdbGridStatsGpu` → `vdbGridStats`,
47
+ `vdbDecodeToAtlasGpu` → `vdbDecodeToAtlas`, `VDBBoxPyramidGpu(Options)` → `VDBBoxPyramid(Options)`. A core name may
48
+ equal a `./three` name (the import path tells them apart; `./three` wraps the core object): alias when you import
49
+ both.
50
+ - The same rule renamed names that were only ever on `main` between 0.1.0 and 0.2.0 (never on npm; listed for anyone
51
+ who built from the repository): `vdbSparseSourceGpu` / `VDBSparseSourceGpu(Options)` / `VDBSparseVolumeGpu(Options)` /
52
+ `VDBSparseLodGpu` → `vdbSparseSource` / `VDBSparseSource(Options)` / `VDBSparseVolume(Options)` / `VDBSparseLod`,
53
+ `VDBFrameRendererGpu(Options)` / `VDBFrameVolumeGpu` → `VDBFrameRenderer(Options)` / `VDBFrameVolume`,
54
+ `vdbCreateLevelSetPassGpu` / `VDBLevelSetPassGpu(Options)` → `vdbCreateLevelSetPass` / `VDBLevelSetPass(Options)`,
55
+ `vdbCreatePointPassGpu` / `VDBPointPassGpu(Options)` → `vdbCreatePointPass` / `VDBPointPass(Options)`; the type
56
+ `VDBFrameRendererGpu` that `@pmndrs/vdb/three` exported for a while is gone (import `VDBFrameRenderer` from
57
+ `@pmndrs/vdb`).
58
+ - `VDBFrameLoader` (`@pmndrs/vdb/three` in 0.1.0) → `VDBSequenceFrameLoader` (core, re-exported by `./three`).
59
+ - `@pmndrs/vdb/tools`: the CPU samplers and readers take the `Cpu` suffix like `vdbReadValueCpu`: `vdbSampleTrilinear` /
60
+ `vdbSampleNearest` / `vdbSampleTrilinearVec3` → `vdbSampleTrilinearCpu` / `vdbSampleNearestCpu` /
61
+ `vdbSampleTrilinearVec3Cpu`, `vdbReadValueF32` / `vdbReadValueVec3` → `vdbReadValueF32Cpu` / `vdbReadValueVec3Cpu`.
62
+ - `wvdbPrefixLength`, `nvdbResponseLength` and `vdbMakeFpNLeafCodec` are no longer exported from `@pmndrs/vdb/tools`
63
+ (they are in `tools/internal`).
64
+
65
+ ### Breaking (0.2.0: defaults and outputs that change)
66
+
67
+ No name changes here; the same code gives other images or other bytes.
68
+
69
+ - `VDBVolumeMaterial` defaults (EX1a, #57): a material made without look options now draws a lit volume on a grid of
70
+ any resolution and value range. 0.1's `densityScale` 40 was extinction per INDEX voxel (opaque after one step on any
71
+ real grid, optical depth 360 along the 12-step shadow ray) and its sun term `3 × phase` (≈ 0.2) sat near the 0.15
72
+ ambient: a flat, ambient-only silhouette. Now:
73
+ - `densityScale` defaults to **0**, which means "use `opticalDepth`": the new `opticalDepth` (default 6) is the
74
+ optical depth of a ray crossing the grid's longest index side at the new `densityReference`, the mean of the
75
+ grid's active values (the root average statistic, read from `pool.info(id).rootAverage` at each render; 1 without
76
+ statistics). Both follow `pool.replace`, a `gridId` change and a coarse-first swap, so a preview and its full
77
+ grid look alike with no `voxelRatio` scale.
78
+ - the shadow ray spans the new `shadowReach` (default 0.3) of the longest index side in `shadowSteps` midpoint
79
+ samples, instead of `shadowSteps × stepSize` voxels (9 voxels at the defaults).
80
+ - `sunIntensity` defaults to **16** (was 3): the sun term is `sunIntensity × phase`, and a phase is about 1 / 4π.
81
+ Explicit values keep their 0.1 meaning and draw 0.1's frames byte for byte: `densityScale` > 0 is the extinction per
82
+ index voxel as given, and `shadowReach: 0` steps the shadow ray by `stepSize`. Migration: pass
83
+ `{ densityScale: 40, sunIntensity: 3, shadowReach: 0 }` for 0.1's default frames; a material that already passed
84
+ `densityScale` and `sunIntensity` only needs `shadowReach: 0`. `densityScale = 0` no longer hides a volume (hide the
85
+ mesh). A sequence that replaces its grid each frame is normalised per frame: pin it with a `densityReference` or
86
+ `material.densityReferenceAuto = false`. `vdbCoarseFirstApply` / `bind.material` still scale an explicit
87
+ `densityScale` by `voxelRatio` and leave a default material (0) alone.
88
+ - `VDB_ALL_SCALAR_TYPES` includes `'half'` (K7.H), so a WGSL module generated with it (and a `VDBGridNode` given it) is
89
+ larger than in 0.1.0 and has the Half decoders. Modules made with an explicit type list are byte-identical to 0.1.0's.
90
+ Migration: pass the types you add (`types: ['float', 'fp8']`) when the module's size or bytes matter.
91
+ - Froxel renderer: the default phase is `'dual-lobe'` (forward lobe g 0.8, back lobe g −0.3 of weight 0.2; D39, K7.4d),
92
+ not `'henyey-greenstein'` g 0.8. It is mjurczyk/openvdb's default since v0.30 and the phase of his demos and of ours.
93
+ Every volume drawn with the default phase changes: the back lobe returns light toward the light's side, so a volume seen
94
+ from there gets brighter (+2 to +27 % luminance on our report scenes) and one seen against the light a little darker
95
+ around the light's direction. Why: with one forward lobe every multiple-scattering mode (they add scattered light
96
+ isotropically) overshoots views that look into the missing back lobe, up to +194 % against a path-traced reference;
97
+ with dual-lobe the worst report scene is 32 % off (K7.4: median error 19.9 % against 37.3 %). `phaseG`, `phaseBackG`
98
+ and `phaseBackWeight` keep their defaults (0.8, −0.3, 0.2), and the measured media (`setMedium`) set their own phase as
99
+ before. The default `'neural'` network was trained for Henyey-Greenstein g 0.8; it is still the best network we have
100
+ for dual-lobe media (K7.4d). Migration: `settings.phase = 'henyey-greenstein'` gives 0.1's frames.
101
+ - Froxel renderer: three's light shadow maps shadow the volumes (`settings.occlusion`, default `true`, K6.5b). 0.1 had no
102
+ mesh → volume shadows, so a scene with a `castShadow` light, a shadow-casting mesh and a lit receiver now darkens the
103
+ volumes behind the mesh. Migration: `settings.occlusion = false` gives 0.1's frames.
104
+ - Froxel renderer: `ambientOcclusion` is on by default, the `'neural'` network is our own, overlapping volumes combine
105
+ order-independently (0.1 blended them in draw order; one volume per froxel renders the same), and the shadowed
106
+ ambient-class light is weighted by the phase function in both lightings (see "K6.8" and "Changed" below).
107
+ `ambientOcclusion = false` restores 0.1's ambient-class light in both lightings; the phase weight and the network have no
108
+ public switch back.
109
+ - Froxel renderer (K6.Q1d-a, D41, #26): `'frame'` lighting weights distant light (ambient, hemisphere, light probe, the
110
+ `'outward'` environment) by the phase function too, as `'volume'` lighting does. Which frames move: `'frame'` lighting
111
+ with such a light, `ambientOcclusion` on and `multipleScattering` `false` or `'octaves'`; they get darker where the
112
+ medium faces the camera (the smoke + hemisphere test scene: up to 11 / 255, about 10 % of its pixels). Scenes with the
113
+ default `'neural'` (or any other multiple-scattering mode) are byte-identical. The old look: the setting behind it
114
+ (`ambientPhase`) is internal, so there is no supported switch for the unweighted shadowed light;
115
+ `settings.ambientOcclusion = false` turns the shadowing of distant light off altogether (0.1's frames), as in
116
+ `'volume'` lighting. Memory: +8 bytes per shadow-grid voxel (+24 with `spectral`) in the scenes that move, nothing
117
+ elsewhere.
118
+ - Froxel renderer with `spectral` on: `'neural'` (the default mode) runs once per colour channel in `'frame'` lighting
119
+ instead of falling back to 1D diffusion (K7.4a; "Changed" below). Those frames get brighter (0.1's were 11–57 % darker
120
+ than the grey render of the same medium on the report scenes). No switch back; `multipleScattering: true` is the 1D
121
+ diffusion.
122
+ - Tools: the bytes of built, quantized, collapsed and written grids change (values do not). Our writers stamp NanoVDB
123
+ 32.11.0 instead of 32.9.1 into every grid and file header (K7.5a, the version of OpenVDB v14's `PNanoVDB.h`); the root
124
+ table and upper nodes are in native's signed-origin order; node average and standard deviation follow native's f64
125
+ update; `writeNvdb` sets the FileMetaData `nameKey` to `io::stringHash(name)` (0.1 wrote 0, so native `io::hasGrid`
126
+ missed our grids); `vdbQuantize` keeps inactive tiles ("Fixed" below). Migration: retake stored digests or golden
127
+ files; files written by 0.1 still read.
128
+ - Core: a grid's brick-majorant range in the pool buffer now starts with a 32-byte header (origin, flags, `"VDBM"`)
129
+ before the bounds (P1.3). No 0.1 WGSL module read the range, but a host shader of your own that read the bounds at the
130
+ record's majorant offset must skip the header (or use the `majorant` profile). The pool layout version stays 1.
131
+ - Three: `VDBFrameEmissionLight.castShadow` is always `true` (an accessor; the light casts no shadow). Setting it does
132
+ nothing (K6.8b).
133
+ - Three: `VDBPoints.pointCount` sets the drawn instance count (K3.7b); a host that set three's `count` itself should set
134
+ `pointCount` instead.
135
+
136
+ ### Breaking (0.2.0, K6.8: `./three` is a thin adapter over the core frame renderer)
137
+
138
+ - `@pmndrs/vdb/three`: `VDBFrameRenderer` draws every frame with the core frame renderer (compute kernels on three's
139
+ device; D34). The TSL pass materials, their shader chunks and the internal `backend` switch are deleted.
140
+ - `settings` is the core's `VDBFrameSettings` (his names and defaults, plus `occlusion`,
141
+ `multiScaleLevels`, `ambientOcclusion`, `ambientOcclusionPairs`, `ambientOcclusionSteps`; the multi-scale A/B
142
+ settings `multiScaleEdge` and `multiScaleSigma` stay internal).
143
+ `VDBFrameRendererSettings` is removed; `VDBFramePhase` → `VDBFramePhaseName`, `VDBFrameMultipleScattering` →
144
+ `VDBFrameMultipleScatteringMode` (the core's declarations, re-exported).
145
+ - `neuralNetwork` → `mlp` (EXPERIMENTAL: the generic small-MLP data, `VDBFrameMlp`; default our trained weights; null
146
+ runs 'neural' / 'mlp' as 1D diffusion).
147
+ - The default network of `'neural'` / `'mlp'` is **our own**, trained on procedural media only (K6.N; D36): scenes that
148
+ select `'neural'` (the default mode) change a little. His weights are no longer shipped.
149
+ - `renderFroxels()` / `holdFroxels` → `froxels` (false keeps the last froxels: the core's `update(…, { froxels })`).
150
+ - `passHook` is `{ timestampWrites?, begin?, end? }`: timestamp writes bracket the kernels of each core update
151
+ (`VDBFramePass` is removed).
152
+ - `redrawStats` is the core's `VDBFrameRedrawStats` (with `volumeShadows`); `environment` / `environmentLights` (the
153
+ TSL readback) are removed: the core extracts environment lights on the GPU.
154
+ - New `VDBFrameRenderer.core`: the `VDBFrameRenderer` (its `outputs`, after the first render).
155
+ - `VDBFrameVolume.emissionColor` takes `VDBEmissionColor` data (`'white'`, `{ spectrum: 'planck' | 'soot', exponent }`,
156
+ `{ lut }`, `{ wgsl }`); `vdbFrameBlackbodyEmission(s, e)` and `VDBFrameBlackbodyHook` are removed (use
157
+ `{ spectrum: s, exponent: e }`). A TSL hook throws `VDB_BAD_OPTION`.
158
+ - `vdbFrameLights` / `vdbFrameAllLights` → the core's `VDB_FRAME_LIGHT_BITS` (`ambient`, `point`, `directional`, `spot`,
159
+ `hemisphere`, `environment`) / `VDB_FRAME_ALL_LIGHTS`, re-exported.
160
+ - `VDBFrameVolume` drops `sourceUniforms`, `volumes` and the pass-material fields; its box is `boxMatrix`.
161
+ `vdbVolumeUniforms` / `vdbVolumeNodes` are deleted (K6.11, below).
162
+ - `ambientOcclusion` is **on by default** (4 direction pairs; D35): ambient, hemisphere, light-probe and environment
163
+ light is attenuated by the medium (about 35 to 148 % too bright in single scattering without it, against the K6.R
164
+ reference). `ambientOcclusion: false` gives 0.1's unshadowed light exactly; scenes without such lights do not change.
165
+ - Overlapping volumes in a froxel always combine order-independently; 0.1.0 blended them in draw order (his "over"
166
+ blend, gone with D35). One volume per froxel renders the same. The setting `froxelMix` of the 0.2 development builds
167
+ (never on npm) is deleted; its `'mixture'` is the behaviour now.
168
+ - The internal A/B setting `ambientProbe` (`VDBFrameInternalSettings`, `'irradiance'` | `'radiance'`) is deleted with
169
+ no deprecation (K6.Q1b): the light probe's sky up / down terms are three's irradiance along ± the sky, as the
170
+ default always was ('radiance' moved the K6.R reference by at most 2 points). A cast that set it does nothing now.
171
+ - `vdbVolumeUniforms`, `vdbVolumeNodes` and their types (`VDBVolumeNodes`, `VDBVolumeNodesOptions`, `VDBVolumeUniforms`,
172
+ `VDBVolumeUniformParameters`, `VDBThreeSourceFactory`) are deleted with the sources' TSL half, with no deprecation
173
+ cycle (D35): `vdbDenseTextures` / `vdbSparseSource` are handles with no GPU object. Gone from them: the dense
174
+ source's `textures` (`VDBDenseChannelTextures`), the sparse source's `pyramid`, `pyramidBuilds`, `refreshPyramid()`,
175
+ `nodeAverageFn()`, `skipEmptyFn()`, `createUniforms()`, `createNodes()`, `VDBSparsePyramid`,
176
+ `VDBSparseVolumeUniforms` and the `pyramidBuild` option; a sparse source's `gpuBytes` is `{ pool }`. A custom TSL
177
+ material uses `VDBGridNode`; custom WGSL or compute the core sources' `wgsl()`.
178
+ - `VDBSequence` moves to the core (`@pmndrs/vdb`; engine-free); `@pmndrs/vdb/three` re-exports it.
179
+
180
+ ### Added
181
+
182
+ - `VDBVolumeMaterial` (EX1a): parameters and uniforms `opticalDepth`, `densityReference` and `shadowReach`, and the
183
+ member `densityReferenceAuto` (see "Breaking: defaults" above). `pool.info(id).rootAverage` (core): the root node's
184
+ average statistic, the mean of the grid's active values (NaN for an image without one).
185
+
186
+ Every export new since 0.1.0 (`packages/vdb/test/api-surface/*.txt` against the 0.1.0 tag), by entry point. The entries
187
+ after the list describe them.
188
+
189
+ - `@pmndrs/vdb`: values `vdbCreateFrameRenderer`, `vdbFrameDefaultSettings`, `vdbFrameDefaultVolumeParams`,
190
+ `vdbFrameIntegrateWgsl`, `vdbFrameIntegrateEntries`, `vdbVolumeShadowWgsl`, `vdbEmissionProbeWgsl`, `vdbSparseSource`,
191
+ `vdbCreateLevelSetPass`, `vdbLevelSetSurfaceWgsl`, `vdbCreatePointPass`, `vdbPointSpriteWgsl`, `VDBSequence`,
192
+ `vdbGridStats` and `vdbDecodeToAtlas` (the renamed `…Gpu` functions), `VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS`,
193
+ `VDB_VOLUME_SHADOW_MAX_CASCADES`, `VDB_VOLUME_SHADOW_VIEW`, `VDB_EMISSION_GRID`. Types: the frame renderer's
194
+ (`VDBFrameRenderer`, `VDBFrameRendererOptions`, `VDBFrameVolume`, `VDBFrameVolumeParams`, `VDBFrameInput`,
195
+ `VDBFrameCamera`, `VDBFrameLight`, `VDBFrameEnvironment`, `VDBFrameOccluder`, `VDBFrameTargets`, `VDBFrameSettings`,
196
+ `VDBFrameEmissionLightSettings`, `VDBEmissionColor`, `VDBFrameMlp`, `VDBFrameMlpLayer`, `VDBFramePhaseName`,
197
+ `VDBFrameMultipleScatteringMode`, `VDBFrameWrap`, `VDBFrameMat4`, `VDBFrameVec3`, `VDBFrameOutputs`,
198
+ `VDBFrameEmissionProbes`, `VDBFrameUpdate`, `VDBFrameUpdateOptions`, `VDBFrameRedrawStats`, `VDBFrameTimestamps`,
199
+ `VDBFrameIntegrateWgslOptions`, `VDBFroxelLayout`, `VDBVolumeShadowMap`, `VDBVolumeShadowRequest`,
200
+ `VDBVolumeShadowDrawn`), the sparse source's (`VDBSparseSource`, `VDBSparseSourceOptions`, `VDBSparseSourceUpdate`,
201
+ `VDBSparseVolume`, `VDBSparseVolumeOptions`, `VDBSparseVolumeGrids`, `VDBSparseLod`, `VDBSparseIndexBox`,
202
+ `VDBVolumeSlot`), the passes' (`VDBLevelSetPass`, `VDBLevelSetPassOptions`, `VDBLevelSetPassFrame`,
203
+ `VDBLevelSetPassDraw`, `VDBLevelSetPassPool`, `VDBPointPass`, `VDBPointPassOptions`, `VDBPointPassFrame`,
204
+ `VDBPointPassData`), the sequence's (`VDBSequenceOptions`, `VDBSequenceFrameLoader`, `VDBSequenceTarget`,
205
+ `VDBSequencePoolLike`, `VDBSequenceRange`, `VDBSequenceLoopMode`, `VDBSequenceStats`), `VDBBoxPyramid`,
206
+ `VDBBoxPyramidOptions` and `VDBBrickMajorantOptions`.
207
+ - `@pmndrs/vdb/tools`: values `vdbLevelSetMesh`, `vdbLevelSetMeshChunks`, `vdbLevelSetMeshDecimate`, `vdbTreeNodes`, `vdbBrickMajorant`, `vdbBrickAtlas`,
208
+ `vdbValueRange`, `vdbMajorantWalk`, `vdbDeltaTrack`, `vdbRatioTrack`, `vdbFloatToHalf`, `vdbHalfToFloat`, `vdbRoundToHalf`, `VDB_HALF_LEAF_CODEC`, `vdbPointRenderDataTransfer`,
209
+ `wvdbDensePartialVolume`, `wvdbDenseResolve` and the five renamed `…Cpu` readers. Types `VDBLevelSetMesh`,
210
+ `VDBLevelSetMeshOptions`, `VDBLevelSetMeshChunk`, `VDBLevelSetMeshChunkOptions`, `VDBLevelSetMeshDecimateOptions`, `VDBTreeNode`, `VDBTreeNodesOptions`, `VDBBrickMajorant`,
211
+ `VDBBrickMajorantOptions`, `VDBBrickAtlas`, `VDBBrickAtlasOptions`, `VDBValueRange`, `VDBValueRangeOptions`,
212
+ `VDBMajorantSegment`, `VDBMajorantWalkOptions`, `VDBCollision`, `VDBTransmittance`, `VDBDeltaTrackOptions`,
213
+ `VDBRatioTrackOptions`, `VDBPointRenderAttribute`,
214
+ `VDBPointRenderDataProgress`, `ParseVdbOptions`, `VdbGridDescriptor`, `WvdbDenseFill`, `WvdbDensePartialFill`,
215
+ `WvdbDensePartialOptions`.
216
+ - `@pmndrs/vdb/three`: `VDBLevelSetPhysicalMaterial` (`VDBLevelSetPhysicalMaterialParameters`, `VDBLevelSetBackdrop`),
217
+ `VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS`, and the types `VDBFrameSettings`, `VDBFramePhaseSettings` (the phase
218
+ fields a volume may override), `VDBFramePhaseName`, `VDBFrameMultipleScatteringMode`, `VDBEmissionColor`,
219
+ `VDBFrameMlp`, `VDBFrameMlpLayer`, `VDBFrameTimestamps`, `VDBFrameUpdate`, `VDBSequenceFrameLoader`.
220
+
221
+ - `@pmndrs/vdb/three` and core (K6.5b): meshes shadow volumes. `./three` passes the shadow maps three draws for its
222
+ directional, spot and point lights to the core as occluders (`VDBFrameInput.occluders`, `VDBFrameOccluder`: a depth
223
+ map and the view-projection it was drawn with), with no frame of lag; `settings.occlusion` (default `true`) turns it
224
+ off. three draws a light's map only when a lit mesh with `receiveShadow` is in the scene.
225
+ - Froxel renderer (K7.3, K6.3): `multipleScattering: 'multi-scale'` (diffusion from blurred mips of the shadow grid,
226
+ `settings.multiScaleLevels`, `'frame'` lighting) and `'mlp'` (the generic evaluator under its own name).
227
+ - `@pmndrs/vdb/tools` (K7.12): `writeNvdb(images, { segments: 'per-grid' })` and `vdbBakeCoarseFirst(source, { segments:
228
+ 'per-grid' })` write one `.nvdb` segment per grid, as `io::writeGrids` and `nanovdb_convert` with several inputs do, so
229
+ native NanoVDB v14 `io::readGrid(file, n)` reads every grid (it misreads grid n >= 1 inside a multi-grid segment,
230
+ K7.13). The default stays `'one'` (one segment: a stream reader knows the full grid's size and type at the preview).
231
+ `NvdbFile`, `NvdbStreamReader` and `vdbStreamCoarseFirst` read both layouts; with per-grid segments the stream learns
232
+ of the full grid when its segment starts (the swap moves the grid, and `voxelRatio` is 1 until then).
233
+ - `@pmndrs/vdb/tools` (G14b): `vdbToWvdb` bakes point data grids as `.wvdb` points grids (positions and `Cd`, every n-th
234
+ point above `maxPoints`, his §3.5 LOD order), in file order beside the float grids, as his `wvdb` CLI does. Our bake of
235
+ `sphere_points.vdb` equals his `sphere_points.wvdb` in the header and two of three chunks; the third differs in two
236
+ coordinates by one 16-bit code (our P decode follows native OpenVDB, DIVERGES V202). `pnpm fixtures:points-wvdb` bakes
237
+ the local point samples (the 157 MB waterfall becomes a 14 MiB `.wvdb` of 3.2 M points).
238
+ - Examples (G14b): demo 14 streams a `.wvdb` points bake LOD by LOD (`?source=wvdb`, `WvdbStreamReader` with partial
239
+ LODs, `VDBPoints.fromWvdbGrid` / `addWvdbLevel`): every 64th point first, filling in to the full cloud as pages arrive;
240
+ `?stream=<KiB>` paces the stream per frame.
241
+ - Examples (G13c-a1): demo 13 antialiases its traced level sets while the camera rests: 16 frames jittered over a 4×4
242
+ sub-pixel grid, averaged in linear colour before tone mapping (`examples/src/demos/jitter-accumulator.ts`; "antialias
243
+ at rest" toggle, `?aa=0` off). The converged frame is the 4×4 supersampled one, so the teapot lid's specks (a groove
244
+ narrower than a pixel, G13c-a) go; a moving camera shows the plain frame. No library change.
245
+ - CI (K7.14, K7.C4): a weekly `Native parity` workflow (`.github/workflows/native-parity.yml`) runs `pnpm parity:native`
246
+ against a cached native OpenVDB / NanoVDB v14 build (or the K7.7 image on `workflow_dispatch`). `parity:native` gains
247
+ the sections `blosc` (the K7.C1 frame oracle `blosc_frames` and the whole-file checks) and `stats` (Welford node stats
248
+ equal native); `native-order.test.ts` runs in its `tests` section; the native build and the image build `blosc_frames`.
249
+ - `@pmndrs/vdb/three` (G13c): `VDBLevelSetPhysicalMaterial` option `backdrop: 'object'` (type `VDBLevelSetBackdrop`)
250
+ copies the frame before each draw of the material, so glass sees the glass drawn behind it (three copies once per
251
+ render; `'render'` stays the default). With `renderer.shadowMap.transmitted = true` the material casts a coloured
252
+ shadow, the light it lets through (`transmission · color · (1 − F0)² ·` Beer attenuation over `thickness`), as its
253
+ `castShadowNode` unless one is set; `material.shadowTintNode` holds the colour.
254
+ - `@pmndrs/vdb/three` (G13c): `specularAntialiasing` on both level-set materials (default off): geometric specular
255
+ antialiasing of the traced normal (Tokuyoshi and Kaplanyan), so low-roughness highlights and clearcoats on sharp
256
+ creases spread over the pixel instead of hitting a few pixels with extreme values. The materials set `roughnessNode`
257
+ (and `clearcoatRoughnessNode`) for it.
258
+ - `@pmndrs/vdb/three` (G13c-a1b, D42 (3)): new export `VDBLevelSetVelocityNode`, the velocity of a traced level set's
259
+ hit for temporal antialiasing and upscalers. three's `velocity` gives the proxy box's motion, which makes a temporal
260
+ resolve worse than no antialiasing (ACES error on the teapot lid 0.0110, the plain frame 0.0084, with the hit's
261
+ velocity 0.0048). Put one node in the scene pass's (or the renderer's) MRT as `velocity`: it writes
262
+ `ndc(current) − ndc(previous)` of the hit for `VDBLevelSetMaterial` and `VDBLevelSetPhysicalMaterial`, and three's
263
+ own `velocity` for every other material. It tracks the previous view-projection per camera and each grid's placement
264
+ (`pool.setTransform`: a moving level set gets its own motion), reads three's TRAA's unjittered projection or one
265
+ given with `setProjectionMatrix`, and `reset()` drops the previous frame at a cut or a resize. The package gains no
266
+ dependency: the node serves three's TRAA, `@pmndrs/upscaler` or a pass of your own. Docs: "Temporal antialiasing
267
+ and upscalers" on the level-sets page. Demo 13's demo-local node is gone (it uses this one).
268
+ - `@pmndrs/vdb/three`, core level-set pass and helper (G13c-a): `normalStep: 0` shades with the exact gradient of the
269
+ trilinear cell the trace hits (the surface the trace found; it never faces away from the ray, but it jumps across
270
+ cell faces). Opt-in; the default stays the central difference at 1 voxel. The `'levelSet'` helper's module grows by
271
+ 96 bytes (minified).
272
+ - `@pmndrs/vdb/tools` (K3.7c): `vdbLevelSetMesh(image, options)` meshes a level set's zero surface (table-free surface
273
+ nets over the sparse leaves; world or index space, optional normals, iso value, clip box) for collision and export.
274
+ Replaces mjurczyk's `LevelSetMesh`.
275
+ - `@pmndrs/vdb/tools` (K3.7c-a): `vdbLevelSetMeshChunks(image, { chunkSize })` meshes in index-space chunks, one chunk
276
+ in memory at a time; seam vertices are bit-identical, so the chunks joined on equal positions are the
277
+ `vdbLevelSetMesh` result (types `VDBLevelSetMeshChunk`, `VDBLevelSetMeshChunkOptions`). New `vdbLevelSetMesh` options,
278
+ all off by default (the default mesh is unchanged byte for byte): `project` (vertices onto the cell's trilinear iso
279
+ surface), `relax` (iterations of Gibson's cell-constrained relaxation, for binary-like data or better-shaped
280
+ triangles with `project`) and `tiles` (also mesh where tiles meet tiles or the background: fog volumes, and an
281
+ `isoValue` outside a level set's band when its tiles hold other values; a clamped band still throws there).
282
+ - `@pmndrs/vdb/tools` (K3.7c-b, #55): `vdbLevelSetMeshDecimate(image, mesh, { error, isoValue, targetTriangles })`
283
+ reduces a `vdbLevelSetMesh` mesh or one chunk of `vdbLevelSetMeshChunks` by edge collapses in quadric-error order,
284
+ each accepted only while the changed triangles stay within `error` voxels (default 0.1) of the grid's trilinear iso
285
+ surface, keep their side and are not needles (type `VDBLevelSetMeshDecimateOptions`). The result's vertices are a
286
+ subset of the input's (positions and normals bit for bit); boundary and seam vertices are kept, so decimated chunks
287
+ still join. The bound is checked at sample points on each changed triangle; between them up to 9 % more was
288
+ measured on a 0.05-voxel lattice (7 % on an Fp8 torus, 9 % beside a box's edges). Sphere 17,424 → 1,874 triangles, whole teapot 3.37 M → 108 k at 0.1 voxel. No new
289
+ dependency (meshoptimizer is a devDependency of the comparison test only).
290
+ - `@pmndrs/vdb/tools` (K3.7c-b2, #56): three options of `vdbLevelSetMeshDecimate`, all off by default (the default
291
+ result is the same bytes): `creases` (also accept a collapse that leaves the surface where it is, so vertices merge
292
+ inside flat faces and along straight creases: the test box goes to 6 % of its triangles instead of 23 %, no
293
+ farther from the level set than the input mesh was), `repair` (split the mesher's saddle edges into two sheets by
294
+ the field's side, adding copies of their vertices, and let collapses replace triangles that face against the
295
+ field: the clipped teapot's 11 saddle edges go, its inward-facing triangles drop from 16 to 4) and
296
+ `bound: 'hard'` (the bound holds at every point of each changed triangle, from per-cell gradient intervals of the
297
+ trilinear field; 7 to 63 % more triangles and about three times the field samples). The decimator also caches each
298
+ triangle's field check and samples a triangle from its middle outward: the same result for 6 to 25 % fewer field
299
+ samples.
300
+ - `@pmndrs/vdb/tools` (EX1b, #58): `vdbTreeNodes(image, { leaves, tiles, internalNodes })` is a generator over a scalar
301
+ grid image's tree: leaves (`origin`, `activeVoxelCount`), tiles (`level`, `origin`, `size`, `value`, `active`;
302
+ `tiles: 'active' | 'all' | 'none'`) and, with `internalNodes`, the upper and lower nodes (types `VDBTreeNode`,
303
+ `VDBTreeNodesOptions`). Float, Half, Fp4, Fp8, Fp16 and FpN grids. Examples: demo 06's leaf boxes and demo 04's
304
+ leaf-or-tile check use it, so both demos import the public API only.
305
+
306
+ - `@pmndrs/vdb` (P1.3, P1.4): the `majorant` WGSL profile for delta and ratio tracking. `vdbMajorantInit(g, o, d, tMin,
307
+ tMax)` / `vdbMajorantNext(&it)` walk a piecewise-constant bound of the sampled field along an index-space ray;
308
+ `majorant: 'brick'` (default; a DDA over the grid's brick bounds), `'global'` (one segment, `valueMax`) or `'nodeMax'`
309
+ (an HDDA bounded by node stats); `minima: true` adds `vdbMajorantMinimum`; `vdbMajorantGlobal(g)` in every mode.
310
+ `VDBBrickMajorant` takes optional `origin` and `minima`; `pool.info()` reports `majorantOrigin` and `majorantMinima`.
311
+ - `@pmndrs/vdb/tools` (P1.2): `vdbBrickMajorant(image, { brickLog2, minima, align, outside, resolution })` builds the
312
+ brick bounds for `pool.setMajorant`; `align: 'pathtracer'` lays them out as pmndrs/pathtracer's `brickMajorants`.
313
+ - `@pmndrs/vdb` (P1.15): `pool.buildMajorant(id, options)` builds a grid's brick majorant on the GPU (the options of
314
+ `vdbBrickMajorant`, `brickLog2` up to 6): the next `update(encoder)` records a compute pass into your encoder that fills
315
+ the majorant range, equal to `vdbBrickMajorant` bit for bit; `replace` rebuilds it for the new image (sequences).
316
+ `pool.info()` reports `majorantBuilt` (true for a majorant the pool builds, false for one set from data); core re-exports `VDBBrickMajorantOptions`. Both builders now store a bound of
317
+ -0 as +0.
318
+ - `@pmndrs/vdb/tools` (P1.17): `vdbBuildFromDense(values, dims, { layout: 'x-fastest' })` reads an array laid out
319
+ `x + nx·(y + ny·z)` (a 3D texture's order) in place, with no transposed copy; the image equals the one built from the
320
+ transposed array byte for byte. The default (`'x-major'`) is unchanged. `nvdbPoolType(metadataOrGridType)` gives the
321
+ pool / module type name (`'float'`, `'fp8'`, ...) of a `.nvdb` grid type (`'Float'`, `'Fp8'`, ...), or `null`. New
322
+ type `VDBDenseLayout`.
323
+ - `@pmndrs/vdb` (EX1f-a): `pool.setValueMax(id, valueMax | null)` sets a grid's global value bound (what
324
+ `vdbMajorantGlobal(g)` returns and the `'global'` majorant walk uses) after `add`, or returns to the default; only the
325
+ record is written. `pool.unboundedGrids` lists the grids with no finite bound (an image without statistics and no
326
+ `valueMax`), and `vdbCheckModule(pool, options)` now throws `VDB_NO_STATS` when a `majorant` module would walk one of
327
+ them on its global bound (`'global'`, `'brick'` without brick bounds, `'nodeMax'` without statistics): a shader cannot
328
+ step with an infinite bound. The default bound is unchanged (`max(root max, background)`).
329
+ - `@pmndrs/vdb/tools` (EX1f-a): `vdbValueRange(image, { outside })` returns the exact `{ min, max }` of the field a
330
+ shader samples inside the grid's support box, for `pool.setValueMax`. The default bound counts the root background,
331
+ which a fog volume converted from a level set stores as 3 while its field never passes 1: three times the tentative
332
+ collisions of a tracker on the global bound.
333
+ - `@pmndrs/vdb` (EX1f-b): four opt-in helpers for the `majorant` WGSL profile, so a path-tracing host stops copying
334
+ the tracking loops. `helpers: ['majorantWorld']` gives `vdbMajorantInitWorld(g, o, d, tMin, tMax)` (a world-space
335
+ ray); `'majorantGlobal'` gives `vdbMajorantInitGlobal(…)`, the one-segment walk on the global bound whatever brick
336
+ bounds the grid has (bricks or the global bound per ray, at run time, in one module); `'deltaTrack'` gives
337
+ `vdbDeltaTrack(&it, &acc, sigma, maxLookups) -> VdbCollision` and `'ratioTrack'` gives
338
+ `vdbRatioTrack(&it, &acc, sigma: vec3f, cutoff, maxLookups) -> VdbTransmittance` (per-channel transmittance under one
339
+ shared majorant, with Russian roulette). The trackers call the host's random function by name: the new module option
340
+ `random: '<name>'` (a `fn <name>() -> f32` in the same shader). Every walk (`'brick'`, `'global'`, `'nodeMax'`) and the
341
+ lean reader take them; modules without them are byte-identical to before (about 1.9 KiB for all four).
342
+ - `@pmndrs/vdb/tools` (EX1f-b): the profile's CPU twins are public: `vdbMajorantWalk(image, majorant, origin,
343
+ direction, options)` (the segments of `vdbMajorantInit` / `vdbMajorantNext`; `worldToIndex` for the world init,
344
+ `mode: 'global'` for the global one), `vdbDeltaTrack` and `vdbRatioTrack` (same draws in the same order as the WGSL
345
+ helpers, f32 in the shader's evaluation order), with `VDBMajorantSegment`, `VDBMajorantWalkOptions`, `VDBCollision`,
346
+ `VDBTransmittance`, `VDBDeltaTrackOptions` and `VDBRatioTrackOptions`.
347
+ - `@pmndrs/vdb/tools` (P1.12): `vdbBrickAtlas(image, { resolution })` builds pmndrs/pathtracer's V3.2 sparse brick atlas
348
+ and indirection from a grid's leaves and tiles, bit-identical to its `buildBrickAtlas` on the same field.
349
+ - `@pmndrs/vdb` (P1.5): `reader: 'lean'` module option, a compact reader with the same API and values: `read` for Float
350
+ is 3.1 KiB instead of 17.1, `sample` 5.1 KiB instead of 19.7 (profiles `read`, `sample`, `majorant` brick/global).
351
+ - `@pmndrs/vdb/tools` (K7.C1): `writeNvdb(images, { codec: 'blosc' })` writes NanoVDB's `Codec::BLOSC`: LZ4 Blosc
352
+ frames (byte shuffle, 1 MiB blocks of four 256 KiB streams, a frame per 1 GiB), byte-identical to native NanoVDB v14 for
353
+ the same image, so native tools and NVIDIA Warp read them. A pure-TypeScript LZ4 block compressor (a port of LZ4 1.9.4,
354
+ BSD-2-Clause) backs it; no new dependency. `vdbBakeCoarseFirst({ codec: 'blosc' })` too.
355
+ - `@pmndrs/vdb/tools` (K7.H1): Half grids are sources: `vdbQuantize(half, mode)` for every mode, a new `'float'` mode
356
+ (widens a Half grid exactly; Half → Float → Half is the identity), `vdbCollapseGrid(half)` (stays Half),
357
+ `transformLeafValues(half, fn)` (results rounded to the nearest binary16) and core `vdbApplyValueTransform` on a Half
358
+ pool grid. They threw `VDB_UNSUPPORTED_GRID_TYPE` before.
359
+ - Three (G13a): `VDBLevelSetPhysicalMaterial`, the level-set trace on three's `MeshPhysicalNodeMaterial`: transmission
360
+ (real glass, refracted from the traced hit, `thickness` in world units), `ior`, attenuation, dispersion, clearcoat (on
361
+ the traced normal), sheen, iridescence. Same options, nodes and validation as `VDBLevelSetMaterial`.
362
+ - Tools (G14a): `vdbPointRenderData` takes `attributes` (other point attributes, e.g. `['v']`, in the output order),
363
+ `order: 'prefix'` (every prefix of k tenths is an even subsample: `prefix[k]` points) and `onProgress` (decode per
364
+ leaf, then the copy), and returns `bounds`. `vdbPointRenderDataTransfer(data)` lists the buffers for a worker's
365
+ `postMessage`. `VdbPointDataGrid.points({ onProgress })` reports the decode per leaf.
366
+ - Three (K3.7b): `.wvdb` points LOD streaming into `VDBPoints`: `VDBPoints.fromWvdbGrid(header)` and
367
+ `addWvdbLevel(level)` (uploads only the new range, draws the points that have arrived). `VDBPoints` gains `capacity`,
368
+ `writePoints(first, positions, colors?)`, and `pointCount` now sets the drawn instance count.
369
+ - K4.22, partial `.wvdb` LODs while streaming: `@pmndrs/vdb/tools` `wvdbDensePartialVolume(reader.file, event, options)`
370
+ turns any `WvdbStreamReader({ partialLods: true })` event into a dense volume. With `fill: 'upsample'` (default) the
371
+ bricks stored but not decoded yet show the coarser LOD, upsampled as mjurczyk's loader does; `'background'` leaves
372
+ them empty. The core's `vdbDenseSource` (and so `VDBFrameRenderer`'s dense volumes) fills them on the GPU in one
373
+ compute pass on `replace`, and builds the mip atlas from the result; level 1 of a pending brick is the coarser LOD itself
374
+ (`fillMips: 'coarse'`, default; `'box'` is his). `wvdbDenseResolve(volume)` is the CPU twin (same bytes) for hosts
375
+ without the core; `vdbDenseSource(device, volume, { fill: 'cpu' })` uses it. New types `WvdbDenseFill`,
376
+ `WvdbDensePartialFill`, `WvdbDensePartialOptions`; `WvdbDenseTexture.fill`, `WvdbVolumeLevel.decoded` (one bit per
377
+ decoded brick), `VDBDenseSource.fills` and `.revision`, and `VDBVolumeSourceInfo.revision` (optional). Gallery demo 16
378
+ has a `.wvdb` mode (`?format=wvdb&partial=upsample|upsample-box|background|off`).
379
+ - `@pmndrs/vdb/tools`: `parseVdb(buffer, { select })` lists a `.vdb`'s grids without decoding them and decodes only
380
+ the ones you pick. `VdbFile.descriptors` (`VdbGridDescriptor`: name, grid type, on-disk value type, class, compression
381
+ flags, transform, index bounding box and an `unsupported` reason) covers every grid; with `select`, a grid the parser
382
+ cannot read is reported there instead of thrown, and `select: () => false` is a listing pass that decompresses
383
+ nothing. Without `select`, `parseVdb` behaves as in 0.1.
384
+ - Core internals (issue #2; not in the published API, as the frame setting `densityFilter` that uses it):
385
+ `VDBVolumeSourceWgslInternalOptions.stochastic` (`src/core/internal.ts`) asks a volume source for
386
+ `vdbSrcDensityStochastic(v, uvw, lod, xi)`, the level-0 density from ONE voxel picked with probability equal to its
387
+ trilinear weight (stochastic texture filtering; its mean over uniform `xi` is `vdbSrcDensity`). A sparse source
388
+ reads one tree value instead of eight; a dense source returns its trilinear sample. Off by default (module bytes
389
+ unchanged).
390
+ - Core (0.2.0, K6): the frame renderer `vdbCreateFrameRenderer` (`VDBFrameRenderer`: `addVolume`, `update`, `render`,
391
+ `prepare`, `outputs`, `mlp`) with its input and output types; `vdbSparseSource` (one source per pool);
392
+ `vdbFrameIntegrateWgsl` / `vdbFrameIntegrateEntries` (the composite in a host pass, `{ spectral }`),
393
+ `vdbVolumeShadowWgsl` (`vdbVolumeShadow`, `vdbVolumeShadowCube`, `vdbVolumeShadowRgb`, `vdbVolumeShadowCubeRgb`;
394
+ `VDB_VOLUME_SHADOW_VIEW`), `vdbEmissionProbeWgsl` (`VDB_EMISSION_GRID`); the level-set and point passes
395
+ (`vdbCreateLevelSetPass`, `vdbLevelSetSurfaceWgsl`, `vdbCreatePointPass`, `vdbPointSpriteWgsl`);
396
+ `VDBFrameUpdateOptions.timestampWrites`.
397
+ - The defaults and limits: `vdbFrameDefaultSettings()` (the settings object, his defaults), `vdbFrameDefaultVolumeParams()`
398
+ (a volume's parameters), `VDB_VOLUME_SHADOW_MAX_CASCADES`, `VDB_FRAME_LIGHT_BITS` / `VDB_FRAME_ALL_LIGHTS`.
399
+ - The renderer's input types: `VDBFrameInput`, `VDBFrameCamera`, `VDBFrameLight`, `VDBFrameEnvironment`,
400
+ `VDBFrameOccluder`, `VDBFrameTargets`, `VDBFrameSettings`, `VDBFrameVolumeParams`, `VDBFrameEmissionLightSettings`,
401
+ `VDBEmissionColor`, `VDBFrameMlp` / `VDBFrameMlpLayer`, `VDBFramePhaseName`, `VDBFrameMultipleScatteringMode`,
402
+ `VDBFrameWrap`, `VDBFrameMat4`, `VDBFrameVec3`; its outputs `VDBFrameOutputs`, `VDBFrameEmissionProbes`,
403
+ `VDBFrameUpdate`, `VDBFrameRedrawStats`, `VDBFrameTimestamps`; `VDBFrameVolume`, `VDBFrameRendererOptions`.
404
+ - `multipleScattering: 'neural'` (the default, our trained network) and `'mlp'` run the EXPERIMENTAL generic small MLP;
405
+ its data shape (`VDBFrameMlp`) may change before 1.0.
406
+ - `settings.shadowResolutionMax` (K6.Q1b; default 0, off): a size-adaptive 'frame' shadow grid. Above
407
+ `shadowResolution`, the grid grows (in steps of 16, up to the max and the device's limits) until a cell spans at most
408
+ 16 of a caster's voxels and 2 optical depths at its mean density; a small thin medium keeps `shadowResolution`. On
409
+ the K6.R reference it takes the WDAS cloud (side 80) and the absorbing bunny (96) from the 64³ grid's
410
+ single-scattering error (+22 %, −28 %) to 'volume' lighting's (+1 %, −12 %), at 2× and 3.4× the grid memory.
411
+ `VDBFrameRenderer.shadowGridResolution` reports the side the last update used.
412
+
413
+ - NanoVDB **Half** grids (`GridType::Half` = 9, raw IEEE binary16 values; implemented in NanoVDB 13.2, OpenVDB PR 2335), end
414
+ to end (K7.H). Core: grid type `'half'` (`VDBGridTypeName`, `VDB_GRID_TYPE_IDS.half`, in `VDB_ALL_SCALAR_TYPES`); the pool
415
+ holds Half images (binary16 background and root min/max decoded); `vdbModuleWgsl({ types: ['half'] })` decodes them
416
+ with `unpack2x16float` at every level and reads binary16 min/max stats. Modules without `'half'` are byte-identical to
417
+ 0.1.0's. Tools: `vdbQuantize(image, 'half')`, `VDB_HALF_LEAF_CODEC`, `vdbFloatToHalf` / `vdbHalfToFloat` /
418
+ `vdbRoundToHalf` (NanoVDB `math/HalfLite.h` rounding), `NvdbFile` loads Half grids (`NVDB_SUPPORTED_GRID_TYPES`), and
419
+ the CPU readers and samplers decode them. Three: `VDBGridNode` and `vdbSparseSource` take `types: ['half']`. Values and
420
+ min/max match native NanoVDB v14.0.0 (`createNanoGrid<…, nanovdb::Half>`) bit for bit on the fixtures
421
+ (`pnpm fixtures:bake-half`).
422
+ - Tools: `NvdbFile` and `NvdbStreamReader` / `readNvdbStream` read `.nvdb` files with the BLOSC codec: NanoVDB's
423
+ LZ4 frames (`nanovdb_convert -b/--blosc`, now built by default in OpenVDB v14) in any chunking, and NVIDIA Warp's
424
+ BloscLZ frames (which NanoVDB 14 reads too). Hostile-input checks run before allocating. `writeNvdb` still writes
425
+ NONE and ZIP.
426
+ - Tools: the Blosc decoder reads BloscLZ frames (also inside `.vdb` files).
427
+ - Tools: `parseVdb` reads OpenVDB 13+ `HalfGrid`s (`Tree_half_5_4_3`) under every codec. Values widen to f32
428
+ exactly; the grid reports `valueType: 'float'` (its `gridType` stays `Tree_half_5_4_3`), so `buildFromVdb` makes a
429
+ NanoVDB Float grid from it.
430
+
431
+ ### Changed
432
+
433
+ - Core (K7.4a): with `settings.spectral` on, `multipleScattering: 'neural'` (the default) and `'mlp'` run the network
434
+ once per colour channel in `'frame'` lighting, on that channel's extinction, albedo and optical depth (his renderer and
435
+ ours ran them as 1D diffusion when spectral). A grey medium now renders the same with `spectral` on or off (before,
436
+ spectral 'neural' was the diffusion frame: 11–57 % darker on the K7.4 report scenes). Spectral `'frame'` frames with
437
+ `'neural'` / `'mlp'` change; grey frames, `'volume'` lighting and spectral `'multi-scale'` (still 1D diffusion) do not.
438
+ The spectral 'mlp' keeps a second feature mip chain (the absorption rgb) beside the first.
439
+ - Core (K7.4a-3): with `settings.spectral` on, `multipleScattering: 'multi-scale'` runs K7.3's multi-scale lookup once
440
+ per colour channel in `'frame'` lighting (it ran as 1D diffusion when spectral): two rgba16float mip chains, of the
441
+ extinction rgb and the absorption rgb stacks, replace the grey rg16float chain. A grey medium renders the same with
442
+ `spectral` on or off. Spectral `'frame'` frames with `'multi-scale'` change; nothing else does. No spectral mode falls
443
+ back to diffusion now.
444
+ - Core (K4.22a): the dense source's `vdbSrcMaxIn` returns `1.0`, the bound of its `r8unorm` texels, instead of
445
+ `stats.max` baked into the WGSL; a `replace` whose max moved (every page of a streamed `.wvdb` LOD) rebuilt every frame
446
+ kernel. `source.stats.max` is unchanged. No frame kernel reads `vdbSrcMaxIn`: frames are byte-identical.
447
+ - Core (K6.Q1d, D38 (1)): in `'volume'` lighting the shadowed ambient, hemisphere and light-probe light is weighted by the
448
+ medium's phase function (a dipole fit of the ambient-occlusion pairs: a position scatters toward the camera mostly the
449
+ light that crossed the medium behind it). Against a path-traced reference this removes most of the ambient-class error of
450
+ forward-scattering media (WDAS cloud + ambient +18.9 → +3.7 %, + light probe +27.8 → +5.0 %); small media move to their
451
+ sun-only error. `'volume'` frames with ambient-class light and multiple scattering off or `'octaves'` change; with
452
+ multiple scattering on (the `'volume'` default, diffusion) nothing changes.
453
+ - Core (K6.Q1d-a, D41, #26): `'frame'` lighting does the same from a dipole stored per shadow-grid voxel (one more
454
+ rgba16float target per cascade in the transmittance stack; `spectral`: three). The targets are allocated only while a
455
+ gather reads them: `'frame'` lighting, `ambientOcclusion`, distant light in the frame and `multipleScattering` `false` or
456
+ `'octaves'`. They are freed at the next update after a setting turns them off and after 120 updates in a row without
457
+ distant light; the grid-resolution clamp counts them only while allocated. Against a path-traced reference (single
458
+ scattering): WDAS cloud + ambient +45 → +24 % at the default grid and +18 → +2 % with `shadowResolutionMax` 200; distant
459
+ light alone, mean |bias| 92 → 26 % (grid 64) and 69 → 9 % (side 128). Small media move to their sun-only error (smoke +
460
+ ambient +4.5 → −7.1 %). One internal `ambientPhase: 'isotropic' | 'dipole'` (`VDBFrameInternalSettings`) now serves both
461
+ lightings; the preview-only `ambientPhaseFrame` and `'dipole-ms'` are deleted (no deprecation: never public).
462
+ - Core (K6.Nb): `multipleScattering: 'neural'` keeps its network's feature reaches at the side-64 voxel whatever the shadow
463
+ grid side (`shadowResolution`, `shadowResolutionMax`): feature level k reads the mip level of the same world reach (the
464
+ internal setting `mlpReach: 'world'`; `'grid'` is the former behaviour). At the default side 64 every frame is
465
+ byte-identical; at larger sides 'neural' moves (the K6.N reference groups: mean |bias| 10.9 % against 11.5 % at the
466
+ adaptive side, 11.1 % against 11.9 % at 128). The network's feature mip chain runs to one voxel. Networks may carry an
467
+ anisotropy input (`VDBFrameMlp.extra: 'g'`, EXPERIMENTAL like `frameRenderer.mlp`: the phase's mean cosine after the
468
+ features; the default network has none).
469
+ - Core (K6.Nb2): a network may take the phase's two lobes as inputs (`VDBFrameMlp.extra: 'phase'`, EXPERIMENTAL: g₁, g₂, w
470
+ after the features, `vdbFrameMlpPhaseInputs` in tools internals), in the grey and the spectral evaluator. The shape
471
+ uniform holds up to four extra input values (`'g'` moved there from the reach's last lane); the default network has no
472
+ extra input and every default frame is unchanged.
473
+ - Core (K6.Q1c, D37 (5)): with `ambientOcclusion`, `jitter` and `temporal` all on, the shadowed ambient's direction ring no
474
+ longer turns per frame (K6.Q1a did; it averaged to the same picture within 0.1 points against the reference and left a
475
+ small frame-to-frame shimmer). Jittered + temporal frames with ambient, hemisphere or light-probe light change a little;
476
+ static frames are byte-identical. The internal A/B setting `ambientOcclusionRing` is deleted.
477
+ - Tools (K7.C1 / K7.H1): built and re-encoded grids now equal native NanoVDB byte for byte (GridData checksum and version
478
+ aside) on every native fixture: the root table and upper nodes are in native's signed-origin order again (0.1's unsigned
479
+ key order put grids with negative coordinates out of breadth-first order, which NanoVDB v14's `nanovdb_validate`
480
+ rejects), and node average/standard deviation use NanoVDB GridStats' f64 Welford update (they differed by up to 4 f32 ulp;
481
+ a node holding ±∞ now gets NaN, as native). A node whose values are all +∞ stores the type's largest finite value as
482
+ its minimum, as native. Image bytes of such grids change; values do not.
483
+
484
+ - Tools: an `.nvdb` from another NanoVDB major version (not 32.x) throws `VDBUnsupportedError` (`VDB_UNSUPPORTED`)
485
+ instead of `NvdbFormatError`. A `.vdb` newer than file version 225 still throws `VDBUnsupportedError`, now saying
486
+ it was written by a newer OpenVDB.
487
+ - Tools: point data grids get OpenVDB v14's read-time checks: an attribute array of size 0, a constant stride whose
488
+ `size × stride` passes 2^32, a total size below the point count, a zero-byte paged array and a page header of
489
+ i32 minimum are `VdbFormatError`s.
490
+ - Tools: a raw `NanoVDB1` grid buffer whose `mGridSize` is below 736 bytes or unrepresentable is an
491
+ `NvdbFormatError` (a 0 size used to loop over empty grids).
492
+ - Tools: for `.nvdb` files whose FileMetaData leaves `indexBBox` and `voxelCount` zero (Warp writes them so),
493
+ `NvdbGridMetadata` takes them from the grid image.
494
+ - Three (K6.8a, K6.11): `vdbSparseSource` / `vdbDenseTextures` are handles with no GPU object; `VDBFrameVolume` reads them
495
+ into the core's own sources (no second texel upload, no second pyramid; the TSL half is deleted, see Breaking).
496
+ - Three (K6.8a): the volume shadow receivers on meshes call the core's `vdbVolumeShadowWgsl` (one implementation),
497
+ binding the map's `view` buffer through a storage stand-in; `VDBVolumeShadowMap.view` gains `STORAGE` usage.
498
+ - Three (K6.8b): `VDBFrameEmissionLight` lights meshes with the core's `vdbEmissionProbeWgsl` (one implementation; frames
499
+ unchanged), binding the probe `grid` buffer through a storage stand-in; `VDBFrameEmissionProbes.grid` gains `STORAGE`
500
+ usage. The light's `castShadow` is always `true` (it casts no shadow): three r187 rebuilds the receivers of a
501
+ `castShadow` light when its node changes, which the light needs when the core makes a new probe stack.
502
+ - Core frame renderer (K7.15, mjurczyk's VDB-167): 'frame' lighting's transmittance pass skips the sky up / down marches
503
+ when nothing reads them (no light probe, hemisphere light or 'outward' environment, and no ambient-occlusion pairs);
504
+ those entries hold 1. Frames are byte-identical.
505
+ - Core frame renderer (K7.16, mjurczyk's VDB-168): textures of features that are turned off are freed at the next
506
+ `update()`: the temporal history (`temporal` off), the transmittance and environment grids in 'volume' lighting (the
507
+ shadow grid too without `castShadows`), the 'neural' / 'multi-scale' mips in other modes. The extra spectral slot
508
+ groups and the partial sums of a second source group go after 120 updates in a row without them. Turning a feature on
509
+ makes its textures again and redraws them. Frames are byte-identical.
510
+ - Core frame renderer (K7.16a): the froxel textures (scatter, integrated prefix, temporal history, partial sums,
511
+ spectral alpha pair) are freed after 120 updates in a row with no visible volume in view; `outputs.froxels` becomes
512
+ null then (`outputs.version` moves). The next update that draws a volume makes them again, empty, and renders as a
513
+ renderer that kept them (k6-frames byte-identical).
514
+
515
+ ### Fixed
516
+
517
+ - Core frame renderer (K7.4a-3): with `spectral` on, `'neural'` / `'mlp'` retired their feature mips at every update
518
+ (K7.16's release kept them for grey media only), so a static spectral scene made new mips and redrew its
519
+ transmittance every frame. They are kept now, and the absorption chain goes with the extinction one.
520
+ - Tools (K7.17): `parseVdb` reads grid names and `string` metadata as UTF-8, with a one-char-per-byte (latin1)
521
+ fallback for bytes that are not valid UTF-8 (his VDB-173). It decoded latin1 before, so a non-ASCII grid name such as
522
+ `dichte_ü` came out as `dichte_ü` and `buildFromVdb` → `writeNvdb` wrote it double-encoded.
523
+ - Tools (K3.7b): `vdbQuantize` kept no inactive tiles, so a quantized (Fp8, FpN, …) level set's interior read as the
524
+ background and traced in the wrong place. Inactive tiles whose value differs from the fill are kept, and a level set
525
+ keeps its root background.
526
+ - Core frame renderer: a same-size dense `replace` (a sequence frame, or a streamed page) kept the shadow grid and the
527
+ emission probes of the previous content, since their redraw keys read only the source's `version` (bumped for new
528
+ textures). Volume sources now have an optional content `revision` (the dense source bumps it on every `replace`), and
529
+ the keys read it too (K4.22).
530
+
531
+ - Three (K6.8b): changing a `VDBFrameEmissionLight`'s `resolution` mid-run left plain lit materials (`MeshLambertMaterial`,
532
+ `MeshStandardMaterial`) bound to the retired, destroyed probe stack ("Destroyed texture … used in a submit", and a wrong
533
+ frame after); the same class as K6.10 finding 8. Receivers now bind placeholders while the core has no probes and
534
+ rebuild when it makes a new stack or grid.
535
+
536
+ - Three (K6.8a): a shadow light whose core map went away (hidden for a few renders, or out of the camera's layers) and
537
+ came back left its mesh receivers bound to the retired, destroyed map texture ("Destroyed texture … used in a
538
+ submit", and a wrong shadow; K6.10 finding 8). Receivers now bind placeholders while a light has no map, and rebuild
539
+ when the core makes a new map. Point-light receivers no longer log `CubeTextureNode: Mapping not supported`.
540
+
541
+ - Core frame renderer (K6.10a): `settings.shadowResolution` whose transmittance stack does not tile in
542
+ `maxTextureDimension3D` (above 1024 with one cascade, 1024 with 3–4) clamps with a one-time warning; it threw a
543
+ `RangeError` on every update. Volume shadow maps (`castShadowMapSize`, `VDBFrameLight.shadow.size`) clamp to
544
+ `maxTextureDimension2D` and to a texture whose zero-fill staging fits `maxBufferSize` (a point light's 6 faces count),
545
+ warned once; a 4096 point map asked for 805 MB.
546
+ - Core (K6.10a): replaced textures and buffers (the frame renderer, the level-set and point passes, `vdbSparseSource`,
547
+ `vdbDenseSource.replace` with a new size) are destroyed in a later task, so several updates recorded into one encoder
548
+ before its submit no longer submit a destroyed texture. `vdbDenseSource.replace` destroyed the old textures at once.
549
+ - Tools: the unknown-codec error names the real `nanovdb_convert` flags (`-z/--zip`, `-b/--blosc`); it suggested
550
+ `--codec=zip`, which doesn't exist.
551
+ - Three: volume shadows of spot and point lights on meshes (`frameRenderer.settings.castShadows`) read each map with
552
+ the light state it was drawn with, not three's current shadow coordinates, so a map that waits for
553
+ `castShadowUpdatesPerFrame` no longer slides off its shadow when the light moves (mjurczyk/openvdb 62a6e3e). The
554
+ update budget now counts only shadow lights in the scene being rendered; a light of another scene, or one removed
555
+ mid-frame, no longer delays the rendered scene's maps (c13f2d5) (K7.1).
556
+
557
+ ### Internal (not public API)
558
+
559
+ Settings and options behind `src/{core,tools,three}/internal.ts`. They are not exported by the package, default to
560
+ the behaviour described above and may change or go in any release. Listed for people who build from the repository.
561
+
562
+ - Core (K7.4c, internal A/B setting, default off): `msExit: 'isotropic' | 'dipole' | 'hg'` (`VDBFrameInternalSettings`,
563
+ `core/internal`) weights the scattered part of a scene light (total − direct, every multiple-scattering mode but octaves,
564
+ both lightings, grey and spectral) by its exit toward the camera: a small-angle estimate of the scattered light's mean
565
+ cosine along the light, then the K6.Q1c dipole form or the HG convolution. Default `'isotropic'` is his isotropic exit;
566
+ frames do not move. The reference A/B (K7-4bc handoff) keeps it off by default.
567
+ - Core (K7.4a-2, internal, default off): `msExit: 'hg-chroma'` applies only the chromatic part of the `'hg'` exit (each
568
+ channel's factor over the green channel's), for spectral media whose phase g differs per channel; grey media and the
569
+ green channel exit as before. Frames do not move by default (K7-4a-2 handoff).
570
+ - Core (K3.2f, internal): the sparse source takes an internal `brickCache: 'f32' | 'f16'` option (`core/internal`
571
+ `VDBSparseSourceInternalOptions`; `./three` passes it through): level-0 density samples read a dense atlas of the
572
+ 8³ blocks the frames touch (9³ bricks with the +x/+y/+z apron, a page table, least recently used bricks evicted)
573
+ instead of walking the tree. `'f32'` is bit-identical to the tree sampler; `'f16'` is one hardware-filtered fetch
574
+ within `vdbBrickHalfBound` of it. Off by default (it waits for the K6.T timing A/B); off, the WGSL and the frames are
575
+ unchanged.
576
+ - Core (K3.2f-e, internal): two more internal brick-cache options. `brickKernels: 'all' | 'gather-marks' | 'gather-only'`
577
+ picks which frame kernels read and mark the cache (default `'all'`, the K3.2f behaviour and WGSL byte for byte; the
578
+ others leave the grid density and emission direction passes reading through without marking, or on the tree).
579
+ `brickMarkStats` gives every kernel its own section of the marks buffer and counts the marks per kernel
580
+ (`vdbSparseBrickCacheInfo(source).kernelMarks`) without changing the residency or the images. The frame kernels name
581
+ themselves to the source (`source.wgsl({ brickKernel })`, internal). Off, nothing changes.
582
+ - Core (K7.4d-a, internal A/B setting, default off): `mlpFeatures: 'voxel' | 'cubic'` (`VDBFrameInternalSettings`,
583
+ `core/internal`). The inputs of `multipleScattering: 'neural'` / `'mlp'` are box means at one length per level (h 2^k,
584
+ h the largest voxel side of the last shadow-grid cascade), but the boxes were 2^k voxels per axis, and the cascade's
585
+ voxels are not cubes when the casters' box is not (each axis snaps to its own power of two). `'cubic'` starts the
586
+ feature chain with an anisotropic step, so every level is a cube of side h 2^k, and reads level 0 from the chain too
587
+ (grey and spectral, both evaluators). Default `'voxel'` is the former chain: frames do not move. With cubic voxels the
588
+ two are the same chain (K7-4d-a handoff).
589
+ - Internal, no API change (K6.R2): the K6.R reference renderer (`core/internal`) samples an equirect environment map by
590
+ next-event estimation combined with the phase-sampled escape (multiple importance sampling; setting
591
+ `environmentSampling`, default `'mis'`): his sky-midday reference converges ~600–2000× faster per sample. The
592
+ reference report (repo script) adds LDR-FLIP, ported from NVIDIA's reference and checked against their published test.
593
+
594
+ ### Documentation
595
+
596
+ - JSDoc on every public export of `core`, `tools` and `three`: a summary line on each export, a doc on each option,
597
+ prop and member, and `@param` tags on functions, methods and constructors. No signature changed.
598
+ - Installation: how each bundler loads `@pmndrs/vdb/pnanovdb.wgsl`. New page on level sets (shadow-map cost) and points.
599
+ - Docs link the live examples, and the examples link back. `THIRD_PARTY_NOTICES.md` now credits three.js and `@webgpu/types`.
600
+
9
601
  ## [0.1.0] - 2026-11-24
10
602
 
11
603
  First public release (0.1.0). Our earlier v1 unscoped packages were never published (the npm `webvdb` package is mjurczyk's, not ours);
@@ -94,8 +686,6 @@ One package with three entry points plus `@pmndrs/vdb/pnanovdb.wgsl`: `@pmndrs/v
94
686
  'pingpong'` (default `'repeat'`, as `loop: true` was; `'once'` is the old `loop: false`, holding at the range end)
95
687
  is settable while playing with `setLoopMode()`. A ping-pong keeps its direction across `stop()` / `resume()`,
96
688
  `seek()` and `setRange()` (RV).
97
- - `VDBVolumeUniforms` has `dispose()`: a sparse source's uniforms drop the listeners they registered on the source.
98
- `VDBFrameVolume.dispose()` calls it; call it for uniforms you made with `vdbVolumeUniforms` (RV).
99
689
 
100
690
  ### Fixed
101
691