trillion3d 1.0.2 → 1.0.3-next.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 (1158) hide show
  1. package/dist/pageWorker.js +1 -1
  2. package/dist/pageWorker.js.map +2 -2
  3. package/dist/sdk-browser/src/geometry/cluster/shippedBytes.d.ts +15 -4
  4. package/dist/sdk-browser/src/geometry/cluster/shippedBytes.js +56 -7
  5. package/dist/sdk-browser/src/gpu/noise/blueNoise.bin.js +1 -0
  6. package/dist/sdk-browser/src/gpu/noise/blueNoiseSource.js +6 -2
  7. package/dist/sdk-browser/src/lighting/direct/skinTable.bin.js +1 -0
  8. package/dist/sdk-browser/src/lighting/direct/skinTableSource.js +5 -2
  9. package/dist/sdk-browser/src/measurement/buildProvenance.js +1 -1
  10. package/dist/sdk-browser/src/wasm/kernels.wasm.js +1 -0
  11. package/dist/sdk-browser/src/wasm/sdkWasm.d.ts +4 -3
  12. package/dist/sdk-browser/src/wasm/sdkWasm.js +9 -5
  13. package/dist/sdk-core/src/contracts/base.js +1 -1
  14. package/dist/sdk-node/src/cli/cli.mjs +0 -0
  15. package/dist/trillion3d-aoCode-2JTKFXZ5.js +489 -0
  16. package/dist/trillion3d-assemblies-BENCUAG3.js +2 -0
  17. package/dist/trillion3d-audioCode-M3I6FF7A.js +2 -0
  18. package/dist/trillion3d-autoExposureCode-AQ3IV5LH.js +198 -0
  19. package/dist/trillion3d-avatarCode-RTIDGTIA.js +2 -0
  20. package/dist/trillion3d-bounceCode-GEAWSI3A.js +4675 -0
  21. package/dist/trillion3d-catalogueCode-KZ3X7U7G.js +2 -0
  22. package/dist/trillion3d-chunk-22KA6FS4.js +116 -0
  23. package/dist/trillion3d-chunk-25B7I4D5.js +177 -0
  24. package/dist/trillion3d-chunk-2D7RBB5X.js +132 -0
  25. package/dist/trillion3d-chunk-2EJ4CRNA.js +46 -0
  26. package/dist/trillion3d-chunk-2PKPG2QJ.js +519 -0
  27. package/dist/trillion3d-chunk-2YXWLU7F.js +2 -0
  28. package/dist/trillion3d-chunk-2ZIQ3EEG.js +12 -0
  29. package/dist/trillion3d-chunk-33J4ZHIV.js +113 -0
  30. package/dist/trillion3d-chunk-3CTKK6Y4.js +14 -0
  31. package/dist/trillion3d-chunk-3F65K5TK.js +2 -0
  32. package/dist/trillion3d-chunk-3IRHFCKO.js +2 -0
  33. package/dist/trillion3d-chunk-3OWQBLPF.js +2 -0
  34. package/dist/trillion3d-chunk-3QKVCESS.js +2 -0
  35. package/dist/trillion3d-chunk-3TG7TWTW.js +56 -0
  36. package/dist/trillion3d-chunk-3UAK2IRC.js +91 -0
  37. package/dist/trillion3d-chunk-3VO6VVHD.js +4 -0
  38. package/dist/trillion3d-chunk-3W3YJ4KI.js +4 -0
  39. package/dist/trillion3d-chunk-3XBFYA3P.js +2 -0
  40. package/dist/trillion3d-chunk-435NEAXB.js +2 -0
  41. package/dist/trillion3d-chunk-4JYI3X5D.js +2 -0
  42. package/dist/trillion3d-chunk-4KEDPBE4.js +2 -0
  43. package/dist/trillion3d-chunk-4KWKWEQL.js +26 -0
  44. package/dist/trillion3d-chunk-4Z6VA66T.js +303 -0
  45. package/dist/trillion3d-chunk-5243PXB7.js +2 -0
  46. package/dist/trillion3d-chunk-53CFT7G7.js +2 -0
  47. package/dist/trillion3d-chunk-53QFLAA3.js +16 -0
  48. package/dist/trillion3d-chunk-56N6ZOBE.js +2 -0
  49. package/dist/trillion3d-chunk-5E744XXD.js +17 -0
  50. package/dist/trillion3d-chunk-5KEW2ZOY.js +2 -0
  51. package/dist/trillion3d-chunk-5ORGGJA5.js +2 -0
  52. package/dist/trillion3d-chunk-5RMOZCQA.js +2 -0
  53. package/dist/trillion3d-chunk-5SJT7EQ3.js +2 -0
  54. package/dist/trillion3d-chunk-5TTX63XG.js +24 -0
  55. package/dist/trillion3d-chunk-5WEWDH7F.js +2 -0
  56. package/dist/trillion3d-chunk-64WTBYW5.js +328 -0
  57. package/dist/trillion3d-chunk-6I7I5ZYU.js +2 -0
  58. package/dist/trillion3d-chunk-6OYOGQUQ.js +172 -0
  59. package/dist/trillion3d-chunk-6PMAMKLI.js +2 -0
  60. package/dist/trillion3d-chunk-6S7S5WI5.js +2 -0
  61. package/dist/trillion3d-chunk-6UP3ZCNV.js +2 -0
  62. package/dist/trillion3d-chunk-6WOJ6TQD.js +2 -0
  63. package/dist/trillion3d-chunk-6WS2EEBU.js +86 -0
  64. package/dist/trillion3d-chunk-6WUY2OOX.js +68 -0
  65. package/dist/trillion3d-chunk-72FCWPUJ.js +2 -0
  66. package/dist/trillion3d-chunk-72IAEP44.js +2 -0
  67. package/dist/trillion3d-chunk-77FPYTBQ.js +2 -0
  68. package/dist/trillion3d-chunk-7AQANLZ3.js +2 -0
  69. package/dist/trillion3d-chunk-7ATTJ3AJ.js +27 -0
  70. package/dist/trillion3d-chunk-7G4WOX6B.js +583 -0
  71. package/dist/trillion3d-chunk-7LIWCQGR.js +2 -0
  72. package/dist/trillion3d-chunk-7N3FUKOD.js +155 -0
  73. package/dist/trillion3d-chunk-7QFOJHAZ.js +435 -0
  74. package/dist/trillion3d-chunk-7TIVZUM6.js +81 -0
  75. package/dist/trillion3d-chunk-7U7CHALH.js +2 -0
  76. package/dist/trillion3d-chunk-7UXM26LW.js +2 -0
  77. package/dist/trillion3d-chunk-7VTYT5MF.js +2 -0
  78. package/dist/trillion3d-chunk-A4ULELL5.js +2 -0
  79. package/dist/trillion3d-chunk-ADMXPAEH.js +592 -0
  80. package/dist/trillion3d-chunk-AFRFQ25D.js +9 -0
  81. package/dist/trillion3d-chunk-AIB6NXH4.js +2 -0
  82. package/dist/trillion3d-chunk-AIQAWNNP.js +11 -0
  83. package/dist/trillion3d-chunk-AMJ6I7P4.js +11 -0
  84. package/dist/trillion3d-chunk-AQAJMS5A.js +2 -0
  85. package/dist/trillion3d-chunk-ARDABN2G.js +165 -0
  86. package/dist/trillion3d-chunk-B3QB55EK.js +2 -0
  87. package/dist/trillion3d-chunk-B5NXEPES.js +2 -0
  88. package/dist/trillion3d-chunk-BARQSI5Q.js +2 -0
  89. package/dist/trillion3d-chunk-BCYA7LWA.js +2 -0
  90. package/dist/trillion3d-chunk-BIBJMHIN.js +125 -0
  91. package/dist/trillion3d-chunk-BIGALHRE.js +2 -0
  92. package/dist/trillion3d-chunk-BKON7HDQ.js +6 -0
  93. package/dist/trillion3d-chunk-BRHXHYWB.js +2 -0
  94. package/dist/trillion3d-chunk-BVXHXONN.js +2 -0
  95. package/dist/trillion3d-chunk-BWPZMIFY.js +4 -0
  96. package/dist/trillion3d-chunk-C2WWWTMZ.js +2 -0
  97. package/dist/trillion3d-chunk-C7DCG2NV.js +2 -0
  98. package/dist/trillion3d-chunk-CCZJZMRJ.js +2 -0
  99. package/dist/trillion3d-chunk-CFIW2PLU.js +76 -0
  100. package/dist/trillion3d-chunk-CH3UKBVF.js +6 -0
  101. package/dist/trillion3d-chunk-COAMUWUG.js +6 -0
  102. package/dist/trillion3d-chunk-CS3EWLHS.js +2 -0
  103. package/dist/trillion3d-chunk-CS6MYZM7.js +42 -0
  104. package/dist/trillion3d-chunk-CSVCHCKI.js +2 -0
  105. package/dist/trillion3d-chunk-CYW43B6C.js +1615 -0
  106. package/dist/trillion3d-chunk-D2UJO22L.js +2 -0
  107. package/dist/trillion3d-chunk-D5LNZFJU.js +2 -0
  108. package/dist/trillion3d-chunk-DJIWKT4L.js +217 -0
  109. package/dist/trillion3d-chunk-DNAAW2B5.js +2 -0
  110. package/dist/trillion3d-chunk-DOXBXQJU.js +2 -0
  111. package/dist/trillion3d-chunk-DQVEKWHY.js +46 -0
  112. package/dist/trillion3d-chunk-DQYIKRAI.js +77 -0
  113. package/dist/trillion3d-chunk-DX5UNL5O.js +2 -0
  114. package/dist/trillion3d-chunk-EF6DURKO.js +19 -0
  115. package/dist/trillion3d-chunk-EKH44M5H.js +438 -0
  116. package/dist/trillion3d-chunk-EKHMHUHO.js +2 -0
  117. package/dist/trillion3d-chunk-EKMPAWJU.js +2 -0
  118. package/dist/trillion3d-chunk-ELCIIOBC.js +2 -0
  119. package/dist/trillion3d-chunk-EME34J3O.js +2 -0
  120. package/dist/trillion3d-chunk-EMNL3VBH.js +17 -0
  121. package/dist/trillion3d-chunk-EOA6RIXX.js +2 -0
  122. package/dist/trillion3d-chunk-ESEYMHSX.js +2 -0
  123. package/dist/trillion3d-chunk-EVWXSXV3.js +2 -0
  124. package/dist/trillion3d-chunk-EW3266JI.js +2 -0
  125. package/dist/trillion3d-chunk-F5ZFHT7O.js +2 -0
  126. package/dist/trillion3d-chunk-FBPHTYO3.js +2 -0
  127. package/dist/trillion3d-chunk-FCITXHHL.js +2 -0
  128. package/dist/trillion3d-chunk-FG4VFY2I.js +2 -0
  129. package/dist/trillion3d-chunk-FJ6PAVLE.js +178 -0
  130. package/dist/trillion3d-chunk-FNZKGTZC.js +2 -0
  131. package/dist/trillion3d-chunk-FVKZE7SE.js +1953 -0
  132. package/dist/trillion3d-chunk-FXEJM7VG.js +2 -0
  133. package/dist/trillion3d-chunk-FYXZW5DA.js +13 -0
  134. package/dist/trillion3d-chunk-G3DRTVHN.js +988 -0
  135. package/dist/trillion3d-chunk-G4AJOGQ7.js +265 -0
  136. package/dist/trillion3d-chunk-GEI5JB66.js +20 -0
  137. package/dist/trillion3d-chunk-GHFAPXBM.js +2 -0
  138. package/dist/trillion3d-chunk-GI2T6FOU.js +184 -0
  139. package/dist/trillion3d-chunk-GJZNN5UJ.js +2 -0
  140. package/dist/trillion3d-chunk-GK2DII6G.js +27 -0
  141. package/dist/trillion3d-chunk-GPVAVLAF.js +2 -0
  142. package/dist/trillion3d-chunk-GTR23Z5K.js +2 -0
  143. package/dist/trillion3d-chunk-GVOSTFBW.js +59 -0
  144. package/dist/trillion3d-chunk-GYORYIF5.js +2 -0
  145. package/dist/trillion3d-chunk-H3DVML7I.js +2 -0
  146. package/dist/trillion3d-chunk-H7KLPWI5.js +2 -0
  147. package/dist/trillion3d-chunk-H7LQGPKQ.js +50 -0
  148. package/dist/trillion3d-chunk-HBJ6VZPO.js +10 -0
  149. package/dist/trillion3d-chunk-HBMBGWN2.js +19 -0
  150. package/dist/trillion3d-chunk-HBSLKLSZ.js +94 -0
  151. package/dist/trillion3d-chunk-HCG3ESSV.js +2 -0
  152. package/dist/trillion3d-chunk-HDQGK2TL.js +2 -0
  153. package/dist/trillion3d-chunk-HRCLDXIF.js +35 -0
  154. package/dist/trillion3d-chunk-HRIARS44.js +2 -0
  155. package/dist/trillion3d-chunk-HV2YN5CF.js +2 -0
  156. package/dist/trillion3d-chunk-I5M3F6OY.js +6 -0
  157. package/dist/trillion3d-chunk-I75EGJAB.js +2 -0
  158. package/dist/trillion3d-chunk-I7QRTDI7.js +125 -0
  159. package/dist/trillion3d-chunk-IAELZYJF.js +2 -0
  160. package/dist/trillion3d-chunk-ICJUDIVR.js +276 -0
  161. package/dist/trillion3d-chunk-IEYEFEDV.js +2 -0
  162. package/dist/trillion3d-chunk-IFLJYROA.js +2 -0
  163. package/dist/trillion3d-chunk-IFZHDHIG.js +104 -0
  164. package/dist/trillion3d-chunk-IHNPAPHM.js +74 -0
  165. package/dist/trillion3d-chunk-IJJXMYSL.js +2 -0
  166. package/dist/trillion3d-chunk-IJMFDLYO.js +2 -0
  167. package/dist/trillion3d-chunk-INTWD5DJ.js +35 -0
  168. package/dist/trillion3d-chunk-IWP6655A.js +2 -0
  169. package/dist/trillion3d-chunk-IZTRWVNI.js +771 -0
  170. package/dist/trillion3d-chunk-J2BIHJ55.js +2 -0
  171. package/dist/trillion3d-chunk-J3NX2PWF.js +54 -0
  172. package/dist/trillion3d-chunk-J6G75W5Q.js +45 -0
  173. package/dist/trillion3d-chunk-J7ML34IT.js +2 -0
  174. package/dist/trillion3d-chunk-JD25N5D6.js +59 -0
  175. package/dist/trillion3d-chunk-JDIIZKDU.js +2 -0
  176. package/dist/trillion3d-chunk-JHRQF53B.js +4 -0
  177. package/dist/trillion3d-chunk-JPN76QOL.js +2 -0
  178. package/dist/trillion3d-chunk-JRCGXELE.js +2 -0
  179. package/dist/trillion3d-chunk-JXIMDH6A.js +2 -0
  180. package/dist/trillion3d-chunk-K6R7UEQZ.js +27 -0
  181. package/dist/trillion3d-chunk-K72UANQN.js +2 -0
  182. package/dist/trillion3d-chunk-KKECIVIP.js +2 -0
  183. package/dist/trillion3d-chunk-KLGN5XV3.js +2 -0
  184. package/dist/trillion3d-chunk-KLIGAVUH.js +2 -0
  185. package/dist/trillion3d-chunk-KLP7IBDS.js +2 -0
  186. package/dist/trillion3d-chunk-KPFGILKK.js +285 -0
  187. package/dist/trillion3d-chunk-KR4PIU6F.js +2 -0
  188. package/dist/trillion3d-chunk-KRV5VQCR.js +4 -0
  189. package/dist/trillion3d-chunk-KUJMOLHB.js +2 -0
  190. package/dist/trillion3d-chunk-KUKNVBWH.js +167 -0
  191. package/dist/trillion3d-chunk-KXM3DYQH.js +2 -0
  192. package/dist/trillion3d-chunk-L2F5RZRX.js +2 -0
  193. package/dist/trillion3d-chunk-L2FRHLXI.js +18 -0
  194. package/dist/trillion3d-chunk-L3VCBYGD.js +2 -0
  195. package/dist/trillion3d-chunk-LAAPTFVW.js +2 -0
  196. package/dist/trillion3d-chunk-LANLTCBQ.js +607 -0
  197. package/dist/trillion3d-chunk-LE4HL44Z.js +2 -0
  198. package/dist/trillion3d-chunk-LEY2Q6DZ.js +188 -0
  199. package/dist/trillion3d-chunk-LMWJTQFR.js +2 -0
  200. package/dist/trillion3d-chunk-LQLIXMMD.js +400 -0
  201. package/dist/trillion3d-chunk-LTWG3NOL.js +2 -0
  202. package/dist/trillion3d-chunk-M773YMP6.js +2 -0
  203. package/dist/trillion3d-chunk-MAKYPLYF.js +13 -0
  204. package/dist/trillion3d-chunk-MCNOP7UR.js +2 -0
  205. package/dist/trillion3d-chunk-MCSS3F6E.js +40 -0
  206. package/dist/trillion3d-chunk-MF4CAU3R.js +2 -0
  207. package/dist/trillion3d-chunk-MJTRABFR.js +242 -0
  208. package/dist/trillion3d-chunk-MQBDHCB3.js +2 -0
  209. package/dist/trillion3d-chunk-MUMQYHCQ.js +82 -0
  210. package/dist/trillion3d-chunk-MXZGFCOM.js +1166 -0
  211. package/dist/trillion3d-chunk-N33FXDXZ.js +2 -0
  212. package/dist/trillion3d-chunk-N7EXMVTQ.js +756 -0
  213. package/dist/trillion3d-chunk-N7EXMVTQ.js.map +6 -0
  214. package/dist/trillion3d-chunk-N7YEU2CT.js +2 -0
  215. package/dist/trillion3d-chunk-NB7XML37.js +2 -0
  216. package/dist/trillion3d-chunk-NBFOHDNN.js +2 -0
  217. package/dist/trillion3d-chunk-NEVMYKGT.js +28 -0
  218. package/dist/trillion3d-chunk-NHC4DXYP.js +2 -0
  219. package/dist/trillion3d-chunk-NNF42O54.js +197 -0
  220. package/dist/trillion3d-chunk-NTHEHPA5.js +418 -0
  221. package/dist/trillion3d-chunk-NVYEQ3JS.js +40 -0
  222. package/dist/trillion3d-chunk-NZRMWUGY.js +3109 -0
  223. package/dist/trillion3d-chunk-OD3JBU6D.js +5 -0
  224. package/dist/trillion3d-chunk-OFCF3GAC.js +360 -0
  225. package/dist/trillion3d-chunk-OHFYUKAD.js +2 -0
  226. package/dist/trillion3d-chunk-OHTUNWUN.js +2 -0
  227. package/dist/trillion3d-chunk-OLDTBAXR.js +2537 -0
  228. package/dist/trillion3d-chunk-OYZFVYYH.js +107 -0
  229. package/dist/trillion3d-chunk-P35JRX3H.js +2 -0
  230. package/dist/trillion3d-chunk-P3HTLS2O.js +2 -0
  231. package/dist/trillion3d-chunk-P7UZ7W2B.js +377 -0
  232. package/dist/trillion3d-chunk-PDWU4CCX.js +2 -0
  233. package/dist/trillion3d-chunk-PFMAOUBW.js +70 -0
  234. package/dist/trillion3d-chunk-PHE5OKAE.js +277 -0
  235. package/dist/trillion3d-chunk-PJN3TXFS.js +14 -0
  236. package/dist/trillion3d-chunk-PJN3TXFS.js.map +6 -0
  237. package/dist/trillion3d-chunk-PMF6JTVJ.js +2 -0
  238. package/dist/trillion3d-chunk-PXYUWON5.js +2 -0
  239. package/dist/trillion3d-chunk-PYVXDVAE.js +79 -0
  240. package/dist/trillion3d-chunk-PZBXWJFT.js +139 -0
  241. package/dist/trillion3d-chunk-Q2T4HBTW.js +2 -0
  242. package/dist/trillion3d-chunk-QAHCZ4CN.js +2 -0
  243. package/dist/trillion3d-chunk-QFIAXDBJ.js +2 -0
  244. package/dist/trillion3d-chunk-QGHAYZR3.js +2 -0
  245. package/dist/trillion3d-chunk-QMREUFAO.js +2 -0
  246. package/dist/trillion3d-chunk-QN7VBGUP.js +2 -0
  247. package/dist/trillion3d-chunk-QVFWEZOK.js +318 -0
  248. package/dist/trillion3d-chunk-QW5YCJAB.js +100 -0
  249. package/dist/trillion3d-chunk-R2A7QWWZ.js +2 -0
  250. package/dist/trillion3d-chunk-R4BXG67P.js +2 -0
  251. package/dist/trillion3d-chunk-R56L2MST.js +2 -0
  252. package/dist/trillion3d-chunk-RLDDQEQJ.js +10 -0
  253. package/dist/trillion3d-chunk-RMFAMI5T.js +2 -0
  254. package/dist/trillion3d-chunk-ROHK5HT5.js +19 -0
  255. package/dist/trillion3d-chunk-RPMC2FKD.js +2 -0
  256. package/dist/trillion3d-chunk-RTBXAMIZ.js +113 -0
  257. package/dist/trillion3d-chunk-S2NA64OJ.js +2 -0
  258. package/dist/trillion3d-chunk-SPIIJAMX.js +34 -0
  259. package/dist/trillion3d-chunk-SSWVBSJZ.js +2 -0
  260. package/dist/trillion3d-chunk-SUDBSFLJ.js +2 -0
  261. package/dist/trillion3d-chunk-SUU45ZK7.js +2 -0
  262. package/dist/trillion3d-chunk-TFNOURGL.js +6 -0
  263. package/dist/trillion3d-chunk-TLIN2DEK.js +1505 -0
  264. package/dist/trillion3d-chunk-TLO4XKYG.js +2 -0
  265. package/dist/trillion3d-chunk-TVYIOVGI.js +2 -0
  266. package/dist/trillion3d-chunk-TY7RGAI4.js +210 -0
  267. package/dist/trillion3d-chunk-U5NZRFEN.js +4403 -0
  268. package/dist/trillion3d-chunk-U5NZRFEN.js.map +6 -0
  269. package/dist/trillion3d-chunk-UBSICE2S.js +26 -0
  270. package/dist/trillion3d-chunk-UCIL746V.js +2 -0
  271. package/dist/trillion3d-chunk-UGTFIP7T.js +2 -0
  272. package/dist/trillion3d-chunk-UH2X4DC7.js +2 -0
  273. package/dist/trillion3d-chunk-UL5AQCHN.js +2 -0
  274. package/dist/trillion3d-chunk-UMAIYYSB.js +28 -0
  275. package/dist/trillion3d-chunk-UROCVT3W.js +53 -0
  276. package/dist/trillion3d-chunk-US6WKM5M.js +2 -0
  277. package/dist/trillion3d-chunk-UT5VM3B7.js +2 -0
  278. package/dist/trillion3d-chunk-UXCQ7A3K.js +2 -0
  279. package/dist/trillion3d-chunk-UXQKO5IH.js +2 -0
  280. package/dist/trillion3d-chunk-UXRWIFOC.js +12 -0
  281. package/dist/trillion3d-chunk-V44TZZB3.js +2 -0
  282. package/dist/trillion3d-chunk-VFPDIIEP.js +2 -0
  283. package/dist/trillion3d-chunk-VL44QEQI.js +2 -0
  284. package/dist/trillion3d-chunk-VP3GS2OQ.js +553 -0
  285. package/dist/trillion3d-chunk-VWRK33DS.js +172 -0
  286. package/dist/trillion3d-chunk-W2AGULE7.js +55 -0
  287. package/dist/trillion3d-chunk-W4L4ZLLZ.js +25 -0
  288. package/dist/trillion3d-chunk-WAR4LFLB.js +2 -0
  289. package/dist/trillion3d-chunk-WCVRKGQD.js +2 -0
  290. package/dist/trillion3d-chunk-WEACAP55.js +2 -0
  291. package/dist/trillion3d-chunk-WG6NZENK.js +2 -0
  292. package/dist/trillion3d-chunk-WJ4XQVTQ.js +411 -0
  293. package/dist/trillion3d-chunk-WR43FBB3.js +2 -0
  294. package/dist/trillion3d-chunk-WXECWHZ5.js +2 -0
  295. package/dist/trillion3d-chunk-WYKIXSUS.js +22 -0
  296. package/dist/trillion3d-chunk-XBDQHYBL.js +2 -0
  297. package/dist/trillion3d-chunk-XEPOPZZY.js +2 -0
  298. package/dist/trillion3d-chunk-XEQBUJNB.js +2 -0
  299. package/dist/trillion3d-chunk-XL4F65A7.js +174 -0
  300. package/dist/trillion3d-chunk-XOAWZNRA.js +2 -0
  301. package/dist/trillion3d-chunk-XQHULSDL.js +30 -0
  302. package/dist/trillion3d-chunk-XQSMKVTL.js +2 -0
  303. package/dist/trillion3d-chunk-XQSU4SY6.js +2 -0
  304. package/dist/trillion3d-chunk-XWJQJK22.js +2 -0
  305. package/dist/trillion3d-chunk-XXOXGG47.js +2 -0
  306. package/dist/trillion3d-chunk-XY7DNXWL.js +2 -0
  307. package/dist/trillion3d-chunk-XYZRT3VR.js +223 -0
  308. package/dist/trillion3d-chunk-XZPUDNQA.js +2 -0
  309. package/dist/trillion3d-chunk-Y2RAGKRM.js +2 -0
  310. package/dist/trillion3d-chunk-YA4TWJRK.js +442 -0
  311. package/dist/trillion3d-chunk-YAFEYU2S.js +2 -0
  312. package/dist/trillion3d-chunk-YBKRRMOT.js +2 -0
  313. package/dist/trillion3d-chunk-YFSDLEIZ.js +85 -0
  314. package/dist/trillion3d-chunk-YIUAOG6X.js +2 -0
  315. package/dist/trillion3d-chunk-YKZXAXMM.js +11 -0
  316. package/dist/trillion3d-chunk-YMR3WF2W.js +2 -0
  317. package/dist/trillion3d-chunk-YNRZO4Y4.js +27 -0
  318. package/dist/trillion3d-chunk-YOXV4W6I.js +266 -0
  319. package/dist/trillion3d-chunk-YQT76FYC.js +2 -0
  320. package/dist/trillion3d-chunk-YRPBW7AK.js +2 -0
  321. package/dist/trillion3d-chunk-YULZ6QUZ.js +2 -0
  322. package/dist/trillion3d-chunk-YWWOBEV2.js +2 -0
  323. package/dist/trillion3d-chunk-YYWNNHNI.js +2 -0
  324. package/dist/trillion3d-chunk-ZBIQ6S5Z.js +173 -0
  325. package/dist/trillion3d-chunk-ZBXTCONH.js +2 -0
  326. package/dist/trillion3d-chunk-ZDNFJYCW.js +2 -0
  327. package/dist/trillion3d-chunk-ZF5EDFJS.js +523 -0
  328. package/dist/trillion3d-chunk-ZFAKVFKL.js +21 -0
  329. package/dist/trillion3d-chunk-ZIGGUJM6.js +2 -0
  330. package/dist/trillion3d-chunk-ZNJ4TNBW.js +47 -0
  331. package/dist/trillion3d-chunk-ZQPT2YFE.js +2 -0
  332. package/dist/trillion3d-chunk-ZUFX2HVV.js +14 -0
  333. package/dist/trillion3d-chunk-ZUQDRSYB.js +14 -0
  334. package/dist/trillion3d-chunk-ZVSX6CGW.js +14 -0
  335. package/dist/trillion3d-chunk-ZYS4E37Q.js +2 -0
  336. package/dist/trillion3d-chunk-ZZWX6Q7H.js +2 -0
  337. package/dist/trillion3d-cinematicsCode-2YP657C3.js +2 -0
  338. package/dist/trillion3d-cubeCapturesCode-BOLBDRJD.js +77 -0
  339. package/dist/trillion3d-debugViewsCode-F4KTKXOZ.js +973 -0
  340. package/dist/trillion3d-decalCode-4OSGACRW.js +79 -0
  341. package/dist/trillion3d-deformationCode-GJBRRE4B.js +235 -0
  342. package/dist/trillion3d-displacementCode-OS37YHNO.js +659 -0
  343. package/dist/trillion3d-effectCode-CNDEXEFI.js +1874 -0
  344. package/dist/trillion3d-explorer-3SU2HTGD.js +2 -0
  345. package/dist/trillion3d-export-3COKIWS6.js +2 -0
  346. package/dist/trillion3d-family-YNJWVKWC.js +280 -0
  347. package/dist/trillion3d-fieldsCode-JQLVIT4H.js +2 -0
  348. package/dist/trillion3d-fogCode-PM5UY2TW.js +582 -0
  349. package/dist/trillion3d-geometryPage-DVJ4N2A6.js +2 -0
  350. package/dist/trillion3d-graphCode-MCIPPACK.js +2 -0
  351. package/dist/trillion3d-graphCode-MOTJ4WBF.js +2 -0
  352. package/dist/trillion3d-grassCode-J7CCF63J.js +2 -0
  353. package/dist/trillion3d-guideCode-ONWTGY2H.js +47 -0
  354. package/dist/trillion3d-hairCode-PNWJMXWH.js +3215 -0
  355. package/dist/trillion3d-hardwareBenchmark-JD2ITGNS.js +132 -0
  356. package/dist/trillion3d-headlessCode-JAXG4XPK.js +2 -0
  357. package/dist/trillion3d-iesCode-QVSRIT37.js +2 -0
  358. package/dist/trillion3d-indicator-ZDOOX6EU.js +22 -0
  359. package/dist/trillion3d-installCode-5NOFNOTZ.js +426 -0
  360. package/dist/trillion3d-manifestLoad-TEO2A7XO.js +2 -0
  361. package/dist/trillion3d-markCode-DD7RPZ2V.js +164 -0
  362. package/dist/trillion3d-measurementCode-I6LN3Z4A.js +2 -0
  363. package/dist/trillion3d-measurementCode-I6LN3Z4A.js.map +6 -0
  364. package/dist/trillion3d-modelArrivalCode-AS2ZIO5I.js +2 -0
  365. package/dist/trillion3d-modelCapture-OZNK2KHI.js +2 -0
  366. package/dist/trillion3d-modelCopiesCode-X7PCUUUT.js +2 -0
  367. package/dist/trillion3d-modelImagesCode-7NZ3BIL5.js +2 -0
  368. package/dist/trillion3d-pageAudioCode-PQWNFXNH.js +2 -0
  369. package/dist/trillion3d-pageCompile-4KI5TP2J.js +34 -0
  370. package/dist/trillion3d-panel-4BMTNA6N.js +79 -0
  371. package/dist/trillion3d-particleCode-X7RJYMM2.js +574 -0
  372. package/dist/trillion3d-partitionCode-KNTGZUZG.js +2 -0
  373. package/dist/trillion3d-pathTracingCode-IUDUNO7P.js +3333 -0
  374. package/dist/trillion3d-planarReflectionsCode-22NVSPZ2.js +96 -0
  375. package/dist/trillion3d-previewRun-YOUFRKDJ.js +33 -0
  376. package/dist/trillion3d-ragdollCode-XOZ7BBU4.js +2 -0
  377. package/dist/trillion3d-ragdollStage-EGRNR3QB.js +2 -0
  378. package/dist/trillion3d-read-6L2UR4EJ.js +2 -0
  379. package/dist/trillion3d-reflectionsCode-3T6W62HT.js +2128 -0
  380. package/dist/trillion3d-sampledLightsCode-MSZ2YCSJ.js +1795 -0
  381. package/dist/trillion3d-scene-3LL23MZI.js +2 -0
  382. package/dist/trillion3d-session-S4GIQNV6.js +2 -0
  383. package/dist/trillion3d-shadowsCode-UZNPLVCV.js +3667 -0
  384. package/dist/trillion3d-skyCode-BYIIBWAM.js +2212 -0
  385. package/dist/trillion3d-sortedTranslucencyCode-VLSTGX5S.js +181 -0
  386. package/dist/trillion3d-splineMeshCode-AWDX5BIG.js +2 -0
  387. package/dist/trillion3d-subsurfaceCode-PROXJTLS.js +732 -0
  388. package/dist/trillion3d-surfaceCode-CW2NSI5O.js +2 -0
  389. package/dist/trillion3d-terrainCode-ZDONXR5X.js +2 -0
  390. package/dist/trillion3d-transformCode-SE55EUCN.js +2 -0
  391. package/dist/trillion3d-translucentLightVolumeCode-EQKMCGMD.js +195 -0
  392. package/dist/trillion3d-viewCode-52L7D5ZW.js +18 -0
  393. package/dist/trillion3d-volumesCode-NYAC6KYU.js +2334 -0
  394. package/dist/trillion3d-waterCode-CWZ5XYNU.js +102 -0
  395. package/dist/trillion3d-webgpuCode-2GNPUWQ4.js +1646 -0
  396. package/dist/trillion3d-workCode-DCC25A2D.js +2 -0
  397. package/dist/trillion3d-worldRootPages-P75VSIXR.js +2 -0
  398. package/dist/trillion3d.module.js +1 -1
  399. package/dist/trillion3d.module.js.modules.json +1 -1
  400. package/package.json +2 -2
  401. package/dist/trillion3d-aoCode-T2V54NAO.js +0 -489
  402. package/dist/trillion3d-assemblies-3DUP5X66.js +0 -2
  403. package/dist/trillion3d-audioCode-53XT65XV.js +0 -2
  404. package/dist/trillion3d-autoExposureCode-B5KISRSD.js +0 -198
  405. package/dist/trillion3d-avatarCode-AZDPGA73.js +0 -2
  406. package/dist/trillion3d-bounceCode-AZC4HMJI.js +0 -4675
  407. package/dist/trillion3d-catalogueCode-ZAOFZQLB.js +0 -2
  408. package/dist/trillion3d-chunk-2BOYJZCQ.js +0 -2
  409. package/dist/trillion3d-chunk-2CZ6RWTW.js +0 -607
  410. package/dist/trillion3d-chunk-2HSBVYCY.js +0 -2
  411. package/dist/trillion3d-chunk-2JAAFFQC.js +0 -438
  412. package/dist/trillion3d-chunk-2JCF4HLE.js +0 -132
  413. package/dist/trillion3d-chunk-2JM7B67K.js +0 -2
  414. package/dist/trillion3d-chunk-2KRIKK4D.js +0 -2
  415. package/dist/trillion3d-chunk-2L52NUG7.js +0 -2
  416. package/dist/trillion3d-chunk-2MVQXOFZ.js +0 -2
  417. package/dist/trillion3d-chunk-2OFUDJNU.js +0 -2
  418. package/dist/trillion3d-chunk-2PBJSBLO.js +0 -46
  419. package/dist/trillion3d-chunk-2TYAUOQ5.js +0 -2
  420. package/dist/trillion3d-chunk-2VZIVK5U.js +0 -2
  421. package/dist/trillion3d-chunk-36VHFR62.js +0 -2
  422. package/dist/trillion3d-chunk-3BY2FPRS.js +0 -2
  423. package/dist/trillion3d-chunk-3EPZT7SR.js +0 -167
  424. package/dist/trillion3d-chunk-3GEQFGGV.js +0 -360
  425. package/dist/trillion3d-chunk-3H2OZEPR.js +0 -2
  426. package/dist/trillion3d-chunk-3HE5HBCK.js +0 -14
  427. package/dist/trillion3d-chunk-3HPFLXCF.js +0 -125
  428. package/dist/trillion3d-chunk-42JJO5YV.js +0 -771
  429. package/dist/trillion3d-chunk-44GU3ERA.js +0 -756
  430. package/dist/trillion3d-chunk-44GU3ERA.js.map +0 -6
  431. package/dist/trillion3d-chunk-46P46SRG.js +0 -2
  432. package/dist/trillion3d-chunk-472QQ27C.js +0 -2
  433. package/dist/trillion3d-chunk-4BOD343S.js +0 -2
  434. package/dist/trillion3d-chunk-4JBRHV7G.js +0 -174
  435. package/dist/trillion3d-chunk-4KXFERR4.js +0 -2
  436. package/dist/trillion3d-chunk-5ASFLMJ6.js +0 -583
  437. package/dist/trillion3d-chunk-5B3ML3DL.js +0 -2
  438. package/dist/trillion3d-chunk-5COTXELO.js +0 -2
  439. package/dist/trillion3d-chunk-5GW525BI.js +0 -2
  440. package/dist/trillion3d-chunk-5GY24CJD.js +0 -2
  441. package/dist/trillion3d-chunk-5HWOHERQ.js +0 -2
  442. package/dist/trillion3d-chunk-5K6QSSBR.js +0 -2
  443. package/dist/trillion3d-chunk-5KHPSLRC.js +0 -2
  444. package/dist/trillion3d-chunk-5LQDA7UM.js +0 -2
  445. package/dist/trillion3d-chunk-5O2GDLHX.js +0 -2
  446. package/dist/trillion3d-chunk-5ONOJMSW.js +0 -2
  447. package/dist/trillion3d-chunk-5Q666YQV.js +0 -519
  448. package/dist/trillion3d-chunk-5ROJIVV3.js +0 -20
  449. package/dist/trillion3d-chunk-5VVVL3GH.js +0 -2
  450. package/dist/trillion3d-chunk-5VX27QFH.js +0 -2
  451. package/dist/trillion3d-chunk-6VDAUYE6.js +0 -2
  452. package/dist/trillion3d-chunk-6VPPLI5X.js +0 -46
  453. package/dist/trillion3d-chunk-6Y7TZO62.js +0 -523
  454. package/dist/trillion3d-chunk-742WGJYH.js +0 -2
  455. package/dist/trillion3d-chunk-74PQZHDK.js +0 -104
  456. package/dist/trillion3d-chunk-77T2WOXU.js +0 -2
  457. package/dist/trillion3d-chunk-7C5HNDEL.js +0 -2
  458. package/dist/trillion3d-chunk-7CGRPLOC.js +0 -188
  459. package/dist/trillion3d-chunk-7CSS2AWO.js +0 -94
  460. package/dist/trillion3d-chunk-7F2KAZFC.js +0 -2
  461. package/dist/trillion3d-chunk-7IZI5OZK.js +0 -2
  462. package/dist/trillion3d-chunk-7NZTUQYT.js +0 -592
  463. package/dist/trillion3d-chunk-7QYR7QUU.js +0 -13
  464. package/dist/trillion3d-chunk-7XEWHG3S.js +0 -223
  465. package/dist/trillion3d-chunk-AA2V3CRQ.js +0 -2
  466. package/dist/trillion3d-chunk-AA6W2SUV.js +0 -77
  467. package/dist/trillion3d-chunk-ABKLIRWX.js +0 -2
  468. package/dist/trillion3d-chunk-ADUR3TJH.js +0 -76
  469. package/dist/trillion3d-chunk-AEW6BD4P.js +0 -2
  470. package/dist/trillion3d-chunk-AU725OCC.js +0 -2
  471. package/dist/trillion3d-chunk-AYCFHOHV.js +0 -2
  472. package/dist/trillion3d-chunk-AYJO3NNO.js +0 -2
  473. package/dist/trillion3d-chunk-AZ6SQT7V.js +0 -1953
  474. package/dist/trillion3d-chunk-AZHGOCPF.js +0 -2
  475. package/dist/trillion3d-chunk-B3ATF6PP.js +0 -418
  476. package/dist/trillion3d-chunk-B3ECL3UB.js +0 -24
  477. package/dist/trillion3d-chunk-BDWRLDJI.js +0 -3109
  478. package/dist/trillion3d-chunk-BGNYLCJW.js +0 -303
  479. package/dist/trillion3d-chunk-BS3H5DRX.js +0 -2
  480. package/dist/trillion3d-chunk-BUP4DDEO.js +0 -2
  481. package/dist/trillion3d-chunk-BZAV5BK7.js +0 -2
  482. package/dist/trillion3d-chunk-C2QSQDHV.js +0 -4403
  483. package/dist/trillion3d-chunk-C2QSQDHV.js.map +0 -6
  484. package/dist/trillion3d-chunk-CBPJFYIU.js +0 -172
  485. package/dist/trillion3d-chunk-CD7EZNRP.js +0 -53
  486. package/dist/trillion3d-chunk-CJHN7L75.js +0 -2
  487. package/dist/trillion3d-chunk-CMHKMP7M.js +0 -6
  488. package/dist/trillion3d-chunk-CPLMDH47.js +0 -2
  489. package/dist/trillion3d-chunk-CQESL7F5.js +0 -28
  490. package/dist/trillion3d-chunk-CVJOTXK5.js +0 -2
  491. package/dist/trillion3d-chunk-D4DXAQPJ.js +0 -4
  492. package/dist/trillion3d-chunk-DA3S4LZH.js +0 -34
  493. package/dist/trillion3d-chunk-DPXM3DHU.js +0 -2
  494. package/dist/trillion3d-chunk-DUWMZGSW.js +0 -18
  495. package/dist/trillion3d-chunk-DZ5A6N23.js +0 -11
  496. package/dist/trillion3d-chunk-E2VRYXCO.js +0 -55
  497. package/dist/trillion3d-chunk-E4N7LNGP.js +0 -2
  498. package/dist/trillion3d-chunk-E5M5PMK3.js +0 -2
  499. package/dist/trillion3d-chunk-EAHDFM7D.js +0 -139
  500. package/dist/trillion3d-chunk-ECWU67MC.js +0 -54
  501. package/dist/trillion3d-chunk-EI2XZGZC.js +0 -2
  502. package/dist/trillion3d-chunk-EIOQWCJW.js +0 -35
  503. package/dist/trillion3d-chunk-EO2IHUHA.js +0 -2
  504. package/dist/trillion3d-chunk-ESO5KVG2.js +0 -2
  505. package/dist/trillion3d-chunk-ETCQFZ4S.js +0 -435
  506. package/dist/trillion3d-chunk-EU4OYQGR.js +0 -2
  507. package/dist/trillion3d-chunk-EUCLXLYS.js +0 -2
  508. package/dist/trillion3d-chunk-EZ2JYRNP.js +0 -70
  509. package/dist/trillion3d-chunk-F2BKXVDP.js +0 -59
  510. package/dist/trillion3d-chunk-F4TG7DXL.js +0 -2
  511. package/dist/trillion3d-chunk-FBPR5PIL.js +0 -2
  512. package/dist/trillion3d-chunk-FDP5PHNI.js +0 -17
  513. package/dist/trillion3d-chunk-FJRD6RXY.js +0 -4
  514. package/dist/trillion3d-chunk-FLJAAUWJ.js +0 -2
  515. package/dist/trillion3d-chunk-FPH3NDSE.js +0 -2
  516. package/dist/trillion3d-chunk-FYTCEF3P.js +0 -2
  517. package/dist/trillion3d-chunk-G4ZEQPJE.js +0 -2
  518. package/dist/trillion3d-chunk-G5MFUE5P.js +0 -2
  519. package/dist/trillion3d-chunk-G6HYU5QH.js +0 -2
  520. package/dist/trillion3d-chunk-GJAAOF62.js +0 -2
  521. package/dist/trillion3d-chunk-GOFFACVN.js +0 -210
  522. package/dist/trillion3d-chunk-GPKNAWFR.js +0 -2
  523. package/dist/trillion3d-chunk-GTJAMKXA.js +0 -2
  524. package/dist/trillion3d-chunk-GUWCZ2WR.js +0 -40
  525. package/dist/trillion3d-chunk-GXDVY3QD.js +0 -2
  526. package/dist/trillion3d-chunk-GXMTFTCW.js +0 -2
  527. package/dist/trillion3d-chunk-H5B36GHI.js +0 -2
  528. package/dist/trillion3d-chunk-HBFRB6UY.js +0 -79
  529. package/dist/trillion3d-chunk-HCXQHHY4.js +0 -2
  530. package/dist/trillion3d-chunk-HDA6WCOZ.js +0 -2
  531. package/dist/trillion3d-chunk-HTCY6CIU.js +0 -19
  532. package/dist/trillion3d-chunk-I2L32YAH.js +0 -10
  533. package/dist/trillion3d-chunk-I4HFBLVO.js +0 -2
  534. package/dist/trillion3d-chunk-I5PD2IYL.js +0 -2
  535. package/dist/trillion3d-chunk-I63LRS3P.js +0 -2
  536. package/dist/trillion3d-chunk-I7R4YZP2.js +0 -6
  537. package/dist/trillion3d-chunk-ICWUGQNV.js +0 -2
  538. package/dist/trillion3d-chunk-IGBD22JD.js +0 -155
  539. package/dist/trillion3d-chunk-IGH6C5NL.js +0 -2
  540. package/dist/trillion3d-chunk-IVAI2C6D.js +0 -2
  541. package/dist/trillion3d-chunk-IWBFD73G.js +0 -173
  542. package/dist/trillion3d-chunk-J2KR4G6F.js +0 -74
  543. package/dist/trillion3d-chunk-J2YDEAKO.js +0 -553
  544. package/dist/trillion3d-chunk-J5SMDUDO.js +0 -2
  545. package/dist/trillion3d-chunk-JCTPF4CK.js +0 -14
  546. package/dist/trillion3d-chunk-JFCEIZBH.js +0 -2
  547. package/dist/trillion3d-chunk-JH7I4RDZ.js +0 -25
  548. package/dist/trillion3d-chunk-JLJSXR5R.js +0 -2
  549. package/dist/trillion3d-chunk-JN2SWJKC.js +0 -178
  550. package/dist/trillion3d-chunk-JO55XZVA.js +0 -1615
  551. package/dist/trillion3d-chunk-JOPRGF7Z.js +0 -2
  552. package/dist/trillion3d-chunk-JQ2VUCTW.js +0 -2
  553. package/dist/trillion3d-chunk-JRLCX4ZB.js +0 -2
  554. package/dist/trillion3d-chunk-JRVTAQY2.js +0 -2
  555. package/dist/trillion3d-chunk-JVNGK4EV.js +0 -113
  556. package/dist/trillion3d-chunk-JXEBQPRX.js +0 -2
  557. package/dist/trillion3d-chunk-K3434KA7.js +0 -59
  558. package/dist/trillion3d-chunk-K364ZTPY.js +0 -27
  559. package/dist/trillion3d-chunk-K5D3PLUN.js +0 -2
  560. package/dist/trillion3d-chunk-KCXWBXK2.js +0 -2
  561. package/dist/trillion3d-chunk-KEIULYWY.js +0 -45
  562. package/dist/trillion3d-chunk-KEQDYXLL.js +0 -2
  563. package/dist/trillion3d-chunk-KITYCFGK.js +0 -2
  564. package/dist/trillion3d-chunk-KJXQTIKM.js +0 -2
  565. package/dist/trillion3d-chunk-KS3GXZPA.js +0 -184
  566. package/dist/trillion3d-chunk-KTGIIVAQ.js +0 -47
  567. package/dist/trillion3d-chunk-KU7R2CLN.js +0 -2
  568. package/dist/trillion3d-chunk-KWS6MEDX.js +0 -2
  569. package/dist/trillion3d-chunk-KYDPV56Z.js +0 -265
  570. package/dist/trillion3d-chunk-LB2MHAHM.js +0 -85
  571. package/dist/trillion3d-chunk-LE7PGKD4.js +0 -86
  572. package/dist/trillion3d-chunk-LHCO3J7M.js +0 -2
  573. package/dist/trillion3d-chunk-LHFBY6CF.js +0 -276
  574. package/dist/trillion3d-chunk-LHHZH3SV.js +0 -2
  575. package/dist/trillion3d-chunk-LV5NP2OD.js +0 -2
  576. package/dist/trillion3d-chunk-LZSYLDTU.js +0 -100
  577. package/dist/trillion3d-chunk-M2AYPZAT.js +0 -2
  578. package/dist/trillion3d-chunk-M2F7Q77E.js +0 -277
  579. package/dist/trillion3d-chunk-M63PPBDR.js +0 -2
  580. package/dist/trillion3d-chunk-MBN7REAP.js +0 -2
  581. package/dist/trillion3d-chunk-MCIY254D.js +0 -26
  582. package/dist/trillion3d-chunk-MEMYKAVP.js +0 -197
  583. package/dist/trillion3d-chunk-MH3RWDUK.js +0 -56
  584. package/dist/trillion3d-chunk-MLBX4WMV.js +0 -2
  585. package/dist/trillion3d-chunk-MQEVNNBK.js +0 -2
  586. package/dist/trillion3d-chunk-MUZUZS2F.js +0 -2
  587. package/dist/trillion3d-chunk-N45WPUNA.js +0 -2
  588. package/dist/trillion3d-chunk-N76JAZ32.js +0 -68
  589. package/dist/trillion3d-chunk-NFFLZRMN.js +0 -2
  590. package/dist/trillion3d-chunk-NH3GZRI7.js +0 -2
  591. package/dist/trillion3d-chunk-NH7JVT4M.js +0 -2
  592. package/dist/trillion3d-chunk-NJW7NEZW.js +0 -2
  593. package/dist/trillion3d-chunk-NQT36E2Z.js +0 -28
  594. package/dist/trillion3d-chunk-NUSOZ5NQ.js +0 -16
  595. package/dist/trillion3d-chunk-O3H5RZXC.js +0 -14
  596. package/dist/trillion3d-chunk-O3H5RZXC.js.map +0 -6
  597. package/dist/trillion3d-chunk-O3OYDVQH.js +0 -2
  598. package/dist/trillion3d-chunk-O6RA4K6A.js +0 -2
  599. package/dist/trillion3d-chunk-OG5M47HN.js +0 -6
  600. package/dist/trillion3d-chunk-OOOINENB.js +0 -2
  601. package/dist/trillion3d-chunk-OPFDHDV7.js +0 -2
  602. package/dist/trillion3d-chunk-OVVY7IKC.js +0 -2
  603. package/dist/trillion3d-chunk-OXKMBXZD.js +0 -2
  604. package/dist/trillion3d-chunk-P2RDFAA2.js +0 -1166
  605. package/dist/trillion3d-chunk-P4Q7TPID.js +0 -40
  606. package/dist/trillion3d-chunk-P74SV4JJ.js +0 -328
  607. package/dist/trillion3d-chunk-P75YOB5K.js +0 -27
  608. package/dist/trillion3d-chunk-PN2YD2PU.js +0 -27
  609. package/dist/trillion3d-chunk-POPUJ5RT.js +0 -4
  610. package/dist/trillion3d-chunk-PPUZR76B.js +0 -11
  611. package/dist/trillion3d-chunk-PQH6Z3ZK.js +0 -19
  612. package/dist/trillion3d-chunk-PSMSPY5U.js +0 -2
  613. package/dist/trillion3d-chunk-PU4JWKCC.js +0 -2
  614. package/dist/trillion3d-chunk-PUS6DQHP.js +0 -2
  615. package/dist/trillion3d-chunk-Q4XTYMSK.js +0 -2
  616. package/dist/trillion3d-chunk-QCE7DOXK.js +0 -21
  617. package/dist/trillion3d-chunk-QDNYR3XW.js +0 -2
  618. package/dist/trillion3d-chunk-QEJGU4DQ.js +0 -217
  619. package/dist/trillion3d-chunk-QFWHSCJS.js +0 -2
  620. package/dist/trillion3d-chunk-QGELETHW.js +0 -2
  621. package/dist/trillion3d-chunk-QHLP3RMM.js +0 -2
  622. package/dist/trillion3d-chunk-QJVAWFWA.js +0 -2
  623. package/dist/trillion3d-chunk-QLEZIRFO.js +0 -2
  624. package/dist/trillion3d-chunk-QNKA4ESA.js +0 -2
  625. package/dist/trillion3d-chunk-QOKJKCXP.js +0 -442
  626. package/dist/trillion3d-chunk-QPNQ6MAU.js +0 -35
  627. package/dist/trillion3d-chunk-QW7R4JSU.js +0 -6
  628. package/dist/trillion3d-chunk-QWRJTGQA.js +0 -4
  629. package/dist/trillion3d-chunk-QZURF55R.js +0 -2
  630. package/dist/trillion3d-chunk-R3HHRSA5.js +0 -82
  631. package/dist/trillion3d-chunk-RB22IHFT.js +0 -27
  632. package/dist/trillion3d-chunk-RUOI3D3D.js +0 -2
  633. package/dist/trillion3d-chunk-S25VCORA.js +0 -2
  634. package/dist/trillion3d-chunk-S2JLIIRM.js +0 -10
  635. package/dist/trillion3d-chunk-S47ADXWU.js +0 -30
  636. package/dist/trillion3d-chunk-S4NKU3YU.js +0 -14
  637. package/dist/trillion3d-chunk-S4P42ZHN.js +0 -2
  638. package/dist/trillion3d-chunk-SAYEA3NT.js +0 -2
  639. package/dist/trillion3d-chunk-SCJINCDV.js +0 -2
  640. package/dist/trillion3d-chunk-SG3C5SMX.js +0 -2
  641. package/dist/trillion3d-chunk-SIPUEAJ5.js +0 -266
  642. package/dist/trillion3d-chunk-SKH3XZ4Q.js +0 -2
  643. package/dist/trillion3d-chunk-SLLV2LYS.js +0 -2
  644. package/dist/trillion3d-chunk-SM64HJZI.js +0 -2
  645. package/dist/trillion3d-chunk-SYQOPTR2.js +0 -165
  646. package/dist/trillion3d-chunk-T43PRG7O.js +0 -2
  647. package/dist/trillion3d-chunk-TI3PM7XW.js +0 -2
  648. package/dist/trillion3d-chunk-TLVZXCTJ.js +0 -2537
  649. package/dist/trillion3d-chunk-TWFQBYBV.js +0 -14
  650. package/dist/trillion3d-chunk-TZ3XBBRE.js +0 -12
  651. package/dist/trillion3d-chunk-U3CLZW3E.js +0 -2
  652. package/dist/trillion3d-chunk-U4EL7JGK.js +0 -2
  653. package/dist/trillion3d-chunk-UBMIQXK3.js +0 -2
  654. package/dist/trillion3d-chunk-UBW2ZWPI.js +0 -26
  655. package/dist/trillion3d-chunk-UCGD7DGZ.js +0 -2
  656. package/dist/trillion3d-chunk-UH663TJS.js +0 -125
  657. package/dist/trillion3d-chunk-UHWPSNJD.js +0 -177
  658. package/dist/trillion3d-chunk-UL2YJ52J.js +0 -2
  659. package/dist/trillion3d-chunk-UPJHDFQP.js +0 -2
  660. package/dist/trillion3d-chunk-UR2BLLWY.js +0 -2
  661. package/dist/trillion3d-chunk-URIYQIA6.js +0 -116
  662. package/dist/trillion3d-chunk-URXU62XN.js +0 -2
  663. package/dist/trillion3d-chunk-UTTH7HS7.js +0 -2
  664. package/dist/trillion3d-chunk-UX44ZL4D.js +0 -2
  665. package/dist/trillion3d-chunk-UXRH76J5.js +0 -17
  666. package/dist/trillion3d-chunk-V2BAFU66.js +0 -2
  667. package/dist/trillion3d-chunk-V4M3HNJD.js +0 -318
  668. package/dist/trillion3d-chunk-V6HD2TKX.js +0 -2
  669. package/dist/trillion3d-chunk-V6VZ5QXG.js +0 -2
  670. package/dist/trillion3d-chunk-VCIRYPE7.js +0 -2
  671. package/dist/trillion3d-chunk-VGIJRZO5.js +0 -400
  672. package/dist/trillion3d-chunk-VQ7DWMHP.js +0 -2
  673. package/dist/trillion3d-chunk-VYQB6KF6.js +0 -2
  674. package/dist/trillion3d-chunk-W42TUOJC.js +0 -285
  675. package/dist/trillion3d-chunk-W4SMNFPI.js +0 -2
  676. package/dist/trillion3d-chunk-WFPJ35TV.js +0 -2
  677. package/dist/trillion3d-chunk-WJBLDQVZ.js +0 -19
  678. package/dist/trillion3d-chunk-WLOE6LQT.js +0 -42
  679. package/dist/trillion3d-chunk-WMW4G2T3.js +0 -12
  680. package/dist/trillion3d-chunk-WOE7ECLG.js +0 -172
  681. package/dist/trillion3d-chunk-WPZHDV22.js +0 -6
  682. package/dist/trillion3d-chunk-WUZB5LTJ.js +0 -50
  683. package/dist/trillion3d-chunk-X2FMWMUT.js +0 -988
  684. package/dist/trillion3d-chunk-XAWENX7C.js +0 -81
  685. package/dist/trillion3d-chunk-XHUSYLI3.js +0 -2
  686. package/dist/trillion3d-chunk-XI6O5F6V.js +0 -11
  687. package/dist/trillion3d-chunk-XM5IBOQ3.js +0 -2
  688. package/dist/trillion3d-chunk-XS7FCVOV.js +0 -2
  689. package/dist/trillion3d-chunk-XUD7A3GH.js +0 -2
  690. package/dist/trillion3d-chunk-XXCX4QIN.js +0 -377
  691. package/dist/trillion3d-chunk-XYMF73ZW.js +0 -107
  692. package/dist/trillion3d-chunk-XYP27BGE.js +0 -2
  693. package/dist/trillion3d-chunk-Y2DWPDRM.js +0 -5
  694. package/dist/trillion3d-chunk-Y322OCAR.js +0 -2
  695. package/dist/trillion3d-chunk-Y3SDC6TY.js +0 -2
  696. package/dist/trillion3d-chunk-Y42MTEVG.js +0 -2
  697. package/dist/trillion3d-chunk-Y4MIWQBS.js +0 -2
  698. package/dist/trillion3d-chunk-YI2MFQEG.js +0 -2
  699. package/dist/trillion3d-chunk-YIE3H5JS.js +0 -411
  700. package/dist/trillion3d-chunk-YON3TSAG.js +0 -4
  701. package/dist/trillion3d-chunk-YQC77N7M.js +0 -2
  702. package/dist/trillion3d-chunk-YTL2XIXN.js +0 -2
  703. package/dist/trillion3d-chunk-YWUEHJ6S.js +0 -2
  704. package/dist/trillion3d-chunk-YZARCC7T.js +0 -91
  705. package/dist/trillion3d-chunk-Z6ISTRN2.js +0 -2
  706. package/dist/trillion3d-chunk-ZDT7Z7AV.js +0 -2
  707. package/dist/trillion3d-chunk-ZFEJXND5.js +0 -9
  708. package/dist/trillion3d-chunk-ZGWEZTGI.js +0 -2
  709. package/dist/trillion3d-chunk-ZHRUP5WY.js +0 -2
  710. package/dist/trillion3d-chunk-ZHV4B2CP.js +0 -2
  711. package/dist/trillion3d-chunk-ZKTXPZUU.js +0 -2
  712. package/dist/trillion3d-chunk-ZM6OWZBZ.js +0 -1505
  713. package/dist/trillion3d-chunk-ZNNO6SDC.js +0 -2
  714. package/dist/trillion3d-chunk-ZSKD2IX5.js +0 -2
  715. package/dist/trillion3d-chunk-ZSTYK7WY.js +0 -2
  716. package/dist/trillion3d-chunk-ZTNOBS5G.js +0 -13
  717. package/dist/trillion3d-chunk-ZTYP3T5T.js +0 -2
  718. package/dist/trillion3d-chunk-ZUU5E7FO.js +0 -2
  719. package/dist/trillion3d-chunk-ZVO6IOK3.js +0 -22
  720. package/dist/trillion3d-chunk-ZWZTGI5M.js +0 -113
  721. package/dist/trillion3d-chunk-ZXF6BEYU.js +0 -242
  722. package/dist/trillion3d-chunk-ZXGUNSUQ.js +0 -2
  723. package/dist/trillion3d-cinematicsCode-5UPGQFVV.js +0 -2
  724. package/dist/trillion3d-cubeCapturesCode-LCBK47X5.js +0 -77
  725. package/dist/trillion3d-debugViewsCode-7GJW7RDI.js +0 -973
  726. package/dist/trillion3d-decalCode-ID2FWTA7.js +0 -79
  727. package/dist/trillion3d-deformationCode-PIIEMRNF.js +0 -235
  728. package/dist/trillion3d-displacementCode-ZMPJRUDW.js +0 -659
  729. package/dist/trillion3d-effectCode-J22OGAGG.js +0 -1874
  730. package/dist/trillion3d-explorer-JTT6UBU6.js +0 -2
  731. package/dist/trillion3d-export-H3WTWO2M.js +0 -2
  732. package/dist/trillion3d-family-IM6JIBGG.js +0 -280
  733. package/dist/trillion3d-fieldsCode-QD2TBZOM.js +0 -2
  734. package/dist/trillion3d-fogCode-PNHAG2DD.js +0 -582
  735. package/dist/trillion3d-geometryPage-3J5Q2EZN.js +0 -2
  736. package/dist/trillion3d-graphCode-DWZUBHZQ.js +0 -2
  737. package/dist/trillion3d-graphCode-HGVQ47X4.js +0 -2
  738. package/dist/trillion3d-grassCode-HASCTGFB.js +0 -2
  739. package/dist/trillion3d-guideCode-XKNU3UOB.js +0 -47
  740. package/dist/trillion3d-hairCode-VUMV4M33.js +0 -3215
  741. package/dist/trillion3d-hardwareBenchmark-H2SLAEER.js +0 -132
  742. package/dist/trillion3d-headlessCode-3KBNVKND.js +0 -2
  743. package/dist/trillion3d-iesCode-GVJDBPQY.js +0 -2
  744. package/dist/trillion3d-indicator-VCCCRO7K.js +0 -22
  745. package/dist/trillion3d-installCode-GDJ6EA73.js +0 -426
  746. package/dist/trillion3d-manifestLoad-Y2XKGXCD.js +0 -2
  747. package/dist/trillion3d-markCode-VYWQBD3K.js +0 -164
  748. package/dist/trillion3d-measurementCode-FGD5D2RI.js +0 -2
  749. package/dist/trillion3d-measurementCode-FGD5D2RI.js.map +0 -6
  750. package/dist/trillion3d-modelArrivalCode-ENI7UWDQ.js +0 -2
  751. package/dist/trillion3d-modelCapture-BMLNM2DT.js +0 -2
  752. package/dist/trillion3d-modelCopiesCode-7JYQXGVF.js +0 -2
  753. package/dist/trillion3d-modelImagesCode-C3O4XMTN.js +0 -2
  754. package/dist/trillion3d-pageAudioCode-JV4TWD5B.js +0 -2
  755. package/dist/trillion3d-pageCompile-YNZYXLLY.js +0 -34
  756. package/dist/trillion3d-panel-RYDJZQFJ.js +0 -79
  757. package/dist/trillion3d-particleCode-244NV3QC.js +0 -574
  758. package/dist/trillion3d-partitionCode-LJW6NXJO.js +0 -2
  759. package/dist/trillion3d-pathTracingCode-PY4YXX2K.js +0 -3333
  760. package/dist/trillion3d-planarReflectionsCode-3HPS33JS.js +0 -96
  761. package/dist/trillion3d-previewRun-MYYO5L7K.js +0 -33
  762. package/dist/trillion3d-ragdollCode-Q2F4YXCT.js +0 -2
  763. package/dist/trillion3d-ragdollStage-673NKNJC.js +0 -2
  764. package/dist/trillion3d-read-KTRGUDEK.js +0 -2
  765. package/dist/trillion3d-reflectionsCode-EYZ2I2RG.js +0 -2128
  766. package/dist/trillion3d-sampledLightsCode-44YPQANZ.js +0 -1795
  767. package/dist/trillion3d-scene-VDR67XPZ.js +0 -2
  768. package/dist/trillion3d-session-V5UGVDGM.js +0 -2
  769. package/dist/trillion3d-shadowsCode-IGFSPJZS.js +0 -3667
  770. package/dist/trillion3d-skyCode-VIAPJ6TS.js +0 -2212
  771. package/dist/trillion3d-sortedTranslucencyCode-ENOIPRNP.js +0 -181
  772. package/dist/trillion3d-splineMeshCode-X6CFRALJ.js +0 -2
  773. package/dist/trillion3d-subsurfaceCode-L36SYFNH.js +0 -732
  774. package/dist/trillion3d-surfaceCode-J3JUDHSC.js +0 -2
  775. package/dist/trillion3d-terrainCode-BHCQQRET.js +0 -2
  776. package/dist/trillion3d-transformCode-74Z7PQYM.js +0 -2
  777. package/dist/trillion3d-translucentLightVolumeCode-3HU4TBPQ.js +0 -195
  778. package/dist/trillion3d-viewCode-IXEIJJWS.js +0 -18
  779. package/dist/trillion3d-volumesCode-RDBBXG3U.js +0 -2334
  780. package/dist/trillion3d-waterCode-3ZRB2JP7.js +0 -102
  781. package/dist/trillion3d-webgpuCode-BQTJL2EM.js +0 -1646
  782. package/dist/trillion3d-workCode-V42SMDJA.js +0 -2
  783. package/dist/trillion3d-worldRootPages-3SFAHS63.js +0 -2
  784. /package/dist/{trillion3d-aoCode-T2V54NAO.js.map → trillion3d-aoCode-2JTKFXZ5.js.map} +0 -0
  785. /package/dist/{trillion3d-assemblies-3DUP5X66.js.map → trillion3d-assemblies-BENCUAG3.js.map} +0 -0
  786. /package/dist/{trillion3d-audioCode-53XT65XV.js.map → trillion3d-audioCode-M3I6FF7A.js.map} +0 -0
  787. /package/dist/{trillion3d-autoExposureCode-B5KISRSD.js.map → trillion3d-autoExposureCode-AQ3IV5LH.js.map} +0 -0
  788. /package/dist/{trillion3d-avatarCode-AZDPGA73.js.map → trillion3d-avatarCode-RTIDGTIA.js.map} +0 -0
  789. /package/dist/{trillion3d-bounceCode-AZC4HMJI.js.map → trillion3d-bounceCode-GEAWSI3A.js.map} +0 -0
  790. /package/dist/{trillion3d-catalogueCode-ZAOFZQLB.js.map → trillion3d-catalogueCode-KZ3X7U7G.js.map} +0 -0
  791. /package/dist/{trillion3d-chunk-URIYQIA6.js.map → trillion3d-chunk-22KA6FS4.js.map} +0 -0
  792. /package/dist/{trillion3d-chunk-UHWPSNJD.js.map → trillion3d-chunk-25B7I4D5.js.map} +0 -0
  793. /package/dist/{trillion3d-chunk-2JCF4HLE.js.map → trillion3d-chunk-2D7RBB5X.js.map} +0 -0
  794. /package/dist/{trillion3d-chunk-6VPPLI5X.js.map → trillion3d-chunk-2EJ4CRNA.js.map} +0 -0
  795. /package/dist/{trillion3d-chunk-5Q666YQV.js.map → trillion3d-chunk-2PKPG2QJ.js.map} +0 -0
  796. /package/dist/{trillion3d-chunk-AZHGOCPF.js.map → trillion3d-chunk-2YXWLU7F.js.map} +0 -0
  797. /package/dist/{trillion3d-chunk-WMW4G2T3.js.map → trillion3d-chunk-2ZIQ3EEG.js.map} +0 -0
  798. /package/dist/{trillion3d-chunk-ZWZTGI5M.js.map → trillion3d-chunk-33J4ZHIV.js.map} +0 -0
  799. /package/dist/{trillion3d-chunk-3HE5HBCK.js.map → trillion3d-chunk-3CTKK6Y4.js.map} +0 -0
  800. /package/dist/{trillion3d-chunk-5O2GDLHX.js.map → trillion3d-chunk-3F65K5TK.js.map} +0 -0
  801. /package/dist/{trillion3d-chunk-BS3H5DRX.js.map → trillion3d-chunk-3IRHFCKO.js.map} +0 -0
  802. /package/dist/{trillion3d-chunk-QNKA4ESA.js.map → trillion3d-chunk-3OWQBLPF.js.map} +0 -0
  803. /package/dist/{trillion3d-chunk-3H2OZEPR.js.map → trillion3d-chunk-3QKVCESS.js.map} +0 -0
  804. /package/dist/{trillion3d-chunk-MH3RWDUK.js.map → trillion3d-chunk-3TG7TWTW.js.map} +0 -0
  805. /package/dist/{trillion3d-chunk-YZARCC7T.js.map → trillion3d-chunk-3UAK2IRC.js.map} +0 -0
  806. /package/dist/{trillion3d-chunk-QWRJTGQA.js.map → trillion3d-chunk-3VO6VVHD.js.map} +0 -0
  807. /package/dist/{trillion3d-chunk-YON3TSAG.js.map → trillion3d-chunk-3W3YJ4KI.js.map} +0 -0
  808. /package/dist/{trillion3d-chunk-I4HFBLVO.js.map → trillion3d-chunk-3XBFYA3P.js.map} +0 -0
  809. /package/dist/{trillion3d-chunk-QJVAWFWA.js.map → trillion3d-chunk-435NEAXB.js.map} +0 -0
  810. /package/dist/{trillion3d-chunk-E4N7LNGP.js.map → trillion3d-chunk-4JYI3X5D.js.map} +0 -0
  811. /package/dist/{trillion3d-chunk-SG3C5SMX.js.map → trillion3d-chunk-4KEDPBE4.js.map} +0 -0
  812. /package/dist/{trillion3d-chunk-UBW2ZWPI.js.map → trillion3d-chunk-4KWKWEQL.js.map} +0 -0
  813. /package/dist/{trillion3d-chunk-BGNYLCJW.js.map → trillion3d-chunk-4Z6VA66T.js.map} +0 -0
  814. /package/dist/{trillion3d-chunk-GJAAOF62.js.map → trillion3d-chunk-5243PXB7.js.map} +0 -0
  815. /package/dist/{trillion3d-chunk-VQ7DWMHP.js.map → trillion3d-chunk-53CFT7G7.js.map} +0 -0
  816. /package/dist/{trillion3d-chunk-NUSOZ5NQ.js.map → trillion3d-chunk-53QFLAA3.js.map} +0 -0
  817. /package/dist/{trillion3d-chunk-I5PD2IYL.js.map → trillion3d-chunk-56N6ZOBE.js.map} +0 -0
  818. /package/dist/{trillion3d-chunk-UXRH76J5.js.map → trillion3d-chunk-5E744XXD.js.map} +0 -0
  819. /package/dist/{trillion3d-chunk-NJW7NEZW.js.map → trillion3d-chunk-5KEW2ZOY.js.map} +0 -0
  820. /package/dist/{trillion3d-chunk-KCXWBXK2.js.map → trillion3d-chunk-5ORGGJA5.js.map} +0 -0
  821. /package/dist/{trillion3d-chunk-XS7FCVOV.js.map → trillion3d-chunk-5RMOZCQA.js.map} +0 -0
  822. /package/dist/{trillion3d-chunk-AA2V3CRQ.js.map → trillion3d-chunk-5SJT7EQ3.js.map} +0 -0
  823. /package/dist/{trillion3d-chunk-B3ECL3UB.js.map → trillion3d-chunk-5TTX63XG.js.map} +0 -0
  824. /package/dist/{trillion3d-chunk-4KXFERR4.js.map → trillion3d-chunk-5WEWDH7F.js.map} +0 -0
  825. /package/dist/{trillion3d-chunk-P74SV4JJ.js.map → trillion3d-chunk-64WTBYW5.js.map} +0 -0
  826. /package/dist/{trillion3d-chunk-77T2WOXU.js.map → trillion3d-chunk-6I7I5ZYU.js.map} +0 -0
  827. /package/dist/{trillion3d-chunk-CBPJFYIU.js.map → trillion3d-chunk-6OYOGQUQ.js.map} +0 -0
  828. /package/dist/{trillion3d-chunk-GTJAMKXA.js.map → trillion3d-chunk-6PMAMKLI.js.map} +0 -0
  829. /package/dist/{trillion3d-chunk-UX44ZL4D.js.map → trillion3d-chunk-6S7S5WI5.js.map} +0 -0
  830. /package/dist/{trillion3d-chunk-OOOINENB.js.map → trillion3d-chunk-6UP3ZCNV.js.map} +0 -0
  831. /package/dist/{trillion3d-chunk-46P46SRG.js.map → trillion3d-chunk-6WOJ6TQD.js.map} +0 -0
  832. /package/dist/{trillion3d-chunk-LE7PGKD4.js.map → trillion3d-chunk-6WS2EEBU.js.map} +0 -0
  833. /package/dist/{trillion3d-chunk-N76JAZ32.js.map → trillion3d-chunk-6WUY2OOX.js.map} +0 -0
  834. /package/dist/{trillion3d-chunk-KITYCFGK.js.map → trillion3d-chunk-72FCWPUJ.js.map} +0 -0
  835. /package/dist/{trillion3d-chunk-FLJAAUWJ.js.map → trillion3d-chunk-72IAEP44.js.map} +0 -0
  836. /package/dist/{trillion3d-chunk-O3OYDVQH.js.map → trillion3d-chunk-77FPYTBQ.js.map} +0 -0
  837. /package/dist/{trillion3d-chunk-SAYEA3NT.js.map → trillion3d-chunk-7AQANLZ3.js.map} +0 -0
  838. /package/dist/{trillion3d-chunk-K364ZTPY.js.map → trillion3d-chunk-7ATTJ3AJ.js.map} +0 -0
  839. /package/dist/{trillion3d-chunk-5ASFLMJ6.js.map → trillion3d-chunk-7G4WOX6B.js.map} +0 -0
  840. /package/dist/{trillion3d-chunk-PU4JWKCC.js.map → trillion3d-chunk-7LIWCQGR.js.map} +0 -0
  841. /package/dist/{trillion3d-chunk-IGBD22JD.js.map → trillion3d-chunk-7N3FUKOD.js.map} +0 -0
  842. /package/dist/{trillion3d-chunk-ETCQFZ4S.js.map → trillion3d-chunk-7QFOJHAZ.js.map} +0 -0
  843. /package/dist/{trillion3d-chunk-XAWENX7C.js.map → trillion3d-chunk-7TIVZUM6.js.map} +0 -0
  844. /package/dist/{trillion3d-chunk-UL2YJ52J.js.map → trillion3d-chunk-7U7CHALH.js.map} +0 -0
  845. /package/dist/{trillion3d-chunk-KU7R2CLN.js.map → trillion3d-chunk-7UXM26LW.js.map} +0 -0
  846. /package/dist/{trillion3d-chunk-XUD7A3GH.js.map → trillion3d-chunk-7VTYT5MF.js.map} +0 -0
  847. /package/dist/{trillion3d-chunk-FYTCEF3P.js.map → trillion3d-chunk-A4ULELL5.js.map} +0 -0
  848. /package/dist/{trillion3d-chunk-7NZTUQYT.js.map → trillion3d-chunk-ADMXPAEH.js.map} +0 -0
  849. /package/dist/{trillion3d-chunk-ZFEJXND5.js.map → trillion3d-chunk-AFRFQ25D.js.map} +0 -0
  850. /package/dist/{trillion3d-chunk-G6HYU5QH.js.map → trillion3d-chunk-AIB6NXH4.js.map} +0 -0
  851. /package/dist/{trillion3d-chunk-DZ5A6N23.js.map → trillion3d-chunk-AIQAWNNP.js.map} +0 -0
  852. /package/dist/{trillion3d-chunk-XI6O5F6V.js.map → trillion3d-chunk-AMJ6I7P4.js.map} +0 -0
  853. /package/dist/{trillion3d-chunk-ZNNO6SDC.js.map → trillion3d-chunk-AQAJMS5A.js.map} +0 -0
  854. /package/dist/{trillion3d-chunk-SYQOPTR2.js.map → trillion3d-chunk-ARDABN2G.js.map} +0 -0
  855. /package/dist/{trillion3d-chunk-5HWOHERQ.js.map → trillion3d-chunk-B3QB55EK.js.map} +0 -0
  856. /package/dist/{trillion3d-chunk-AYJO3NNO.js.map → trillion3d-chunk-B5NXEPES.js.map} +0 -0
  857. /package/dist/{trillion3d-chunk-36VHFR62.js.map → trillion3d-chunk-BARQSI5Q.js.map} +0 -0
  858. /package/dist/{trillion3d-chunk-ESO5KVG2.js.map → trillion3d-chunk-BCYA7LWA.js.map} +0 -0
  859. /package/dist/{trillion3d-chunk-3HPFLXCF.js.map → trillion3d-chunk-BIBJMHIN.js.map} +0 -0
  860. /package/dist/{trillion3d-chunk-H5B36GHI.js.map → trillion3d-chunk-BIGALHRE.js.map} +0 -0
  861. /package/dist/{trillion3d-chunk-QW7R4JSU.js.map → trillion3d-chunk-BKON7HDQ.js.map} +0 -0
  862. /package/dist/{trillion3d-chunk-IGH6C5NL.js.map → trillion3d-chunk-BRHXHYWB.js.map} +0 -0
  863. /package/dist/{trillion3d-chunk-JXEBQPRX.js.map → trillion3d-chunk-BVXHXONN.js.map} +0 -0
  864. /package/dist/{trillion3d-chunk-POPUJ5RT.js.map → trillion3d-chunk-BWPZMIFY.js.map} +0 -0
  865. /package/dist/{trillion3d-chunk-CPLMDH47.js.map → trillion3d-chunk-C2WWWTMZ.js.map} +0 -0
  866. /package/dist/{trillion3d-chunk-ZDT7Z7AV.js.map → trillion3d-chunk-C7DCG2NV.js.map} +0 -0
  867. /package/dist/{trillion3d-chunk-IVAI2C6D.js.map → trillion3d-chunk-CCZJZMRJ.js.map} +0 -0
  868. /package/dist/{trillion3d-chunk-ADUR3TJH.js.map → trillion3d-chunk-CFIW2PLU.js.map} +0 -0
  869. /package/dist/{trillion3d-chunk-WPZHDV22.js.map → trillion3d-chunk-CH3UKBVF.js.map} +0 -0
  870. /package/dist/{trillion3d-chunk-OG5M47HN.js.map → trillion3d-chunk-COAMUWUG.js.map} +0 -0
  871. /package/dist/{trillion3d-chunk-Q4XTYMSK.js.map → trillion3d-chunk-CS3EWLHS.js.map} +0 -0
  872. /package/dist/{trillion3d-chunk-WLOE6LQT.js.map → trillion3d-chunk-CS6MYZM7.js.map} +0 -0
  873. /package/dist/{trillion3d-chunk-KEQDYXLL.js.map → trillion3d-chunk-CSVCHCKI.js.map} +0 -0
  874. /package/dist/{trillion3d-chunk-JO55XZVA.js.map → trillion3d-chunk-CYW43B6C.js.map} +0 -0
  875. /package/dist/{trillion3d-chunk-NH3GZRI7.js.map → trillion3d-chunk-D2UJO22L.js.map} +0 -0
  876. /package/dist/{trillion3d-chunk-Y3SDC6TY.js.map → trillion3d-chunk-D5LNZFJU.js.map} +0 -0
  877. /package/dist/{trillion3d-chunk-QEJGU4DQ.js.map → trillion3d-chunk-DJIWKT4L.js.map} +0 -0
  878. /package/dist/{trillion3d-chunk-XM5IBOQ3.js.map → trillion3d-chunk-DNAAW2B5.js.map} +0 -0
  879. /package/dist/{trillion3d-chunk-SM64HJZI.js.map → trillion3d-chunk-DOXBXQJU.js.map} +0 -0
  880. /package/dist/{trillion3d-chunk-2PBJSBLO.js.map → trillion3d-chunk-DQVEKWHY.js.map} +0 -0
  881. /package/dist/{trillion3d-chunk-AA6W2SUV.js.map → trillion3d-chunk-DQYIKRAI.js.map} +0 -0
  882. /package/dist/{trillion3d-chunk-3BY2FPRS.js.map → trillion3d-chunk-DX5UNL5O.js.map} +0 -0
  883. /package/dist/{trillion3d-chunk-PQH6Z3ZK.js.map → trillion3d-chunk-EF6DURKO.js.map} +0 -0
  884. /package/dist/{trillion3d-chunk-2JAAFFQC.js.map → trillion3d-chunk-EKH44M5H.js.map} +0 -0
  885. /package/dist/{trillion3d-chunk-JRLCX4ZB.js.map → trillion3d-chunk-EKHMHUHO.js.map} +0 -0
  886. /package/dist/{trillion3d-chunk-CJHN7L75.js.map → trillion3d-chunk-EKMPAWJU.js.map} +0 -0
  887. /package/dist/{trillion3d-chunk-HDA6WCOZ.js.map → trillion3d-chunk-ELCIIOBC.js.map} +0 -0
  888. /package/dist/{trillion3d-chunk-JRVTAQY2.js.map → trillion3d-chunk-EME34J3O.js.map} +0 -0
  889. /package/dist/{trillion3d-chunk-FDP5PHNI.js.map → trillion3d-chunk-EMNL3VBH.js.map} +0 -0
  890. /package/dist/{trillion3d-chunk-PUS6DQHP.js.map → trillion3d-chunk-EOA6RIXX.js.map} +0 -0
  891. /package/dist/{trillion3d-chunk-ZSTYK7WY.js.map → trillion3d-chunk-ESEYMHSX.js.map} +0 -0
  892. /package/dist/{trillion3d-chunk-KJXQTIKM.js.map → trillion3d-chunk-EVWXSXV3.js.map} +0 -0
  893. /package/dist/{trillion3d-chunk-T43PRG7O.js.map → trillion3d-chunk-EW3266JI.js.map} +0 -0
  894. /package/dist/{trillion3d-chunk-2JM7B67K.js.map → trillion3d-chunk-F5ZFHT7O.js.map} +0 -0
  895. /package/dist/{trillion3d-chunk-YTL2XIXN.js.map → trillion3d-chunk-FBPHTYO3.js.map} +0 -0
  896. /package/dist/{trillion3d-chunk-EO2IHUHA.js.map → trillion3d-chunk-FCITXHHL.js.map} +0 -0
  897. /package/dist/{trillion3d-chunk-2OFUDJNU.js.map → trillion3d-chunk-FG4VFY2I.js.map} +0 -0
  898. /package/dist/{trillion3d-chunk-JN2SWJKC.js.map → trillion3d-chunk-FJ6PAVLE.js.map} +0 -0
  899. /package/dist/{trillion3d-chunk-UTTH7HS7.js.map → trillion3d-chunk-FNZKGTZC.js.map} +0 -0
  900. /package/dist/{trillion3d-chunk-AZ6SQT7V.js.map → trillion3d-chunk-FVKZE7SE.js.map} +0 -0
  901. /package/dist/{trillion3d-chunk-472QQ27C.js.map → trillion3d-chunk-FXEJM7VG.js.map} +0 -0
  902. /package/dist/{trillion3d-chunk-7QYR7QUU.js.map → trillion3d-chunk-FYXZW5DA.js.map} +0 -0
  903. /package/dist/{trillion3d-chunk-X2FMWMUT.js.map → trillion3d-chunk-G3DRTVHN.js.map} +0 -0
  904. /package/dist/{trillion3d-chunk-KYDPV56Z.js.map → trillion3d-chunk-G4AJOGQ7.js.map} +0 -0
  905. /package/dist/{trillion3d-chunk-5ROJIVV3.js.map → trillion3d-chunk-GEI5JB66.js.map} +0 -0
  906. /package/dist/{trillion3d-chunk-2VZIVK5U.js.map → trillion3d-chunk-GHFAPXBM.js.map} +0 -0
  907. /package/dist/{trillion3d-chunk-KS3GXZPA.js.map → trillion3d-chunk-GI2T6FOU.js.map} +0 -0
  908. /package/dist/{trillion3d-chunk-W4SMNFPI.js.map → trillion3d-chunk-GJZNN5UJ.js.map} +0 -0
  909. /package/dist/{trillion3d-chunk-PN2YD2PU.js.map → trillion3d-chunk-GK2DII6G.js.map} +0 -0
  910. /package/dist/{trillion3d-chunk-SLLV2LYS.js.map → trillion3d-chunk-GPVAVLAF.js.map} +0 -0
  911. /package/dist/{trillion3d-chunk-S25VCORA.js.map → trillion3d-chunk-GTR23Z5K.js.map} +0 -0
  912. /package/dist/{trillion3d-chunk-K3434KA7.js.map → trillion3d-chunk-GVOSTFBW.js.map} +0 -0
  913. /package/dist/{trillion3d-chunk-M63PPBDR.js.map → trillion3d-chunk-GYORYIF5.js.map} +0 -0
  914. /package/dist/{trillion3d-chunk-JLJSXR5R.js.map → trillion3d-chunk-H3DVML7I.js.map} +0 -0
  915. /package/dist/{trillion3d-chunk-F4TG7DXL.js.map → trillion3d-chunk-H7KLPWI5.js.map} +0 -0
  916. /package/dist/{trillion3d-chunk-WUZB5LTJ.js.map → trillion3d-chunk-H7LQGPKQ.js.map} +0 -0
  917. /package/dist/{trillion3d-chunk-I2L32YAH.js.map → trillion3d-chunk-HBJ6VZPO.js.map} +0 -0
  918. /package/dist/{trillion3d-chunk-HTCY6CIU.js.map → trillion3d-chunk-HBMBGWN2.js.map} +0 -0
  919. /package/dist/{trillion3d-chunk-7CSS2AWO.js.map → trillion3d-chunk-HBSLKLSZ.js.map} +0 -0
  920. /package/dist/{trillion3d-chunk-Y4MIWQBS.js.map → trillion3d-chunk-HCG3ESSV.js.map} +0 -0
  921. /package/dist/{trillion3d-chunk-YQC77N7M.js.map → trillion3d-chunk-HDQGK2TL.js.map} +0 -0
  922. /package/dist/{trillion3d-chunk-QPNQ6MAU.js.map → trillion3d-chunk-HRCLDXIF.js.map} +0 -0
  923. /package/dist/{trillion3d-chunk-2KRIKK4D.js.map → trillion3d-chunk-HRIARS44.js.map} +0 -0
  924. /package/dist/{trillion3d-chunk-GPKNAWFR.js.map → trillion3d-chunk-HV2YN5CF.js.map} +0 -0
  925. /package/dist/{trillion3d-chunk-I7R4YZP2.js.map → trillion3d-chunk-I5M3F6OY.js.map} +0 -0
  926. /package/dist/{trillion3d-chunk-ZTYP3T5T.js.map → trillion3d-chunk-I75EGJAB.js.map} +0 -0
  927. /package/dist/{trillion3d-chunk-UH663TJS.js.map → trillion3d-chunk-I7QRTDI7.js.map} +0 -0
  928. /package/dist/{trillion3d-chunk-K5D3PLUN.js.map → trillion3d-chunk-IAELZYJF.js.map} +0 -0
  929. /package/dist/{trillion3d-chunk-LHFBY6CF.js.map → trillion3d-chunk-ICJUDIVR.js.map} +0 -0
  930. /package/dist/{trillion3d-chunk-OPFDHDV7.js.map → trillion3d-chunk-IEYEFEDV.js.map} +0 -0
  931. /package/dist/{trillion3d-chunk-2HSBVYCY.js.map → trillion3d-chunk-IFLJYROA.js.map} +0 -0
  932. /package/dist/{trillion3d-chunk-74PQZHDK.js.map → trillion3d-chunk-IFZHDHIG.js.map} +0 -0
  933. /package/dist/{trillion3d-chunk-J2KR4G6F.js.map → trillion3d-chunk-IHNPAPHM.js.map} +0 -0
  934. /package/dist/{trillion3d-chunk-5GW525BI.js.map → trillion3d-chunk-IJJXMYSL.js.map} +0 -0
  935. /package/dist/{trillion3d-chunk-XHUSYLI3.js.map → trillion3d-chunk-IJMFDLYO.js.map} +0 -0
  936. /package/dist/{trillion3d-chunk-EIOQWCJW.js.map → trillion3d-chunk-INTWD5DJ.js.map} +0 -0
  937. /package/dist/{trillion3d-chunk-SCJINCDV.js.map → trillion3d-chunk-IWP6655A.js.map} +0 -0
  938. /package/dist/{trillion3d-chunk-42JJO5YV.js.map → trillion3d-chunk-IZTRWVNI.js.map} +0 -0
  939. /package/dist/{trillion3d-chunk-GXMTFTCW.js.map → trillion3d-chunk-J2BIHJ55.js.map} +0 -0
  940. /package/dist/{trillion3d-chunk-ECWU67MC.js.map → trillion3d-chunk-J3NX2PWF.js.map} +0 -0
  941. /package/dist/{trillion3d-chunk-KEIULYWY.js.map → trillion3d-chunk-J6G75W5Q.js.map} +0 -0
  942. /package/dist/{trillion3d-chunk-QDNYR3XW.js.map → trillion3d-chunk-J7ML34IT.js.map} +0 -0
  943. /package/dist/{trillion3d-chunk-F2BKXVDP.js.map → trillion3d-chunk-JD25N5D6.js.map} +0 -0
  944. /package/dist/{trillion3d-chunk-YI2MFQEG.js.map → trillion3d-chunk-JDIIZKDU.js.map} +0 -0
  945. /package/dist/{trillion3d-chunk-FJRD6RXY.js.map → trillion3d-chunk-JHRQF53B.js.map} +0 -0
  946. /package/dist/{trillion3d-chunk-S4P42ZHN.js.map → trillion3d-chunk-JPN76QOL.js.map} +0 -0
  947. /package/dist/{trillion3d-chunk-MUZUZS2F.js.map → trillion3d-chunk-JRCGXELE.js.map} +0 -0
  948. /package/dist/{trillion3d-chunk-QGELETHW.js.map → trillion3d-chunk-JXIMDH6A.js.map} +0 -0
  949. /package/dist/{trillion3d-chunk-P75YOB5K.js.map → trillion3d-chunk-K6R7UEQZ.js.map} +0 -0
  950. /package/dist/{trillion3d-chunk-LV5NP2OD.js.map → trillion3d-chunk-K72UANQN.js.map} +0 -0
  951. /package/dist/{trillion3d-chunk-BZAV5BK7.js.map → trillion3d-chunk-KKECIVIP.js.map} +0 -0
  952. /package/dist/{trillion3d-chunk-XYP27BGE.js.map → trillion3d-chunk-KLGN5XV3.js.map} +0 -0
  953. /package/dist/{trillion3d-chunk-I63LRS3P.js.map → trillion3d-chunk-KLIGAVUH.js.map} +0 -0
  954. /package/dist/{trillion3d-chunk-ZHRUP5WY.js.map → trillion3d-chunk-KLP7IBDS.js.map} +0 -0
  955. /package/dist/{trillion3d-chunk-W42TUOJC.js.map → trillion3d-chunk-KPFGILKK.js.map} +0 -0
  956. /package/dist/{trillion3d-chunk-G5MFUE5P.js.map → trillion3d-chunk-KR4PIU6F.js.map} +0 -0
  957. /package/dist/{trillion3d-chunk-D4DXAQPJ.js.map → trillion3d-chunk-KRV5VQCR.js.map} +0 -0
  958. /package/dist/{trillion3d-chunk-PSMSPY5U.js.map → trillion3d-chunk-KUJMOLHB.js.map} +0 -0
  959. /package/dist/{trillion3d-chunk-3EPZT7SR.js.map → trillion3d-chunk-KUKNVBWH.js.map} +0 -0
  960. /package/dist/{trillion3d-chunk-Y322OCAR.js.map → trillion3d-chunk-KXM3DYQH.js.map} +0 -0
  961. /package/dist/{trillion3d-chunk-2MVQXOFZ.js.map → trillion3d-chunk-L2F5RZRX.js.map} +0 -0
  962. /package/dist/{trillion3d-chunk-DUWMZGSW.js.map → trillion3d-chunk-L2FRHLXI.js.map} +0 -0
  963. /package/dist/{trillion3d-chunk-2TYAUOQ5.js.map → trillion3d-chunk-L3VCBYGD.js.map} +0 -0
  964. /package/dist/{trillion3d-chunk-MQEVNNBK.js.map → trillion3d-chunk-LAAPTFVW.js.map} +0 -0
  965. /package/dist/{trillion3d-chunk-2CZ6RWTW.js.map → trillion3d-chunk-LANLTCBQ.js.map} +0 -0
  966. /package/dist/{trillion3d-chunk-UCGD7DGZ.js.map → trillion3d-chunk-LE4HL44Z.js.map} +0 -0
  967. /package/dist/{trillion3d-chunk-7CGRPLOC.js.map → trillion3d-chunk-LEY2Q6DZ.js.map} +0 -0
  968. /package/dist/{trillion3d-chunk-SKH3XZ4Q.js.map → trillion3d-chunk-LMWJTQFR.js.map} +0 -0
  969. /package/dist/{trillion3d-chunk-VGIJRZO5.js.map → trillion3d-chunk-LQLIXMMD.js.map} +0 -0
  970. /package/dist/{trillion3d-chunk-Z6ISTRN2.js.map → trillion3d-chunk-LTWG3NOL.js.map} +0 -0
  971. /package/dist/{trillion3d-chunk-OXKMBXZD.js.map → trillion3d-chunk-M773YMP6.js.map} +0 -0
  972. /package/dist/{trillion3d-chunk-ZTNOBS5G.js.map → trillion3d-chunk-MAKYPLYF.js.map} +0 -0
  973. /package/dist/{trillion3d-chunk-5LQDA7UM.js.map → trillion3d-chunk-MCNOP7UR.js.map} +0 -0
  974. /package/dist/{trillion3d-chunk-GUWCZ2WR.js.map → trillion3d-chunk-MCSS3F6E.js.map} +0 -0
  975. /package/dist/{trillion3d-chunk-ZXGUNSUQ.js.map → trillion3d-chunk-MF4CAU3R.js.map} +0 -0
  976. /package/dist/{trillion3d-chunk-ZXF6BEYU.js.map → trillion3d-chunk-MJTRABFR.js.map} +0 -0
  977. /package/dist/{trillion3d-chunk-AU725OCC.js.map → trillion3d-chunk-MQBDHCB3.js.map} +0 -0
  978. /package/dist/{trillion3d-chunk-R3HHRSA5.js.map → trillion3d-chunk-MUMQYHCQ.js.map} +0 -0
  979. /package/dist/{trillion3d-chunk-P2RDFAA2.js.map → trillion3d-chunk-MXZGFCOM.js.map} +0 -0
  980. /package/dist/{trillion3d-chunk-J5SMDUDO.js.map → trillion3d-chunk-N33FXDXZ.js.map} +0 -0
  981. /package/dist/{trillion3d-chunk-LHHZH3SV.js.map → trillion3d-chunk-N7YEU2CT.js.map} +0 -0
  982. /package/dist/{trillion3d-chunk-BUP4DDEO.js.map → trillion3d-chunk-NB7XML37.js.map} +0 -0
  983. /package/dist/{trillion3d-chunk-5ONOJMSW.js.map → trillion3d-chunk-NBFOHDNN.js.map} +0 -0
  984. /package/dist/{trillion3d-chunk-CQESL7F5.js.map → trillion3d-chunk-NEVMYKGT.js.map} +0 -0
  985. /package/dist/{trillion3d-chunk-ICWUGQNV.js.map → trillion3d-chunk-NHC4DXYP.js.map} +0 -0
  986. /package/dist/{trillion3d-chunk-MEMYKAVP.js.map → trillion3d-chunk-NNF42O54.js.map} +0 -0
  987. /package/dist/{trillion3d-chunk-B3ATF6PP.js.map → trillion3d-chunk-NTHEHPA5.js.map} +0 -0
  988. /package/dist/{trillion3d-chunk-P4Q7TPID.js.map → trillion3d-chunk-NVYEQ3JS.js.map} +0 -0
  989. /package/dist/{trillion3d-chunk-BDWRLDJI.js.map → trillion3d-chunk-NZRMWUGY.js.map} +0 -0
  990. /package/dist/{trillion3d-chunk-Y2DWPDRM.js.map → trillion3d-chunk-OD3JBU6D.js.map} +0 -0
  991. /package/dist/{trillion3d-chunk-3GEQFGGV.js.map → trillion3d-chunk-OFCF3GAC.js.map} +0 -0
  992. /package/dist/{trillion3d-chunk-U3CLZW3E.js.map → trillion3d-chunk-OHFYUKAD.js.map} +0 -0
  993. /package/dist/{trillion3d-chunk-NFFLZRMN.js.map → trillion3d-chunk-OHTUNWUN.js.map} +0 -0
  994. /package/dist/{trillion3d-chunk-TLVZXCTJ.js.map → trillion3d-chunk-OLDTBAXR.js.map} +0 -0
  995. /package/dist/{trillion3d-chunk-XYMF73ZW.js.map → trillion3d-chunk-OYZFVYYH.js.map} +0 -0
  996. /package/dist/{trillion3d-chunk-ZUU5E7FO.js.map → trillion3d-chunk-P35JRX3H.js.map} +0 -0
  997. /package/dist/{trillion3d-chunk-HCXQHHY4.js.map → trillion3d-chunk-P3HTLS2O.js.map} +0 -0
  998. /package/dist/{trillion3d-chunk-XXCX4QIN.js.map → trillion3d-chunk-P7UZ7W2B.js.map} +0 -0
  999. /package/dist/{trillion3d-chunk-E5M5PMK3.js.map → trillion3d-chunk-PDWU4CCX.js.map} +0 -0
  1000. /package/dist/{trillion3d-chunk-EZ2JYRNP.js.map → trillion3d-chunk-PFMAOUBW.js.map} +0 -0
  1001. /package/dist/{trillion3d-chunk-M2F7Q77E.js.map → trillion3d-chunk-PHE5OKAE.js.map} +0 -0
  1002. /package/dist/{trillion3d-chunk-7F2KAZFC.js.map → trillion3d-chunk-PMF6JTVJ.js.map} +0 -0
  1003. /package/dist/{trillion3d-chunk-GXDVY3QD.js.map → trillion3d-chunk-PXYUWON5.js.map} +0 -0
  1004. /package/dist/{trillion3d-chunk-HBFRB6UY.js.map → trillion3d-chunk-PYVXDVAE.js.map} +0 -0
  1005. /package/dist/{trillion3d-chunk-EAHDFM7D.js.map → trillion3d-chunk-PZBXWJFT.js.map} +0 -0
  1006. /package/dist/{trillion3d-chunk-URXU62XN.js.map → trillion3d-chunk-Q2T4HBTW.js.map} +0 -0
  1007. /package/dist/{trillion3d-chunk-QFWHSCJS.js.map → trillion3d-chunk-QAHCZ4CN.js.map} +0 -0
  1008. /package/dist/{trillion3d-chunk-WFPJ35TV.js.map → trillion3d-chunk-QFIAXDBJ.js.map} +0 -0
  1009. /package/dist/{trillion3d-chunk-EU4OYQGR.js.map → trillion3d-chunk-QGHAYZR3.js.map} +0 -0
  1010. /package/dist/{trillion3d-chunk-MBN7REAP.js.map → trillion3d-chunk-QMREUFAO.js.map} +0 -0
  1011. /package/dist/{trillion3d-chunk-NH7JVT4M.js.map → trillion3d-chunk-QN7VBGUP.js.map} +0 -0
  1012. /package/dist/{trillion3d-chunk-V4M3HNJD.js.map → trillion3d-chunk-QVFWEZOK.js.map} +0 -0
  1013. /package/dist/{trillion3d-chunk-LZSYLDTU.js.map → trillion3d-chunk-QW5YCJAB.js.map} +0 -0
  1014. /package/dist/{trillion3d-chunk-UBMIQXK3.js.map → trillion3d-chunk-R2A7QWWZ.js.map} +0 -0
  1015. /package/dist/{trillion3d-chunk-V6HD2TKX.js.map → trillion3d-chunk-R4BXG67P.js.map} +0 -0
  1016. /package/dist/{trillion3d-chunk-5KHPSLRC.js.map → trillion3d-chunk-R56L2MST.js.map} +0 -0
  1017. /package/dist/{trillion3d-chunk-S2JLIIRM.js.map → trillion3d-chunk-RLDDQEQJ.js.map} +0 -0
  1018. /package/dist/{trillion3d-chunk-7IZI5OZK.js.map → trillion3d-chunk-RMFAMI5T.js.map} +0 -0
  1019. /package/dist/{trillion3d-chunk-WJBLDQVZ.js.map → trillion3d-chunk-ROHK5HT5.js.map} +0 -0
  1020. /package/dist/{trillion3d-chunk-YWUEHJ6S.js.map → trillion3d-chunk-RPMC2FKD.js.map} +0 -0
  1021. /package/dist/{trillion3d-chunk-JVNGK4EV.js.map → trillion3d-chunk-RTBXAMIZ.js.map} +0 -0
  1022. /package/dist/{trillion3d-chunk-EUCLXLYS.js.map → trillion3d-chunk-S2NA64OJ.js.map} +0 -0
  1023. /package/dist/{trillion3d-chunk-DA3S4LZH.js.map → trillion3d-chunk-SPIIJAMX.js.map} +0 -0
  1024. /package/dist/{trillion3d-chunk-MLBX4WMV.js.map → trillion3d-chunk-SSWVBSJZ.js.map} +0 -0
  1025. /package/dist/{trillion3d-chunk-AEW6BD4P.js.map → trillion3d-chunk-SUDBSFLJ.js.map} +0 -0
  1026. /package/dist/{trillion3d-chunk-VCIRYPE7.js.map → trillion3d-chunk-SUU45ZK7.js.map} +0 -0
  1027. /package/dist/{trillion3d-chunk-CMHKMP7M.js.map → trillion3d-chunk-TFNOURGL.js.map} +0 -0
  1028. /package/dist/{trillion3d-chunk-ZM6OWZBZ.js.map → trillion3d-chunk-TLIN2DEK.js.map} +0 -0
  1029. /package/dist/{trillion3d-chunk-7C5HNDEL.js.map → trillion3d-chunk-TLO4XKYG.js.map} +0 -0
  1030. /package/dist/{trillion3d-chunk-ZKTXPZUU.js.map → trillion3d-chunk-TVYIOVGI.js.map} +0 -0
  1031. /package/dist/{trillion3d-chunk-GOFFACVN.js.map → trillion3d-chunk-TY7RGAI4.js.map} +0 -0
  1032. /package/dist/{trillion3d-chunk-MCIY254D.js.map → trillion3d-chunk-UBSICE2S.js.map} +0 -0
  1033. /package/dist/{trillion3d-chunk-G4ZEQPJE.js.map → trillion3d-chunk-UCIL746V.js.map} +0 -0
  1034. /package/dist/{trillion3d-chunk-5VX27QFH.js.map → trillion3d-chunk-UGTFIP7T.js.map} +0 -0
  1035. /package/dist/{trillion3d-chunk-FBPR5PIL.js.map → trillion3d-chunk-UH2X4DC7.js.map} +0 -0
  1036. /package/dist/{trillion3d-chunk-KWS6MEDX.js.map → trillion3d-chunk-UL5AQCHN.js.map} +0 -0
  1037. /package/dist/{trillion3d-chunk-NQT36E2Z.js.map → trillion3d-chunk-UMAIYYSB.js.map} +0 -0
  1038. /package/dist/{trillion3d-chunk-CD7EZNRP.js.map → trillion3d-chunk-UROCVT3W.js.map} +0 -0
  1039. /package/dist/{trillion3d-chunk-ZHV4B2CP.js.map → trillion3d-chunk-US6WKM5M.js.map} +0 -0
  1040. /package/dist/{trillion3d-chunk-UPJHDFQP.js.map → trillion3d-chunk-UT5VM3B7.js.map} +0 -0
  1041. /package/dist/{trillion3d-chunk-VYQB6KF6.js.map → trillion3d-chunk-UXCQ7A3K.js.map} +0 -0
  1042. /package/dist/{trillion3d-chunk-QHLP3RMM.js.map → trillion3d-chunk-UXQKO5IH.js.map} +0 -0
  1043. /package/dist/{trillion3d-chunk-TZ3XBBRE.js.map → trillion3d-chunk-UXRWIFOC.js.map} +0 -0
  1044. /package/dist/{trillion3d-chunk-2BOYJZCQ.js.map → trillion3d-chunk-V44TZZB3.js.map} +0 -0
  1045. /package/dist/{trillion3d-chunk-DPXM3DHU.js.map → trillion3d-chunk-VFPDIIEP.js.map} +0 -0
  1046. /package/dist/{trillion3d-chunk-5GY24CJD.js.map → trillion3d-chunk-VL44QEQI.js.map} +0 -0
  1047. /package/dist/{trillion3d-chunk-J2YDEAKO.js.map → trillion3d-chunk-VP3GS2OQ.js.map} +0 -0
  1048. /package/dist/{trillion3d-chunk-WOE7ECLG.js.map → trillion3d-chunk-VWRK33DS.js.map} +0 -0
  1049. /package/dist/{trillion3d-chunk-E2VRYXCO.js.map → trillion3d-chunk-W2AGULE7.js.map} +0 -0
  1050. /package/dist/{trillion3d-chunk-JH7I4RDZ.js.map → trillion3d-chunk-W4L4ZLLZ.js.map} +0 -0
  1051. /package/dist/{trillion3d-chunk-742WGJYH.js.map → trillion3d-chunk-WAR4LFLB.js.map} +0 -0
  1052. /package/dist/{trillion3d-chunk-4BOD343S.js.map → trillion3d-chunk-WCVRKGQD.js.map} +0 -0
  1053. /package/dist/{trillion3d-chunk-AYCFHOHV.js.map → trillion3d-chunk-WEACAP55.js.map} +0 -0
  1054. /package/dist/{trillion3d-chunk-O6RA4K6A.js.map → trillion3d-chunk-WG6NZENK.js.map} +0 -0
  1055. /package/dist/{trillion3d-chunk-YIE3H5JS.js.map → trillion3d-chunk-WJ4XQVTQ.js.map} +0 -0
  1056. /package/dist/{trillion3d-chunk-JFCEIZBH.js.map → trillion3d-chunk-WR43FBB3.js.map} +0 -0
  1057. /package/dist/{trillion3d-chunk-CVJOTXK5.js.map → trillion3d-chunk-WXECWHZ5.js.map} +0 -0
  1058. /package/dist/{trillion3d-chunk-ZVO6IOK3.js.map → trillion3d-chunk-WYKIXSUS.js.map} +0 -0
  1059. /package/dist/{trillion3d-chunk-ZSKD2IX5.js.map → trillion3d-chunk-XBDQHYBL.js.map} +0 -0
  1060. /package/dist/{trillion3d-chunk-6VDAUYE6.js.map → trillion3d-chunk-XEPOPZZY.js.map} +0 -0
  1061. /package/dist/{trillion3d-chunk-5COTXELO.js.map → trillion3d-chunk-XEQBUJNB.js.map} +0 -0
  1062. /package/dist/{trillion3d-chunk-4JBRHV7G.js.map → trillion3d-chunk-XL4F65A7.js.map} +0 -0
  1063. /package/dist/{trillion3d-chunk-QLEZIRFO.js.map → trillion3d-chunk-XOAWZNRA.js.map} +0 -0
  1064. /package/dist/{trillion3d-chunk-S47ADXWU.js.map → trillion3d-chunk-XQHULSDL.js.map} +0 -0
  1065. /package/dist/{trillion3d-chunk-FPH3NDSE.js.map → trillion3d-chunk-XQSMKVTL.js.map} +0 -0
  1066. /package/dist/{trillion3d-chunk-OVVY7IKC.js.map → trillion3d-chunk-XQSU4SY6.js.map} +0 -0
  1067. /package/dist/{trillion3d-chunk-UR2BLLWY.js.map → trillion3d-chunk-XWJQJK22.js.map} +0 -0
  1068. /package/dist/{trillion3d-chunk-RUOI3D3D.js.map → trillion3d-chunk-XXOXGG47.js.map} +0 -0
  1069. /package/dist/{trillion3d-chunk-5B3ML3DL.js.map → trillion3d-chunk-XY7DNXWL.js.map} +0 -0
  1070. /package/dist/{trillion3d-chunk-7XEWHG3S.js.map → trillion3d-chunk-XYZRT3VR.js.map} +0 -0
  1071. /package/dist/{trillion3d-chunk-JOPRGF7Z.js.map → trillion3d-chunk-XZPUDNQA.js.map} +0 -0
  1072. /package/dist/{trillion3d-chunk-QZURF55R.js.map → trillion3d-chunk-Y2RAGKRM.js.map} +0 -0
  1073. /package/dist/{trillion3d-chunk-QOKJKCXP.js.map → trillion3d-chunk-YA4TWJRK.js.map} +0 -0
  1074. /package/dist/{trillion3d-chunk-2L52NUG7.js.map → trillion3d-chunk-YAFEYU2S.js.map} +0 -0
  1075. /package/dist/{trillion3d-chunk-ABKLIRWX.js.map → trillion3d-chunk-YBKRRMOT.js.map} +0 -0
  1076. /package/dist/{trillion3d-chunk-LB2MHAHM.js.map → trillion3d-chunk-YFSDLEIZ.js.map} +0 -0
  1077. /package/dist/{trillion3d-chunk-LHCO3J7M.js.map → trillion3d-chunk-YIUAOG6X.js.map} +0 -0
  1078. /package/dist/{trillion3d-chunk-PPUZR76B.js.map → trillion3d-chunk-YKZXAXMM.js.map} +0 -0
  1079. /package/dist/{trillion3d-chunk-U4EL7JGK.js.map → trillion3d-chunk-YMR3WF2W.js.map} +0 -0
  1080. /package/dist/{trillion3d-chunk-RB22IHFT.js.map → trillion3d-chunk-YNRZO4Y4.js.map} +0 -0
  1081. /package/dist/{trillion3d-chunk-SIPUEAJ5.js.map → trillion3d-chunk-YOXV4W6I.js.map} +0 -0
  1082. /package/dist/{trillion3d-chunk-V2BAFU66.js.map → trillion3d-chunk-YQT76FYC.js.map} +0 -0
  1083. /package/dist/{trillion3d-chunk-Y42MTEVG.js.map → trillion3d-chunk-YRPBW7AK.js.map} +0 -0
  1084. /package/dist/{trillion3d-chunk-M2AYPZAT.js.map → trillion3d-chunk-YULZ6QUZ.js.map} +0 -0
  1085. /package/dist/{trillion3d-chunk-N45WPUNA.js.map → trillion3d-chunk-YWWOBEV2.js.map} +0 -0
  1086. /package/dist/{trillion3d-chunk-EI2XZGZC.js.map → trillion3d-chunk-YYWNNHNI.js.map} +0 -0
  1087. /package/dist/{trillion3d-chunk-IWBFD73G.js.map → trillion3d-chunk-ZBIQ6S5Z.js.map} +0 -0
  1088. /package/dist/{trillion3d-chunk-ZGWEZTGI.js.map → trillion3d-chunk-ZBXTCONH.js.map} +0 -0
  1089. /package/dist/{trillion3d-chunk-TI3PM7XW.js.map → trillion3d-chunk-ZDNFJYCW.js.map} +0 -0
  1090. /package/dist/{trillion3d-chunk-6Y7TZO62.js.map → trillion3d-chunk-ZF5EDFJS.js.map} +0 -0
  1091. /package/dist/{trillion3d-chunk-QCE7DOXK.js.map → trillion3d-chunk-ZFAKVFKL.js.map} +0 -0
  1092. /package/dist/{trillion3d-chunk-V6VZ5QXG.js.map → trillion3d-chunk-ZIGGUJM6.js.map} +0 -0
  1093. /package/dist/{trillion3d-chunk-KTGIIVAQ.js.map → trillion3d-chunk-ZNJ4TNBW.js.map} +0 -0
  1094. /package/dist/{trillion3d-chunk-JQ2VUCTW.js.map → trillion3d-chunk-ZQPT2YFE.js.map} +0 -0
  1095. /package/dist/{trillion3d-chunk-JCTPF4CK.js.map → trillion3d-chunk-ZUFX2HVV.js.map} +0 -0
  1096. /package/dist/{trillion3d-chunk-S4NKU3YU.js.map → trillion3d-chunk-ZUQDRSYB.js.map} +0 -0
  1097. /package/dist/{trillion3d-chunk-TWFQBYBV.js.map → trillion3d-chunk-ZVSX6CGW.js.map} +0 -0
  1098. /package/dist/{trillion3d-chunk-5K6QSSBR.js.map → trillion3d-chunk-ZYS4E37Q.js.map} +0 -0
  1099. /package/dist/{trillion3d-chunk-5VVVL3GH.js.map → trillion3d-chunk-ZZWX6Q7H.js.map} +0 -0
  1100. /package/dist/{trillion3d-cinematicsCode-5UPGQFVV.js.map → trillion3d-cinematicsCode-2YP657C3.js.map} +0 -0
  1101. /package/dist/{trillion3d-cubeCapturesCode-LCBK47X5.js.map → trillion3d-cubeCapturesCode-BOLBDRJD.js.map} +0 -0
  1102. /package/dist/{trillion3d-debugViewsCode-7GJW7RDI.js.map → trillion3d-debugViewsCode-F4KTKXOZ.js.map} +0 -0
  1103. /package/dist/{trillion3d-decalCode-ID2FWTA7.js.map → trillion3d-decalCode-4OSGACRW.js.map} +0 -0
  1104. /package/dist/{trillion3d-deformationCode-PIIEMRNF.js.map → trillion3d-deformationCode-GJBRRE4B.js.map} +0 -0
  1105. /package/dist/{trillion3d-displacementCode-ZMPJRUDW.js.map → trillion3d-displacementCode-OS37YHNO.js.map} +0 -0
  1106. /package/dist/{trillion3d-effectCode-J22OGAGG.js.map → trillion3d-effectCode-CNDEXEFI.js.map} +0 -0
  1107. /package/dist/{trillion3d-explorer-JTT6UBU6.js.map → trillion3d-explorer-3SU2HTGD.js.map} +0 -0
  1108. /package/dist/{trillion3d-export-H3WTWO2M.js.map → trillion3d-export-3COKIWS6.js.map} +0 -0
  1109. /package/dist/{trillion3d-family-IM6JIBGG.js.map → trillion3d-family-YNJWVKWC.js.map} +0 -0
  1110. /package/dist/{trillion3d-fieldsCode-QD2TBZOM.js.map → trillion3d-fieldsCode-JQLVIT4H.js.map} +0 -0
  1111. /package/dist/{trillion3d-fogCode-PNHAG2DD.js.map → trillion3d-fogCode-PM5UY2TW.js.map} +0 -0
  1112. /package/dist/{trillion3d-geometryPage-3J5Q2EZN.js.map → trillion3d-geometryPage-DVJ4N2A6.js.map} +0 -0
  1113. /package/dist/{trillion3d-graphCode-DWZUBHZQ.js.map → trillion3d-graphCode-MCIPPACK.js.map} +0 -0
  1114. /package/dist/{trillion3d-graphCode-HGVQ47X4.js.map → trillion3d-graphCode-MOTJ4WBF.js.map} +0 -0
  1115. /package/dist/{trillion3d-grassCode-HASCTGFB.js.map → trillion3d-grassCode-J7CCF63J.js.map} +0 -0
  1116. /package/dist/{trillion3d-guideCode-XKNU3UOB.js.map → trillion3d-guideCode-ONWTGY2H.js.map} +0 -0
  1117. /package/dist/{trillion3d-hairCode-VUMV4M33.js.map → trillion3d-hairCode-PNWJMXWH.js.map} +0 -0
  1118. /package/dist/{trillion3d-hardwareBenchmark-H2SLAEER.js.map → trillion3d-hardwareBenchmark-JD2ITGNS.js.map} +0 -0
  1119. /package/dist/{trillion3d-headlessCode-3KBNVKND.js.map → trillion3d-headlessCode-JAXG4XPK.js.map} +0 -0
  1120. /package/dist/{trillion3d-iesCode-GVJDBPQY.js.map → trillion3d-iesCode-QVSRIT37.js.map} +0 -0
  1121. /package/dist/{trillion3d-indicator-VCCCRO7K.js.map → trillion3d-indicator-ZDOOX6EU.js.map} +0 -0
  1122. /package/dist/{trillion3d-installCode-GDJ6EA73.js.map → trillion3d-installCode-5NOFNOTZ.js.map} +0 -0
  1123. /package/dist/{trillion3d-manifestLoad-Y2XKGXCD.js.map → trillion3d-manifestLoad-TEO2A7XO.js.map} +0 -0
  1124. /package/dist/{trillion3d-markCode-VYWQBD3K.js.map → trillion3d-markCode-DD7RPZ2V.js.map} +0 -0
  1125. /package/dist/{trillion3d-modelArrivalCode-ENI7UWDQ.js.map → trillion3d-modelArrivalCode-AS2ZIO5I.js.map} +0 -0
  1126. /package/dist/{trillion3d-modelCapture-BMLNM2DT.js.map → trillion3d-modelCapture-OZNK2KHI.js.map} +0 -0
  1127. /package/dist/{trillion3d-modelCopiesCode-7JYQXGVF.js.map → trillion3d-modelCopiesCode-X7PCUUUT.js.map} +0 -0
  1128. /package/dist/{trillion3d-modelImagesCode-C3O4XMTN.js.map → trillion3d-modelImagesCode-7NZ3BIL5.js.map} +0 -0
  1129. /package/dist/{trillion3d-pageAudioCode-JV4TWD5B.js.map → trillion3d-pageAudioCode-PQWNFXNH.js.map} +0 -0
  1130. /package/dist/{trillion3d-pageCompile-YNZYXLLY.js.map → trillion3d-pageCompile-4KI5TP2J.js.map} +0 -0
  1131. /package/dist/{trillion3d-panel-RYDJZQFJ.js.map → trillion3d-panel-4BMTNA6N.js.map} +0 -0
  1132. /package/dist/{trillion3d-particleCode-244NV3QC.js.map → trillion3d-particleCode-X7RJYMM2.js.map} +0 -0
  1133. /package/dist/{trillion3d-partitionCode-LJW6NXJO.js.map → trillion3d-partitionCode-KNTGZUZG.js.map} +0 -0
  1134. /package/dist/{trillion3d-pathTracingCode-PY4YXX2K.js.map → trillion3d-pathTracingCode-IUDUNO7P.js.map} +0 -0
  1135. /package/dist/{trillion3d-planarReflectionsCode-3HPS33JS.js.map → trillion3d-planarReflectionsCode-22NVSPZ2.js.map} +0 -0
  1136. /package/dist/{trillion3d-previewRun-MYYO5L7K.js.map → trillion3d-previewRun-YOUFRKDJ.js.map} +0 -0
  1137. /package/dist/{trillion3d-ragdollCode-Q2F4YXCT.js.map → trillion3d-ragdollCode-XOZ7BBU4.js.map} +0 -0
  1138. /package/dist/{trillion3d-ragdollStage-673NKNJC.js.map → trillion3d-ragdollStage-EGRNR3QB.js.map} +0 -0
  1139. /package/dist/{trillion3d-read-KTRGUDEK.js.map → trillion3d-read-6L2UR4EJ.js.map} +0 -0
  1140. /package/dist/{trillion3d-reflectionsCode-EYZ2I2RG.js.map → trillion3d-reflectionsCode-3T6W62HT.js.map} +0 -0
  1141. /package/dist/{trillion3d-sampledLightsCode-44YPQANZ.js.map → trillion3d-sampledLightsCode-MSZ2YCSJ.js.map} +0 -0
  1142. /package/dist/{trillion3d-scene-VDR67XPZ.js.map → trillion3d-scene-3LL23MZI.js.map} +0 -0
  1143. /package/dist/{trillion3d-session-V5UGVDGM.js.map → trillion3d-session-S4GIQNV6.js.map} +0 -0
  1144. /package/dist/{trillion3d-shadowsCode-IGFSPJZS.js.map → trillion3d-shadowsCode-UZNPLVCV.js.map} +0 -0
  1145. /package/dist/{trillion3d-skyCode-VIAPJ6TS.js.map → trillion3d-skyCode-BYIIBWAM.js.map} +0 -0
  1146. /package/dist/{trillion3d-sortedTranslucencyCode-ENOIPRNP.js.map → trillion3d-sortedTranslucencyCode-VLSTGX5S.js.map} +0 -0
  1147. /package/dist/{trillion3d-splineMeshCode-X6CFRALJ.js.map → trillion3d-splineMeshCode-AWDX5BIG.js.map} +0 -0
  1148. /package/dist/{trillion3d-subsurfaceCode-L36SYFNH.js.map → trillion3d-subsurfaceCode-PROXJTLS.js.map} +0 -0
  1149. /package/dist/{trillion3d-surfaceCode-J3JUDHSC.js.map → trillion3d-surfaceCode-CW2NSI5O.js.map} +0 -0
  1150. /package/dist/{trillion3d-terrainCode-BHCQQRET.js.map → trillion3d-terrainCode-ZDONXR5X.js.map} +0 -0
  1151. /package/dist/{trillion3d-transformCode-74Z7PQYM.js.map → trillion3d-transformCode-SE55EUCN.js.map} +0 -0
  1152. /package/dist/{trillion3d-translucentLightVolumeCode-3HU4TBPQ.js.map → trillion3d-translucentLightVolumeCode-EQKMCGMD.js.map} +0 -0
  1153. /package/dist/{trillion3d-viewCode-IXEIJJWS.js.map → trillion3d-viewCode-52L7D5ZW.js.map} +0 -0
  1154. /package/dist/{trillion3d-volumesCode-RDBBXG3U.js.map → trillion3d-volumesCode-NYAC6KYU.js.map} +0 -0
  1155. /package/dist/{trillion3d-waterCode-3ZRB2JP7.js.map → trillion3d-waterCode-CWZ5XYNU.js.map} +0 -0
  1156. /package/dist/{trillion3d-webgpuCode-BQTJL2EM.js.map → trillion3d-webgpuCode-2GNPUWQ4.js.map} +0 -0
  1157. /package/dist/{trillion3d-workCode-V42SMDJA.js.map → trillion3d-workCode-DCC25A2D.js.map} +0 -0
  1158. /package/dist/{trillion3d-worldRootPages-3SFAHS63.js.map → trillion3d-worldRootPages-P75VSIXR.js.map} +0 -0
@@ -0,0 +1,1615 @@
1
+ import{K as tt,L as ot,a as Za,c as Qa,q as et,r as at,s as ee,t as fe}from"./trillion3d-chunk-OD3JBU6D.js";import{$c as Ha,$f as v,Bb as ba,Cb as Ge,Dg as Ua,Ga as ya,Kg as za,Lg as Va,Ng as ja,Og as he,Pg as Ya,Vc as Ga,Xg as Ka,ag as Q,bd as Ia,bg as T,cg as Na,dg as Ba,dh as Xa,eg as $a,eh as X,fg as Y,fh as Ce,gg as K,ig as Fa,ih as qa,jb as Re,jg as pe,jh as ce,kg as I,lg as G,od as Ma,qd as ka,th as u}from"./trillion3d-chunk-U5NZRFEN.js";import{Aa as wa,Ba as le,ja as ha,ya as de,za as ua}from"./trillion3d-chunk-P7UZ7W2B.js";import{b as ga}from"./trillion3d-chunk-5TTX63XG.js";import{a as R}from"./trillion3d-chunk-RLDDQEQJ.js";import{F as Oa,w as xa}from"./trillion3d-chunk-NNF42O54.js";import{a as na}from"./trillion3d-chunk-25C7OMDW.js";import{A as Ca}from"./trillion3d-chunk-XYZRT3VR.js";import{a as re,d as ia,e as sa,l as E,p as Wa,r as Ra}from"./trillion3d-chunk-ZUQDRSYB.js";import{a as Ta}from"./trillion3d-chunk-GKWIL5RN.js";import{c as Ja}from"./trillion3d-chunk-KLIGAVUH.js";import{e as Pa,h as Da,r as be,s as We}from"./trillion3d-chunk-L2FRHLXI.js";import{b as Ea}from"./trillion3d-chunk-YKZXAXMM.js";import{B as va,C as _a,d as Sa,t as ma}from"./trillion3d-chunk-ARDABN2G.js";import{d as da,h as ie,i as la}from"./trillion3d-chunk-GUUF3TMW.js";import{a as se,o as H}from"./trillion3d-chunk-J7ML34IT.js";import{$n as P,Aw as Aa,Ck as ra,Dp as fa,Fg as oa,Kc as xe,Lc as Qe,Mf as W,Of as ea,Qg as ye,Rf as oe,Tf as aa,Uf as V,Vf as ta,Xf as Oe,_k as j,ap as pa,co as d,up as ca,vx as La,wx as ne}from"./trillion3d-chunk-PJN3TXFS.js";var oo=pa(1),rt=(e,a,t)=>ha(new Uint16Array(t*4),e,a,t);function ro(e,a){let{size:t}=a,o=xe(t),r=e.createTexture({label:"Trillion3D fog cubemap",size:{width:t,height:t,depthOrArrayLayers:6},mipLevelCount:o,format:"rgba16float",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST}),i=t*t,s=Qe(a);for(let l=0;l<6;l++)e.queue.writeTexture({texture:r,mipLevel:0,origin:{x:0,y:0,z:l}},rt(a.texels,l*i*3,i),{bytesPerRow:t*8,rowsPerImage:t},{width:t,height:t,depthOrArrayLayers:1}),e.queue.writeTexture({texture:r,mipLevel:o-1,origin:{x:0,y:0,z:l}},rt(s,l*3,1),{bytesPerRow:8,rowsPerImage:1},{width:1,height:1,depthOrArrayLayers:1});return{texture:r,view:r.createView({dimension:"cube"}),bytes:io(t)}}function io(e){let a=0;for(let t=0;t<xe(e);t++)a+=Math.max(1,e>>t)**2;return a*6*8}function it(e){let a=re(e,"Trillion3D fog no cubemap","rgba16float",{layers:6,texels:new Uint16Array(4).fill(oo)});return{texture:a,view:a.createView({dimension:"cube"}),destroy:()=>a.destroy()}}function Yr(e,a,t){return a.cube&&a.cube.texels!==t?.texels&&(fa(e,a.cube.made.texture),a.cube=void 0),t&&!a.cube&&(a.cube={texels:t.texels,made:ro(e,t)}),a.cube?.made.view}var q=d("PAGED_SHADOW_UNIFORMS_WGSL",[],`
2
+ struct PagedShadowUniforms{
3
+ frameStamp:u32,
4
+ mapCount:u32,
5
+ pressureBias:f32,
6
+ poolPages:u32,
7
+ poolRowShift:u32,
8
+ poolRowMask:u32,
9
+ staticSlice:u32,
10
+ includeInCoarsePages:u32,
11
+ pageTableSize:vec2u,
12
+ coverSize:vec2u,
13
+ detailPixelsStatic:f32,
14
+ detailPixelsDynamicClusters:f32,
15
+ normalBias:f32,
16
+ screenRayLength:f32,
17
+ markMipOffset:array<vec4u,2>,
18
+ coverMipOffset:array<vec4u,2>,
19
+ pageKeepFrames:u32,
20
+ traceConeCot:f32,
21
+ traceReachSun:f32,
22
+ traceSlopeCapLocal:f32,
23
+ traceSlopeCapSun:f32,
24
+ tracePlaneBiasCap:f32,
25
+ traceDitherLocal:f32,
26
+ traceDitherSun:f32,
27
+ mipModeLocal:u32,
28
+ deferredBudget:i32,
29
+ lodDeltaInvalidates:u32,
30
+ dofStrength:f32,
31
+ dofInfinity:f32,
32
+ dofMinForeground:f32,
33
+ dofMaxBackground:f32,
34
+ dofFocus:f32,
35
+ dofBlurExponent:f32,
36
+ dofBlurRadius:f32,
37
+ dofWidth:f32,
38
+ hzbStaticLayer:u32,
39
+ subsurfaceMinSourceRadius:f32,
40
+ onePassMaxLights:u32,
41
+ cullBackfacing:u32,
42
+ }
43
+ /** The resolution bias the depth of field asks at a view depth (\`dofBias.ts\`): the circle of
44
+ * confusion's radius there \u2014 the model's, or the depth blur's, the larger, held between the
45
+ * foreground's and the background's largest \u2014 in pixels, over eight of the strength, never above it. */
46
+ fn pagedShadowDofResolutionBias(sceneDepth:f32)->f32{
47
+ if(pagedShadow.dofStrength==0.0){return 0.0;}
48
+ let radius=((sceneDepth-pagedShadow.dofFocus)/sceneDepth)*pagedShadow.dofInfinity;
49
+ let blur=(1.0-exp2(-sceneDepth*pagedShadow.dofBlurExponent))*pagedShadow.dofBlurRadius;
50
+ let coc=clamp(max(abs(radius),blur)*sign(radius),pagedShadow.dofMinForeground,pagedShadow.dofMaxBackground);
51
+ return min(pagedShadow.dofStrength,mix(0.0,pagedShadow.dofStrength,abs(coc)*pagedShadow.dofWidth/${8}.0));
52
+ }
53
+ fn pagedShadowMarkMipOffset(mip:u32)->u32{return pagedShadow.markMipOffset[mip>>2u][mip&3u];}
54
+ fn pagedShadowCoverMipOffset(mip:u32)->u32{return pagedShadow.coverMipOffset[mip>>2u][mip&3u];}
55
+ `);function Qr(e,a,t,o=0){let{u:r,f:i}=na(e,o);r[0]=t.frameStamp>>>0,r[1]=t.mapCount,i[2]=t.pressureBias,r[3]=a.poolPages,r[4]=a.poolRowShift,r[5]=a.poolRowMask,r[6]=a.cacheEnabled?1:0,r[7]=t.includeInCoarsePages?1:0,r[8]=a.pageTableSize[0],r[9]=a.pageTableSize[1],r[10]=a.coverSize[0],r[11]=a.coverSize[1],i[12]=t.detailPixelsStatic,i[13]=t.detailPixelsDynamicClusters,i[14]=t.normalBias,i[15]=t.screenRayLength;for(let s=0;s<K;s++)r[16+s]=a.markMipOffsets[s]??0,r[24+s]=a.coverMipOffsets[s]??0;r[32]=t.pageKeepFrames,i[33]=t.traceConeCot,i[34]=t.traceReachSun,i[35]=t.traceSlopeCapLocal,i[36]=t.traceSlopeCapSun,i[37]=t.tracePlaneBiasCap,i[38]=t.traceDitherLocal,i[39]=t.traceDitherSun,r[40]=t.mipModeLocal,r[41]=t.deferredBudget|0,r[42]=t.lodDeltaInvalidates,i[43]=t.dof.strength,i[44]=t.dof.infinityRadius,i[45]=t.dof.minForeground,i[46]=t.dof.maxBackground,i[47]=t.dof.focusDistance,i[48]=t.dof.blurExponent,i[49]=t.dof.blurRadius,i[50]=t.dof.width,r[51]=a.hzbStaticLayer,i[52]=t.subsurfaceMinSourceRadius,r[53]=t.onePassMaxLights,r[54]=t.cullBackfacing?1:0}var _=d("PAGED_SHADOW_HANDLE_WGSL",[u,H],`
56
+ struct PagedShadowHandle{id:u32,tableOrigin:u32,finestMip:u32,}
57
+ fn pagedShadowHandleFromId(id:u32)->PagedShadowHandle{
58
+ return PagedShadowHandle(id,pagedShadowProjectionData[id].tableOrigin,pagedShadowProjectionData[id].finestMip);
59
+ }
60
+ fn pagedShadowHandleInvalid()->PagedShadowHandle{return PagedShadowHandle(NO_INDEX,0u,0u);}
61
+
62
+ fn pagedShadowHandleOffset(h:PagedShadowHandle,offset:i32)->PagedShadowHandle{return pagedShadowHandleFromId(u32(i32(h.id)+offset));}
63
+ fn pagedShadowHandleIsValid(h:PagedShadowHandle)->bool{return h.id!=NO_INDEX;}
64
+ `),L=d("PAGED_SHADOW_PAGE_ADDRESS_WGSL",[u,q,be,We,Da],`
65
+ fn pagedShadowLog2PagesAtLevel(level:u32)->u32{return PAGED_SHADOW_LOG2_LEVEL0_PAGES-level;}
66
+ fn pagedShadowPagesAtLevel(level:u32)->u32{return 1u<<pagedShadowLog2PagesAtLevel(level);}
67
+ fn pagedShadowTexelsAtLevel(level:u32)->u32{return PAGED_SHADOW_LEVEL0_TEXELS>>level;}
68
+ /** Where mip \`mipLevel\` of a table whose finest mip is \`finestMip\` lies in it: the finest at its
69
+ * origin, a side of S = 128 >> finest entries; the coarser ones in a row below it, each at the
70
+ * bits of S \u2212 1 its rank leaves (S/2, S/4, \u2026 wide: X wraps with a power of two). */
71
+ fn pagedShadowMipTailOffset(mipLevel:u32,finestMip:u32)->vec2u{
72
+ var r=vec2u(0u,0u);
73
+ let rel=mipLevel-finestMip;
74
+ if(rel>0u){
75
+ let side=PAGED_SHADOW_LEVEL0_PAGES>>finestMip;
76
+ r.y=side;
77
+ let maxMask=side-1u;
78
+ r.x=maxMask&(maxMask<<(PAGED_SHADOW_MIPS-finestMip-rel));
79
+ }
80
+ return r;
81
+ }
82
+ struct PagedShadowTableLevel{firstCell:vec2u,}
83
+
84
+ struct PagedShadowTableCell{tableXY:vec2u,}
85
+ fn pagedShadowTableCellPack(o:PagedShadowTableCell)->u32{return (o.tableXY.x<<16u)|o.tableXY.y;}
86
+ fn pagedShadowTableCellUnpack(p:u32)->PagedShadowTableCell{return PagedShadowTableCell(vec2u(highHalf(p),lowHalf(p)));}
87
+ fn pagedShadowTableEntryAt(levelOffset:PagedShadowTableLevel,level:u32,pageAddress:vec2u)->PagedShadowTableCell{
88
+ return PagedShadowTableCell(levelOffset.firstCell+pageAddress);
89
+ }
90
+ fn pagedShadowPageInRange(pageAddress:vec2i,level:u32)->bool{
91
+ return all(pageAddress>=vec2i(0))&&all(pageAddress<vec2i(i32(pagedShadowPagesAtLevel(level))));
92
+ }
93
+
94
+ fn pagedShadowPoolIndexOf(a:vec2u)->u32{return (a.y<<pagedShadow.poolRowShift)+a.x;}
95
+ fn pagedShadowPoolPageOf(i:u32)->vec2u{return vec2u(i&pagedShadow.poolRowMask,i>>pagedShadow.poolRowShift);}
96
+
97
+
98
+ struct PagedShadowTableEntry{
99
+ physicalAddress:vec2u,
100
+ coarserLevels:u32,
101
+ anyLevelMapped:bool,
102
+ thisLevelDrawable:bool,
103
+ thisLevelMapped:bool,
104
+ }
105
+ fn pagedShadowPackTableEntry(physicalAddress:vec2u,validForRendering:bool)->u32{
106
+ return (physicalAddress.y<<10u)|physicalAddress.x
107
+ |select(PAGED_SHADOW_ENTRY_MAPPED_BIT,PAGED_SHADOW_ENTRY_MAPPED_BIT|PAGED_SHADOW_ENTRY_DRAWABLE_BIT,validForRendering);
108
+ }
109
+
110
+ fn pagedShadowPackFallbackEntry(physicalAddress:vec2u,coarserLevels:u32)->u32{
111
+ return PAGED_SHADOW_ENTRY_MAPPED_BIT|(coarserLevels<<PAGED_SHADOW_ENTRY_COARSER_SHIFT)|(physicalAddress.y<<10u)|physicalAddress.x;
112
+ }
113
+ fn pagedShadowUnpackTableEntry(v:u32)->PagedShadowTableEntry{
114
+ var r:PagedShadowTableEntry;
115
+ r.physicalAddress=vec2u(v&0x3FFu,(v>>10u)&0x3FFu);
116
+ r.coarserLevels=(v>>PAGED_SHADOW_ENTRY_COARSER_SHIFT)&PAGED_SHADOW_ENTRY_COARSER_MASK;
117
+ r.anyLevelMapped=(v&PAGED_SHADOW_ENTRY_MAPPED_BIT)!=0u;
118
+ r.thisLevelDrawable=(v&PAGED_SHADOW_ENTRY_DRAWABLE_BIT)!=0u;
119
+ r.thisLevelMapped=r.anyLevelMapped&&r.coarserLevels==0u;
120
+ return r;
121
+ }
122
+
123
+
124
+ fn pagedShadowTableIndex(t:vec2u)->u32{return t.y*pagedShadow.pageTableSize.x+t.x;}
125
+
126
+ fn pagedShadowPageMarkIndex(t:vec2u,m:u32)->u32{return pagedShadowMarkMipOffset(m)+t.y*(pagedShadow.pageTableSize.x>>m)+t.x;}
127
+ fn pagedShadowPageMarkInBounds(t:vec2u,m:u32)->bool{return all(t<(pagedShadow.pageTableSize>>vec2u(m)));}
128
+
129
+ fn pagedShadowCoverIndex(t:vec2u,m:u32)->u32{return pagedShadowCoverMipOffset(m)+t.y*(pagedShadow.coverSize.x>>m)+t.x;}
130
+ fn pagedShadowCoverInBounds(t:vec2u,m:u32)->bool{return all(t<(pagedShadow.coverSize>>vec2u(m)));}
131
+ `),He=d("PAGED_SHADOW_TABLE_ORIGIN_WGSL",[_,L,be,We],`
132
+ fn pagedShadowTableLevelOrigin(h:PagedShadowHandle,mipLevel:u32)->PagedShadowTableLevel{
133
+ let o=h.tableOrigin;
134
+ return PagedShadowTableLevel(vec2u(lowHalf(o),highHalf(o))+pagedShadowMipTailOffset(mipLevel,h.finestMip));
135
+ }
136
+ fn pagedShadowTableEntryOf(h:PagedShadowHandle,level:u32,pageAddress:vec2u)->PagedShadowTableCell{
137
+ return pagedShadowTableEntryAt(pagedShadowTableLevelOrigin(h,level),level,pageAddress);
138
+ }
139
+ `),$=d("PAGED_SHADOW_PAGE_LOOKUP_WGSL",[u,_,L,He],`
140
+
141
+ fn pagedShadowTableWord(o:PagedShadowTableCell)->u32{return pagedShadowPageTableLoad(pagedShadowTableIndex(o.tableXY));}
142
+ fn pagedShadowTableEntryAtOffset(o:PagedShadowTableCell)->PagedShadowTableEntry{return pagedShadowUnpackTableEntry(pagedShadowTableWord(o));}
143
+ struct PagedShadowLocalPage{
144
+ valid:bool,
145
+ coarserLevels:u32,
146
+ mapTexelXY:vec2u,
147
+ mapTexelPos:vec2f,
148
+ poolTexel:vec2u,
149
+ }
150
+
151
+ fn pagedShadowLocalPageAt(h:PagedShadowHandle,mapUvAt:vec2f,finestMip:u32)->PagedShadowLocalPage{
152
+ let vPage=vec2u(mapUvAt*f32(PAGED_SHADOW_LEVEL0_PAGES));
153
+ return pagedShadowLocalPageFrom(pagedShadowTableWord(pagedShadowTableEntryOf(h,finestMip,vPage>>vec2u(finestMip))),mapUvAt,finestMip);
154
+ }
155
+
156
+ fn pagedShadowLocalPageFrom(word:u32,mapUvAt:vec2f,finestMip:u32)->PagedShadowLocalPage{
157
+ let e=pagedShadowUnpackTableEntry(word);
158
+ var r:PagedShadowLocalPage;
159
+ r.valid=e.anyLevelMapped;
160
+ r.coarserLevels=e.coarserLevels+finestMip;
161
+ r.mapTexelPos=mapUvAt*f32(pagedShadowTexelsAtLevel(r.coarserLevels));
162
+ r.mapTexelXY=vec2u(r.mapTexelPos);
163
+ r.poolTexel=e.physicalAddress*PAGED_SHADOW_PAGE_TEXELS+(r.mapTexelXY&vec2u(PAGED_SHADOW_PAGE_TEXEL_MASK));
164
+ return r;
165
+ }
166
+ `),F=d("PAGED_SHADOW_STRUCTS_WGSL",[u],`
167
+ struct PagedShadowPoolPageInfo{
168
+ flags:u32,
169
+ lastWantedStamp:u32,
170
+ mapId:u32,
171
+ mipLevel:u32,
172
+ pageAddress:vec2u,
173
+ }
174
+ struct PagedShadowNextMap{
175
+ flags:u32,
176
+ nextMapId:i32,
177
+ pageShift:vec2i,
178
+ }
179
+
180
+ fn pagedShadowLocalMipLevel(footprint:f32,mapBias:f32,pressureBias:f32,extraBias:f32)->u32{
181
+ let mipLevelFloat=log2(footprint)+mapBias+pressureBias+extraBias;
182
+ var mipLevel=u32(max(floor(mipLevelFloat),0.0));
183
+ mipLevel=min(mipLevel,PAGED_SHADOW_MIPS-1u);
184
+ return mipLevel;
185
+ }
186
+ `);var st=`${v}`,dt=P("pagedShadowFacesAwayFromLocal",[],`fn pagedShadowFacesAwayFromLocal(toLight:vec3f,normal:vec3f,emitterSize:f32)->bool{
187
+ let rangeSq=dot(toLight,toLight);
188
+ let nearInverse=1.0/(rangeSq+${st}*${st});
189
+ let invDist=inverseSqrt(rangeSq);
190
+ let emitterSinSq=saturate(emitterSize*emitterSize*nearInverse);
191
+ let emitterSin=sqrt(emitterSinSq);
192
+ return dot(normal,toLight*invDist)< -emitterSin;
193
+ }`);var lt="lightKind:u32 emitterSize:f32 finestMip:u32 mapLevel:i32 lightViewToClip:mat4x4f lightDirection:vec3f levelsLeft:i32 planesToMapUv:mat4x4f shiftedToMapUv:mat4x4f originShiftHigh:vec3f flags:u32 originShiftLow:vec3f levelBias:f32 clipmapOrigin:vec3f ditherTexels:f32 cornerSteps:vec2i lightRange:f32 tableOrigin:u32 wpoThreshold:f32 prevMapId:u32 prevTableOrigin:u32 prevShiftedToClip:mat4x4f prevClipDepth:vec4f prevFinestMip:u32 viewSlot:u32 dynamicDepthCullRange:vec2f".split(" "),nt=lt.map(e=>` ${e},`).join(`
194
+ `),so=lt.map(e=>{let[a]=e.split(":");return` r.${a}=raw.${a};`}).join(`
195
+ `),lo=d("PAGED_SHADOW_PROJECTION_RECORD_WGSL",[],`
196
+ struct PagedShadowProjectionRecord{
197
+ ${nt}
198
+ }
199
+ `),no=P("pagedShadowShiftedToClip",[],`fn pagedShadowShiftedToClip(uv:mat4x4f)->mat4x4f{
200
+ var m:mat4x4f;
201
+ for(var k=0u;k<4u;k++){
202
+ let c=uv[k];
203
+ m[k]=vec4f(2.0*c.x-c.w,c.w-2.0*c.y,c.z,c.w);
204
+ }
205
+ return m;
206
+ }`),po=P("pagedShadowViewDepthOfDeviceZ",[],"fn pagedShadowViewDepthOfDeviceZ(deviceZ:f32,t:vec4f)->f32{return deviceZ*t.x+t.y+1.0/(deviceZ*t.z-t.w);}"),D=d("PAGED_SHADOW_PROJECTION_DATA_WGSL",[po,u,_,lo,dt,no],`
207
+ struct PagedShadowProjectionData{
208
+ ${nt}
209
+ handle:PagedShadowHandle,
210
+ uncached:bool,
211
+ lightUnseen:bool,
212
+ coarseLevel:bool,
213
+ useCover:bool,
214
+ coarseDynamicCached:bool,
215
+ firstPerson:bool,
216
+ distant:bool,
217
+ }
218
+
219
+ fn pagedShadowUnpackProjection(raw:PagedShadowProjectionRecord,h:PagedShadowHandle)->PagedShadowProjectionData{
220
+ var r:PagedShadowProjectionData;
221
+ r.handle=h;
222
+ ${so}
223
+ r.uncached=(r.flags&PAGED_SHADOW_MAP_UNCACHED)!=0u;
224
+ r.lightUnseen=(r.flags&PAGED_SHADOW_MAP_UNSEEN)!=0u;
225
+ r.coarseLevel=(r.flags&PAGED_SHADOW_MAP_COARSE)!=0u;
226
+ r.useCover=(r.flags&PAGED_SHADOW_MAP_COVERAGE)!=0u;
227
+ r.coarseDynamicCached=(r.flags&PAGED_SHADOW_MAP_COARSE_KEEPS_DYNAMIC)!=0u;
228
+ r.firstPerson=(r.flags&PAGED_SHADOW_MAP_FIRST_PERSON)!=0u;
229
+ r.distant=(r.flags&PAGED_SHADOW_MAP_DISTANT)!=0u;
230
+ return r;
231
+ }
232
+
233
+ fn pagedShadowSubtractHighLow(aHigh:vec3f,aLow:vec3f,bHigh:vec3f,bLow:vec3f)->vec3f{
234
+ let h=aHigh-bHigh;
235
+ let l=aLow-bLow;
236
+ return h+l;
237
+ }
238
+
239
+
240
+ fn pagedShadowShiftedCentre(high:vec3f,low:vec3f,pd:PagedShadowProjectionData)->vec3f{
241
+ return (high+pd.originShiftHigh)+(low+pd.originShiftLow);
242
+ }
243
+ /** The clipmap level of a distance (squared, in world units\xB2, converted to cm\xB2). */
244
+ fn pagedShadowLevelOfDistanceSq(distSqToOrigin:f32)->f32{
245
+ return log2(distSqToOrigin*(PAGED_SHADOW_CM_PER_UNIT*PAGED_SHADOW_CM_PER_UNIT))*0.5;
246
+ }
247
+
248
+
249
+ fn pagedShadowClipmapIndexOfLevel(mapLevel:i32,level:f32)->i32{return i32(max(0.0,level-f32(mapLevel)));}
250
+
251
+ fn pagedShadowDistanceSqToOrigin(base:PagedShadowProjectionData,shiftedPosition:vec3f,viewOriginShiftHigh:vec3f,viewOriginShiftLow:vec3f)->f32{
252
+ let toMapShift=pagedShadowSubtractHighLow(base.originShiftHigh,base.originShiftLow,viewOriginShiftHigh,viewOriginShiftLow);
253
+ let shiftedOrigin=-base.clipmapOrigin+toMapShift;
254
+ let d=shiftedPosition+shiftedOrigin;
255
+ return dot(d,d);
256
+ }
257
+
258
+ fn pagedShadowCubeFace(d:vec3f)->u32{
259
+ if(abs(d.x)>=abs(d.y)&&abs(d.x)>=abs(d.z)){return select(1u,0u,d.x>0.0);}
260
+ else if(abs(d.y)>abs(d.z)){return select(3u,2u,d.y>0.0);}
261
+ return select(5u,4u,d.z>0.0);
262
+ }
263
+
264
+
265
+ fn pagedShadowPixelWorldSize(sceneDepth:f32,viewToClip:mat4x4f,viewSize:vec2f)->f32{
266
+ let pixelSpan=1.0/(viewSize*vec2f(viewToClip[0][0],viewToClip[1][1]));
267
+ let pixelSpanMin=min(pixelSpan.x,pixelSpan.y);
268
+ let depthToSpan=sceneDepth*viewToClip[2][3]+viewToClip[3][3];
269
+ return depthToSpan*pixelSpanMin;
270
+ }
271
+
272
+
273
+ fn pagedShadowLocalPixelFootprint(pd:PagedShadowProjectionData,pointInMap:vec3f,sceneDepth:f32,viewToClip:mat4x4f,viewSize:vec2f)->f32{
274
+ let pixelWorld=pagedShadowPixelWorldSize(sceneDepth,viewToClip,viewSize);
275
+ let mapUvz=pd.shiftedToMapUv*vec4f(pointInMap,1.0);
276
+ let pixelClip4=pd.lightViewToClip*vec4f(pixelWorld,0.0,mapUvz.w,1.0);
277
+ let pixelClip=abs(pixelClip4.x/pixelClip4.w);
278
+ return pixelClip*f32(2u*PAGED_SHADOW_LEVEL0_TEXELS);
279
+ }
280
+
281
+ fn pagedShadowFacesAwayFromSun(normal:vec3f,lightDirection:vec3f,emitterSize:f32)->bool{
282
+ // Declared: the least margin past the sun's terminator, sin \u03B1 = 0.1 (5.7\xB0), before a point counts
283
+
284
+ let terminatorSin=0.1;
285
+ let emitterSin=max(abs(emitterSize),terminatorSin);
286
+ return dot(normal,lightDirection)< -emitterSin;
287
+ }
288
+ `),M=d("PAGED_SHADOW_PROJECTION_DATA_READ_WGSL",[u,_,D],`
289
+ fn pagedShadowProjectionOf(h:PagedShadowHandle)->PagedShadowProjectionData{return pagedShadowUnpackProjection(pagedShadowProjectionData[h.id],h);}
290
+
291
+
292
+ fn pagedShadowClipmapLevelBias(base:PagedShadowProjectionData,level:f32)->f32{
293
+ let clipmapIndex=pagedShadowClipmapIndexOfLevel(base.mapLevel,level);
294
+ if(clipmapIndex<base.levelsLeft){return pagedShadowProjectionData[u32(i32(base.handle.id)+clipmapIndex)].levelBias;}
295
+ return base.levelBias;
296
+ }
297
+ `),pt=P("pagedShadowCoarserLevelCell",[u],`fn pagedShadowCoarserLevelCell(page:vec2i,firstSteps:vec2i,levelSteps:vec2i,hop:u32,shift:u32)->vec2i{
298
+ let quarterPages=i32(PAGED_SHADOW_LEVEL0_PAGES>>2u);
299
+ return (page-quarterPages*firstSteps+((quarterPages*levelSteps)<<vec2u(hop)))>>vec2u(shift);
300
+ }`);var ht=["none","suns","all"],ho=(e,a)=>e?"all":a?"suns":"none",wi=e=>ho(e("shadowUseReceiverMaskLocal"),e("shadowUseReceiverMaskDirectional")),mi=(e,a)=>ht.indexOf(e)>=ht.indexOf(a);function ct(e,a,t){let o=[],r=0;for(let i=0;i<t;i++)o.push(r),r+=V(e,i)*V(a,i);return{offsets:o,words:r}}var y=Ce/2/Y;if(!Oe(y))throw new Error("paged shadow map: page table row must be a power of two tables");var co=Va+1024,U=Math.floor(Ce/T);if(!Oe(U))throw new Error("paged shadow map: pool row must be a power of two pages");function fo(e,a,t){if(e==="none")return{coverSize:[1,1],coverMips:1};let o=e==="all"?a:t,r=W(o,y);return{coverSize:[2*(r===1?o:y)*Y,2*r*G],coverMips:Q+1}}var go=(e,a,t)=>e&&a&&!!t;function So(e){let a=W(Math.max(1,e??qa),U),t=U*a,o=[U*T,a*T];return{poolPages:t,poolPagesY:a,poolTexelsXY:o}}function uo(e){let a=W(e,y),t=[y*Y,a*G];return{pageTableRows:a,pageTableSize:t}}function ge(e){let a=e.cacheEnabled??!0,t=e.occlusion??!0,{poolPages:o,poolPagesY:r,poolTexelsXY:i}=So(e.poolPages),s=Math.max(1,e.fullMapCapacity),{pageTableRows:l,pageTableSize:h}=uo(s),n=Q,c=ct(h[0],h[1],n),m=Math.max(1,e.sunMapCapacity??s),{coverMode:f}=e,{coverSize:g,coverMips:S}=fo(f,s,m),p=ct(g[0],g[1],S),w=Math.min(za,Math.max(co,e.mapSlotsPast??0)+s),x=go(t,a,e.dynamicHzb)?2:1;return{poolPages:o,poolPagesXY:[U,r],poolTexelsXY:i,poolRowShift:ta(U),poolRowMask:U-1,cacheEnabled:a,fullMapCapacity:s,mapSlots:w,pageTableRows:l,pageTableSize:h,pageTableWords:h[0]*h[1],markMips:n,markMipOffsets:c.offsets,markWordCount:c.words,coverMode:f,coverSize:g,coverMips:S,coverMipOffsets:p.offsets,coverWords:p.words,pageRectCount:oe(w*K),occlusion:t,hzbLayers:x,hzbStaticLayer:x-1,pyramidSize:wo(i),prefilteredDistant:e.prefilteredDistant??!1,classic:e.classic??!1,overdraw:e.overdraw??!1,sunMapSlots:Math.min(s,m)}}var wo=([e,a])=>[Math.max(oe(e)>>1,1),Math.max(oe(a)>>1,1)];var mo=65536,vo=1<<17,Ai=Ka|mo|vo,Ei=536870912,Ti=64,Li=8,xi=255,_o=1,ft=T+2*_o,Po=ft*ft,Oi=0,yi=1,bi=2,Wi=4,Do=16,Ie=[T,0,1,0,Do,0,1,0,0,1,1,0],Me=Ie.length,Ri=0,Gi=1,gt=2,St=6,Ao=0,Eo=1,To=2,Lo=3,xo=4,Ci=5;function Se(e){let a=St,t=e.sunMapSlots,o=a+t,r=e.sunMapSlots*he/4,i=o+r,s=W(e.sunMapSlots,y)*G*e.pageTableSize[0],l=i+s,h=e.coverSize[0]*e.coverSize[1];return{idsWord:a,idWords:t,recordsWord:o,recordWords:r,tableWord:i,tableWords:s,coverWord:l,coverWords:h,words:l+h}}function ut(e,a){let t=new Uint32Array(St);return t[Ao]=e.recordsWord,t[Eo]=e.tableWord,t[To]=e.coverWord,t[Lo]=e.idsWord,t[xo]=a,t}var wt=e=>e.poolPages*Po;var ue=new Set(["pageTable","receiverCover","staleRects"]),b=e=>Math.max(16,ea(e,4));function ke(e){return{uniforms:Ya,pageTable:e.pageTableWords*4,pageMarks:e.markWordCount*4,receiverCover:e.coverWords*4,pageRequests:e.pageTableWords*4,staleRects:e.pageRectCount*32,mappedRects:e.pageRectCount*16,projectionData:e.mapSlots*he,freePages:Xa*(e.poolPages+1)*4}}function Ne(e){let a=e.poolPages;return{poolPageInfo:a*24,rasterMarks:(a*Fa+1)*4,stats:Ua*4,feedback:ja,pagesToClear:(2*a+1)*4,clearArgs:32,edgeBounds:e.classic?0:a*$a}}var Be=e=>({nextMaps:e.mapSlots*16,perPageIds:e.mapSlots*4});function $e(e){let a=wt(e);return{separate:a,merged:a,args:Me*4,argsInit:Me*4,pages:gt*e.poolPages*4}}var Fe=e=>Se(e).words*4,Oo=T*T*4,Ue=e=>e.poolTexelsXY[0]*e.poolTexelsXY[1]*4,Bi=e=>aa(ra(e)/Oo),we=e=>W(2*e.pageRectCount,I),mt=e=>W(2*K*e,I),yo=e=>2*e.pageTableWords*4+we(e)*I*16;function bo(e){let[a,t]=e.pyramidSize,o=0;for(let r=0;r<pe;r++)o+=V(a,r)*V(t,r)*4;return o*e.hzbLayers}var ze=e=>({pyramidPages:(e.poolPages+1)*4,pyramidArgs:32,pyramidArgsInit:32,pyramidParams:16});function $i(e){let a=Wo(e);a+=(X+(e.overdraw?1:0))*b(Ue(e));for(let t of Object.values(Ne(e)))a+=b(t);if(e.occlusion){a+=bo(e);for(let t of Object.values(ze(e)))a+=b(t)}if(e.prefilteredDistant){let{separate:t,...o}=$e(e);a+=2*b(t);for(let r of Object.values(o))a+=b(r)}return a}function Wo(e){let a=0;for(let[t,o]of Object.entries(ke(e)))a+=b(o)*(ue.has(t)?1:2);for(let t of Object.values(Be(e)))a+=b(t);return e.occlusion&&(a+=2*yo(e)),e.prefilteredDistant&&(a+=b(Fe(e))),a}var Ro=new Uint32Array([16,0,1,0,0,1,1,0]),Go=e=>({label:"pagedShadow.occlusionPyramid",size:[e.pyramidSize[0],e.pyramidSize[1],e.hzbLayers],format:"r32float",mipLevelCount:pe,usage:GPUTextureUsage.STORAGE_BINDING|GPUTextureUsage.TEXTURE_BINDING}),Co=(e,a)=>{let t=GPUTextureUsage.COPY_DST|GPUTextureUsage.COPY_SRC|GPUTextureUsage.TEXTURE_BINDING,[o,r]=e.pageTableSize;return{table:{label:`pagedShadow.keptTable${a}`,size:[o,r],format:"r32uint",usage:t},marks:{label:`pagedShadow.keptMarks${a}`,size:[o,r],format:"r32uint",usage:t},rects:{label:`pagedShadow.keptRects${a}`,size:[I,we(e)],format:"rgba32uint",usage:t}}};function vt(e,a,t){let o=r=>{let i=Co(a,r),s=l=>{let h=e.createTexture(l);return t.push(h),h};return{table:s(i.table),marks:s(i.marks),rects:s(i.rects)}};return[o(0),o(1)]}function _t(e,a,t,o){let r=ze(a),i=GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST,s=e.createTexture(Go(a));o.push(s);let l=t("pyramidArgsInit",r.pyramidArgsInit,i);return e.queue.writeBuffer(l,0,Ro),{pyramid:s,pages:t("pyramidPages",r.pyramidPages),args:t("pyramidArgs",r.pyramidArgs,GPUBufferUsage.STORAGE|GPUBufferUsage.INDIRECT|i),argsInit:l,params:t("pyramidParams",r.pyramidParams,GPUBufferUsage.UNIFORM|i),prevKept:!1,copied:!1}}function ji(e,a,t,o,{mapCount:r,blocks:i}){let s=o.pageTableSize[0],l=Math.floor(i/y),h=i%y,n=(m,f,g)=>{if(f<=0||g<=0)return;let S={offset:m*s*4,bytesPerRow:s*4,rowsPerImage:g};for(let[p,w]of[[a.pageTable,t.table],[a.pageMarks,t.marks]])e.copyBufferToTexture({buffer:p,...S},{texture:w,origin:[0,m]},[f,g])};n(0,s,l*G),n(l*G,h*Y,G);let c=Math.min(mt(r),we(o));c>0&&e.copyBufferToTexture({buffer:a.staleRects,bytesPerRow:I*16,rowsPerImage:c},{texture:t.rects},[I,c])}function Pt(e,a,t){for(let o of["table","marks","rects"]){let r=a[o];e.copyTextureToTexture({texture:r},{texture:t[o]},[r.width,r.height])}}function At(e,a){let t=Q,o=T-1;return d(`pagedShadowPoolTexelIndexWgsl(${e}, ${a})`,[],`fn ${e}(t:vec2u)->u32{return ((((t.y>>${t}u)<<${a})|(t.x>>${t}u))<<${2*t}u)|((t.y&${o}u)<<${t}u)|(t.x&${o}u);}`)}var Ve=()=>GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC,Et=(e,a,t,o,r=Ve())=>{let i=e.createBuffer({label:`pagedShadow.${t}`,size:b(o),usage:r});return a.push(i),i};function Tt(e,a,t){let o=(f,g,S)=>Et(e,t,f,g,S),r=ke(a),i=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC,s=(f,g)=>{let S={};for(let[p,w]of Object.entries(r)){let x=ue.has(p);S[p]=g&&x?g[p]:p==="uniforms"?o(`${p}${f}`,w,i):o(x?p:`${p}${f}`,w)}return S},l=s(0),h=[l,s(1,l)],n=Be(a),c=[],m=a.occlusion?vt(e,a,c):void 0;return ca(t,c),{frames:h,nextMaps:o("nextMaps",n.nextMaps),perPageIds:o("perPageIds",n.perPageIds),kept:m,history:a.prefilteredDistant?Ho(e,a,o):void 0}}function Ho(e,a,t){let o=t("filterableHistory",Fe(a));return e.queue.writeBuffer(o,0,ut(Se(a),0)),o}function Io(e,a,t,o){let r=$e(a),i=GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST,s=o("filterableArgsInit",r.argsInit,i);return e.queue.writeBuffer(s,0,new Uint32Array(Ie)),{separate:[o("filterableSeparate0",r.separate),o("filterableSeparate1",r.separate)],merged:o("filterableMerged",r.merged),args:o("filterableArgs",r.args,GPUBufferUsage.INDIRECT|Ve()),argsInit:s,pages:o("filterablePages",r.pages),history:t,historyValid:!1,active:!1}}function ns(e,a){let t=ge(a),o=[],r=[],i=(p,w,x)=>Et(e,r,p,w,x),{frames:s,nextMaps:l,perPageIds:h,kept:n,history:c}=Tt(e,t,o),m=Array.from({length:X+(t.overdraw?1:0)},(p,w)=>i(`pagePool${w}`,Ue(t))),f=GPUBufferUsage.INDIRECT|Ve(),g=Ne(t),S={layout:t,frames:s,current:s[0],prev:s[1],poolPageInfo:i("poolPageInfo",g.poolPageInfo),rasterMarks:i("rasterMarks",g.rasterMarks),nextMaps:l,pagePool:m,occlusion:t.occlusion?_t(e,t,i,r):void 0,kept:n,stats:i("stats",g.stats),feedback:i("feedback",g.feedback),perPageIds:h,pagesToClear:i("pagesToClear",g.pagesToClear),clearArgs:i("clearArgs",g.clearArgs,f),edgeBounds:i("edgeBounds",g.edgeBounds),prevFrameKept:!1,filterable:c&&Io(e,t,c,i),swapFrames(){let p=S.current;S.current=S.prev,S.prev=p},made:{tables:o,rest:r},destroy(){for(let p of[...S.made.tables,...S.made.rest])p.destroy()},bytes:j(o)+j(r)};return S}var Lt=e=>e.current===e.frames[0]?0:1,Mo=["uniforms","pageMarks","pageRequests","mappedRects","projectionData","freePages"];function ps(e,a,t){let o=a.layout,r=ge({...t,poolPages:o.poolPages});if(r.fullMapCapacity<=o.fullMapCapacity&&r.coverWords<=o.coverWords&&r.mapSlots<=o.mapSlots)return;let{made:i}=a,s=[],l=Tt(e,r,s);return Aa(e,s,j(s),()=>{let h=Lt(a),n=l.frames[1-h],c=e.createCommandEncoder({label:"pagedShadow.growTables"});for(let f of Mo)c.copyBufferToBuffer(a.prev[f],0,n[f],0,a.prev[f].size),ga(a.prev[f],n[f]);a.kept&&l.kept&&Pt(c,a.kept[1-h],l.kept[1-h]),e.queue.submit([c.finish()]);let m=i.tables;return i.tables=s,a.layout=r,a.frames=l.frames,a.current=l.frames[h],a.prev=n,a.nextMaps=l.nextMaps,a.perPageIds=l.perPageIds,a.kept=l.kept,a.filterable&&l.history&&(a.filterable.history=l.history,a.filterable.historyValid=!1),a.bytes=j(s)+j(i.rest),m}).commit(),r}var xt={filterableSeparate:(e,a,t)=>a.separate[Lt(e)^(t?1:0)],filterableMerged:(e,a)=>a.merged,filterableArgs:(e,a)=>a.args,filterablePages:(e,a)=>a.pages,filterableHistory:(e,a)=>a.history},Ot=new Set(Object.keys(xt)),ko=new Set(["uniforms","pageTable","pageMarks","receiverCover","pageRequests","staleRects","mappedRects","projectionData","freePages"]),No=new Set(["pageTable","pageMarks","receiverCover","pageRequests","rasterMarks","stats","feedback","perPageIds","pagesToClear","clearArgs","edgeBounds",...Ot]),Bo=e=>e[0].toUpperCase()+e.slice(1);function yt(e){return e.name?e.name:e.resource==="uniforms"?e.prev?"pagedShadowPrev":"pagedShadow":e.resource==="pagePool"?"pagedShadowPool":e.resource==="overdrawSlice"?"pagedShadowOverdraw":(e.prev?"pagedShadowPrev":"pagedShadow")+Bo(e.resource)}function $o(e,a){switch(e){case"staleRects":case"mappedRects":return a?"atomic<u32>":"vec4u";case"projectionData":return"PagedShadowProjectionRecord";case"poolPageInfo":return"PagedShadowPoolPageInfo";case"nextMaps":return"PagedShadowNextMap";default:return a?"atomic<u32>":"u32"}}var Fo={projectionData:D,poolPageInfo:F,nextMaps:F};function bt(e,a,t){let o=[],r=new Set;for(let i of a){if(i.prev&&ue.has(i.resource))throw new Error(`PAGED_SHADOW: ${i.resource} keeps no previous frame`);let s=i.access??"read",l=s==="atomic",h=s==="read"?"storage,read":"storage,read_write",n=yt(i);if(i.resource==="uniforms"){r.add(q),o.push(`@group(${e}) @binding(${i.binding}) var<uniform> ${n}:PagedShadowUniforms;`);continue}if(i.resource==="pagePool"){r.add(Rt(e,i,t).accessors);continue}if(i.resource==="overdrawSlice"){r.add(zo(e,i,t));continue}let c=Fo[i.resource];c&&r.add(c),o.push(`@group(${e}) @binding(${i.binding}) var<${h}> ${n}:array<${$o(i.resource,l)}>;`),No.has(i.resource)&&o.push(l?`fn ${n}Load(i:u32)->u32{return atomicLoad(&${n}[i]);}
301
+ fn ${n}Store(i:u32,v:u32){atomicStore(&${n}[i],v);}
302
+ fn ${n}Or(i:u32,v:u32)->u32{return atomicOr(&${n}[i],v);}`:s==="read_write"?`fn ${n}Load(i:u32)->u32{return ${n}[i];}
303
+ fn ${n}Store(i:u32,v:u32){${n}[i]=v;}`:`fn ${n}Load(i:u32)->u32{return ${n}[i];}`)}return d(`pagedShadowBindingsWgsl(${e}, ${JSON.stringify(a)}, ${je(t)})`,[...r],o.join(`
304
+ `))}var hs=e=>Ga(e,"compute",9),je=e=>`${e.poolRowShift}`,me=ge({fullMapCapacity:0,coverMode:"none"}),Ye=e=>e.slices??X;function Wt(e,a,t){let o=a.find(r=>r.resource==="pagePool");if(!o)throw new Error("paged shadow map: no page pool among the bindings");return Rt(e,o,t).load}var Dt=new Map;function Rt(e,a,t){let o=a.access??"read",r=yt(a),i=Ye(a),s=`${r}(${e}, ${a.binding}, ${o}, ${i}, ${je(t)})`,l=Dt.get(s);return l||Dt.set(s,l=Uo(s,e,a.binding,o,i,t,r)),l}function Uo(e,a,t,o,r,i,s){let l=o==="atomic",h=o==="read"?"storage,read":"storage,read_write",n=Array.from({length:r},(p,w)=>`${s}${w}`),c=n.map((p,w)=>`@group(${a}) @binding(${t+w}) var<${h}> ${p}:array<${l?"atomic<u32>":"u32"}>;`),m=` let i=${s}TexelIndex(t);
305
+ switch(slice){`,f=(p,w,x)=>`fn ${s}${p}{
306
+ ${m}
307
+ ${n.map((B,Le)=>` case ${Le}u:{${w(B)}}`).join(`
308
+ `)}
309
+ default:{${x}}
310
+ }
311
+ }`,g=P(`${s}Load`,[d(`${e} bindings`,[],c.join(`
312
+ `)),At(`${s}TexelIndex`,`${i.poolRowShift}u`)],f("Load(t:vec2u,slice:u32)->u32",p=>l?`return atomicLoad(&${p}[i]);`:`return ${p}[i];`,"return 0u;")),S=[];return o!=="read"&&S.push(f("Store(t:vec2u,slice:u32,value:u32)",p=>l?`atomicStore(&${p}[i],value);`:`${p}[i]=value;`,"")),l&&S.push(f("AtomicMax(t:vec2u,slice:u32,value:u32)",p=>`if(atomicLoad(&${p}[i])<value){atomicMax(&${p}[i],value);}`,"")),{load:g,accessors:d(`${e} accessors`,[g],S.join(`
313
+ `))}}function zo(e,a,t){let o=a.access==="atomic",r=o?`@group(${e}) @binding(${a.binding}) var<storage,read_write> pagedShadowOverdraw:array<atomic<u32>>;
314
+ fn pagedShadowOverdrawAdd(t:vec2u){atomicAdd(&pagedShadowOverdraw[pagedShadowOverdrawTexelIndex(t)],1u);}`:`@group(${e}) @binding(${a.binding}) var<storage,read> pagedShadowOverdraw:array<u32>;
315
+ fn pagedShadowOverdrawLoad(t:vec2u)->u32{return pagedShadowOverdraw[pagedShadowOverdrawTexelIndex(t)];}`;return d(`pagedShadowOverdrawWgsl(${e}, ${a.binding}, ${o}, ${je(t)})`,[At("pagedShadowOverdrawTexelIndex",`${t.poolRowShift}u`)],r)}var Vo=e=>e.resource==="pagePool"?Ye(e):1;function cs(e,a){let t=[];for(let o of e){let r=o.resource==="uniforms"?"uniform":(o.access??"read")==="read"?"read-only-storage":"storage";for(let i=0;i<Vo(o);i++)t.push({binding:o.binding+i,visibility:a,buffer:{type:r}})}return t}function jo(e,a){let t=[];for(let o of a){if(o.resource==="pagePool"){e.pagePool.slice(0,Ye(o)).forEach((i,s)=>t.push({binding:o.binding+s,resource:{buffer:i}}));continue}if(o.resource==="overdrawSlice"){t.push({binding:o.binding,resource:{buffer:e.pagePool[X]}});continue}let r=ko.has(o.resource)?(o.prev?e.prev:e.current)[o.resource]:Ot.has(o.resource)?Yo(e,o):e[o.resource];t.push({binding:o.binding,resource:{buffer:r}})}return t}var fs=(e,a,t,o,r,i=[])=>e.createBindGroup({label:r,layout:a,entries:[...jo(t,o),...i]});function Yo(e,a){if(!e.filterable)throw new Error(`PAGED_SHADOW: ${a.resource} bound by a set without the prefiltered distant shadow`);let t=xt[a.resource];return t(e,e.filterable,a.prev)}var gs=()=>({identity:Ja(2),slots:[]});function Ss(e,a,t,o,r){let{identity:i,slots:s}=e;return i.next[0]=a.current,i.next[1]=r,i.moved()&&(s[i.slot]=t(a,o)),s[i.slot]}var Ko="rgba16float";function Ps(e){let a=it(e),t=re(e,"Trillion3D fog no volume",Ko,{dimension:"3d"}),o=ia(e,"Trillion3D fog no local volumes",16,GPUBufferUsage.STORAGE);return{read:{cubemap:a.view,volume:t.createView(),sampler:sa(e).mipped,tiles:o},destroy(){a.destroy(),t.destroy(),o.destroy()}}}function Ds(e,a){let t=[];return e.sampler!==void 0&&t.push(la(e.sampler,"filtering",a)),e.cubemap!==void 0&&t.push(ie(e.cubemap,"float","cube",a)),e.volume!==void 0&&t.push(ie(e.volume,"float","3d",a)),e.lightShaft!==void 0&&t.push(ie(e.lightShaft,"float","2d",a)),e.tiles!==void 0&&t.push(da(e.tiles,"read-only-storage",a)),t}function As(e,a,t){let o=[];return e.sampler!==void 0&&o.push({binding:e.sampler,resource:a.sampler}),e.cubemap!==void 0&&o.push({binding:e.cubemap,resource:a.cubemap}),e.volume!==void 0&&o.push({binding:e.volume,resource:a.volume}),e.lightShaft!==void 0&&t&&o.push({binding:e.lightShaft,resource:t}),e.tiles!==void 0&&o.push({binding:e.tiles,resource:{buffer:a.tiles}}),o}var ve=d("PAGED_SHADOW_TRACE_COMMON_WGSL",[de,le,_a,va],`
316
+ /** The march's sample times: t\xB2 with t = a\xB7i + b (the two words returned, a = \u22121/stepCount), from
317
+ * the far end (i = 0) to the ray's start (i = stepCount, time 0), each step jittered by \`stepJitter\`. */
318
+ fn pagedShadowMarchTimeLine(stepCount:i32,stepJitter:f32)->vec2f{
319
+ let timeScale=-1.0/f32(stepCount);
320
+ return vec2f(timeScale,1.0+(1.0-stepJitter)*timeScale);
321
+ }
322
+ fn pagedShadowMarchTime(i:i32,stepCount:i32,time:vec2f)->f32{
323
+ if(i==stepCount){return 0.0;}
324
+ let t=time.x*f32(i)+time.y;
325
+ return t*t;
326
+ }
327
+
328
+
329
+ fn pagedShadowLightDisk(directional:bool,E:vec2f)->vec2f{
330
+ if(directional){return uniformDiskConcentric(E);}
331
+ return approxDiskMap(E);
332
+ }
333
+ /** A ray toward a point of the light's disk as the receiver sees it: inside the cone of sine \`s\`
334
+ * around the frame's axis \`basis.z\`, the unit-disk point \`disk\` (\`pagedShadowLightDisk\`) its sine across the
335
+ * axis \u2014 a sun's angular radius and a local light's emitter alike. The unit direction and the
336
+ * cone's own cosine \`cosTheta\` (the ray's angle off the axis): a dot product of the normalised
337
+ * direction could round past 1. */
338
+ struct PagedShadowConeRay{dir:vec3f,cosTheta:f32,}
339
+ fn pagedShadowConeDirection(basis:Frame3,s:f32,disk:vec2f)->PagedShadowConeRay{
340
+ let across=disk*s;
341
+ let cosTheta=sqrt(max(0.0,1.0-dot(across,across)));
342
+ return PagedShadowConeRay(outOfFrame(vec3f(across,cosTheta),basis),cosTheta);
343
+ }
344
+ /** A sun's ray toward a point of its disk: the axis moved across by the disk point times the sun's radius (its sine), then
345
+ * normalised \u2014 the disk is on the plane across the axis, not on the sphere (\`pagedShadowConeDirection\`, the local lights'). */
346
+ fn pagedShadowSunDirection(basis:Frame3,radius:f32,disk:vec2f)->vec3f{
347
+ return outOfFrame(normalize(vec3f(disk*radius,1.0)),basis);
348
+ }
349
+ `),Gt=e=>d("pagedShadowRayNoiseWgsl",[ba,ma,e],`
350
+
351
+
352
+ fn pagedShadowRayNoise4(pixelPos:vec2u,timeIndex:u32,rayIndex:u32,rayTotal:u32)->vec4f{
353
+ let dims=vec2f(BLUE_NOISE_TILE.xy);
354
+ let offset1=vec2i(additive2d(vec2f(0.0),rayIndex)*dims);
355
+ let offset2=vec2i(additive2d(vec2f(0.0),rayIndex+rayTotal)*dims);
356
+ return vec4f(blueNoiseVec2(pixelPos+bitcast<vec2u>(offset1),timeIndex),blueNoiseVec2(pixelPos+bitcast<vec2u>(offset2),timeIndex));
357
+ }
358
+ `),k=d("PAGED_SHADOW_TRACE_RESULT_WGSL",[],`
359
+ struct PagedShadowTraceResult{shadowFactor:f32,rayCount:u32,occluderDistance:f32,}
360
+ fn pagedShadowEmptyTrace()->PagedShadowTraceResult{return PagedShadowTraceResult(1.0,0u,-1.0);}
361
+ `);var Xo=4,Ct=d("PAGED_SHADOW_EDGE_BOUNDS_WGSL",[u],`
362
+ ${Ta({PAGED_SHADOW_EDGE_TILE_SHIFT:Math.log2(Na),PAGED_SHADOW_EDGE_TILES_ACROSS:Ba,PAGED_SHADOW_EDGE_ARGS_WORD:Xo,PAGED_SHADOW_EDGE_INFINITY:2139095040,PAGED_SHADOW_EDGE_NO_FARTHEST:4286578688})}
363
+
364
+ fn pagedShadowEdgeWord(poolPage:u32,tile:vec2u)->u32{return 2u*((poolPage*PAGED_SHADOW_EDGE_TILES_ACROSS+tile.y)*PAGED_SHADOW_EDGE_TILES_ACROSS+tile.x);}
365
+ /** The nearest depth a tile's first word holds: +\u221E for a word never written. */
366
+ fn pagedShadowEdgeNearest(word:u32)->f32{return bitcast<f32>(PAGED_SHADOW_EDGE_INFINITY-word);}
367
+ `);var qo=`/** The biased level of a distance at a view depth, with the depth of field's bias (none for a negative
368
+ * depth) and the bias of the clipmap map that level falls in (\`pagedShadowClipmapLevelBias\`). Without the compute
369
+ * throttle every map of a clipmap carries the one resolution bias (\`pagedShadowClipmapProjectionData\`). */
370
+ fn pagedShadowSampledLevel(base:PagedShadowProjectionData,distSqToOrigin:f32,sceneDepth:f32)->f32{
371
+ var level=pagedShadowLevelOfDistanceSq(distSqToOrigin);
372
+ if(sceneDepth>=0.0){level+=pagedShadowDofResolutionBias(sceneDepth);}
373
+ return level+pagedShadowClipmapLevelBias(base,level);
374
+ }
375
+ struct PagedShadowMapRead{
376
+ depth:f32,
377
+ mipLevel:u32,
378
+ handle:PagedShadowHandle,
379
+ valid:bool,
380
+ mapTexelXY:vec2u,
381
+ mapTexelPos:vec2f,
382
+ poolTexel:vec2u,
383
+ }
384
+ fn pagedShadowEmptyRead()->PagedShadowMapRead{return PagedShadowMapRead(0.0,0u,pagedShadowHandleInvalid(),false,vec2u(0u),vec2f(0.0),vec2u(0u));}
385
+
386
+ fn pagedShadowPoolDepth(poolTexel:vec2u)->f32{return bitcast<f32>(pagedShadowPoolLoad(poolTexel,0u));}
387
+
388
+ fn pagedShadowReadMap(h:PagedShadowHandle,mapUvAt:vec2f,finestMip:u32)->PagedShadowMapRead{
389
+ return pagedShadowReadAt(h,pagedShadowLocalPageAt(h,mapUvAt,finestMip));
390
+ }
391
+
392
+ fn pagedShadowReadAt(h:PagedShadowHandle,page:PagedShadowLocalPage)->PagedShadowMapRead{
393
+ var r=pagedShadowEmptyRead();
394
+ if(page.valid){
395
+ r.valid=true;
396
+ r.mipLevel=page.coarserLevels;
397
+ r.handle=h;
398
+ r.mapTexelXY=page.mapTexelXY;
399
+ r.mapTexelPos=page.mapTexelPos;
400
+ r.poolTexel=page.poolTexel;
401
+ r.depth=pagedShadowPoolDepth(r.poolTexel);
402
+ }
403
+ return r;
404
+ }
405
+ struct PagedShadowLevelToLevel{scale:f32,bias:vec3f,depthInverse:f32,}`,Jo=`
406
+
407
+ fn pagedShadowLevelToLevelOf(h:PagedShadowHandle,levelOffset:i32)->PagedShadowLevelToLevel{
408
+
409
+ let a=h.id;
410
+ let b=pagedShadowHandleOffset(h,levelOffset).id;
411
+ let offsetA=vec2f(pagedShadowProjectionData[a].cornerSteps);
412
+ let offsetB=vec2f(pagedShadowProjectionData[b].cornerSteps);
413
+ var r:PagedShadowLevelToLevel;
414
+ r.scale=select(pow2FromExponent(-levelOffset),1.0/pow2FromExponent(levelOffset),levelOffset>=0);
415
+
416
+ // what dividing by the scale gives (\`clipmapDepth.test.ts\`).
417
+ r.depthInverse=select(1.0/pow2FromExponent(-levelOffset),pow2FromExponent(levelOffset),levelOffset>=0);
418
+ r.bias=vec3f(0.25*(offsetB-r.scale*offsetA),0.0);
419
+ let offsetZA=pagedShadowProjectionData[a].lightViewToClip[3][2];
420
+ let offsetZB=pagedShadowProjectionData[b].lightViewToClip[3][2];
421
+ r.bias.z=offsetZB-r.scale*offsetZA;
422
+ return r;
423
+ }
424
+
425
+ fn pagedShadowCoarserLevelPage(levelZeroPage:vec2u,h:PagedShadowHandle,levelOffset:u32)->vec2u{
426
+ let levelSteps=pagedShadowProjectionData[pagedShadowHandleOffset(h,i32(levelOffset)).id].cornerSteps;
427
+ return vec2u(pagedShadowCoarserLevelCell(vec2i(levelZeroPage),pagedShadowProjectionData[h.id].cornerSteps,levelSteps,levelOffset,levelOffset));
428
+ }
429
+
430
+ fn pagedShadowClipmapBasePage(mapUvAt:vec2f)->vec2u{return vec2u(mapUvAt*f32(PAGED_SHADOW_LEVEL0_PAGES));}
431
+
432
+
433
+
434
+
435
+ struct PagedShadowClipmapPage{entry:u32,levelEntry:u32,levelHandle:PagedShadowHandle,levelTexelMin:vec2u,toLevel:PagedShadowLevelToLevel,}
436
+ fn pagedShadowClipmapPage(h:PagedShadowHandle,levelZeroPage:vec2u)->PagedShadowClipmapPage{
437
+ var p:PagedShadowClipmapPage;
438
+ p.entry=pagedShadowTableWord(pagedShadowTableEntryOf(h,0u,levelZeroPage));
439
+ p.levelEntry=p.entry;
440
+ p.levelHandle=h;
441
+ let e=pagedShadowUnpackTableEntry(p.entry);
442
+ if(e.anyLevelMapped&&e.coarserLevels>0u){
443
+ let levelGap=e.coarserLevels;
444
+ p.levelHandle=pagedShadowHandleOffset(h,i32(levelGap));
445
+ let vPage=pagedShadowCoarserLevelPage(levelZeroPage,h,levelGap);
446
+ p.levelTexelMin=vPage*PAGED_SHADOW_PAGE_TEXELS;
447
+ p.toLevel=pagedShadowLevelToLevelOf(h,i32(levelGap));
448
+ p.levelEntry=pagedShadowTableWord(pagedShadowTableEntryOf(p.levelHandle,0u,vPage));
449
+ }
450
+ return p;
451
+ }`,Zo=`
452
+
453
+
454
+
455
+
456
+
457
+
458
+ struct PagedShadowClipmapTexel{
459
+ valid:bool,
460
+ levelHandle:PagedShadowHandle,
461
+ mapTexelXY:vec2u,
462
+ mapTexelPos:vec2f,
463
+ poolTexel:vec2u,
464
+ depthLevelBias:f32,
465
+ depthLevelInverse:f32,
466
+
467
+ span:f32,
468
+ }
469
+ fn pagedShadowClipmapTexel(h:PagedShadowHandle,page:PagedShadowClipmapPage,mapUvAt:vec2f)->PagedShadowClipmapTexel{
470
+ var r:PagedShadowClipmapTexel;
471
+ // On the sample's own level (raw \u2212 0)\xB71 is the raw depth (\`clipmapDepth.test.ts\`).
472
+ r.depthLevelInverse=1.0;
473
+ r.span=1.0;
474
+ var e=pagedShadowUnpackTableEntry(page.entry);
475
+ if(e.anyLevelMapped){
476
+ let levelGap=e.coarserLevels;
477
+ r.levelHandle=page.levelHandle;
478
+ r.mapTexelPos=mapUvAt*f32(pagedShadowTexelsAtLevel(0u));
479
+ r.mapTexelXY=vec2u(r.mapTexelPos);
480
+ if(levelGap>0u){
481
+ let t=page.toLevel;
482
+ let levelUv=mapUvAt*t.scale+t.bias.xy;
483
+ r.depthLevelInverse=t.depthInverse;
484
+ r.span=t.depthInverse;
485
+ r.depthLevelBias=t.bias.z;
486
+ r.mapTexelPos=levelUv*f32(pagedShadowTexelsAtLevel(0u));
487
+ r.mapTexelXY=clamp(vec2u(r.mapTexelPos),page.levelTexelMin,page.levelTexelMin+vec2u(PAGED_SHADOW_PAGE_TEXELS-1u));
488
+ e=pagedShadowUnpackTableEntry(page.levelEntry);
489
+ }
490
+ if(e.thisLevelMapped){
491
+ r.poolTexel=e.physicalAddress*PAGED_SHADOW_PAGE_TEXELS+(r.mapTexelXY&vec2u(PAGED_SHADOW_PAGE_TEXEL_MASK));
492
+ r.valid=true;
493
+ }
494
+ }
495
+ return r;
496
+ }`,Qo=`
497
+ /** A raw pool depth of \`t\`'s level as the sampled level reads it: (raw \u2212 bias)\xB7inverse, which no
498
+ * greater raw depth makes smaller (rounding is monotonic, the inverse positive). */
499
+ fn pagedShadowClipmapTexelDepth(t:PagedShadowClipmapTexel,raw:f32)->f32{return (raw-t.depthLevelBias)*t.depthLevelInverse;}
500
+
501
+
502
+ fn pagedShadowReadClipmapPage(h:PagedShadowHandle,page:PagedShadowClipmapPage,mapUvAt:vec2f)->PagedShadowMapRead{
503
+ let t=pagedShadowClipmapTexel(h,page,mapUvAt);
504
+ var r=pagedShadowEmptyRead();
505
+ r.mapTexelPos=t.mapTexelPos;
506
+ r.mapTexelXY=t.mapTexelXY;
507
+ r.poolTexel=t.poolTexel;
508
+ if(t.valid){
509
+ r.depth=pagedShadowClipmapTexelDepth(t,pagedShadowPoolDepth(t.poolTexel));
510
+ r.mipLevel=0u;
511
+ r.handle=t.levelHandle;
512
+ r.valid=true;
513
+ }
514
+ return r;
515
+ }`,_e=e=>d("PAGED_SHADOW_PROJECTION_SAMPLE_WGSL",[e,u,_,L,$,He,D,M,pt,Pa],`
516
+ ${qo}${Jo}${Zo}${Qo}
517
+ `);var Ht=`${v}`,Pe=P("pagedShadowLocalMipAt",[D,F],`fn pagedShadowLocalMipAt(pd:PagedShadowProjectionData,pointInMap:vec3f,sceneDepth:f32,viewToClip:mat4x4f,viewSize:vec2f,extraBias:f32)->u32{
518
+ let footprint=pagedShadowLocalPixelFootprint(pd,pointInMap,sceneDepth,viewToClip,viewSize);
519
+ var mip=pagedShadowLocalMipLevel(footprint,pd.levelBias,pagedShadow.pressureBias,extraBias);
520
+ if(pagedShadow.mipModeLocal==1u){mip=mip&~1u;}
521
+ else if(pagedShadow.mipModeLocal==2u){mip=mip|1u;}
522
+ return max(mip,pd.finestMip);
523
+ }`),er=`/** A light's map at a receiver \`shifted\` (the view's shifted frame), read once for its rays: a
524
+ * sun's clipmap level mapped at the receiver's texel, none past the last (the level its texel is
525
+ * mapped on is told by the page's words, \`pagedShadowClipmapTexel\`); a spot's one map; the cube face of a point or rectangle
526
+ * light the receiver lies in. \`mip\` is the finest mip its reads start from, \`pInMap\` the
527
+ * receiver in its shifted frame and \`mapPoint\` there in its UV clip space. A sun's also keeps the
528
+ * level its receiver's distance asks (\`level\`), the receiver there in its UV clip space
529
+ * (\`levelPoint\`) and the page read there (\`page\`, \`pagedShadowClipmapPage\`): a one-sample read takes it
530
+ * as it is (\`pagedShadowSampleLight\`). It holds no copy of the map's record: a reader re-reads what it
531
+ * needs (\`pagedShadowProjectionOf\`). */
532
+ struct PagedShadowLightMap{valid:bool,handle:PagedShadowHandle,clipmap:bool,mip:u32,pInMap:vec3f,mapPoint:vec4f,level:PagedShadowHandle,levelPoint:vec4f,page:PagedShadowClipmapPage,}
533
+
534
+ fn pagedShadowLightMapOn(m:ptr<function,PagedShadowLightMap>,h:PagedShadowHandle,shifted:vec3f){
535
+ let pd=pagedShadowProjectionOf(h);
536
+ (*m).handle=h;
537
+ (*m).pInMap=shifted+pagedShadowSubtractHighLow(pd.originShiftHigh,pd.originShiftLow,pagedShadowView.originShiftHigh,pagedShadowView.originShiftLow);
538
+ (*m).mapPoint=pd.shiftedToMapUv*vec4f((*m).pInMap,1.0);
539
+ }
540
+
541
+
542
+ fn pagedShadowLightMapAt(light:PagedShadowProjectionLight,shifted:vec3f,sceneDepth:f32)->PagedShadowLightMap{
543
+ var r:PagedShadowLightMap;
544
+ let h=pagedShadowHandleFromId(u32(light.mapId));
545
+ if(pagedShadowLightIsDirectional(light)){
546
+ r.clipmap=true;
547
+ let base=pagedShadowProjectionOf(h);
548
+ let d2=pagedShadowDistanceSqToOrigin(base,shifted,pagedShadowView.originShiftHigh,pagedShadowView.originShiftLow);
549
+ let levelIndex=max(0,i32(floor(pagedShadowSampledLevel(base,d2,sceneDepth)))-base.mapLevel);
550
+ if(levelIndex>=base.levelsLeft){return r;}
551
+ let levelMap=pagedShadowHandleOffset(h,levelIndex);
552
+ pagedShadowLightMapOn(&r,levelMap,shifted);
553
+ let uv=r.mapPoint.xy;
554
+ r.level=levelMap;
555
+ r.levelPoint=r.mapPoint;
556
+ r.page=pagedShadowClipmapPage(levelMap,pagedShadowClipmapBasePage(uv));
557
+ let t=pagedShadowClipmapTexel(levelMap,r.page,uv);
558
+ if(t.valid&&t.levelHandle.id>levelMap.id){pagedShadowLightMapOn(&r,pagedShadowHandleOffset(h,levelIndex+i32(t.levelHandle.id-levelMap.id)),shifted);}
559
+ r.valid=true;
560
+ return r;
561
+ }
562
+ var face=h;
563
+ if(light.kind!=LIGHT_KIND_SPOT){face=pagedShadowHandleOffset(h,i32(pagedShadowCubeFace(shifted-light.shiftedPosition)));}
564
+ pagedShadowLightMapOn(&r,face,shifted);
565
+ r.mip=face.finestMip;
566
+ r.valid=true;
567
+ return r;
568
+ }`,ar=`
569
+
570
+
571
+ fn pagedShadowDepthGradientUv(pd:PagedShadowProjectionData,pointInMap:vec3f,n:vec3f)->vec2f{
572
+ let planeUv=pd.planesToMapUv*vec4f(n,-dot(n,pointInMap));
573
+ return -planeUv.xy/planeUv.z;
574
+ }
575
+ /**
576
+ * THE DEPTH THE RECEIVER'S PLANE (\`slope\`) CLIMBS toward the light over \`offset\`, a step in the
577
+ * space the slope is given in (a UV step on the map for \`uvDepthSlope\`, a step across the light's
578
+ * frame for \`frameDepthSlope\`), doubled and never below 0: the one rule of the receiver-plane
579
+ * biases of the rays (\`traceRayWgsl.ts\`) \u2014 a local ray's offset from its start to the centre of
580
+ * the texel it reads, a sun ray's the dither it was started with, a local ray's dither lift.
581
+ */
582
+ fn pagedShadowPlaneLift(slope:vec2f,offset:vec2f)->f32{
583
+ return 2.0*max(0.0,dot(slope,offset));
584
+ }
585
+ /** The depth a unit of distance takes in a local light's map at a squared distance \`distSq\` from the
586
+ * light: |M22\xB7M33 \u2212 M32\xB7M23| / distSq, the derivative of the map's z/w taken radially, the same on
587
+ * every face. */
588
+ fn pagedShadowDepthPerDistance(pd:PagedShadowProjectionData,distSq:f32)->f32{
589
+ let m=pd.lightViewToClip;
590
+ return abs(m[2][2]*m[3][3]-m[3][2]*m[2][3])/distSq;
591
+ }
592
+ /** The receiver's texel in the world: a pixel's size at its view depth, at the map's resolution
593
+ * bias. The 0.1 floor is 0.1 cm (\xB7${Ht}). */
594
+ fn pagedShadowReceiverPixelSize(pd:PagedShadowProjectionData,sceneDepth:f32)->f32{
595
+ let pixelWorldHere=pagedShadowPixelWorldSize(sceneDepth,pagedShadowView.viewToClip,pagedShadowView.viewPixels.xy);
596
+ return max(0.1*${Ht},pixelWorldHere*exp2(pd.levelBias));
597
+ }
598
+
599
+
600
+ fn pagedShadowLocalRayReach(cosTheta:f32)->f32{
601
+ let sinTheta=sinFromCosUnclamped(cosTheta);
602
+ return 0.75*saturate(1.5/(cosTheta+pagedShadow.traceConeCot*sinTheta));
603
+ }`,O=e=>d("pagedShadowTraceMapWgsl",[_e(e),_,L,D,M,Sa],`
604
+ ${er}${ar}
605
+ `);var ae=e=>d("pagedShadowLocalReceiverWgsl",[O(e)],`
606
+
607
+
608
+ fn pagedShadowCentreLift(texelXY:vec2u,texelPos:vec2f,texels:u32,uvDepthSlope:vec2f,cap:f32)->f32{
609
+ let toCentre=(vec2f(texelXY)+0.5-texelPos)/f32(texels);
610
+ return min(cap,pagedShadowPlaneLift(uvDepthSlope,toCentre));
611
+ }
612
+
613
+
614
+
615
+ fn pagedShadowLocalOccluderDistance(m:mat4x4f,occluderDepth:f32,receiverDepth:f32,receiverDistance:f32)->f32{
616
+ let occluderViewZ=m[3][2]/(occluderDepth-m[2][2]);
617
+ let receiverViewZ=m[3][2]/(saturate(receiverDepth)-m[2][2]);
618
+ return max(1e-6*${v},receiverDistance-(receiverDistance/receiverViewZ)*occluderViewZ);
619
+ }
620
+ `),It=e=>d("pagedShadowLocalTapWgsl",[ae(e),k,E],`
621
+
622
+
623
+
624
+ fn pagedShadowLocalTap(m:PagedShadowLightMap,rayStart:f32)->PagedShadowTraceResult{
625
+ var result=pagedShadowEmptyTrace();
626
+ let pd=pagedShadowProjectionOf(m.handle);
627
+ let uvz=perspectiveDivide(m.mapPoint);
628
+ let read=pagedShadowReadMap(m.handle,uvz.xy,pd.finestMip);
629
+ if(!read.valid){return result;}
630
+ result.rayCount=1u;
631
+ let startBias=-max(rayStart,0.0)*pd.lightViewToClip[2][2]/m.mapPoint.w;
632
+ let biasedDepth=read.depth-startBias;
633
+ if(biasedDepth>uvz.z){
634
+ result.shadowFactor=0.0;
635
+ result.occluderDistance=pagedShadowLocalOccluderDistance(pd.lightViewToClip,biasedDepth,uvz.z,length(m.pInMap));
636
+ }
637
+ return result;
638
+ }
639
+ `);var Mt=`${v}`,tr=e=>d("pagedShadowPageCacheWgsl",[O(e),$],"\n/** A page kept: its map's id `map` (`NO_INDEX` for none yet), its table page `key` at the walked\n * resolution (`pagedShadowPageKey`) and its table words `page` (a local map's entry word in\n * `page.entry`). Nothing is kept across a receiver's rays: the march's registers stay its own. */\nstruct PagedShadowPageCache{map:u32,key:vec2u,page:PagedShadowClipmapPage,}\n/** The table page under `uv` at the walked resolution: a clipmap level's level-0 page, a local\n * map's page at mip `mip`; a UV of 1 on the last page. */\nfn pagedShadowPageKey(clipmap:bool,mip:u32,uv:vec2f)->vec2u{\n return min(pagedShadowClipmapBasePage(uv),vec2u(PAGED_SHADOW_LEVEL0_PAGES-1u))>>vec2u(select(mip,0u,clipmap));\n}\n/** Whether `c` keeps page `key` of map `h`. */\nfn pagedShadowPageKept(c:PagedShadowPageCache,h:PagedShadowHandle,key:vec2u)->bool{return h.id==c.map&&all(key==c.key);}\n/** Page `key` of map `h` read from the table (`pagedShadowPageKey`). */\nfn pagedShadowPageRead(h:PagedShadowHandle,clipmap:bool,mip:u32,key:vec2u)->PagedShadowPageCache{\n var c:PagedShadowPageCache;\n c.map=h.id;\n c.key=key;\n if(clipmap){c.page=pagedShadowClipmapPage(h,key);}\n else{c.page.entry=pagedShadowTableWord(pagedShadowTableEntryOf(h,mip,key));}\n return c;\n}\n"),or=`/** A ray's line on map \`h\`: its start (UV, its depth raised by \`bias\`, the receiver-plane bias
640
+ * of the ray: \`pagedShadowSunDitherBias\`, \`pagedShadowLocalPlaneBias\`) and its step to the
641
+ * far end, and the steepest slope the march extends an occluder with \u2014 a
642
+ * clipmap level's \`traceSlopeCapSun\` in its centimetre arithmetic (\xB7${Mt}), a perspective
643
+ * map's a share of the line's own depth step. It reads the two fields it needs from the map's
644
+ * record, never a copy of the record: re-reading is cheaper than the registers a copy holds. */
645
+ struct PagedShadowRayLine{uvz:vec3f,step:vec3f,slopeCap:f32,}
646
+ fn pagedShadowRayLine(h:PagedShadowHandle,clipmap:bool,start:vec3f,end:vec3f,clampStart:bool,bias:f32,uvOffset:vec2f)->PagedShadowRayLine{
647
+ let toUv=pagedShadowProjectionData[h.id].shiftedToMapUv;
648
+ let s4=toUv*vec4f(start,1.0);
649
+ let e4=toUv*vec4f(end,1.0);
650
+ var r:PagedShadowRayLine;
651
+ let a=perspectiveDivide(s4);
652
+ r.step=perspectiveDivide(e4)-a;
653
+ r.uvz=a;
654
+ if(clampStart){r.uvz=vec3f(saturate(a.xy),a.z);}
655
+ r.uvz=vec3f(r.uvz.xy+uvOffset,r.uvz.z+bias);
656
+ r.slopeCap=select(pagedShadow.traceSlopeCapLocal*r.step.z,abs(pagedShadow.traceSlopeCapSun*${Mt}*pagedShadowProjectionData[h.id].lightViewToClip[2][2]),clipmap);
657
+ return r;
658
+ }
659
+
660
+
661
+
662
+ fn pagedShadowSunDitherUv(pd:PagedShadowProjectionData,distance:f32)->f32{
663
+ let scale=pagedShadow.traceDitherSun*pd.ditherTexels;
664
+ if(!(scale>0.0)){return 0.0;}
665
+ return (0.5/f32(PAGED_SHADOW_LEVEL0_TEXELS))*scale*distance*PAGED_SHADOW_CM_PER_UNIT/exp2(f32(pd.mapLevel)-pd.levelBias);
666
+ }
667
+
668
+ fn pagedShadowMapDepthScale(m:PagedShadowLightMap)->f32{return abs(pagedShadowProjectionData[m.handle.id].lightViewToClip[2][2]);}
669
+
670
+
671
+
672
+ fn pagedShadowSunDitherBias(m:PagedShadowLightMap,offsetUv:vec2f,startOffset:f32,uvDepthSlope:vec2f)->f32{
673
+ let slope=clamp(uvDepthSlope,vec2f(-PAGED_SHADOW_TRACE_PLANE_SLOPE_SUN),vec2f(PAGED_SHADOW_TRACE_PLANE_SLOPE_SUN));
674
+ let gained=abs(startOffset)*pagedShadowMapDepthScale(m);
675
+ return max(0.0,pagedShadowPlaneLift(slope,offsetUv)-gained);
676
+ }
677
+ `,rr=`
678
+ struct PagedShadowSeen{map:u32,mip:u32,virtualTexel:vec2u,poolTexel:vec2u,}
679
+ var<private> pagedShadowSeen:PagedShadowSeen;`,ir=e=>`
680
+
681
+
682
+
683
+ fn pagedShadowLocalBiasCap(m:PagedShadowLightMap,texel:f32,distSq:f32)->f32{
684
+ return pagedShadow.tracePlaneBiasCap*texel*pagedShadowDepthPerDistance(pagedShadowProjectionOf(m.handle),distSq);
685
+ }
686
+
687
+
688
+ fn pagedShadowLocalPlaneBias(m:PagedShadowLightMap,rayStart:vec3f,uvDepthSlope:vec2f,cap:f32)->f32{
689
+ let uv=saturate(perspectiveDivide(pagedShadowProjectionData[m.handle.id].shiftedToMapUv*vec4f(rayStart,1.0)).xy);
690
+ let key=pagedShadowPageKey(false,m.mip,uv);
691
+ let page=pagedShadowLocalPageFrom(pagedShadowTableWord(pagedShadowTableEntryOf(m.handle,m.mip,key)),uv,m.mip);
692
+ if(!page.valid){return 0.0;}
693
+ return pagedShadowCentreLift(page.mapTexelXY,page.mapTexelPos,pagedShadowTexelsAtLevel(page.coarserLevels),uvDepthSlope,cap);
694
+ }
695
+
696
+
697
+
698
+
699
+ struct PagedShadowRay{far:PagedShadowHandle,near:PagedShadowHandle,clipmap:bool,mip:u32,crosses:bool,inFar:bool,farLine:PagedShadowRayLine,nearLine:PagedShadowRayLine,pages:PagedShadowPageCache,}
700
+
701
+
702
+ fn pagedShadowRayBegin(light:PagedShadowProjectionLight,m:PagedShadowLightMap,start:vec3f,end:vec3f,bias:f32,uvOffset:vec2f)->PagedShadowRay{
703
+ var r:PagedShadowRay;
704
+ r.clipmap=m.clipmap;
705
+ r.mip=m.mip;
706
+ r.far=m.handle;
707
+ r.near=m.handle;
708
+ r.pages.map=NO_INDEX;${e?`
709
+ pagedShadowSeen.map=NO_INDEX;`:""}
710
+ if(!m.clipmap&&light.kind!=LIGHT_KIND_SPOT){
711
+ let base=pagedShadowHandleFromId(u32(light.mapId));
712
+ r.far=pagedShadowHandleOffset(base,i32(pagedShadowCubeFace(end)));
713
+ r.near=pagedShadowHandleOffset(base,i32(pagedShadowCubeFace(start)));
714
+ }
715
+ r.crosses=r.far.id!=r.near.id;
716
+ r.inFar=true;
717
+ r.farLine=pagedShadowRayLine(r.far,r.clipmap,start,end,!r.crosses,bias,uvOffset);
718
+ r.nearLine=r.farLine;
719
+ if(r.crosses){r.nearLine=pagedShadowRayLine(r.near,r.clipmap,start,end,false,bias,uvOffset);}
720
+ return r;
721
+ }`,sr=e=>`
722
+
723
+
724
+
725
+ fn pagedShadowRayTexel(ray:ptr<function,PagedShadowRay>,h:PagedShadowHandle,uv:vec2f)->PagedShadowClipmapTexel{
726
+ var r:PagedShadowClipmapTexel;
727
+ if(any(uv!=saturate(uv))){return r;}
728
+ let clipmap=(*ray).clipmap;
729
+ let mip=(*ray).mip;
730
+ let key=pagedShadowPageKey(clipmap,mip,uv);
731
+ if(!pagedShadowPageKept((*ray).pages,h,key)){(*ray).pages=pagedShadowPageRead(h,clipmap,mip,key);}
732
+ if(clipmap){${e?`
733
+ let t=pagedShadowClipmapTexel(h,(*ray).pages.page,uv);
734
+ if(t.valid){pagedShadowSeen=PagedShadowSeen(t.levelHandle.id,u32(pagedShadowProjectionData[t.levelHandle.id].mapLevel),t.mapTexelXY,t.poolTexel);}
735
+ return t;`:`
736
+ return pagedShadowClipmapTexel(h,(*ray).pages.page,uv);`}
737
+ }
738
+ let page=pagedShadowLocalPageFrom((*ray).pages.page.entry,uv,mip);${e?`
739
+ if(page.valid){pagedShadowSeen=PagedShadowSeen(h.id,mip,page.mapTexelXY,page.poolTexel);}`:""}
740
+ r.valid=page.valid;
741
+ r.poolTexel=page.poolTexel;
742
+ r.depthLevelInverse=1.0;
743
+ r.span=exp2(f32(page.coarserLevels-mip));
744
+ return r;
745
+ }
746
+
747
+ struct PagedShadowMarchStep{valid:bool,storedDepth:f32,marchRayDepth:f32,slopeCap:f32,restartSlope:bool,}
748
+ fn pagedShadowRaySampleOn(ray:ptr<function,PagedShadowRay>,h:PagedShadowHandle,line:PagedShadowRayLine,rayTime:f32)->PagedShadowMarchStep{
749
+ let uvz=line.uvz+line.step*rayTime;
750
+ var s=PagedShadowMarchStep(false,0.0,uvz.z,line.slopeCap,false);
751
+ let t=pagedShadowRayTexel(ray,h,uvz.xy);
752
+ if(t.valid){s.valid=true;s.storedDepth=pagedShadowClipmapTexelDepth(t,pagedShadowPoolDepth(t.poolTexel));}
753
+ return s;
754
+ }
755
+ /** The ray's sample at \`rayTime\`: on the far map, then on the near face once the far face holds
756
+ * none \u2014 the slope held restarting there. */
757
+ fn pagedShadowRayStep(ray:ptr<function,PagedShadowRay>,rayTime:f32)->PagedShadowMarchStep{
758
+ if((*ray).inFar){
759
+ let s=pagedShadowRaySampleOn(ray,(*ray).far,(*ray).farLine,rayTime);
760
+ if(s.valid||!(*ray).crosses){return s;}
761
+ (*ray).inFar=false;
762
+ var n=pagedShadowRaySampleOn(ray,(*ray).near,(*ray).nearLine,rayTime);
763
+ n.restartSlope=true;
764
+ return n;
765
+ }
766
+ return pagedShadowRaySampleOn(ray,(*ray).near,(*ray).nearLine,rayTime);
767
+ }`,dr=`
768
+
769
+
770
+
771
+ fn pagedShadowMarch(ray:ptr<function,PagedShadowRay>,stepCount:i32,stepJitter:f32,hitDepth:ptr<function,f32>)->bool{
772
+
773
+ let noHistory=-10000.0;
774
+ var heldDepth=noHistory;
775
+ var heldTime=-1.0;
776
+ var heldSlope=0.0;
777
+ let time=pagedShadowMarchTimeLine(stepCount,stepJitter);
778
+ var prevRayDepth=-1.0;
779
+ for(var i=0;i<=stepCount;i++){
780
+ let rayTime=pagedShadowMarchTime(i,stepCount,time);
781
+ let s=pagedShadowRayStep(ray,rayTime);
782
+ let marchRayDepth=s.marchRayDepth;
783
+ if(s.restartSlope){heldSlope=s.slopeCap;}
784
+ if(s.valid){
785
+ let storedDepth=s.storedDepth;
786
+ if(heldDepth==noHistory){
787
+ heldDepth=storedDepth;
788
+ heldTime=rayTime;
789
+ if(storedDepth>marchRayDepth){*hitDepth=storedDepth;return true;}
790
+ }else{
791
+ let rayDepthStep=marchRayDepth-prevRayDepth;
792
+
793
+ let depthTolerance=abs(rayDepthStep)*1.05;
794
+ let farBehind=(storedDepth-marchRayDepth)>depthTolerance;
795
+ var comparedDepth=storedDepth;
796
+ let sinceHeld=rayTime-heldTime;
797
+ if(farBehind){comparedDepth=heldSlope*sinceHeld+heldDepth;}
798
+ else if(storedDepth!=heldDepth){
799
+ let slopeLimit=s.slopeCap;
800
+
801
+ heldSlope=min(max((storedDepth-heldDepth)/sinceHeld,-slopeLimit),slopeLimit);
802
+ heldDepth=storedDepth;
803
+ heldTime=rayTime;
804
+ }
805
+ let depthGap=marchRayDepth-comparedDepth;
806
+ let halfTolerance=0.5*depthTolerance;
807
+ if(abs(depthGap+halfTolerance)<halfTolerance){*hitDepth=comparedDepth;return true;}
808
+ }
809
+ prevRayDepth=marchRayDepth;
810
+ }
811
+ }
812
+ return false;
813
+ }`,Ke=P("pagedShadowOrthoOccluderDistance",[],`fn pagedShadowOrthoOccluderDistance(m:mat4x4f,hitDepth:f32,receiverDepth:f32)->f32{
814
+ let occluderViewZ=(hitDepth-m[3][2])/m[2][2];
815
+ let receiverViewZ=(receiverDepth-m[3][2])/m[2][2];
816
+ return max(1e-6*${v},receiverViewZ-occluderViewZ);
817
+ }`),lr=`
818
+
819
+
820
+
821
+ fn pagedShadowRayOccluderDistance(ray:ptr<function,PagedShadowRay>,hitDepth:f32,receiverDistance:f32)->f32{
822
+ var h=(*ray).near;
823
+ var line=(*ray).nearLine;
824
+ if((*ray).inFar){h=(*ray).far;line=(*ray).farLine;}
825
+ let m=pagedShadowProjectionData[h.id].lightViewToClip;
826
+ if((*ray).clipmap){return pagedShadowOrthoOccluderDistance(m,hitDepth,line.uvz.z);}
827
+ return pagedShadowLocalOccluderDistance(m,hitDepth,line.uvz.z,receiverDistance);
828
+ }`,J=(e,a=!1)=>d(a?"pagedShadowTraceRayWgsl(visualize)":"pagedShadowTraceRayWgsl",[ve,O(e),ae(e),tr(e),_,L,$,M,E,H,Ke],`
829
+ ${a?rr:""}${or}${ir(a)}${sr(a)}${dr}${lr}
830
+ `);var nr=2**-20,pr=`
831
+ const PAGED_SHADOW_PCF_TAPS:u32=0u;
832
+ const PAGED_SHADOW_PCF_LIT:u32=1u;
833
+ const PAGED_SHADOW_PCF_UMBRA:u32=2u;
834
+ `,hr=`
835
+ const PAGED_SHADOW_PCF_EDGE_ROUNDING:f32=${se(nr)};
836
+ /** The occluder's depth of the last window the edge test answered in umbra: the mean of its tiles' farthest depths from
837
+ * the light, every one over the receiver's plane \u2014 the side of the occluder nearest the receiver. Its initial value is
838
+ * written: a private variable the shader runner reads is one with a value (\`shaderRun.fixture.ts\`). */
839
+ var<private> pagedShadowPcfUmbraDepth:f32=0.0;
840
+ /** The edge test of the window \`pagedShadowPcfWindow\` reads through \`ray\` on map \`h\` (its texels' place \`position\`, \`size\` texels a
841
+ * side, the plane's lift \`halfClimb\`), from the bounds of the 4\xD74 tiles its texels lie in (\`pagedShadowEdgeWord\`): \`PAGED_SHADOW_PCF_LIT\`
842
+ * where the nearest depth of each tile lies under the plane's least over the tile's texels of the window, so that every texel
843
+ * compares lit; \`PAGED_SHADOW_PCF_UMBRA\` (asked by \`umbra\`) where the farthest of each lies over the plane's greatest, so that every
844
+ * texel compares blocked, the mean of those farthest depths kept (\`pagedShadowPcfUmbraDepth\`); \`PAGED_SHADOW_PCF_TAPS\` otherwise. The
845
+ * texels are the taps' own, held inside the map; their pages are read as the taps read them (\`pagedShadowPageKept\`), and one not
846
+ * mapped at the window's level or mip \u2014 none, or a coarser one in its place, whose texels, depths and lift are others \u2014
847
+ * leaves the window to the taps. A local map's window is left to them before any read: no bound of its pages is built. */
848
+ fn pagedShadowPcfEdge(ray:ptr<function,PagedShadowRay>,h:PagedShadowHandle,point:vec3f,slope:vec2f,position:vec2f,size:f32,halfClimb:f32,umbra:bool)->u32{
849
+ if(!(*ray).clipmap){return PAGED_SHADOW_PCF_TAPS;}
850
+ let last=vec2i(i32(size)-1);
851
+ let first=vec2i(floor(position))-1;
852
+ let lo=clamp(first,vec2i(0),last);
853
+ let hi=clamp(first+3,vec2i(0),last);
854
+ let up=slope>=vec2f(0.0);
855
+ var lit=true;
856
+ var shade=umbra;
857
+ var farthest=0.0;
858
+ var tiles=0.0;
859
+ for(var ty=lo.y>>PAGED_SHADOW_EDGE_TILE_SHIFT;ty<=hi.y>>PAGED_SHADOW_EDGE_TILE_SHIFT;ty++){
860
+ for(var tx=lo.x>>PAGED_SHADOW_EDGE_TILE_SHIFT;tx<=hi.x>>PAGED_SHADOW_EDGE_TILE_SHIFT;tx++){
861
+ let corner=vec2i(tx,ty)<<vec2u(PAGED_SHADOW_EDGE_TILE_SHIFT);
862
+ let a=max(lo,corner);
863
+ let b=min(hi,corner+3);
864
+ let key=vec2u(a)>>vec2u(PAGED_SHADOW_LOG2_PAGE);
865
+ if(!pagedShadowPageKept((*ray).pages,h,key)){(*ray).pages=pagedShadowPageRead(h,(*ray).clipmap,(*ray).mip,key);}
866
+ let e=pagedShadowUnpackTableEntry((*ray).pages.page.entry);
867
+ if(!e.thisLevelMapped){return PAGED_SHADOW_PCF_TAPS;}
868
+ let at=pagedShadowEdgeWord(pagedShadowPoolIndexOf(e.physicalAddress),(vec2u(a)&vec2u(PAGED_SHADOW_PAGE_TEXEL_MASK))>>vec2u(PAGED_SHADOW_EDGE_TILE_SHIFT));
869
+
870
+ let low=(vec2f(select(b,a,up))+0.5)/size-point.xy;
871
+ let high=(vec2f(select(a,b,up))+0.5)/size-point.xy;
872
+ let least=point.z+dot(slope,low)+halfClimb;
873
+ let most=point.z+dot(slope,high)+halfClimb;
874
+ let rounding=(abs(point.z)+dot(abs(slope),max(abs(low),abs(high)))+halfClimb)*PAGED_SHADOW_PCF_EDGE_ROUNDING;
875
+ lit=lit&&pagedShadowEdgeNearest(pagedShadowEdgeBoundsLoad(at))<=least-rounding;
876
+ if(shade){
877
+ let far=bitcast<f32>(pagedShadowEdgeBoundsLoad(at+1u));
878
+ shade=far>most+rounding;
879
+ farthest+=far;
880
+ tiles+=1.0;
881
+ }
882
+ if(!(lit||shade)){return PAGED_SHADOW_PCF_TAPS;}
883
+ }
884
+ }
885
+
886
+ if(!lit){pagedShadowPcfUmbraDepth=farthest/tiles;}
887
+ return select(PAGED_SHADOW_PCF_UMBRA,PAGED_SHADOW_PCF_LIT,lit);
888
+ }`,cr=` let size=f32(pagedShadowTexelsAtLevel((*ray).mip));
889
+ let position=point.xy*size-0.5;
890
+ let f=fract(position);
891
+ let wx=vec4f(1.0-f.x,1.0,1.0,f.x);
892
+ let wy=vec4f(1.0-f.y,1.0,1.0,f.y);
893
+
894
+ let texel=1.0/size;
895
+ let first=(floor(position)-0.5)*texel;
896
+ let inside=vec2f(0.5*texel);
897
+
898
+ let halfClimb=0.5*(abs(slope.x)+abs(slope.y))*texel;`,fr=e=>`
899
+ let edge=${e?"pagedShadowPcfEdge(ray,h,point,slope,position,size,halfClimb,umbra)":"PAGED_SHADOW_PCF_TAPS"};
900
+
901
+ if(edge==PAGED_SHADOW_PCF_LIT){return vec3f(0.0,0.0,1.0);}
902
+ var r=vec3f(0.0);
903
+ for(var y=0u;y<4u;y++){
904
+ for(var x=0u;x<4u;x++){
905
+
906
+ var blocked=edge==PAGED_SHADOW_PCF_UMBRA;
907
+ var stored=${e?"pagedShadowPcfUmbraDepth":"0.0"};
908
+ if(!blocked){
909
+ let centre=clamp(first+vec2f(f32(x),f32(y))*texel,inside,1.0-inside);
910
+ let t=pagedShadowRayTexel(ray,h,centre);
911
+ if(!t.valid){continue;}
912
+ stored=pagedShadowClipmapTexelDepth(t,pagedShadowPoolDepth(t.poolTexel));
913
+ blocked=stored>point.z+dot(slope,centre-point.xy)+halfClimb*t.span;
914
+ }
915
+ r.z+=wx[x]*wy[y];
916
+ if(blocked){
917
+ let w=wx[x]*wy[y];
918
+ r.x+=w;
919
+ r.y+=w*stored;
920
+ }
921
+ }
922
+ }
923
+ return r;`,gr=(e,a)=>`
924
+
925
+
926
+
927
+
928
+ fn pagedShadowPcfWindow(ray:ptr<function,PagedShadowRay>,h:PagedShadowHandle,point:vec3f,slope:vec2f,umbra:bool)->vec3f{${e?`
929
+ pagedShadowSeen.map=NO_INDEX;`:""}
930
+ ${cr}${fr(a)}
931
+ }
932
+ `,Sr=`/** A sun's filtered read: the level that maps its receiver (\`m.handle\`) around \`startInMap\`, the receiver moved along the
933
+ * light by its screen segment, under the plane of \`normal\`. The page its level was read at (\`m.page\`) is kept for the window.
934
+ * \`shareAlone\`: the caller reads the share alone (\`pagedShadowPcfWindow\`'s \`umbra\`). */
935
+ fn pagedShadowSunFiltered(m:PagedShadowLightMap,startInMap:vec3f,normal:vec3f,shareAlone:bool)->PagedShadowTraceResult{
936
+ let pd=pagedShadowProjectionOf(m.handle);
937
+ let start=(pd.shiftedToMapUv*vec4f(startInMap,1.0)).xyz;
938
+ // The plane's slope held to \`PAGED_SHADOW_PCF_STEEPEST\`: depth per unit along the light over UV per unit across it.
939
+ let uvPerUnit=length(vec3f(pd.shiftedToMapUv[0][0],pd.shiftedToMapUv[1][0],pd.shiftedToMapUv[2][0]));
940
+ let steepest=PAGED_SHADOW_PCF_STEEPEST*pagedShadowMapDepthScale(m)/uvPerUnit;
941
+ let slope=clamp(pagedShadowDepthGradientUv(pd,m.pInMap,normal),vec2f(-steepest),vec2f(steepest));
942
+ var ray:PagedShadowRay;
943
+ ray.clipmap=true;
944
+ ray.mip=0u;
945
+ ray.pages.map=NO_INDEX;
946
+ // Keyed as it was read (\`pagedShadowClipmapBasePage\`): on the map's last edge the window's key differs, and reads its page again.
947
+ if(m.level.id==m.handle.id){ray.pages=PagedShadowPageCache(m.handle.id,pagedShadowClipmapBasePage(m.levelPoint.xy),m.page);}
948
+ let w=pagedShadowPcfWindow(&ray,m.handle,start,slope,shareAlone);
949
+ var result=pagedShadowEmptyTrace();
950
+ result.rayCount=1u;
951
+ result.shadowFactor=1.0-w.x/max(w.z,1.0);
952
+ if(w.x>0.0){result.occluderDistance=pagedShadowOrthoOccluderDistance(pd.lightViewToClip,w.y/w.x,start.z);}
953
+ return result;
954
+ }
955
+
956
+
957
+
958
+ fn pagedShadowLocalFiltered(m:PagedShadowLightMap,rayStart:f32,normal:vec3f,sceneDepth:f32,shareAlone:bool)->PagedShadowTraceResult{
959
+ let pd=pagedShadowProjectionOf(m.handle);
960
+ let uvz=perspectiveDivide(m.mapPoint);
961
+ var mip=pd.finestMip;
962
+ if(sceneDepth>=0.0){mip=pagedShadowLocalMipAt(pd,m.pInMap,sceneDepth,pagedShadowView.viewToClip,pagedShadowView.viewPixels.xy,0.0);}
963
+ // The plane's slope held to \`PAGED_SHADOW_PCF_STEEPEST\` at the receiver: the map's depth a unit of distance there
964
+ // (\`pagedShadowDepthPerDistance\`) over its UV a unit across there, half the projection's first term over the clip w.
965
+ let steepest=PAGED_SHADOW_PCF_STEEPEST*pagedShadowDepthPerDistance(pd,dot(m.pInMap,m.pInMap))*abs(m.mapPoint.w)/(0.5*abs(pd.lightViewToClip[0][0]));
966
+ let slope=clamp(pagedShadowDepthGradientUv(pd,m.pInMap,normal),vec2f(-steepest),vec2f(steepest));
967
+ let startBias=-max(rayStart,0.0)*pd.lightViewToClip[2][2]/m.mapPoint.w;
968
+ var ray:PagedShadowRay;
969
+ ray.clipmap=false;
970
+ ray.mip=mip;
971
+ ray.pages.map=NO_INDEX;
972
+ let w=pagedShadowPcfWindow(&ray,m.handle,vec3f(uvz.xy,uvz.z+startBias),slope,shareAlone);
973
+ var result=pagedShadowEmptyTrace();
974
+ if(w.z==0.0){return result;}
975
+ result.rayCount=1u;
976
+ result.shadowFactor=1.0-w.x/max(w.z,1.0);
977
+ if(w.x>0.0){result.occluderDistance=pagedShadowLocalOccluderDistance(pd.lightViewToClip,w.y/w.x,uvz.z,length(m.pInMap));}
978
+ return result;
979
+ }
980
+ `,kt=(e,a=!1,t=!1)=>d(`pagedShadowTraceFilteredWgsl(${a?"visualize, ":""}${t?"edge":"taps"})`,[k,O(e),Pe,ae(e),J(e,a),Ke,E,H,...t?[Ct]:[]],`${pr}${t?hr:""}${gr(a,t)}${Sr}`);var Nt=e=>d(`pagedShadowScreenSegmentWgsl(${e.join(", ")})`,[ya(e[0],e[1]),Wa],`
981
+
982
+
983
+ struct PagedShadowScreenStart{start:vec3f,depth:f32,}
984
+ fn pagedShadowScreenRayStart(rayOrigin:vec3f)->PagedShadowScreenStart{
985
+ let start=clipToFramebuffer(pagedShadowView.shiftedToClip*vec4f(rayOrigin,1.0),pagedShadowView.viewPixels.xy);
986
+ return PagedShadowScreenStart(start,hizOpaqueDepth(vec2i(floor(start.xy))));
987
+ }
988
+ /** The screen segment from the receiver \`rayOrigin\` read at \`s\` (\`pagedShadowScreenRayStart\`):
989
+ * ${ce} samples of the opaque depth (\`hizOpaqueDepth\`) along the ray's length,
990
+ * the first at (\`dither\` + 0.5) of a step, each next a step further. A sample whose depth is the
991
+ * start pixel's own (an exact compare: point samples of one texture) is the receiver itself and
992
+ * skipped (one off the image reads its edge pixel, as a clamped sampler would); the first
993
+ * sample behind the depth ends the segment a step and a half back (declared: the map segment starts
994
+ * at the surface, never behind it), else the segment is the whole length. A transparent surface is
995
+ * no occluder here: the opaque depth does not hold it, and the maps hold none of it (it casts no
996
+ * shadow of its own). The map's segment starts where the screen's stopped. */
997
+ fn pagedShadowScreenRayFrom(s:PagedShadowScreenStart,rayOrigin:vec3f,rayDirection:vec3f,rayLength:f32,dither:f32)->f32{
998
+ let size=pagedShadowView.viewPixels.xy;
999
+ let c1=pagedShadowView.shiftedToClip*vec4f(rayOrigin+rayDirection*rayLength,1.0);
1000
+ let d=clipToFramebuffer(c1,size)-s.start;
1001
+ let step=1.0/${ce}.0;
1002
+ var time=(dither+0.5)*step;
1003
+ for(var i=0u;i<${ce}u;i++){
1004
+ let p=s.start+d*time;
1005
+ let depth=hizOpaqueDepth(vec2i(floor(p.xy)));
1006
+ if(depth!=s.depth&&p.z<depth){return rayLength*max(0.0,time-1.5*step);}
1007
+ time+=step;
1008
+ }
1009
+ return rayLength;
1010
+ }
1011
+ `);var Bt=d("CLASSIC_PCF_WGSL",[],`
1012
+ fn classicTransitionVisibility(stored:f32,receiver:f32,scale:f32)->f32{
1013
+ return saturate(1.0-(stored-receiver)*scale);
1014
+ }
1015
+ fn classicPcfWeights(fraction:f32)->array<f32,6>{
1016
+ return array<f32,6>(1.0-fraction,1.0,1.0,1.0,1.0,fraction);
1017
+ }
1018
+ fn classicPcf5x5(fraction:vec2f,values:array<f32,36>)->f32{
1019
+ let wx=classicPcfWeights(fraction.x);
1020
+ let wy=classicPcfWeights(fraction.y);
1021
+ var sum=0.0;
1022
+ for(var y=0u;y<6u;y++){
1023
+ for(var x=0u;x<6u;x++){sum+=values[y*6u+x]*wx[x]*wy[y];}
1024
+ }
1025
+ return sum*0.04;
1026
+ }
1027
+ fn classicOverBlurCorrection(visibility:f32)->f32{return visibility*visibility;}
1028
+ fn classicCascadeBlend(depth:f32,fadePlane:f32,fadeLength:f32)->f32{
1029
+ if(fadeLength<=0.0){return 1.0;}
1030
+ return 1.0-saturate((depth-fadePlane)/fadeLength);
1031
+ }
1032
+ fn classicReceiverTransitionScale(scale:f32,receiverBias:f32,cosine:f32)->f32{
1033
+ return scale*(1.0-receiverBias+receiverBias*saturate(cosine));
1034
+ }
1035
+ fn classicFadedOut(visibility:f32,depth:f32,fadeout:vec2f)->f32{
1036
+ return mix(visibility,1.0,saturate((depth-fadeout.x)*fadeout.y));
1037
+ }
1038
+ fn classicSharpened(visibility:f32,sharpen:f32)->f32{
1039
+ if(sharpen<=0.0){return visibility;}
1040
+ return saturate((visibility-0.5)*(1.0+7.0*sharpen)+0.5);
1041
+ }
1042
+ fn classicShaped(filtered:f32,sharpen:f32)->f32{return classicOverBlurCorrection(classicSharpened(filtered,sharpen));}
1043
+ `);var ur=()=>`
1044
+ const CLASSIC_UNIT_PER_CM:f32=${v};
1045
+ const CLASSIC_SUN_SLOTS:u32=${et}u;
1046
+ const CLASSIC_MAX_CASCADES:u32=10u;
1047
+ var<private> CLASSIC_DISC=array<vec2f,29>(${Er});`,wr=()=>`/** The stored depth at a point (\`uv\`) of map \`h\` at \`mip\`: (1, depth) where a page holds it, (0, 0) where none does. */
1048
+ fn classicDepthAt(h:PagedShadowHandle,clipmap:bool,mip:u32,uv:vec2f)->vec2f{
1049
+ var ray:PagedShadowRay;
1050
+ ray.clipmap=clipmap;
1051
+ ray.mip=mip;
1052
+ ray.pages.map=NO_INDEX;
1053
+ let t=pagedShadowRayTexel(&ray,h,uv);
1054
+ if(!t.valid){return vec2f(0.0,0.0);}
1055
+ return vec2f(1.0,pagedShadowClipmapTexelDepth(t,pagedShadowPoolDepth(t.poolTexel)));
1056
+ }
1057
+
1058
+ fn classicFiltered(h:PagedShadowHandle,clipmap:bool,mip:u32,uv:vec2f,receiver:f32,transitionScale:f32,sharpen:f32)->f32{
1059
+ let size=f32(pagedShadowTexelsAtLevel(mip));
1060
+ let position=uv*size-0.5;
1061
+ let fraction=fract(position);
1062
+ let first=floor(position)-2.0;
1063
+ var values:array<f32,36>;
1064
+ for(var y=0u;y<6u;y++){
1065
+ for(var x=0u;x<6u;x++){
1066
+ let at=(first+vec2f(f32(x),f32(y))+0.5)/size;
1067
+ let stored=classicDepthAt(h,clipmap,mip,at);
1068
+ values[y*6u+x]=select(1.0,classicTransitionVisibility(stored.y,receiver,transitionScale),stored.x>0.5);
1069
+ }
1070
+ }
1071
+ return classicShaped(classicPcf5x5(fraction,values),sharpen);
1072
+ }
1073
+
1074
+ fn classicRampScale(ramp:f32,depthPerDistance:f32)->f32{
1075
+ return 1.0/(max(ramp,0.00001)*depthPerDistance);
1076
+ }
1077
+ fn classicAccumulated(exponent:f32,index:u32,count:u32)->f32{
1078
+ if(index==0u){return 0.0;}
1079
+ var current=1.0;var taken=0.0;var total=0.0;
1080
+ for(var i=0u;i<count;i++){
1081
+ if(i<index){taken+=current;}
1082
+ total+=current;
1083
+ current*=exponent;
1084
+ }
1085
+ return taken/total;
1086
+ }
1087
+
1088
+ fn classicUserBias(light:PagedShadowProjectionLight)->vec3f{
1089
+ let w=light.sourceWord;
1090
+ let biases=vec2f(f32(w&${2**ee-1}u),f32(w>>${ee+fe}u))*(${at}.0/${2**ee-1}.0);
1091
+ return vec3f(biases,f32((w>>${ee}u)&${2**fe-1}u)/${2**fe-1}.0);
1092
+ }`,mr=()=>`/** The shadow of the sun \`light\` (the cascades of the view's words) at the receiver \`P\`: lit where it has none. Biases and ramp in distance, as \`classicBias.ts\` has them. */
1093
+ fn classicSun(light:PagedShadowProjectionLight,P:vec3f,n:vec3f,axis:vec3f)->f32{
1094
+ if(pagedShadowView.isOrtho!=0u){return 1.0;}
1095
+ var slot=CLASSIC_SUN_SLOTS;
1096
+ for(var i=0u;i<CLASSIC_SUN_SLOTS;i++){
1097
+ if(i32(pagedShadowView.classic[2u*i+1u].x)==light.mapId){slot=i;break;}
1098
+ }
1099
+ if(slot==CLASSIC_SUN_SLOTS){return 1.0;}
1100
+ let sun=pagedShadowView.classic[2u*slot];
1101
+ let bias=pagedShadowView.classic[16];
1102
+ let near=pagedShadowView.classic[19].x;
1103
+ let user=classicUserBias(light);
1104
+ let count=min(u32(sun.w),CLASSIC_MAX_CASCADES);
1105
+ let depth=dot(pagedShadowView.viewForward,P-pagedShadowView.shiftedEye);
1106
+ let tanX=1.0/pagedShadowView.viewToClip[0][0];
1107
+ let tanY=1.0/pagedShadowView.viewToClip[1][1];
1108
+ let nol=saturate(dot(n,axis));
1109
+ let base=pagedShadowHandleFromId(u32(light.mapId));
1110
+ var visible=1.0;
1111
+ for(var k=0u;k<count;k++){
1112
+ let low=near+classicAccumulated(sun.y,k,count)*(sun.x-near);
1113
+ let split=near+classicAccumulated(sun.y,k+1u,count)*(sun.x-near);
1114
+ let fade=(split-low)*sun.z;
1115
+ let last=k+1u==count;
1116
+ let high=select(split+fade,split,last);
1117
+ let plane=select(split,split-fade,last);
1118
+ if(depth<low){break;}
1119
+ if(depth>=high){continue;}
1120
+
1121
+ let span=high-low;
1122
+ let farDiagonal=(tanX*high)*(tanX*high)+(tanY*high)*(tanY*high);
1123
+ let nearDiagonal=(tanX*low)*(tanX*low)+(tanY*low)*(tanY*low);
1124
+ let centre=clamp(high-((nearDiagonal-farDiagonal)/(2.0*span)+span*0.5),low,high);
1125
+ let radius=max(sqrt(max(farDiagonal+(high-centre)*(high-centre),nearDiagonal+(centre-low)*(centre-low))),CLASSIC_UNIT_PER_CM);
1126
+
1127
+ let h=pagedShadowHandleOffset(base,pagedShadowProjectionOf(base).levelsLeft+i32(k));
1128
+ var placed:PagedShadowLightMap;
1129
+ pagedShadowLightMapOn(&placed,h,P);
1130
+
1131
+ let ramp=bias.x*(radius/bias.w)*user.x;
1132
+ let transition=classicReceiverTransitionScale(classicRampScale(ramp,pagedShadowMapDepthScale(placed)),bias.z,nol);
1133
+ let shadow=classicFiltered(h,true,0u,placed.mapPoint.xy,placed.mapPoint.z,transition,user.z);
1134
+ visible=min(visible,mix(1.0,shadow,classicCascadeBlend(depth,plane,high-plane)));
1135
+ }
1136
+ return classicFadedOut(visible,depth,pagedShadowView.classic[2u*slot+1u].zw);
1137
+ }`,vr=()=>`/** The finest mip of map \`h\` a page of which is resident at \`uv\`, from the map's own finest. */
1138
+ fn classicResidentMip(h:PagedShadowHandle,finest:u32,uv:vec2f)->u32{
1139
+ var mip=finest;
1140
+ for(;mip<PAGED_SHADOW_MIPS-1u;mip++){
1141
+ if(classicDepthAt(h,false,mip,uv).x>0.5){break;}
1142
+ }
1143
+ return mip;
1144
+ }
1145
+
1146
+ fn classicTap(h:PagedShadowHandle,mip:u32,uv:vec2f,compare:f32)->f32{
1147
+ let size=f32(pagedShadowTexelsAtLevel(mip));
1148
+ let position=uv*size-0.5;
1149
+ let fraction=fract(position);
1150
+ let first=floor(position);
1151
+ var lit=0.0;
1152
+ for(var y=0u;y<2u;y++){
1153
+ for(var x=0u;x<2u;x++){
1154
+ let stored=classicDepthAt(h,false,mip,(first+vec2f(f32(x),f32(y))+0.5)/size);
1155
+ let weight=select(1.0-fraction.x,fraction.x,x==1u)*select(1.0-fraction.y,fraction.y,y==1u);
1156
+ lit+=weight*select(1.0,select(1.0,0.0,stored.y>compare),stored.x>0.5);
1157
+ }
1158
+ }
1159
+ return lit;
1160
+ }`,_r=()=>`/** The shadow of the point light \`light\` at the receiver \`P\`: the 29 taps of the disc around the direction, each compared with the receiver's depth moved toward the light by the bias its tap's radius scales. */
1161
+ fn classicPoint(light:PagedShadowProjectionLight,P:vec3f,n:vec3f,axis:vec3f,dist:f32)->f32{
1162
+ let params=pagedShadowView.classic[17];
1163
+ let user=classicUserBias(light);
1164
+ let rel=P-light.shiftedPosition;
1165
+ let h=pagedShadowHandleOffset(pagedShadowHandleFromId(u32(light.mapId)),i32(pagedShadowCubeFace(rel)));
1166
+ var placed:PagedShadowLightMap;
1167
+ pagedShadowLightMapOn(&placed,h,P);
1168
+ let pd=pagedShadowProjectionOf(h);
1169
+ let ndc=perspectiveDivide(placed.mapPoint);
1170
+ let mip=classicResidentMip(h,pd.finestMip,ndc.xy);
1171
+ let texels=f32(pagedShadowTexelsAtLevel(mip));
1172
+ let nol=saturate(dot(n,axis));
1173
+ let zAlong=max(abs(rel.x),max(abs(rel.y),abs(rel.z)));
1174
+
1175
+ let depthBias=params.x*512.0/texels*2.0*user.x;
1176
+ let numerator=depthBias+(1.0-nol)*depthBias*params.y*user.y;
1177
+ let near=0.1*CLASSIC_UNIT_PER_CM;
1178
+ let projection=near*light.radius/max(light.radius-near,near);
1179
+ let perDistance=pagedShadowDepthPerDistance(pd,dist*dist);
1180
+ let direction=normalize(rel);
1181
+ let side=normalize(cross(direction,vec3f(0.0,0.0,1.0)));
1182
+ let up=cross(side,direction);
1183
+ var sum=0.0;
1184
+ for(var i=0u;i<29u;i++){
1185
+ let tap=CLASSIC_DISC[i];
1186
+ let shift=zAlong*numerator*length(tap)/(projection+numerator*length(tap)*zAlong);
1187
+ let around=normalize(direction+(side*tap.x+up*tap.y)/texels);
1188
+ var there:PagedShadowLightMap;
1189
+ let faceHere=pagedShadowHandleOffset(pagedShadowHandleFromId(u32(light.mapId)),i32(pagedShadowCubeFace(around)));
1190
+ pagedShadowLightMapOn(&there,faceHere,light.shiftedPosition+around*dist);
1191
+ let at=perspectiveDivide(there.mapPoint);
1192
+ sum+=classicTap(faceHere,mip,at.xy,ndc.z+shift*perDistance);
1193
+ }
1194
+ return classicShaped(sum/29.0,user.z);
1195
+ }`,Pr=()=>`/** The shadow of the spot light \`light\` at the receiver \`P\`, \`dist\` from it: the 5 by 5 window of its map's finest resident mip. */
1196
+ fn classicSpot(light:PagedShadowProjectionLight,P:vec3f,n:vec3f,axis:vec3f,dist:f32)->f32{
1197
+ let params=pagedShadowView.classic[18];
1198
+ let user=classicUserBias(light);
1199
+ let h=pagedShadowHandleFromId(u32(light.mapId));
1200
+ var placed:PagedShadowLightMap;
1201
+ pagedShadowLightMapOn(&placed,h,P);
1202
+ let pd=pagedShadowProjectionOf(h);
1203
+ let ndc=perspectiveDivide(placed.mapPoint);
1204
+ let mip=classicResidentMip(h,pd.finestMip,ndc.xy);
1205
+ let nol=saturate(dot(n,axis));
1206
+ let perDistance=pagedShadowDepthPerDistance(pd,dist*dist);
1207
+ let near=0.1*CLASSIC_UNIT_PER_CM;
1208
+
1209
+ let ramp=(light.radius-near)*2.0*user.x/max(params.z,0.0001);
1210
+ let transition=classicReceiverTransitionScale(classicRampScale(ramp,perDistance),params.w,nol);
1211
+ return classicFiltered(h,false,mip,ndc.xy,ndc.z,transition,user.z);
1212
+ }
1213
+
1214
+ fn pagedShadowClassicShadow(light:PagedShadowProjectionLight,P:vec3f,n:vec3f,axis:vec3f,dist:f32,directional:bool)->f32{
1215
+ if(directional){return classicSun(light,P,n,axis);}
1216
+ if(light.kind==LIGHT_KIND_SPOT){return classicSpot(light,P,n,axis,dist);}
1217
+ return classicPoint(light,P,n,axis,dist);
1218
+ }
1219
+ `,Dr=e=>d("CLASSIC_TRACE_WGSL",[u,Bt,J(e),E,H],`${ur()}
1220
+ ${wr()}
1221
+ ${mr()}
1222
+ ${vr()}
1223
+ ${_r()}
1224
+ ${Pr()}`),Ar=[[0,2.5],[1.016842,2.283864],[1.857862,1.672826],[2.377641,.772542],[2.486305,-.261321],[2.165063,-1.25],[1.469463,-2.022543],[.519779,-2.445369],[-.519779,-2.445369],[-1.469463,-2.022542],[-2.165064,-1.25],[-2.486305,-.261321],[-2.377641,.772543],[-1.857862,1.672827],[-1.016841,2.283864],[.091021,-.642186],[.698035,.10094],[.959731,-1.169393],[-1.05388,1.18038],[-1.479156,-.606937],[-.839488,-1.320002],[1.438566,.705359],[.067064,-1.605197],[.728706,1.344722],[1.521424,-.380184],[-.199515,1.590091],[-1.524323,.36401],[-.692694,-.086749],[-.082476,.654088]],Er=Ar.map(([e,a])=>`vec2f(${e.toFixed(6)},${a.toFixed(6)})`).join(","),$t=Dr;var Z=1,Tr=2,A=3,C=(e=A)=>d(`PAGED_SHADOW_TRACE_LIGHT_WGSL(${e})`,[u],`${tt}
1225
+ /** The kinds of light a pipeline traces (\`PAGED_SHADOW_TRACE_KINDS_*\`): the suns alone, the local lights
1226
+ * alone, or both \u2014 a projection pipeline's specialisation, a lit program's default (its key's
1227
+ * \`sunless\`, \`localless\`, \`pagedShadowTraceKindsOf\`). A pipeline of one kind folds the other kind's
1228
+ * map, ray lines and reach away: its registers are that kind's alone. The same light either way. */
1229
+ override PAGED_SHADOW_TRACE_KINDS:u32=${e}u;
1230
+ fn pagedShadowLightIsDirectional(light:PagedShadowProjectionLight)->bool{
1231
+ return PAGED_SHADOW_TRACE_KINDS==${Z}u||(PAGED_SHADOW_TRACE_KINDS==${A}u&&light.kind==LIGHT_KIND_DIRECTIONAL);
1232
+ }`),Xd=({sunless:e,localless:a})=>e?Tr:a?Z:A,Lr=`
1233
+ if(!pixel.info.subsurface&&pixel.screenRayWorld>0.0){
1234
+ startOffset=pagedShadowScreenRayFrom(receiver.screen,P,axis,pixel.screenRayWorld,select(pixel.noise,0.5,rays==0u));
1235
+ }`,xr=(e,a)=>`fn pagedShadowTraceLight(light:PagedShadowProjectionLight,pixel:PagedShadowPixel,receiver:PagedShadowReceiver,participating:bool)->PagedShadowTraceResult{
1236
+ let P=receiver.P;
1237
+ let directional=pagedShadowLightIsDirectional(light);
1238
+ let toLight=light.shiftedPosition-P;
1239
+ let dist=length(toLight);
1240
+ let axis=select(toLight/dist,light.direction,directional);
1241
+
1242
+ let n=select(pixel.info.worldNormal,axis,pixel.info.hair);
1243
+ var result=pagedShadowEmptyTrace();
1244
+ var traced=participating;
1245
+ var lightMap:PagedShadowLightMap;
1246
+ if(traced){lightMap=pagedShadowLightMapAt(light,P,pixel.sceneDepth);traced=lightMap.valid;}
1247
+ var basis:Frame3;
1248
+ var s=0.0;
1249
+ // The view's rays and steps for this kind of light (\`PagedShadowProjectionView.traceRays\`): a light with no
1250
+ // rays (0) takes the filtered read of its map (\`traceFilteredWgsl.ts\`), with no spread, no dither and no steps.
1251
+ // A projection group's pass traces one kind of light (\`PAGED_SHADOW_TRACE_KINDS\`), so its ray count is read from the
1252
+ // kind alone, where the lane's own light (\`light\`, the one of its list) is not known to be one.
1253
+ ${e&&a===void 0?` let viewRays=select(pagedShadowView.traceRays.y,pagedShadowView.traceRays.x,directional);
1254
+ // A translucent fragment's own trace is never denoised: it takes at least \`PAGED_SHADOW_UNFILTERED_RAYS\`, a light of no ray keeping its filtered read.
1255
+ let rays=select(viewRays,max(viewRays,${oa}u),viewRays>0u);`:` let rays=select(${a===void 0?"pagedShadowView.traceRays.y":`${a}u`},pagedShadowView.traceRays.x,${e?"directional":`PAGED_SHADOW_TRACE_KINDS==${Z}u`});`}
1256
+ var stepCount=i32(select(pagedShadowView.traceRays.w,pagedShadowView.traceRays.z,directional));
1257
+ var frameDepthSlope=vec2f(0.0);
1258
+ var ditherWorld=0.0;
1259
+ var ditherUv=0.0;
1260
+ var uvDepthSlope=vec2f(0.0);
1261
+ var biasCap=0.0;
1262
+ var lightReach=0.0;
1263
+ var startOffset=pixel.screenRayWorld;`,Or=e=>`
1264
+ if(traced){${e?Lr:""}
1265
+ // A light with no ray takes the filtered read of its map from the ray start (\`traceFilteredWgsl.ts\`), its share alone read but by a subsurface receiver (\`pagedShadowSubsurfaceShadow\`). A
1266
+
1267
+ if(rays==0u){
1268
+ if(directional){result=pagedShadowSunFiltered(lightMap,lightMap.pInMap+axis*startOffset,n,pixel.info.opacity<0.0);}
1269
+ else{result=pagedShadowLocalFiltered(lightMap,startOffset,n,pixel.sceneDepth,pixel.info.opacity<0.0);}
1270
+ traced=false;
1271
+ }else{
1272
+ let pd=pagedShadowProjectionOf(lightMap.handle);
1273
+ let pInMap=lightMap.pInMap;
1274
+ // A local map with a receiver cover (\`useCover\`) marked this receiver at its footprint's mip: its
1275
+
1276
+ if(!directional&&pd.useCover){
1277
+ lightMap.mip=pagedShadowLocalMipAt(pd,pInMap,pixel.sceneDepth,pagedShadowView.viewToClip,pagedShadowView.viewPixels.xy,0.0);
1278
+ }
1279
+ let viewPosition=transformPoint(pagedShadowView.shiftedToView,P);
1280
+
1281
+ lightReach=select(dist,pagedShadow.traceReachSun*length(viewPosition),directional);
1282
+
1283
+
1284
+
1285
+ let sourceRadius=bitcast<f32>(light.sourceWord);
1286
+ s=select(min(sourceRadius/dist,1.0),sourceRadius,directional);
1287
+
1288
+ // in the material (\`pagedShadow.subsurfaceMinSourceRadius\`, a sun alone).
1289
+ if(directional&&pixel.info.opacity>=0.0){s=max(s,(1.0-pixel.info.opacity)*pagedShadow.subsurfaceMinSourceRadius);}
1290
+ if(s==0.0&&!directional){stepCount=0;}
1291
+ basis=frameAround(axis);
1292
+ let normalInFrame=intoFrame(basis,n);
1293
+ frameDepthSlope=-normalInFrame.xy/normalInFrame.z;
1294
+ uvDepthSlope=pagedShadowDepthGradientUv(pd,pInMap,n);
1295
+ if(directional){
1296
+ ditherUv=pagedShadowSunDitherUv(pd,length(viewPosition));
1297
+ }else{
1298
+ let texel=pagedShadowReceiverPixelSize(pd,pixel.sceneDepth);
1299
+ ditherWorld=pagedShadow.traceDitherLocal*pd.ditherTexels*texel;
1300
+ biasCap=pagedShadowLocalBiasCap(lightMap,texel,dist*dist);
1301
+ }
1302
+ }
1303
+ }`,yr=`
1304
+ if(!traced){return result;}
1305
+ result.shadowFactor=pagedShadowClassicShadow(light,P,n,axis,dist,directional);
1306
+ result.rayCount=1u;
1307
+ return result;
1308
+ }`,br=`
1309
+ var missed=0u;
1310
+ var occluderSum=0.0;
1311
+
1312
+
1313
+ var stepOffset=pixel.noise;
1314
+ for(var i=0u;i<rays;i++){
1315
+ if(traced){
1316
+ let noise4=pagedShadowRayNoise4(pixel.pos,pagedShadowView.frameIndex,i,rays);
1317
+ let disk=pagedShadowLightDisk(directional,noise4.xy);
1318
+ let cone=pagedShadowConeDirection(basis,s,disk);
1319
+ let dir=select(cone.dir,pagedShadowSunDirection(basis,s,disk),directional);
1320
+
1321
+
1322
+ // world; a sun ray's is moved in the map's UV once projected, and biased (\`pagedShadowSunDitherBias\`).
1323
+ var start=lightMap.pInMap;
1324
+ var uvOffset=vec2f(0.0);
1325
+ if(directional){
1326
+ uvOffset=(noise4.zw-0.5)*ditherUv;
1327
+ }else if(ditherWorld>0.0){
1328
+ let square=(noise4.zw-0.5)*ditherWorld;
1329
+ let lift=min(pagedShadow.tracePlaneBiasCap*ditherWorld,pagedShadowPlaneLift(frameDepthSlope,square));
1330
+ start+=outOfFrame(vec3f(square,lift),basis);
1331
+ }
1332
+ let reach=select(lightReach*pagedShadowLocalRayReach(cone.cosTheta),lightReach,directional);
1333
+
1334
+
1335
+ let t0=select(min(startOffset,reach-1e-6*${v}),startOffset,directional);
1336
+ let rayStart=start+dir*t0;
1337
+ let rayEnd=select(start+dir*reach,rayStart+dir*reach,directional);
1338
+ var bias=0.0;
1339
+ if(!directional){bias=pagedShadowLocalPlaneBias(lightMap,rayStart,uvDepthSlope,biasCap);}
1340
+ else{bias=pagedShadowSunDitherBias(lightMap,uvOffset,t0,uvDepthSlope);}
1341
+ var ray=pagedShadowRayBegin(light,lightMap,rayStart,rayEnd,bias,uvOffset);
1342
+ var hitDepth=0.0;
1343
+ let hit=pagedShadowMarch(&ray,stepCount,stepOffset,&hitDepth);
1344
+ if(hit){occluderSum+=pagedShadowRayOccluderDistance(&ray,hitDepth,length(rayStart));}
1345
+ else{missed|=1u<<i;}
1346
+ if(!directional){stepOffset=f32((bitcast<u32>(stepOffset)*0x915f77f5u+0x93d765ddu)>>8u)*${se(2**-24)};}
1347
+ }
1348
+ }
1349
+ if(traced){
1350
+ let missCount=countOneBits(missed);
1351
+ result.shadowFactor=f32(missCount)/f32(rays);
1352
+ result.rayCount=rays;
1353
+ result.occluderDistance=occluderSum/f32(max(1u,rays-missCount));
1354
+ }
1355
+ return result;
1356
+ }`,Ft=e=>{let{pool:a,noise:t,hiz:o,lone:r,kinds:i=A,input:s="gbuffer",rays:l,classic:h=!1,visualize:n=!1}=e,c=!!e.edge&&(i&Z)!==0;return d(`pagedShadowTraceWgsl(${o.join(", ")}, ${r}, ${i}${s==="strands"?", strands":""}${l===void 0?"":`, ${l} rays`}${h?", classic":""}${n?", visualize":""}${c?", edge":""})`,[u,de,ua,wa,le,_,L,D,C(i),ve,k,Ra,Nt(o),Pe,O(a),J(a,n),Gt(t),...h?[$t(a)]:[kt(a,n,c)]],`/** 'participating' = the lane takes part in the trace. */
1357
+ ${xr(r,l)}${h?yr:`${Or(s!=="strands")}${br}`}
1358
+ `)};var Xe=d("PAGED_SHADOW_NORMAL_OFFSET_WGSL",[u],`
1359
+
1360
+ fn pagedShadowCameraDistance(v:vec3f)->f32{
1361
+ var d=length(v);
1362
+ if(pagedShadowView.isOrtho!=0u){d*=d/dot(v,pagedShadowView.viewForward);}
1363
+ return d;
1364
+ }
1365
+
1366
+
1367
+ fn pagedShadowNormalOffset(fromEye:vec3f)->f32{
1368
+ return pagedShadowNormalOffsetLength(pagedShadow.normalBias,pagedShadowCameraDistance(fromEye),pagedShadowView.inverseHalfFovTangent);
1369
+ }
1370
+ `),Ut=e=>d(`pagedShadowReceiverTraceWgsl(${e.hiz.join(", ")}, ${e.lone}, ${e.kinds}${e.input==="strands"?", strands":""}${e.rays===void 0?"":`, ${e.rays} rays`}${e.classic?", classic":""}${e.visualize?", visualize":""}${e.edge?", edge":""})`,[u,D,Xe,C(e.kinds),k,Ft(e)],`
1371
+ /** worldNormal: the shading normal, which the receiver's biases follow (normal bias,
1372
+ * receiver-plane depth slope); hair: the pixel is a hair strand's, whose receiver plane faces the
1373
+ * light (the slope reads the direction to the light in place of the normal; a hair pixel is a
1374
+ * subsurface one, which the normal bias does not move); opacity: a subsurface receiver's, at most 0.99, which sets how much
1375
+ * light its shadow lets through (pagedShadowSubsurfaceShadow) and how wide a sun's disk is for it; \u22121 for a
1376
+ * receiver that has none; toon: the pixel is a toon one, whose shadow lets through the light that survives its profile's extinction (per
1377
+ * centimetre) over the occluder distance, its opacity 0; coated: the pixel wears a clear coat (a coat weight above zero, merged or a
1378
+ * lobe), which the back-face cull spares; firstPerson: the pixel is a first-person object's, which the suns'
1379
+ * first-person clipmaps do not shadow. */
1380
+ struct PagedShadowSurfaceInfo{valid:bool,subsurface:bool,coated:bool,hair:bool,worldNormal:vec3f,opacity:f32,firstPerson:bool,toon:bool,extinction:f32,}
1381
+ /** What a receiver brings to its lights: its pixel, whether it is in the view rect and its shading
1382
+ * info; where a light can shade it (info.valid), its view depth, its shifted point, its screen
1383
+ * ray length and its blue noise \u2014 zero elsewhere, where no light reads them (the projection's
1384
+ * pagedShadowLightParticipates, the traces' participating). */
1385
+ struct PagedShadowPixel{pos:vec2u,inRect:bool,info:PagedShadowSurfaceInfo,deviceZ:f32,sceneDepth:f32,shifted:vec3f,screenRayWorld:f32,noise:f32,}
1386
+
1387
+
1388
+
1389
+
1390
+ struct PagedShadowReceiver{P:vec3f,screen:PagedShadowScreenStart,}
1391
+ fn pagedShadowReceiverOf(pixel:PagedShadowPixel,participating:bool)->PagedShadowReceiver{
1392
+ var r:PagedShadowReceiver;
1393
+ r.P=pixel.shifted;
1394
+ if(participating&&!pixel.info.subsurface){
1395
+ r.P+=pixel.info.worldNormal*pagedShadowNormalOffset(r.P-pagedShadowView.shiftedEye);
1396
+ if(pixel.screenRayWorld>0.0){r.screen=pagedShadowScreenRayStart(r.P);}
1397
+ }
1398
+ return r;
1399
+ }
1400
+
1401
+
1402
+ fn pagedShadowProjectLight(k:u32,pixel:PagedShadowPixel,participating:bool)->PagedShadowTraceResult{
1403
+ return pagedShadowTraceLight(pagedShadowView.lights[k],pixel,pagedShadowReceiverOf(pixel,participating),participating);
1404
+ }
1405
+ `);var zt=1,Vt=2,jt=2,rl=(e,a,t)=>e*(1<<jt)+(a?Vt:0)+(t?zt:0),N=d("SHADOW_SLICE_WGSL",[],`
1406
+ fn shadowSliceRecord(slice:i32)->u32{return u32(slice)>>${jt}u;}
1407
+ fn shadowSliceIsSun(slice:i32)->bool{return (u32(slice)&${Vt}u)!=0u;}
1408
+ fn shadowSliceDistant(slice:i32)->bool{return (u32(slice)&${zt}u)!=0u;}`),Yt=d("LOCAL_SHADOWED_WGSL",[N],`
1409
+ fn lightHasLocalShadow(rank:u32)->bool{
1410
+ let slice=i32(directLights.items[rank].params.y);
1411
+ return slice>=0&&!shadowSliceIsSun(slice);
1412
+ }`);var Wr=64,Rr="pagedShadowPruneLightGrid",qe=d("PAGED_SHADOW_LIGHT_GRID_WGSL",[Yt,N],`
1413
+
1414
+
1415
+ fn pagedMapShadowedOf(rank:u32,phase:u32)->bool{
1416
+ return lightHasLocalShadow(rank)&&u32(shadowSliceDistant(i32(directLights.items[rank].params.y)))==phase;
1417
+ }
1418
+
1419
+ const PAGED_SHADOW_WALK_ALL:u32=0xffffffffu;
1420
+
1421
+
1422
+
1423
+ fn pagedMapShadowedWalk(lane:u32)->vec2u{
1424
+ var met=0u;
1425
+ for(var phase=0u;phase<2u;phase++){
1426
+ for(var rank=0u;rank<directLights.count;rank++){
1427
+ if(!pagedMapShadowedOf(rank,phase)){continue;}
1428
+ if(met==lane){return vec2u(rank,met+1u);}
1429
+ met++;
1430
+ }
1431
+ }
1432
+ return vec2u(0u,met);
1433
+ }
1434
+
1435
+
1436
+
1437
+
1438
+ fn pagedMapShadowedList(base:u32)->vec2u{
1439
+ if(base==TILE_NO_SLICE){return vec2u(TILE_NO_SLICE,pagedMapShadowedWalk(PAGED_SHADOW_WALK_ALL).y);}
1440
+ return vec2u(pagedShadowLightGrid[base+1u],pagedShadowLightGrid[base]);
1441
+ }
1442
+
1443
+ fn pagedMapShadowedRank(list:vec2u,lane:u32)->u32{
1444
+ if(list.x==TILE_NO_SLICE){return pagedMapShadowedWalk(lane).x;}
1445
+ return pagedShadowLightGrid[list.x+lane];
1446
+ }`),Gr=d("PAGED_SHADOW_PRUNE_KERNEL_WGSL",[Ca,ka,Ma,qe],`
1447
+ @compute @workgroup_size(${Wr})
1448
+ fn ${Rr}(@builtin(global_invocation_id) id:vec3u){
1449
+ if(id.x<GRID_HEAD){pagedShadowLightGrid[id.x]=tileLights[id.x];}
1450
+ let columns=vec2u(view.lightParams.yz);
1451
+ if(id.x>=columns.x*columns.y*GRID_SLICES){return;}
1452
+ let base=GRID_HEAD+id.x*TILE_STRIDE;
1453
+ let first=tileLights[base+1u];
1454
+ var kept=0u;
1455
+ if((tileLights[base]&TILE_SHADOWED)!=0u){
1456
+ let count=tileLights[base]&~TILE_SHADOWED;
1457
+ for(var phase=0u;phase<2u;phase++){
1458
+ for(var index=0u;index<count;index++){
1459
+ let rank=tileLights[first+index];
1460
+ if(pagedMapShadowedOf(rank,phase)){
1461
+ pagedShadowLightGrid[first+kept]=rank;
1462
+ kept++;
1463
+ }
1464
+ }
1465
+ }
1466
+ }
1467
+ pagedShadowLightGrid[base]=kept;
1468
+ pagedShadowLightGrid[base+1u]=first;
1469
+ }
1470
+ `),De={view:0,directLights:1,tileLights:2,lightGrid:3},hl=()=>Ea(`@group(0) @binding(${De.view}) var<uniform> view:View;
1471
+ @group(0) @binding(${De.directLights}) var<storage,read> directLights:DirectLights;
1472
+ @group(0) @binding(${De.tileLights}) var<storage,read> tileLights:array<u32>;
1473
+ @group(0) @binding(${De.lightGrid}) var<storage,read_write> pagedShadowLightGrid:array<u32>;
1474
+ `,[Gr]);var Kt=d("PAGED_SHADOW_MAP_FILTER_WGSL",[],`
1475
+ const PAGED_SHADOW_MAP_NOISE_SCALE:f32=1.0/15.0;
1476
+
1477
+ fn pagedShadowStillNoise(p:vec2u)->f32{return fract(52.9829189*fract(dot(vec2f(p),vec2f(0.06711056,0.00583715))));}
1478
+
1479
+ fn pagedShadowFilterShadow(share:f32,noise:f32)->f32{
1480
+ if(share<=PAGED_SHADOW_MAP_NOISE_SCALE/4.0||share>=1.0){return share;}
1481
+ return saturate(share+(noise-0.5)*PAGED_SHADOW_MAP_NOISE_SCALE);
1482
+ }`);var te=e=>`${e.pageTable}, ${e.projectionData}, ${e.uniforms}, ${e.pool}`,Ae=e=>`${e.view} ${e.noise} ${!!e.loadOnly}`,z=(e,a=0)=>Wt(a,[{resource:"pagePool",binding:e,slices:1}],me),wl={pagedShadowMask:R.pagedShadowMask,pagedShadowSunMask:R.pagedShadowSunMask,fallback:{lightGrid:R.pagedShadowLightGrid,pagedShadow:{pageTable:R.pagedShadowPageTable,projectionData:R.pagedShadowProjectionData,uniforms:R.pagedShadowUniforms,pool:R.pagedShadowPool},view:R.pagedShadowView}};var Je=(e,a=0)=>d(`pagedShadowConsumerWgsl(${te(e)}, ${a})`,[u,q,_,F,L,D,Xe,$,M,_e(z(e.pool,a)),E],`
1483
+ @group(${a}) @binding(${e.uniforms}) var<uniform> pagedShadow:PagedShadowUniforms;
1484
+ @group(${a}) @binding(${e.pageTable}) var<storage,read> pagedShadowPageTable:array<u32>;
1485
+ fn pagedShadowPageTableLoad(i:u32)->u32{return pagedShadowPageTable[i];}
1486
+ @group(${a}) @binding(${e.projectionData}) var<storage,read> pagedShadowProjectionData:array<PagedShadowProjectionRecord>;`);var Xt=(e,a=A)=>d(`pagedShadowSampleLightWgsl(${a})`,[C(a),O(e),E],`
1487
+ /** Light \`light\`'s share at the receiver \`shifted\` (the view's shifted frame): 0 where its map's
1488
+ * stored depth lies nearer the light than the receiver, 1 elsewhere \u2014 where no level or mip maps
1489
+ * it too: a page no level holds casts nothing. A sun's reads the page its map already read, at the
1490
+ * level the receiver's distance asks (\`pagedShadowLightMapAt\`), with no depth of field bias: one page-table read a sample. */
1491
+ fn pagedShadowSampleLight(light:PagedShadowProjectionLight,shifted:vec3f)->f32{
1492
+ let m=pagedShadowLightMapAt(light,shifted,-1.0);
1493
+ if(!m.valid){return 1.0;}
1494
+ let uvz=perspectiveDivide(m.mapPoint);
1495
+ if(any(uvz.xy!=saturate(uvz.xy))){return 1.0;}
1496
+ if(m.clipmap){
1497
+ let read=pagedShadowReadClipmapPage(m.level,m.page,m.levelPoint.xy);
1498
+ return select(1.0,0.0,read.valid&&read.depth>m.levelPoint.z);
1499
+ }
1500
+ let read=pagedShadowReadMap(m.handle,uvz.xy,m.mip);
1501
+ return select(1.0,0.0,read.valid&&read.depth>uvz.z);
1502
+ }`);var Ee=(e,a,t=0)=>d(`pagedShadowTraceViewWgsl(${e}, ${a}, ${t})`,[C(a)],`
1503
+ ${ot}
1504
+ @group(${t}) @binding(${e}) var<uniform> pagedShadowView:PagedShadowProjectionView;`),qt=(e,a,t,o,r=!1,i)=>d(`pagedShadowFragmentTraceWgsl(${e}, ${Ae(a)}, ${t}${o===void 0?"":`, ${o} rays`}${r?", classic":""}${i===void 0?"":`, edges ${i}`})`,[Ee(a.view,t),Ge(0,a.noise,a.loadOnly),...i===void 0?[]:[bt(0,[{resource:"edgeBounds",binding:i}],me)],Ut({pool:z(e),noise:Ge(0,a.noise,a.loadOnly),hiz:[Ha,Ia],lone:!0,kinds:t,rays:o,classic:r,edge:i!==void 0}),Kt],`
1505
+ var<private> pagedShadowTracePixel:vec2u=vec2u(0u);
1506
+
1507
+ fn pagedShadowTraceAt(pixel:vec2f){pagedShadowTracePixel=vec2u(pixel);}
1508
+
1509
+
1510
+ fn pagedShadowTraceFactor(channel:u32,P:vec3f,N:vec3f)->f32{
1511
+ var r:PagedShadowPixel;
1512
+ r.pos=pagedShadowTracePixel;
1513
+ r.inRect=true;
1514
+ r.info=PagedShadowSurfaceInfo(true,thinSurface(),false,false,normalize(N),-1.0,false,false,0.0);
1515
+ r.shifted=(P+pagedShadowView.originShiftHigh)+pagedShadowView.originShiftLow;
1516
+ r.sceneDepth=(pagedShadowView.shiftedToView*vec4f(r.shifted,1.0)).z;
1517
+ r.screenRayWorld=(pagedShadowView.screenRayScale.xy*(pagedShadow.screenRayLength*r.sceneDepth)+pagedShadowView.screenRayScale.zw).y;
1518
+ r.noise=blueNoiseScalar(r.pos,pagedShadowView.frameIndex);
1519
+ let share=pagedShadowProjectLight(channel,r,true).shadowFactor;
1520
+
1521
+ let kindRays=select(pagedShadowView.traceRays.y,pagedShadowView.traceRays.x,pagedShadowLightIsDirectional(pagedShadowView.lights[channel]));
1522
+ return select(share,pagedShadowFilterShadow(share,r.noise),kindRays>0u);
1523
+ }`),Ze=P("pagedShadowTraceAt",[],"fn pagedShadowTraceAt(pixel:vec2f){}"),Jt=(e,a,t,o=0,r=!0)=>d(`pagedShadowFragmentSampleWgsl(${e}, ${a}, ${t}, ${o}${r?"":", traced beside"})`,[Ee(a,t,o),Xt(z(e,o),t),...r?[Ze]:[]],`
1524
+
1525
+ fn pagedShadowSampleFactor(channel:u32,P:vec3f)->f32{
1526
+ return pagedShadowSampleLight(pagedShadowView.lights[channel],(P+pagedShadowView.originShiftHigh)+pagedShadowView.originShiftLow);
1527
+ }`),Cr=`texture_storage_2d_array<${Qa},read>`,Zt=(e,a,t)=>d(`pagedShadowMaskWgsl(${e}, ${a??null}, ${t??null})`,[N,...a===void 0?[]:[qe,Za]],`
1528
+ @group(0) @binding(${e}) var pagedShadowSunMask:${Cr};
1529
+ /** The resolve's pixel: the masks are read there; (\u22121, \u22121) in a pass that reads none. */
1530
+ var<private> pagedShadowMaskPixel:vec2i=vec2i(-1);
1531
+
1532
+ fn pagedShadowSunFactor(layer:u32)->f32{
1533
+ return textureLoad(pagedShadowSunMask,pagedShadowMaskPixel,layer).r;
1534
+ }${a===void 0?`
1535
+
1536
+ fn pagedShadowMaskAt(coord:vec2i){pagedShadowMaskPixel=coord;}`:`
1537
+ @group(0) @binding(${a}) var pagedShadowLocalMask:texture_2d<u32>;
1538
+ @group(0) @binding(${t}) var<storage,read> pagedShadowLightGrid:array<u32>;
1539
+
1540
+
1541
+ var<private> pagedShadowMaskBase:u32=TILE_NO_SLICE;
1542
+ var<private> pagedShadowMaskList:vec2u=vec2u(TILE_NO_SLICE,0u);
1543
+ var<private> pagedShadowMaskListed:bool=false;
1544
+ var<private> pagedShadowMaskWord:vec4u=vec4u(0u);
1545
+ var<private> pagedShadowMaskRead:bool=false;
1546
+
1547
+ fn pagedShadowMaskAt(coord:vec2i,base:u32){pagedShadowMaskPixel=coord;pagedShadowMaskBase=base;pagedShadowMaskListed=false;pagedShadowMaskRead=false;}
1548
+
1549
+
1550
+
1551
+ fn pagedShadowMaskLaneOf(slice:i32)->u32{
1552
+ if(!pagedShadowMaskListed){pagedShadowMaskList=pagedMapShadowedList(pagedShadowMaskBase);pagedShadowMaskListed=true;}
1553
+ let lanes=min(pagedShadowMaskList.y,pagedShadow.onePassMaxLights);
1554
+ for(var lane=0u;lane<lanes;lane++){
1555
+ if(i32(directLights.items[pagedMapShadowedRank(pagedShadowMaskList,lane)].params.y)==slice){return lane;}
1556
+ }
1557
+ return pagedShadow.onePassMaxLights;
1558
+ }
1559
+
1560
+
1561
+ fn pagedShadowLocalFactor(slice:i32,P:vec3f)->f32{
1562
+ let lane=pagedShadowMaskLaneOf(slice);
1563
+ if(lane<pagedShadow.onePassMaxLights){
1564
+ if(!pagedShadowMaskRead){pagedShadowMaskWord=textureLoad(pagedShadowLocalMask,vec2u(pagedShadowMaskPixel),0);pagedShadowMaskRead=true;}
1565
+ return f32((pagedShadowMaskWord[lane/ONE_PASS_MASK_LANES]>>((lane%ONE_PASS_MASK_LANES)*ONE_PASS_MASK_BITS))&ONE_PASS_MASK_MAX)/f32(ONE_PASS_MASK_MAX);
1566
+ }
1567
+ return pagedShadowSampleMapLocal(u32(pagedShadowView.lights[shadowSliceRecord(slice)].mapId),(P+pagedShadowView.originShiftHigh)+pagedShadowView.originShiftLow,PAGED_SHADOW_MASK_FALLBACK_START);
1568
+ }`}`);var Hr=200,Qt=e=>d("pagedShadowSampleMapLocalWgsl",[C(A),It(e)],`
1569
+ const PAGED_SHADOW_MASK_FALLBACK_START:f32=${Hr}.0*${v};
1570
+
1571
+
1572
+
1573
+ fn pagedShadowSampleMapLocal(id:u32,shifted:vec3f,rayStart:f32)->f32{
1574
+ var h=pagedShadowHandleFromId(id);
1575
+ var pd=pagedShadowProjectionOf(h);
1576
+ if(pd.lightKind!=LIGHT_KIND_SPOT){
1577
+ let inMap=shifted+pagedShadowSubtractHighLow(pd.originShiftHigh,pd.originShiftLow,pagedShadowView.originShiftHigh,pagedShadowView.originShiftLow);
1578
+ h=pagedShadowHandleOffset(h,i32(pagedShadowCubeFace(inMap)));
1579
+ }
1580
+ var m:PagedShadowLightMap;
1581
+ pagedShadowLightMapOn(&m,h,shifted);
1582
+ return pagedShadowLocalTap(m,rayStart).shadowFactor;
1583
+ }`);var Ir=(e={})=>e.pass==="mask"?Br(e):e.pass==="perLight"?Nr(e):kr(e),Mr=(e,a,t,o)=>{let r=t&&e!==a,i=r||t&&!o?`
1584
+ let directional=pagedShadowView.lights[channel].kind==LIGHT_KIND_DIRECTIONAL;`:"",s=t?o?"":`
1585
+ if(!directional&&(translucentShadowBits&${ne.local}u)==0u){return 1.0;}`:`
1586
+ if(pagedShadowView.lights[channel].kind!=LIGHT_KIND_DIRECTIONAL){return 1.0;}`,l=r?`select(${a},${e},directional)`:e,h=l==="true"?`
1587
+ return pagedShadowTraceFactor(channel,P,N);`:l==="false"?`
1588
+ return pagedShadowSampleFactor(channel,P);`:`
1589
+ if(${l}){return pagedShadowTraceFactor(channel,P,N);}
1590
+ return pagedShadowSampleFactor(channel,P);`;return`
1591
+ let channel=shadowSliceRecord(slice);${i}${s}
1592
+ if(shadowSkipSun&&pagedShadowView.lights[channel].kind==LIGHT_KIND_DIRECTIONAL){return 1.0;}${h}`},kr=e=>{let{pagedShadow:a=xa,trace:t=Oa,quality:o=eo.quality,localShadows:r=eo.localShadows,classic:i=!1,materials:s=$r}=e,l=i?void 0:e.edges,h=ao(s),n=r||s.local,c=(e.kinds??A)&(n?A:Z),m=(B,Le)=>i||o>0?"true":B?`(translucentShadowBits&${Le}u)!=0u`:"false",f=m(s.directionalTrace,ne.directionalTrace),g=m(s.localTrace,ne.localTrace),S=n?[f,g]:[f],p=`directShadowWgsl(${te(a)}, ${Ae(t)}, ${c}, ${o>0}, ${r}${i?", classic":""}${to(s)}${l===void 0?"":`, edges ${l}`})`;if(!c)return d(p,[Ze,Te(`
1593
+ return 1.0;`,h)],"");let w=S.some(B=>B!=="false"),x=S.some(B=>B!=="true");return d(p,[N,Je(a),...w?[qt(a.pool,t,c,void 0,i,l)]:[],...x?[Jt(a.pool,t.view,c,0,!w)]:[],Te(Mr(f,g,n,r),h)],"")},Nr=({mask:e,volumeShadow:a})=>d(`directShadowWgsl(perLight ${e}${a===void 0?"":` volume ${a}`})`,[...a===void 0?[]:[Re(a)],Te(`
1594
+ let encoded=textureLoad(pagedShadowPerLightMask,pagedShadowMaskPixel,perLight.layer,0).z;
1595
+ return encoded*encoded${a===void 0?"":"*beerShadowMask(light,P)"};`)],`@group(0) @binding(${e}) var pagedShadowPerLightMask:texture_2d_array<f32>;
1596
+
1597
+ var<private> pagedShadowMaskPixel:vec2i=vec2i(-1);
1598
+ fn pagedShadowMaskAt(coord:vec2i){pagedShadowMaskPixel=coord;}`),Br=({sun:e,local:a,fallback:t,volumeShadow:o})=>d(`directShadowWgsl(${e}, ${a??null}${t?`, ${t.lightGrid} ${te(t.pagedShadow)} ${t.view}`:""}${o===void 0?"":` volume ${o}`})`,[Zt(e,a,t?.lightGrid),N,...a!==void 0&&t?[Je(t.pagedShadow),Ee(t.view,A),Qt(z(t.pagedShadow.pool))]:[],...o===void 0?[]:[Re(o)],Te(o===void 0?`
1599
+ if(shadowSliceIsSun(slice)){return pagedShadowSunFactor(shadowSliceRecord(slice));}${a===void 0?`
1600
+ return 1.0;`:`
1601
+ return pagedShadowLocalFactor(slice,P);`}`:`
1602
+ var share=1.0;
1603
+ if(shadowSliceIsSun(slice)){share=pagedShadowSunFactor(shadowSliceRecord(slice));}${a===void 0?"":`
1604
+ else{share=pagedShadowLocalFactor(slice,P);}`}
1605
+ return share*beerShadowMask(light,P);`)],""),Te=(e,a=!1)=>d("shadowFactorWgsl",[],`/** Set by a pass that reads the sun's shadow apart (the water's separated sun, multiplied by its trace
1606
+ * afterwards): the sun then reads as unshadowed here. */
1607
+ var<private> shadowSkipSun:bool=false;${a?`
1608
+
1609
+
1610
+ var<private> translucentShadowBits:u32=0u;`:""}
1611
+ fn shadowFactor(slice:i32,light:DirectLight,P:vec3f,N:vec3f,facing:bool)->f32{
1612
+ if(slice<0){return 1.0;}
1613
+ if(!facing){return 0.0;}${e}
1614
+ }`),$r={local:!1,localTrace:!1,directionalTrace:!1},ao=({local:e,localTrace:a,directionalTrace:t})=>e||a||t,to=e=>ao(e)?`, surfaces ask ${e.local?"L":""}${e.localTrace?"T":""}${e.directionalTrace?"D":""}`:"",hn=e=>`translucentShadowBits=(${e}>>${La}u)&7u;`,eo={quality:ye.shadowTranslucentQuality.default,localShadows:ye.shadowTranslucentLocalLights.default},cn=e=>e?`, ${e.classic?"classic":e.quality>0?"traced":"sampled"}${e.localShadows?", local":""}${e.materials?to(e.materials):""}${e.edges===void 0?"":`, edges ${e.edges}`}`:"",fn=e=>Ir({pagedShadow:{pageTable:e.pageTable,projectionData:e.projectionData,uniforms:e.shadowUniforms,pool:e.shadowPool},trace:{view:e.shadowView,noise:0},quality:0,localShadows:!0,kinds:A});export{Yr as a,wi as b,mi as c,y as d,U as e,go as f,ge as g,mo as h,vo as i,Ai as j,Ei as k,Ti as l,Li as m,xi as n,_o as o,ft as p,Po as q,Oi as r,yi as s,bi as t,Wi as u,Ri as v,Gi as w,Ao as x,Eo as y,To as z,Lo as A,xo as B,Ci as C,Se as D,Bi as E,$i as F,Wo as G,Ko as H,Ps as I,Ds as J,As as K,q as L,Qr as M,_ as N,L as O,He as P,$ as Q,F as R,dt as S,lo as T,no as U,po as V,D as W,M as X,pt as Y,ji as Z,ns as _,Lt as $,ps as aa,bt as ba,hs as ca,Wt as da,cs as ea,jo as fa,fs as ga,gs as ha,Ss as ia,te as ja,Ae as ka,wl as la,_e as ma,ve as na,k as oa,Pe as pa,Ke as qa,Xo as ra,Ct as sa,Z as ta,Tr as ua,A as va,C as wa,Xd as xa,Ut as ya,Je as za,rl as Aa,N as Ba,Yt as Ca,Wr as Da,Rr as Ea,qe as Fa,De as Ga,hl as Ha,Kt as Ia,qt as Ja,Jt as Ka,Ir as La,$r as Ma,ao as Na,hn as Oa,eo as Pa,cn as Qa,fn as Ra};
1615
+ //# sourceMappingURL=trillion3d-chunk-CYW43B6C.js.map