@uptimizr/dashboard 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/002cjeoit6-up.js +1 -0
  8. package/out/_next/static/chunks/02n1uiltexy3w.js +1 -0
  9. package/out/_next/static/chunks/03ab2khhe8-x5.js +1 -0
  10. package/out/_next/static/chunks/04_yytpc2paxy.js +1 -0
  11. package/out/_next/static/chunks/06qot1qvlsqaz.js +1 -0
  12. package/out/_next/static/chunks/07eeopuufsqp-.js +1501 -0
  13. package/out/_next/static/chunks/08a5xek662n8n.js +1 -0
  14. package/out/_next/static/chunks/08wuc9--s8zn_.js +1 -0
  15. package/out/_next/static/chunks/0927l-ygd5c8d.js +1 -0
  16. package/out/_next/static/chunks/09510356f0lad.js +1 -0
  17. package/out/_next/static/chunks/0_eu72k69lxj7.js +1 -0
  18. package/out/_next/static/chunks/0beajlqy8p8b5.js +1 -0
  19. package/out/_next/static/chunks/0c83pe1mpx456.js +1 -0
  20. package/out/_next/static/chunks/0echnagbkyx79.js +1198 -0
  21. package/out/_next/static/chunks/0eh1ml86u8dh7.js +1 -0
  22. package/out/_next/static/chunks/0fh-9h9ylxskr.js +674 -0
  23. package/out/_next/static/chunks/0fzmc1up21g1i.js +1 -0
  24. package/out/_next/static/chunks/0g_v2zswo4l6f.js +1 -0
  25. package/out/_next/static/chunks/0grlb9lo8e502.js +1 -0
  26. package/out/_next/static/chunks/0h22pg-0xrxnm.js +1 -0
  27. package/out/_next/static/chunks/0j6p1pmc14t96.js +1 -0
  28. package/out/_next/static/chunks/0j_6dx-sttgsy.js +1 -0
  29. package/out/_next/static/chunks/0j__xaq_8_di1.js +1 -0
  30. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +1 -0
  31. package/out/_next/static/chunks/0o_mp98xzqfyf.js +1 -0
  32. package/out/_next/static/chunks/0otsec99kdkt7.js +213 -0
  33. package/out/_next/static/chunks/0ql-s-tsmel_u.js +151 -0
  34. package/out/_next/static/chunks/0r47gs_e93cka.js +1 -0
  35. package/out/_next/static/chunks/0sqys6o2pbe1q.js +1328 -0
  36. package/out/_next/static/chunks/0titqrn1qmcsv.js +1 -0
  37. package/out/_next/static/chunks/0tnlbw78tgaxp.js +4 -0
  38. package/out/_next/static/chunks/0tw4dyl-cp-hd.js +1 -0
  39. package/out/_next/static/chunks/0vbce-8omgurc.js +1 -0
  40. package/out/_next/static/chunks/0vfsg5byzep_0.js +1 -0
  41. package/out/_next/static/chunks/{0gv7mblzv3dl3.js → 0w8_1yjvol1f0.js} +20 -20
  42. package/out/_next/static/chunks/0xh144a5fz58h.js +1 -0
  43. package/out/_next/static/chunks/0xjltg_pph0c8.js +1 -0
  44. package/out/_next/static/chunks/0yeqgh0dnas8d.js +1 -0
  45. package/out/_next/static/chunks/101-7e_7up7rk.js +1 -0
  46. package/out/_next/static/chunks/128e51hj_04r0.js +1 -0
  47. package/out/_next/static/chunks/{10fnxpln_5xfd.js → 12kv810lohbsx.js} +2 -2
  48. package/out/_next/static/chunks/137xbvd4nd41j.js +3 -0
  49. package/out/_next/static/chunks/14bws-suyy5zu.js +1 -0
  50. package/out/_next/static/chunks/14ggsmqwej_tt.js +1656 -0
  51. package/out/_next/static/chunks/17genz6pkmty_.js +1 -0
  52. package/out/_next/static/chunks/17xd8hnazzr0g.js +1454 -0
  53. package/out/_next/static/chunks/18dczy9ylt2s_.js +1 -0
  54. package/out/_next/static/chunks/18xs_kvsaolb0.js +1 -0
  55. package/out/_next/static/chunks/19016f8-ry0z6.js +1 -0
  56. package/out/_next/static/chunks/1_6oejyxj39li.js +1 -0
  57. package/out/_next/static/chunks/1_aon8nz9p1fr.js +1 -0
  58. package/out/_next/static/chunks/1_qzlkuxukhpq.js +779 -0
  59. package/out/_next/static/chunks/1akaj5rhgitn3.js +1 -0
  60. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +1 -0
  61. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +1 -0
  62. package/out/_next/static/chunks/1fbjkk55uu4_g.js +1 -0
  63. package/out/_next/static/chunks/1furcfsgrw_3g.js +1 -0
  64. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +1 -0
  65. package/out/_next/static/chunks/1g7emwu85bifo.js +557 -0
  66. package/out/_next/static/chunks/{37vzwr3ciejf1.js → 1gs-5722l4u59.js} +1 -1
  67. package/out/_next/static/chunks/1gt4kh0_xmigy.js +1 -0
  68. package/out/_next/static/chunks/1h8xzuuhhglu9.js +1 -0
  69. package/out/_next/static/chunks/1hatz-jlztrn0.js +1 -0
  70. package/out/_next/static/chunks/1iioifo7i0t0_.js +1 -0
  71. package/out/_next/static/chunks/{0impkpmxx3ttp.js → 1iiz7jqgj20z0.js} +1 -1
  72. package/out/_next/static/chunks/1kujmd5n0j9nk.js +1 -0
  73. package/out/_next/static/chunks/{2kazjq29jeamx.js → 1ltux4lwz7muf.js} +160 -372
  74. package/out/_next/static/chunks/1m_buecgcq67j.js +740 -0
  75. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +1 -0
  76. package/out/_next/static/chunks/1p1gz6dseck--.js +1 -0
  77. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +1 -0
  78. package/out/_next/static/chunks/1p8f6okk2ewbz.js +1 -0
  79. package/out/_next/static/chunks/1qg_etglhvp9h.js +740 -0
  80. package/out/_next/static/chunks/1th_t5ujeqlkf.js +1 -0
  81. package/out/_next/static/chunks/1thr-mdzbu96v.js +1 -0
  82. package/out/_next/static/chunks/1tta1a064979p.js +1 -0
  83. package/out/_next/static/chunks/1u_riwm0nfww7.js +1 -0
  84. package/out/_next/static/chunks/1ua15kzid0_8p.js +2560 -0
  85. package/out/_next/static/chunks/1uu-rt_8p1edp.js +2712 -0
  86. package/out/_next/static/chunks/1uu93wuxigx4k.js +1 -0
  87. package/out/_next/static/chunks/{1flb8adpj6_2o.js → 1xpwp4m1tqugp.js} +1 -1
  88. package/out/_next/static/chunks/1ynju1jqfrcv0.js +1 -0
  89. package/out/_next/static/chunks/1zfojlgb15okk.js +1 -0
  90. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +1 -0
  91. package/out/_next/static/chunks/1zl6t15gh34nn.js +1 -0
  92. package/out/_next/static/chunks/{1thjncpj7u6pq.js → 223vrr_4sfhsj.js} +1 -1
  93. package/out/_next/static/chunks/22cr2b04btguf.js +1 -0
  94. package/out/_next/static/chunks/242xhzxxetctz.js +1 -0
  95. package/out/_next/static/chunks/24essz5mmvx-6.js +1 -0
  96. package/out/_next/static/chunks/256k1jw1m--l7.js +146 -0
  97. package/out/_next/static/chunks/259obyrpxcv6r.js +1 -0
  98. package/out/_next/static/chunks/26v9yqicofqba.js +1 -0
  99. package/out/_next/static/chunks/290d93hmm_e8b.js +1 -0
  100. package/out/_next/static/chunks/2_2fk7iddrs43.js +1 -0
  101. package/out/_next/static/chunks/{00k_j_r7bv_eb.js → 2bjlls8-qe05r.js} +9 -9
  102. package/out/_next/static/chunks/2ckd7f1wbfod-.js +1 -0
  103. package/out/_next/static/chunks/{163fa70v4mgxj.js → 2d6hru4qo23tt.js} +1 -1
  104. package/out/_next/static/chunks/2ejvntxtvf5o9.js +1 -0
  105. package/out/_next/static/chunks/2f7_3tzf7xhps.js +1 -0
  106. package/out/_next/static/chunks/2gxd_o1g89_bv.js +1 -0
  107. package/out/_next/static/chunks/2hd2txb4-m9k1.js +1 -0
  108. package/out/_next/static/chunks/2hpxou_cnp4f_.js +1 -0
  109. package/out/_next/static/chunks/2izioctrfc0s5.js +1 -0
  110. package/out/_next/static/chunks/2jhnk4h4n0udv.js +1 -0
  111. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +1 -0
  112. package/out/_next/static/chunks/2kpet_l1kq2sx.js +1 -0
  113. package/out/_next/static/chunks/2mdbvf1b5h00_.css +3 -0
  114. package/out/_next/static/chunks/2nck5w4c7leb7.js +1 -0
  115. package/out/_next/static/chunks/2our10fwtj87e.js +1 -0
  116. package/out/_next/static/chunks/2qq3uzsbiicw3.js +1194 -0
  117. package/out/_next/static/chunks/2qqqpu0ahfdda.js +1 -0
  118. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +1 -0
  119. package/out/_next/static/chunks/2ue1wo4ryk87z.js +1 -0
  120. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +1 -0
  121. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +1 -0
  122. package/out/_next/static/chunks/2veqsohwfhfqc.js +1 -0
  123. package/out/_next/static/chunks/2vqlv9wnewhu9.js +1 -0
  124. package/out/_next/static/chunks/{1zvc1tv--w8nn.js → 2wzshintp5lf8.js} +1 -1
  125. package/out/_next/static/chunks/2x-00glogc485.js +1 -0
  126. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +1 -0
  127. package/out/_next/static/chunks/2z88mt3ixktu3.js +1 -0
  128. package/out/_next/static/chunks/2z_jn9ud28fk7.js +1 -0
  129. package/out/_next/static/chunks/3-eswqjobiqk1.js +1 -0
  130. package/out/_next/static/chunks/30-tbi7pys6fp.js +4 -0
  131. package/out/_next/static/chunks/30c-nsedy_ce0.js +1 -0
  132. package/out/_next/static/chunks/31u5lbu1vxznh.js +1 -0
  133. package/out/_next/static/chunks/{2feca0xcipcyt.js → 32ahba5ezp467.js} +156 -156
  134. package/out/_next/static/chunks/337hn35kts7ud.js +1 -0
  135. package/out/_next/static/chunks/33dgpebv-tf73.js +1 -0
  136. package/out/_next/static/chunks/36jkdhq6kb-cf.js +1 -0
  137. package/out/_next/static/chunks/37epa8fz59vba.js +1166 -0
  138. package/out/_next/static/chunks/3833xfnz0a-ub.js +1 -0
  139. package/out/_next/static/chunks/38awrh_qxn22k.js +1 -0
  140. package/out/_next/static/chunks/{0wrm9jr-9bw0e.js → 38x3c1ra5slhe.js} +383 -913
  141. package/out/_next/static/chunks/39idqlqlcp5b9.js +1 -0
  142. package/out/_next/static/chunks/{2a3spdq-m8drh.js → 3_gku1pwluoo0.js} +1 -1
  143. package/out/_next/static/chunks/3_mu-4rdjajna.js +1450 -0
  144. package/out/_next/static/chunks/3coacc4-g-g5c.js +1 -0
  145. package/out/_next/static/chunks/3e00fzdfkclzq.js +1 -0
  146. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +1 -0
  147. package/out/_next/static/chunks/3e9tzyrt4_98z.js +1 -0
  148. package/out/_next/static/chunks/3edelqkq92pil.js +1 -0
  149. package/out/_next/static/chunks/3figbil1t4ssj.js +593 -0
  150. package/out/_next/static/chunks/3gimb3z_mteou.js +1 -0
  151. package/out/_next/static/chunks/{2p2vv6cc9i-3q.js → 3idaz_s77e-j_.js} +9 -9
  152. package/out/_next/static/chunks/3j-4wuhs5weba.js +1 -0
  153. package/out/_next/static/chunks/3jjfnwvybayy7.js +1 -0
  154. package/out/_next/static/chunks/3jwm5dfk_78gc.js +1 -0
  155. package/out/_next/static/chunks/3k9d4ylc3li2t.js +1352 -0
  156. package/out/_next/static/chunks/3l3_0ack3gy4k.js +1 -0
  157. package/out/_next/static/chunks/3lwhs5ja7tun3.js +1 -0
  158. package/out/_next/static/chunks/3m6nmp2dca6un.js +1342 -0
  159. package/out/_next/static/chunks/3mbnfpufs2-7e.js +7 -0
  160. package/out/_next/static/chunks/3mcd08gmt038z.js +1 -0
  161. package/out/_next/static/chunks/3mt5th7b1i_u9.js +1 -0
  162. package/out/_next/static/chunks/3ne77mjdz2y7o.js +1 -0
  163. package/out/_next/static/chunks/3puhrqtujktyv.js +1 -0
  164. package/out/_next/static/chunks/3rdifucupcgkg.js +1 -0
  165. package/out/_next/static/chunks/3riekaxl3uxfb.js +1195 -0
  166. package/out/_next/static/chunks/3sdoskq_buttj.js +1 -0
  167. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +1 -0
  168. package/out/_next/static/chunks/3tm-pqpmq_ppw.js +1 -0
  169. package/out/_next/static/chunks/3w9go565cjhq3.js +1636 -0
  170. package/out/_next/static/chunks/3wi9gzq2mtr_q.js +8 -0
  171. package/out/_next/static/chunks/3xagd_2_9zft2.js +1 -0
  172. package/out/_next/static/chunks/3xsq_anpad-fb.js +1 -0
  173. package/out/_next/static/chunks/3ycv2qq7vpbua.js +1 -0
  174. package/out/_next/static/chunks/3z84au-mitjjw.js +1 -0
  175. package/out/_next/static/chunks/4030dhur2h70-.js +1 -0
  176. package/out/_next/static/chunks/40ffffml4h_3r.js +4 -0
  177. package/out/_next/static/chunks/{3-shckrcpvbxu.js → 41wt50z9tx9cx.js} +108 -711
  178. package/out/_next/static/chunks/431slrqh0wa0g.js +1 -0
  179. package/out/_next/static/chunks/43s_lbd1i2krj.js +1 -0
  180. package/out/_next/static/chunks/{0-2y-_oomza2l.js → 44nxswtahaq4w.js} +18 -18
  181. package/out/_next/static/chunks/45bwefvdpztfs.js +1 -0
  182. package/out/_next/static/chunks/{turbopack-0sgd6pfbe1fy6.js → turbopack-19105pdhzxp1x.js} +1 -1
  183. package/out/_not-found/__next._full.txt +9 -9
  184. package/out/_not-found/__next._head.txt +4 -4
  185. package/out/_not-found/__next._index.txt +4 -4
  186. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  187. package/out/_not-found/__next._not-found.txt +3 -3
  188. package/out/_not-found/__next._tree.txt +2 -2
  189. package/out/_not-found.html +1 -1
  190. package/out/_not-found.txt +9 -9
  191. package/out/index.html +1 -1
  192. package/out/index.txt +11 -11
  193. package/package.json +5 -4
  194. package/out/_next/static/chunks/068j6934u8j16.js +0 -1
  195. package/out/_next/static/chunks/09e4adtr6w0xe.js +0 -1
  196. package/out/_next/static/chunks/0_rf76jneiwal.js +0 -176
  197. package/out/_next/static/chunks/0aznt7717miff.js +0 -1
  198. package/out/_next/static/chunks/0cu-q5q3a7uf3.js +0 -1
  199. package/out/_next/static/chunks/0fskcfh9vbhtv.js +0 -1
  200. package/out/_next/static/chunks/0gg-ii7i6d_p6.js +0 -1
  201. package/out/_next/static/chunks/0tx1j_ghpz7rc.css +0 -3
  202. package/out/_next/static/chunks/0ufbyo1x3qkmo.js +0 -1
  203. package/out/_next/static/chunks/0wwcfw8i3j_zx.js +0 -1
  204. package/out/_next/static/chunks/0wwkrsvxwi57d.js +0 -1
  205. package/out/_next/static/chunks/0ys9-ozuluawt.js +0 -1
  206. package/out/_next/static/chunks/1-61zh4waha61.js +0 -1
  207. package/out/_next/static/chunks/10r_824wzt8hj.js +0 -1
  208. package/out/_next/static/chunks/123xxske5c9na.js +0 -1
  209. package/out/_next/static/chunks/13isnf0--pmx1.js +0 -1
  210. package/out/_next/static/chunks/157d9euci08yu.js +0 -1
  211. package/out/_next/static/chunks/18u58lorfahxi.js +0 -4
  212. package/out/_next/static/chunks/1_aahautsz2v_.js +0 -1
  213. package/out/_next/static/chunks/1o1d0p-v1z8ty.js +0 -1
  214. package/out/_next/static/chunks/1vdjn0pkoyypn.js +0 -1
  215. package/out/_next/static/chunks/1yehxf-fmeicg.js +0 -1
  216. package/out/_next/static/chunks/1zx2q-r32thv1.js +0 -4
  217. package/out/_next/static/chunks/2-sjjedfr0kfq.js +0 -1
  218. package/out/_next/static/chunks/25b9x-li-tvk2.js +0 -1
  219. package/out/_next/static/chunks/2aelw3far6rii.js +0 -1
  220. package/out/_next/static/chunks/2aor7m-wbis85.js +0 -1
  221. package/out/_next/static/chunks/2clzipqap01hp.js +0 -1
  222. package/out/_next/static/chunks/2fh-_9b6tqhvb.js +0 -1
  223. package/out/_next/static/chunks/2g5gecypj0rqe.js +0 -1
  224. package/out/_next/static/chunks/2szdcpl41-kzv.js +0 -1
  225. package/out/_next/static/chunks/2u6shh3oeycm-.js +0 -1
  226. package/out/_next/static/chunks/2unhhuv0arlcv.js +0 -1
  227. package/out/_next/static/chunks/2z5eqx5do5std.js +0 -1
  228. package/out/_next/static/chunks/310uz81hnnzsu.js +0 -1
  229. package/out/_next/static/chunks/3aqbf_wkg2sih.js +0 -3
  230. package/out/_next/static/chunks/3i3gbhccmhu7j.js +0 -210
  231. package/out/_next/static/chunks/3mqy-84_ul3t2.js +0 -1
  232. package/out/_next/static/chunks/3nz-dh9d7cehk.js +0 -1
  233. package/out/_next/static/chunks/3pufs8g4ui943.js +0 -1
  234. package/out/_next/static/chunks/3t06schbtqonl.js +0 -1
  235. package/out/_next/static/chunks/3v3-7fio3nw_t.js +0 -1
  236. package/out/_next/static/chunks/3v5ha25nxo43j.js +0 -1
  237. package/out/_next/static/chunks/3zskk1hxu3-_o.js +0 -1
  238. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_buildManifest.js +0 -0
  239. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_clientMiddlewareManifest.js +0 -0
  240. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_ssgManifest.js +0 -0
@@ -1,4 +1,10 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65296,e=>{"use strict";var i=e.i(12423);let r="helperFunctions",t=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44661,e=>{"use strict";var i=e.i(12423);e.i(85668),e.i(6232);let r="defaultUboDeclaration",t=`layout(std140,column_major) uniform;uniform Material
2
+ {vec4 diffuseLeftColor;vec4 diffuseRightColor;vec4 opacityParts;vec4 reflectionLeftColor;vec4 reflectionRightColor;vec4 refractionLeftColor;vec4 refractionRightColor;vec4 emissiveLeftColor;vec4 emissiveRightColor;vec2 vDiffuseInfos;vec2 vAmbientInfos;vec2 vOpacityInfos;vec2 vEmissiveInfos;vec2 vLightmapInfos;vec2 vSpecularInfos;vec3 vBumpInfos;mat4 diffuseMatrix;mat4 ambientMatrix;mat4 opacityMatrix;mat4 emissiveMatrix;mat4 lightmapMatrix;mat4 specularMatrix;mat4 bumpMatrix;vec2 vTangentSpaceParams;float pointSize;float alphaCutOff;mat4 refractionMatrix;vec4 vRefractionInfos;vec3 vRefractionPosition;vec3 vRefractionSize;vec4 vSpecularColor;vec3 vEmissiveColor;vec4 vDiffuseColor;vec3 vAmbientColor;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionPosition;vec3 vReflectionSize;
3
+ #define ADDITIONAL_UBO_DECLARATION
4
+ };
5
+ #include<sceneUboDeclaration>
6
+ #include<meshUboDeclaration>
7
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["defaultUboDeclaration",0,{name:r,shader:t}])},65296,e=>{"use strict";var i=e.i(12423);let r="helperFunctions",t=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
2
8
  const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
3
9
  #define saturate(x) clamp(x,0.0,1.0)
4
10
  #define absEps(x) abs(x)+Epsilon
@@ -116,31 +122,25 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
116
122
  vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
117
123
  uint2float(rstate*2447445414u));}
118
124
  #endif
119
- `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["helperFunctions",0,{name:r,shader:t}])},85668,6232,44661,92692,97226,e=>{"use strict";var i=e.i(12423);let r="sceneUboDeclaration",t=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
125
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["helperFunctions",0,{name:r,shader:t}])},85668,e=>{"use strict";var i=e.i(12423);let r="sceneUboDeclaration",t=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
120
126
  #ifdef MULTIVIEW
121
127
  mat4 viewProjectionR;
122
128
  #endif
123
129
  mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
124
- `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["sceneUboDeclaration",0,{name:r,shader:t}],85668);let a="meshUboDeclaration",n=`#ifdef WEBGL2
130
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["sceneUboDeclaration",0,{name:r,shader:t}])},6232,92692,97226,e=>{"use strict";var i=e.i(12423);let r="meshUboDeclaration",t=`#ifdef WEBGL2
125
131
  uniform mat4 world;uniform float visibility;
126
132
  #else
127
133
  layout(std140,column_major) uniform;uniform Mesh
128
134
  {mat4 world;float visibility;};
129
135
  #endif
130
136
  #define WORLD_UBO
131
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["meshUboDeclaration",0,{name:a,shader:n}],6232);let o="defaultUboDeclaration",d=`layout(std140,column_major) uniform;uniform Material
132
- {vec4 diffuseLeftColor;vec4 diffuseRightColor;vec4 opacityParts;vec4 reflectionLeftColor;vec4 reflectionRightColor;vec4 refractionLeftColor;vec4 refractionRightColor;vec4 emissiveLeftColor;vec4 emissiveRightColor;vec2 vDiffuseInfos;vec2 vAmbientInfos;vec2 vOpacityInfos;vec2 vEmissiveInfos;vec2 vLightmapInfos;vec2 vSpecularInfos;vec3 vBumpInfos;mat4 diffuseMatrix;mat4 ambientMatrix;mat4 opacityMatrix;mat4 emissiveMatrix;mat4 lightmapMatrix;mat4 specularMatrix;mat4 bumpMatrix;vec2 vTangentSpaceParams;float pointSize;float alphaCutOff;mat4 refractionMatrix;vec4 vRefractionInfos;vec3 vRefractionPosition;vec3 vRefractionSize;vec4 vSpecularColor;vec3 vEmissiveColor;vec4 vDiffuseColor;vec3 vAmbientColor;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionPosition;vec3 vReflectionSize;
133
- #define ADDITIONAL_UBO_DECLARATION
134
- };
135
- #include<sceneUboDeclaration>
136
- #include<meshUboDeclaration>
137
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["defaultUboDeclaration",0,{name:o,shader:d}],44661);let f="mainUVVaryingDeclaration",c=`#ifdef MAINUV{X}
137
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["meshUboDeclaration",0,{name:r,shader:t}],6232);let a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
138
138
  varying vec2 vMainUV{X};
139
139
  #endif
140
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=c),e.s(["mainUVVaryingDeclaration",0,{name:f,shader:c}],92692);let l="logDepthDeclaration",s=`#ifdef LOGARITHMICDEPTH
140
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["mainUVVaryingDeclaration",0,{name:a,shader:n}],92692);let o="logDepthDeclaration",d=`#ifdef LOGARITHMICDEPTH
141
141
  uniform float logarithmicDepthConstant;varying float vFragmentDepth;
142
142
  #endif
143
- `;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s),e.s(["logDepthDeclaration",0,{name:l,shader:s}],97226)},39067,15420,e=>{"use strict";var i=e.i(12423);let r="bonesDeclaration",t=`#if NUM_BONE_INFLUENCERS>0
143
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["logDepthDeclaration",0,{name:o,shader:d}],97226)},39067,15420,e=>{"use strict";var i=e.i(12423);let r="bonesDeclaration",t=`#if NUM_BONE_INFLUENCERS>0
144
144
  attribute vec4 matricesIndices;attribute vec4 matricesWeights;
145
145
  #if NUM_BONE_INFLUENCERS>4
146
146
  attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
@@ -210,7 +210,7 @@ uniform mat4 world;
210
210
  uniform mat4 previousWorld;
211
211
  #endif
212
212
  #endif
213
- `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["instancesDeclaration",0,{name:r,shader:t}])},42927,57828,e=>{"use strict";var i=e.i(12423);let r="clipPlaneVertexDeclaration",t=`#ifdef CLIPPLANE
213
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["instancesDeclaration",0,{name:r,shader:t}])},42927,e=>{"use strict";var i=e.i(12423);let r="clipPlaneVertexDeclaration",t=`#ifdef CLIPPLANE
214
214
  uniform vec4 vClipPlane;varying float fClipDistance;
215
215
  #endif
216
216
  #ifdef CLIPPLANE2
@@ -228,10 +228,7 @@ uniform vec4 vClipPlane5;varying float fClipDistance5;
228
228
  #ifdef CLIPPLANE6
229
229
  uniform vec4 vClipPlane6;varying float fClipDistance6;
230
230
  #endif
231
- `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["clipPlaneVertexDeclaration",0,{name:r,shader:t}],42927);let a="fogVertexDeclaration",n=`#ifdef FOG
232
- varying vec3 vFogDistance;
233
- #endif
234
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertexDeclaration",0,{name:a,shader:n}],57828)},40805,30667,76955,16607,29231,17464,e=>{"use strict";var i=e.i(12423);let r="instancesVertex",t=`#ifdef INSTANCES
231
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["clipPlaneVertexDeclaration",0,{name:r,shader:t}])},40805,30667,76955,16607,e=>{"use strict";var i=e.i(12423);let r="instancesVertex",t=`#ifdef INSTANCES
235
232
  mat4 finalWorld=mat4(world0,world1,world2,world3);
236
233
  #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
237
234
  mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
@@ -333,7 +330,7 @@ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIn
333
330
  #endif
334
331
  finalWorld=finalWorld*VATInfluence;}
335
332
  #endif
336
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["bakedVertexAnimation",0,{name:o,shader:d}],76955);let f="clipPlaneVertex",c=`#ifdef CLIPPLANE
333
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["bakedVertexAnimation",0,{name:o,shader:d}],76955);let f="clipPlaneVertex",l=`#ifdef CLIPPLANE
337
334
  fClipDistance=dot(worldPos,vClipPlane);
338
335
  #endif
339
336
  #ifdef CLIPPLANE2
@@ -351,10 +348,13 @@ fClipDistance5=dot(worldPos,vClipPlane5);
351
348
  #ifdef CLIPPLANE6
352
349
  fClipDistance6=dot(worldPos,vClipPlane6);
353
350
  #endif
354
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=c),e.s(["clipPlaneVertex",0,{name:f,shader:c}],16607);let l="fogVertex",s=`#ifdef FOG
351
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["clipPlaneVertex",0,{name:f,shader:l}],16607)},57828,29231,17464,e=>{"use strict";var i=e.i(12423);let r="fogVertexDeclaration",t=`#ifdef FOG
352
+ varying vec3 vFogDistance;
353
+ #endif
354
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["fogVertexDeclaration",0,{name:r,shader:t}],57828);let a="fogVertex",n=`#ifdef FOG
355
355
  vFogDistance=(view*worldPos).xyz;
356
356
  #endif
357
- `;i.ShaderStore.IncludesShadersStore[l]||(i.ShaderStore.IncludesShadersStore[l]=s),e.s(["fogVertex",0,{name:l,shader:s}],29231);let m="vertexColorMixing",S=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
357
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertex",0,{name:a,shader:n}],29231);let o="vertexColorMixing",d=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
358
358
  vColor=vec4(1.0);
359
359
  #ifdef VERTEXCOLOR
360
360
  #ifdef VERTEXALPHA
@@ -367,51 +367,13 @@ vColor.rgb*=colorUpdated.rgb;
367
367
  vColor*=instanceColor;
368
368
  #endif
369
369
  #endif
370
- `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=S),e.s(["vertexColorMixing",0,{name:m,shader:S}],17464)},44237,e=>{"use strict";var i=e.i(12423);let r="decalVertexDeclaration",t=`#ifdef DECAL
370
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["vertexColorMixing",0,{name:o,shader:d}],17464)},74747,78119,23131,39962,41527,50010,91440,43842,61981,55212,23689,e=>{"use strict";var i=e.i(12423);let r="decalVertexDeclaration",t=`#ifdef DECAL
371
371
  uniform vec4 vDecalInfos;uniform mat4 decalMatrix;
372
372
  #endif
373
- `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t);let a="defaultVertexDeclaration",n=`uniform mat4 viewProjection;
374
- #ifdef MULTIVIEW
375
- mat4 viewProjectionR;
376
- #endif
377
- uniform mat4 view;
378
- #ifdef DIFFUSE
379
- uniform mat4 diffuseMatrix;uniform vec2 vDiffuseInfos;
380
- #endif
381
- #ifdef AMBIENT
382
- uniform mat4 ambientMatrix;uniform vec2 vAmbientInfos;
383
- #endif
384
- #ifdef OPACITY
385
- uniform mat4 opacityMatrix;uniform vec2 vOpacityInfos;
386
- #endif
387
- #ifdef EMISSIVE
388
- uniform vec2 vEmissiveInfos;uniform mat4 emissiveMatrix;
389
- #endif
390
- #ifdef LIGHTMAP
391
- uniform vec2 vLightmapInfos;uniform mat4 lightmapMatrix;
392
- #endif
393
- #if defined(SPECULAR) && defined(SPECULARTERM)
394
- uniform vec2 vSpecularInfos;uniform mat4 specularMatrix;
395
- #endif
396
- #ifdef BUMP
397
- uniform vec3 vBumpInfos;uniform mat4 bumpMatrix;
398
- #endif
399
- #ifdef REFLECTION
400
- uniform mat4 reflectionMatrix;
401
- #endif
402
- #ifdef POINTSIZE
403
- uniform float pointSize;
404
- #endif
405
- #ifdef DETAIL
406
- uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
407
- #endif
408
- uniform vec4 cameraInfo;uniform vec4 vTextureRepetitionHexTilingParams;
409
- #include<decalVertexDeclaration>
410
- #define ADDITIONAL_VERTEX_DECLARATION
411
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n);var o=e.i(85668),d=e.i(6232),f=e.i(44661);let c="uvAttributeDeclaration",l=`#ifdef UV{X}
373
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["decalVertexDeclaration",0,{name:r,shader:t}],74747);let a="uvAttributeDeclaration",n=`#ifdef UV{X}
412
374
  attribute vec2 uv{X};
413
375
  #endif
414
- `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=l);var s=e.i(65296),m=e.i(39067),S=e.i(15420),E=e.i(85863);let v="prePassVertexDeclaration",u=`#ifdef PREPASS
376
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["uvAttributeDeclaration",0,{name:a,shader:n}],78119);let o="prePassVertexDeclaration",d=`#ifdef PREPASS
415
377
  #ifdef PREPASS_LOCAL_POSITION
416
378
  varying vec3 vPosition;
417
379
  #endif
@@ -425,15 +387,10 @@ varying float vNormViewDepth;
425
387
  uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition;
426
388
  #endif
427
389
  #endif
428
- `;i.ShaderStore.IncludesShadersStore[v]||(i.ShaderStore.IncludesShadersStore[v]=u);var I=e.i(92692);let A="samplerVertexDeclaration",N=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
390
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["prePassVertexDeclaration",0,{name:o,shader:d}],23131);let f="samplerVertexDeclaration",l=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
429
391
  varying vec2 v_VARYINGNAME_UV;
430
392
  #endif
431
- `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=N);let T="bumpVertexDeclaration",x=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
432
- #if defined(TANGENT) && defined(NORMAL)
433
- varying mat3 vTBN;
434
- #endif
435
- #endif
436
- `;i.ShaderStore.IncludesShadersStore[T]||(i.ShaderStore.IncludesShadersStore[T]=x);var _=e.i(42927),h=e.i(57828);let p="lightVxFragmentDeclaration",R=`#ifdef LIGHT{X}
393
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["samplerVertexDeclaration",0,{name:f,shader:l}],39962);let c="lightVxFragmentDeclaration",s=`#ifdef LIGHT{X}
437
394
  uniform vec4 vLightData{X};uniform vec4 vLightDiffuse{X};
438
395
  #ifdef SPECULARTERM
439
396
  uniform vec4 vLightSpecular{X};
@@ -460,7 +417,7 @@ uniform vec3 vLightGround{X};
460
417
  uniform vec4 vLightWidth{X};uniform vec4 vLightHeight{X};
461
418
  #endif
462
419
  #endif
463
- `;i.ShaderStore.IncludesShadersStore[p]||(i.ShaderStore.IncludesShadersStore[p]=R);let M="lightVxUboDeclaration",V=`#ifdef LIGHT{X}
420
+ `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=s),e.s(["lightVxFragmentDeclaration",0,{name:c,shader:s}],41527);let m="lightVxUboDeclaration",S=`#ifdef LIGHT{X}
464
421
  uniform Light{X}
465
422
  {vec4 vLightData;vec4 vLightDiffuse;vec4 vLightSpecular;
466
423
  #ifdef SPOTLIGHT{X}
@@ -485,7 +442,97 @@ varying vec4 vPositionFromLight{X};varying float vDepthMetric{X};uniform mat4 li
485
442
  #endif
486
443
  #endif
487
444
  #endif
488
- `;i.ShaderStore.IncludesShadersStore[M]||(i.ShaderStore.IncludesShadersStore[M]=V);let P="morphTargetsVertexGlobalDeclaration",g=`#ifdef MORPHTARGETS
445
+ `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=S),e.s(["lightVxUboDeclaration",0,{name:m,shader:S}],50010);let E="prePassVertex",v=`#ifdef PREPASS_DEPTH
446
+ vViewPos=(view*worldPos).rgb;
447
+ #endif
448
+ #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
449
+ vNormViewDepth=((view*worldPos).z-cameraInfo.x)/(cameraInfo.y-cameraInfo.x);
450
+ #endif
451
+ #ifdef PREPASS_LOCAL_POSITION
452
+ vPosition=positionUpdated.xyz;
453
+ #endif
454
+ #if (defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && defined(BONES_VELOCITY_ENABLED)
455
+ vCurrentPosition=viewProjection*worldPos;
456
+ #if NUM_BONE_INFLUENCERS>0
457
+ mat4 previousInfluence;previousInfluence=mPreviousBones[int(matricesIndices[0])]*matricesWeights[0];
458
+ #if NUM_BONE_INFLUENCERS>1
459
+ previousInfluence+=mPreviousBones[int(matricesIndices[1])]*matricesWeights[1];
460
+ #endif
461
+ #if NUM_BONE_INFLUENCERS>2
462
+ previousInfluence+=mPreviousBones[int(matricesIndices[2])]*matricesWeights[2];
463
+ #endif
464
+ #if NUM_BONE_INFLUENCERS>3
465
+ previousInfluence+=mPreviousBones[int(matricesIndices[3])]*matricesWeights[3];
466
+ #endif
467
+ #if NUM_BONE_INFLUENCERS>4
468
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[0])]*matricesWeightsExtra[0];
469
+ #endif
470
+ #if NUM_BONE_INFLUENCERS>5
471
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[1])]*matricesWeightsExtra[1];
472
+ #endif
473
+ #if NUM_BONE_INFLUENCERS>6
474
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[2])]*matricesWeightsExtra[2];
475
+ #endif
476
+ #if NUM_BONE_INFLUENCERS>7
477
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
478
+ #endif
479
+ vPreviousPosition=previousViewProjection*finalPreviousWorld*previousInfluence*vec4(positionUpdated,1.0);
480
+ #else
481
+ vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
482
+ #endif
483
+ #endif
484
+ `;i.ShaderStore.IncludesShadersStore[E]||(i.ShaderStore.IncludesShadersStore[E]=v),e.s(["prePassVertex",0,{name:E,shader:v}],91440);let u="uvVariableDeclaration",I=`#if !defined(UV{X}) && defined(MAINUV{X})
485
+ vec2 uv{X}=vec2(0.,0.);
486
+ #endif
487
+ #ifdef MAINUV{X}
488
+ vMainUV{X}=uv{X};
489
+ #endif
490
+ `;i.ShaderStore.IncludesShadersStore[u]||(i.ShaderStore.IncludesShadersStore[u]=I),e.s(["uvVariableDeclaration",0,{name:u,shader:I}],43842);let A="samplerVertexImplementation",N=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
491
+ if (v_INFONAME_==0.)
492
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uvUpdated,1.0,0.0));}
493
+ #ifdef UV2
494
+ else if (v_INFONAME_==1.)
495
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv2Updated,1.0,0.0));}
496
+ #endif
497
+ #ifdef UV3
498
+ else if (v_INFONAME_==2.)
499
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv3,1.0,0.0));}
500
+ #endif
501
+ #ifdef UV4
502
+ else if (v_INFONAME_==3.)
503
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv4,1.0,0.0));}
504
+ #endif
505
+ #ifdef UV5
506
+ else if (v_INFONAME_==4.)
507
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv5,1.0,0.0));}
508
+ #endif
509
+ #ifdef UV6
510
+ else if (v_INFONAME_==5.)
511
+ {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv6,1.0,0.0));}
512
+ #endif
513
+ #endif
514
+ `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=N),e.s(["samplerVertexImplementation",0,{name:A,shader:N}],61981);let x="shadowsVertex",T=`#ifdef SHADOWS
515
+ #if defined(SHADOWCSM{X})
516
+ vPositionFromCamera{X}=view*worldPos;for (int i=0; i<SHADOWCSMNUM_CASCADES{X}; i++) {vPositionFromLight{X}[i]=lightMatrix{X}[i]*worldPos;
517
+ #ifdef USE_REVERSE_DEPTHBUFFER
518
+ vDepthMetric{X}[i]=(-vPositionFromLight{X}[i].z+light{X}.depthValues.x)/light{X}.depthValues.y;
519
+ #else
520
+ vDepthMetric{X}[i]=(vPositionFromLight{X}[i].z+light{X}.depthValues.x)/light{X}.depthValues.y;
521
+ #endif
522
+ }
523
+ #elif defined(SHADOW{X}) && !defined(SHADOWCUBE{X})
524
+ vPositionFromLight{X}=lightMatrix{X}*worldPos;
525
+ #ifdef USE_REVERSE_DEPTHBUFFER
526
+ vDepthMetric{X}=(-vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthValues.y;
527
+ #else
528
+ vDepthMetric{X}=(vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthValues.y;
529
+ #endif
530
+ #endif
531
+ #endif
532
+ `;i.ShaderStore.IncludesShadersStore[x]||(i.ShaderStore.IncludesShadersStore[x]=T),e.s(["shadowsVertex",0,{name:x,shader:T}],55212);let h="logDepthVertex",p=`#ifdef LOGARITHMICDEPTH
533
+ vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
534
+ #endif
535
+ `;i.ShaderStore.IncludesShadersStore[h]||(i.ShaderStore.IncludesShadersStore[h]=p),e.s(["logDepthVertex",0,{name:h,shader:p}],23689)},32936,32235,61193,99838,e=>{"use strict";var i=e.i(12423);let r="morphTargetsVertexGlobalDeclaration",t=`#ifdef MORPHTARGETS
489
536
  uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
490
537
  #ifdef MORPHTARGETS_TEXTURE
491
538
  uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
@@ -506,7 +553,7 @@ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphT
506
553
  }
507
554
  #endif
508
555
  #endif
509
- `;i.ShaderStore.IncludesShadersStore[P]||(i.ShaderStore.IncludesShadersStore[P]=g);let O="morphTargetsVertexDeclaration",U=`#ifdef MORPHTARGETS
556
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:r,shader:t}],32936);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
510
557
  #ifndef MORPHTARGETS_TEXTURE
511
558
  #ifdef MORPHTARGETS_POSITION
512
559
  attribute vec3 position{X};
@@ -530,12 +577,12 @@ attribute vec4 color{X};
530
577
  uniform float morphTargetCount;
531
578
  #endif
532
579
  #endif
533
- `;i.ShaderStore.IncludesShadersStore[O]||(i.ShaderStore.IncludesShadersStore[O]=U);var L=e.i(97226);let C="morphTargetsVertexGlobal",D=`#ifdef MORPHTARGETS
580
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["morphTargetsVertexDeclaration",0,{name:a,shader:n}],32235);let o="morphTargetsVertexGlobal",d=`#ifdef MORPHTARGETS
534
581
  #ifdef MORPHTARGETS_TEXTURE
535
582
  float vertexID;
536
583
  #endif
537
584
  #endif
538
- `;i.ShaderStore.IncludesShadersStore[C]||(i.ShaderStore.IncludesShadersStore[C]=D);let F="morphTargetsVertex",b=`#ifdef MORPHTARGETS
585
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=d),e.s(["morphTargetsVertexGlobal",0,{name:o,shader:d}],61193);let f="morphTargetsVertex",l=`#ifdef MORPHTARGETS
539
586
  #ifdef MORPHTARGETS_TEXTURE
540
587
  #if {X}==0
541
588
  for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
@@ -595,105 +642,58 @@ colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
595
642
  #endif
596
643
  #endif
597
644
  #endif
598
- `;i.ShaderStore.IncludesShadersStore[F]||(i.ShaderStore.IncludesShadersStore[F]=b);var X=e.i(40805),W=e.i(30667),G=e.i(76955);let B="prePassVertex",w=`#ifdef PREPASS_DEPTH
599
- vViewPos=(view*worldPos).rgb;
645
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["morphTargetsVertex",0,{name:f,shader:l}],99838)},50503,e=>{"use strict";var i=e.i(12423);let r="bumpVertex",t=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
646
+ #if defined(TANGENT) && defined(NORMAL)
647
+ vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
600
648
  #endif
601
- #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
602
- vNormViewDepth=((view*worldPos).z-cameraInfo.x)/(cameraInfo.y-cameraInfo.x);
603
649
  #endif
604
- #ifdef PREPASS_LOCAL_POSITION
605
- vPosition=positionUpdated.xyz;
650
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bumpVertex",0,{name:r,shader:t}])},19436,e=>{"use strict";var i=e.i(12423);let r="bumpVertexDeclaration",t=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
651
+ #if defined(TANGENT) && defined(NORMAL)
652
+ varying mat3 vTBN;
606
653
  #endif
607
- #if (defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && defined(BONES_VELOCITY_ENABLED)
608
- vCurrentPosition=viewProjection*worldPos;
609
- #if NUM_BONE_INFLUENCERS>0
610
- mat4 previousInfluence;previousInfluence=mPreviousBones[int(matricesIndices[0])]*matricesWeights[0];
611
- #if NUM_BONE_INFLUENCERS>1
612
- previousInfluence+=mPreviousBones[int(matricesIndices[1])]*matricesWeights[1];
613
- #endif
614
- #if NUM_BONE_INFLUENCERS>2
615
- previousInfluence+=mPreviousBones[int(matricesIndices[2])]*matricesWeights[2];
616
- #endif
617
- #if NUM_BONE_INFLUENCERS>3
618
- previousInfluence+=mPreviousBones[int(matricesIndices[3])]*matricesWeights[3];
619
654
  #endif
620
- #if NUM_BONE_INFLUENCERS>4
621
- previousInfluence+=mPreviousBones[int(matricesIndicesExtra[0])]*matricesWeightsExtra[0];
622
- #endif
623
- #if NUM_BONE_INFLUENCERS>5
624
- previousInfluence+=mPreviousBones[int(matricesIndicesExtra[1])]*matricesWeightsExtra[1];
625
- #endif
626
- #if NUM_BONE_INFLUENCERS>6
627
- previousInfluence+=mPreviousBones[int(matricesIndicesExtra[2])]*matricesWeightsExtra[2];
655
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bumpVertexDeclaration",0,{name:r,shader:t}])},44237,e=>{"use strict";var i=e.i(12423),r=e.i(74747);let t="defaultVertexDeclaration",a=`uniform mat4 viewProjection;
656
+ #ifdef MULTIVIEW
657
+ mat4 viewProjectionR;
628
658
  #endif
629
- #if NUM_BONE_INFLUENCERS>7
630
- previousInfluence+=mPreviousBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
631
- #endif
632
- vPreviousPosition=previousViewProjection*finalPreviousWorld*previousInfluence*vec4(positionUpdated,1.0);
633
- #else
634
- vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
635
- #endif
636
- #endif
637
- `;i.ShaderStore.IncludesShadersStore[B]||(i.ShaderStore.IncludesShadersStore[B]=w);let y="uvVariableDeclaration",H=`#if !defined(UV{X}) && defined(MAINUV{X})
638
- vec2 uv{X}=vec2(0.,0.);
639
- #endif
640
- #ifdef MAINUV{X}
641
- vMainUV{X}=uv{X};
642
- #endif
643
- `;i.ShaderStore.IncludesShadersStore[y]||(i.ShaderStore.IncludesShadersStore[y]=H);let Y="samplerVertexImplementation",z=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
644
- if (v_INFONAME_==0.)
645
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uvUpdated,1.0,0.0));}
646
- #ifdef UV2
647
- else if (v_INFONAME_==1.)
648
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv2Updated,1.0,0.0));}
649
- #endif
650
- #ifdef UV3
651
- else if (v_INFONAME_==2.)
652
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv3,1.0,0.0));}
653
- #endif
654
- #ifdef UV4
655
- else if (v_INFONAME_==3.)
656
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv4,1.0,0.0));}
659
+ uniform mat4 view;
660
+ #ifdef DIFFUSE
661
+ uniform mat4 diffuseMatrix;uniform vec2 vDiffuseInfos;
657
662
  #endif
658
- #ifdef UV5
659
- else if (v_INFONAME_==4.)
660
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv5,1.0,0.0));}
663
+ #ifdef AMBIENT
664
+ uniform mat4 ambientMatrix;uniform vec2 vAmbientInfos;
661
665
  #endif
662
- #ifdef UV6
663
- else if (v_INFONAME_==5.)
664
- {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv6,1.0,0.0));}
666
+ #ifdef OPACITY
667
+ uniform mat4 opacityMatrix;uniform vec2 vOpacityInfos;
665
668
  #endif
669
+ #ifdef EMISSIVE
670
+ uniform vec2 vEmissiveInfos;uniform mat4 emissiveMatrix;
666
671
  #endif
667
- `;i.ShaderStore.IncludesShadersStore[Y]||(i.ShaderStore.IncludesShadersStore[Y]=z);let k="bumpVertex",j=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
668
- #if defined(TANGENT) && defined(NORMAL)
669
- vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
672
+ #ifdef LIGHTMAP
673
+ uniform vec2 vLightmapInfos;uniform mat4 lightmapMatrix;
670
674
  #endif
675
+ #if defined(SPECULAR) && defined(SPECULARTERM)
676
+ uniform vec2 vSpecularInfos;uniform mat4 specularMatrix;
671
677
  #endif
672
- `;i.ShaderStore.IncludesShadersStore[k]||(i.ShaderStore.IncludesShadersStore[k]=j);var Z=e.i(16607),q=e.i(29231);let K="shadowsVertex",Q=`#ifdef SHADOWS
673
- #if defined(SHADOWCSM{X})
674
- vPositionFromCamera{X}=view*worldPos;for (int i=0; i<SHADOWCSMNUM_CASCADES{X}; i++) {vPositionFromLight{X}[i]=lightMatrix{X}[i]*worldPos;
675
- #ifdef USE_REVERSE_DEPTHBUFFER
676
- vDepthMetric{X}[i]=(-vPositionFromLight{X}[i].z+light{X}.depthValues.x)/light{X}.depthValues.y;
677
- #else
678
- vDepthMetric{X}[i]=(vPositionFromLight{X}[i].z+light{X}.depthValues.x)/light{X}.depthValues.y;
678
+ #ifdef BUMP
679
+ uniform vec3 vBumpInfos;uniform mat4 bumpMatrix;
679
680
  #endif
680
- }
681
- #elif defined(SHADOW{X}) && !defined(SHADOWCUBE{X})
682
- vPositionFromLight{X}=lightMatrix{X}*worldPos;
683
- #ifdef USE_REVERSE_DEPTHBUFFER
684
- vDepthMetric{X}=(-vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthValues.y;
685
- #else
686
- vDepthMetric{X}=(vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthValues.y;
681
+ #ifdef REFLECTION
682
+ uniform mat4 reflectionMatrix;
687
683
  #endif
684
+ #ifdef POINTSIZE
685
+ uniform float pointSize;
688
686
  #endif
687
+ #ifdef DETAIL
688
+ uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
689
689
  #endif
690
- `;i.ShaderStore.IncludesShadersStore[K]||(i.ShaderStore.IncludesShadersStore[K]=Q);var J=e.i(17464);let $="pointCloudVertex",ee=`#if defined(POINTSIZE) && !defined(WEBGPU)
690
+ uniform vec4 cameraInfo;uniform vec4 vTextureRepetitionHexTilingParams;
691
+ #include<decalVertexDeclaration>
692
+ #define ADDITIONAL_VERTEX_DECLARATION
693
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=a);var n=e.i(85668),o=e.i(6232),d=e.i(44661),f=e.i(78119),l=e.i(65296),c=e.i(39067),s=e.i(15420),m=e.i(85863),S=e.i(23131),E=e.i(92692),v=e.i(39962),u=e.i(19436),I=e.i(42927),A=e.i(57828),N=e.i(41527),x=e.i(50010),T=e.i(32936),h=e.i(32235),p=e.i(97226),_=e.i(61193),V=e.i(99838),R=e.i(40805),M=e.i(30667),P=e.i(76955),g=e.i(91440),D=e.i(43842),U=e.i(61981),O=e.i(50503),L=e.i(16607),C=e.i(29231),F=e.i(55212),b=e.i(17464);let X="pointCloudVertex",G=`#if defined(POINTSIZE) && !defined(WEBGPU)
691
694
  gl_PointSize=pointSize;
692
695
  #endif
693
- `;i.ShaderStore.IncludesShadersStore[$]||(i.ShaderStore.IncludesShadersStore[$]=ee);let ei="logDepthVertex",er=`#ifdef LOGARITHMICDEPTH
694
- vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
695
- #endif
696
- `;i.ShaderStore.IncludesShadersStore[ei]||(i.ShaderStore.IncludesShadersStore[ei]=er);let et="defaultVertexShader",ea=`#define CUSTOM_VERTEX_EXTENSION
696
+ `;i.ShaderStore.IncludesShadersStore[X]||(i.ShaderStore.IncludesShadersStore[X]=G);var W=e.i(23689);let B="defaultVertexShader",w=`#define CUSTOM_VERTEX_EXTENSION
697
697
  #include<__decl__defaultVertex>
698
698
  #define CUSTOM_VERTEX_BEGIN
699
699
  attribute vec3 position;
@@ -847,4 +847,4 @@ vMainUV2=uv2Updated;
847
847
  #include<logDepthVertex>
848
848
  #define CUSTOM_VERTEX_MAIN_END
849
849
  }
850
- `;for(let e of(i.ShaderStore.ShadersStore[et]||(i.ShaderStore.ShadersStore[et]=ea),[{name:r,shader:t},{name:a,shader:n},o.sceneUboDeclaration,d.meshUboDeclaration,f.defaultUboDeclaration,{name:c,shader:l},s.helperFunctions,m.bonesDeclaration,S.bakedVertexAnimationDeclaration,E.instancesDeclaration,{name:v,shader:u},I.mainUVVaryingDeclaration,{name:A,shader:N},{name:T,shader:x},_.clipPlaneVertexDeclaration,h.fogVertexDeclaration,{name:p,shader:R},{name:M,shader:V},{name:P,shader:g},{name:O,shader:U},L.logDepthDeclaration,{name:C,shader:D},{name:F,shader:b},X.instancesVertex,W.bonesVertex,G.bakedVertexAnimation,{name:B,shader:w},{name:y,shader:H},{name:Y,shader:z},{name:k,shader:j},Z.clipPlaneVertex,q.fogVertex,{name:K,shader:Q},J.vertexColorMixing,{name:$,shader:ee},{name:ei,shader:er}]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["defaultVertexShader",0,{name:et,shader:ea}],44237)}]);
850
+ `;for(let e of(i.ShaderStore.ShadersStore[B]||(i.ShaderStore.ShadersStore[B]=w),[r.decalVertexDeclaration,{name:t,shader:a},n.sceneUboDeclaration,o.meshUboDeclaration,d.defaultUboDeclaration,f.uvAttributeDeclaration,l.helperFunctions,c.bonesDeclaration,s.bakedVertexAnimationDeclaration,m.instancesDeclaration,S.prePassVertexDeclaration,E.mainUVVaryingDeclaration,v.samplerVertexDeclaration,u.bumpVertexDeclaration,I.clipPlaneVertexDeclaration,A.fogVertexDeclaration,N.lightVxFragmentDeclaration,x.lightVxUboDeclaration,T.morphTargetsVertexGlobalDeclaration,h.morphTargetsVertexDeclaration,p.logDepthDeclaration,_.morphTargetsVertexGlobal,V.morphTargetsVertex,R.instancesVertex,M.bonesVertex,P.bakedVertexAnimation,g.prePassVertex,D.uvVariableDeclaration,U.samplerVertexImplementation,O.bumpVertex,L.clipPlaneVertex,C.fogVertex,F.shadowsVertex,b.vertexColorMixing,{name:X,shader:G},W.logDepthVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["defaultVertexShader",0,{name:B,shader:w}],44237)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89080,t=>{"use strict";var e=t.i(25742),i=t.i(5110),a=t.i(976),n=t.i(77052);class r extends e.FlowGraphBlock{constructor(t={}){super(t),this.keyFrames=[];const e="string"==typeof t?.animationType?(0,i.getRichTypeByFlowGraphType)(t.animationType):(0,i.getRichTypeByAnimationType)(t?.animationType??0),a=t?.keyFramesCount??1,n=this.registerDataInput("duration_0",i.RichTypeNumber,0),r=this.registerDataInput("value_0",e);this.keyFrames.push({duration:n,value:r});for(let n=1;n<a+1;n++){const r=this.registerDataInput(`duration_${n}`,i.RichTypeNumber,n===a?t.duration:void 0),s=this.registerDataInput(`value_${n}`,e);this.keyFrames.push({duration:r,value:s})}this.initialValue=this.keyFrames[0].value,this.endValue=this.keyFrames[a].value,this.easingFunction=this.registerDataInput("easingFunction",i.RichTypeAny),this.animation=this.registerDataOutput("animation",i.RichTypeAny),this.propertyName=this.registerDataInput("propertyName",i.RichTypeString,t?.propertyName),this.customBuildAnimation=this.registerDataInput("customBuildAnimation",i.RichTypeAny)}_updateOutputs(t){let e=t._getGlobalContextVariable("interpolationAnimations",[]),i=this.propertyName.getValue(t),a=this.easingFunction.getValue(t),n=this._createAnimation(t,i,a);if(this.animation.setValue(n,t),Array.isArray(n))for(let t of n)e.push(t.uniqueId);else e.push(n.uniqueId);t._setGlobalContextVariable("interpolationAnimations",e)}_createAnimation(t,e,i){let n=this.initialValue.richType,r=[],s=this.initialValue.getValue(t)||n.defaultValue;r.push({frame:0,value:s});let o=this.config?.numberOfKeyFrames??1;for(let e=1;e<o+1;e++){let i=this.keyFrames[e].duration?.getValue(t),a=this.keyFrames[e].value?.getValue(t);e===o-1&&(a=a||n.defaultValue),void 0!==i&&a&&r.push({frame:60*i,value:a})}let l=this.customBuildAnimation.getValue(t);if(l)return l(null,null,t)(r,60,n.animationType,i);if("string"!=typeof e)return e.map(t=>{let e=(0,a.AnimationCreateAnimation)(t,n.animationType,60,i);return e.setKeys(r),e});{let t=(0,a.AnimationCreateAnimation)(e,n.animationType,60,i);return t.setKeys(r),[t]}}getClassName(){return"FlowGraphInterpolationBlock"}}let s=!1;function o(){s||(s=!0,(0,n.RegisterClass)("FlowGraphInterpolationBlock",r))}t.s(["FlowGraphInterpolationBlock",0,r,"RegisterFlowGraphInterpolationBlock",0,o],43207),o(),t.s([],38340),t.i(38340),t.i(43207),t.s(["FlowGraphInterpolationBlock",0,r],89080)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,595,82549,e=>{"use strict";var t=e.i(96265),s=e.i(13379),r=e.i(12638),i=e.i(71265),n=e.i(24632),o=e.i(35407);class a extends r.AbstractMesh{constructor(e,t){for(const s of(super(e,t.getScene()),this._indexInSourceMeshInstanceArray=-1,this._distanceToCamera=0,t.addInstance(this),this._sourceMesh=t,this._unIndexed=t._unIndexed,this.position.copyFrom(t.position),this.rotation.copyFrom(t.rotation),this.scaling.copyFrom(t.scaling),t.rotationQuaternion&&(this.rotationQuaternion=t.rotationQuaternion.clone()),this.animations=t.animations.slice(),t.getAnimationRanges()))null!=s&&this.createAnimationRange(s.name,s.from,s.to);if(this.infiniteDistance=t.infiniteDistance,this.setPivotMatrix(t.getPivotMatrix()),t.skeleton||t.morphTargetManager||!t.hasBoundingInfo)this.refreshBoundingInfo(!0,!0);else{const e=t.getBoundingInfo();this.buildBoundingInfo(e.minimum,e.maximum)}this._syncSubMeshes()}getClassName(){return"InstancedMesh"}get lightSources(){return this._sourceMesh._lightSources}_resyncLightSources(){}_resyncLightSource(){}_removeLightSource(){}get receiveShadows(){return this._sourceMesh.receiveShadows}set receiveShadows(e){this._sourceMesh?.receiveShadows!==e&&s.Logger.Warn("Setting receiveShadows on an instanced mesh has no effect")}get material(){return this._sourceMesh.material}set material(e){this._sourceMesh?.material!==e&&s.Logger.Warn("Setting material on an instanced mesh has no effect")}get visibility(){return this._sourceMesh.visibility}set visibility(e){this._sourceMesh?.visibility!==e&&s.Logger.Warn("Setting visibility on an instanced mesh has no effect")}get skeleton(){return this._sourceMesh.skeleton}set skeleton(e){this._sourceMesh?.skeleton!==e&&s.Logger.Warn("Setting skeleton on an instanced mesh has no effect")}get renderingGroupId(){return this._sourceMesh.renderingGroupId}set renderingGroupId(e){this._sourceMesh&&e!==this._sourceMesh.renderingGroupId&&s.Logger.Warn("Note - setting renderingGroupId of an instanced mesh has no effect on the scene")}getTotalVertices(){return this._sourceMesh?this._sourceMesh.getTotalVertices():0}getTotalIndices(){return this._sourceMesh.getTotalIndices()}get sourceMesh(){return this._sourceMesh}get geometry(){return this._sourceMesh._geometry}createInstance(e){return this._sourceMesh.createInstance(e)}isReady(e=!1){return this._sourceMesh.isReady(e,!0)}getVerticesData(e,t,s){return this._sourceMesh.getVerticesData(e,t,s)}copyVerticesData(e,t){this._sourceMesh.copyVerticesData(e,t)}getVertexBuffer(e,t){return this._sourceMesh.getVertexBuffer(e,t)}setVerticesData(e,t,s,r){return this.sourceMesh&&this.sourceMesh.setVerticesData(e,t,s,r),this.sourceMesh}updateVerticesData(e,t,s,r){return this.sourceMesh&&this.sourceMesh.updateVerticesData(e,t,s,r),this.sourceMesh}setIndices(e,t=null){return this.sourceMesh&&this.sourceMesh.setIndices(e,t),this.sourceMesh}isVerticesDataPresent(e){return this._sourceMesh.isVerticesDataPresent(e)}getIndices(){return this._sourceMesh.getIndices()}get _positions(){return this._sourceMesh._positions}refreshBoundingInfo(e=!1,t=!1){if(this.hasBoundingInfo&&this.getBoundingInfo().isLocked)return this;let s=this._sourceMesh.geometry?this._sourceMesh.geometry.boundingBias:null;return this._refreshBoundingInfo(this._sourceMesh._getData("object"==typeof e?e:{applySkeleton:e,applyMorph:t},null,o.VertexBuffer.PositionKind),s),this}_preActivate(){return this._currentLOD&&this._currentLOD._preActivate(),this}_activate(e,t){if(super._activate(e,t),this._sourceMesh.subMeshes||s.Logger.Warn("Instances should only be created for meshes with geometry."),this._currentLOD){if(this._currentLOD._getWorldMatrixDeterminant()>=0!=this._getWorldMatrixDeterminant()>=0)return this._internalAbstractMeshDataInfo._actAsRegularMesh=!0,!0;if(this._internalAbstractMeshDataInfo._actAsRegularMesh=!1,this._currentLOD._registerInstanceForRenderId(this,e),t){if(!this._currentLOD._internalAbstractMeshDataInfo._isActiveIntermediate)return this._currentLOD._internalAbstractMeshDataInfo._onlyForInstancesIntermediate=!0,!0}else if(!this._currentLOD._internalAbstractMeshDataInfo._isActive)return this._currentLOD._internalAbstractMeshDataInfo._onlyForInstances=!0,!0}return!1}_postActivate(){this._sourceMesh.edgesShareWithInstances&&this._sourceMesh._edgesRenderer&&this._sourceMesh._edgesRenderer.isEnabled&&this._sourceMesh._renderingGroup?(this._sourceMesh._renderingGroup._edgesRenderers.pushNoDuplicate(this._sourceMesh._edgesRenderer),this._sourceMesh._edgesRenderer.customInstances.push(this.getWorldMatrix())):this._edgesRenderer&&this._edgesRenderer.isEnabled&&this._sourceMesh._renderingGroup&&this._sourceMesh._renderingGroup._edgesRenderers.push(this._edgesRenderer)}getWorldMatrix(){if(this._currentLOD&&this._currentLOD!==this._sourceMesh&&this._currentLOD.billboardMode!==n.TransformNode.BILLBOARDMODE_NONE&&this._currentLOD._masterMesh!==this){this._billboardWorldMatrix||(this._billboardWorldMatrix=new t.Matrix);let e=this._currentLOD._masterMesh;return this._currentLOD._masterMesh=this,t.TmpVectors.Vector3[7].copyFrom(this._currentLOD.position),this._currentLOD.position.set(0,0,0),this._billboardWorldMatrix.copyFrom(this._currentLOD.computeWorldMatrix(!0)),this._currentLOD.position.copyFrom(t.TmpVectors.Vector3[7]),this._currentLOD._masterMesh=e,this._billboardWorldMatrix}return super.getWorldMatrix()}get isAnInstance(){return!0}getLOD(e){if(!e)return this;let t=this.sourceMesh.getLODLevels();if(t&&0!==t.length){let t=this.getBoundingInfo();this._currentLOD=this.sourceMesh.getLOD(e,t.boundingSphere)}else this._currentLOD=this.sourceMesh;return this._currentLOD}_preActivateForIntermediateRendering(e){return this.sourceMesh._preActivateForIntermediateRendering(e)}_syncSubMeshes(){if(this.releaseSubMeshes(),this._sourceMesh.subMeshes)for(let e=0;e<this._sourceMesh.subMeshes.length;e++)this._sourceMesh.subMeshes[e].clone(this,this._sourceMesh);return this}_generatePointsArray(){return this._sourceMesh._generatePointsArray()}_updateBoundingInfo(){return this.hasBoundingInfo?this.getBoundingInfo().update(this.worldMatrixFromCache):this.buildBoundingInfo(this.absolutePosition,this.absolutePosition,this.worldMatrixFromCache),this._updateSubMeshesBoundingInfo(this.worldMatrixFromCache),this}clone(e,t=null,s,r){let n=(r||this._sourceMesh).createInstance(e);if(i.DeepCopier.DeepCopy(this,n,["name","subMeshes","uniqueId","parent","lightSources","receiveShadows","material","visibility","skeleton","sourceMesh","isAnInstance","facetNb","isFacetDataEnabled","isBlocked","useBones","hasInstances","collider","edgesRenderer","forward","up","right","absolutePosition","absoluteScaling","absoluteRotationQuaternion","isWorldMatrixFrozen","nonUniformScaling","behaviors","worldMatrixFromCache","hasThinInstances","hasBoundingInfo","geometry"],[]),t&&(n.parent=t),!s)for(let e=0;e<this.getScene().meshes.length;e++){let t=this.getScene().meshes[e];t.parent===this&&t.clone(t.name,n)}return n.computeWorldMatrix(!0),this.onClonedObservable.notifyObservers(n),n}dispose(e,t=!1){this._sourceMesh.removeInstance(this),super.dispose(e,t)}_serializeAsParent(e){super._serializeAsParent(e),e.parentId=this._sourceMesh.uniqueId,e.parentInstanceIndex=this._indexInSourceMeshInstanceArray}instantiateHierarchy(e=null,t,s){let r=this.clone("Clone of "+(this.name||this.id),e||this.parent,!0,t&&t.newSourcedMesh);for(let e of(r&&s&&s(this,r),this.getChildTransformNodes(!0)))e.instantiateHierarchy(r,t,s);return r}}e.s(["InstancedMesh",0,a],595);var h=e.i(80871),u=e.i(66749),c=e.i(58720),l=e.i(31278),f=e.i(65295),_=e.i(22369),d=e.i(81623),p=e.i(92040),x=e.i(97001),m=e.i(12033),g=e.i(77052);let y={effect:null,subMesh:null};class A extends _.PushMaterial{constructor(e,s,r,i={},n=!0){super(e,s,n),this._textures={},this._internalTextures={},this._textureArrays={},this._externalTextures={},this._floats={},this._ints={},this._uints={},this._floatsArrays={},this._colors3={},this._colors3Arrays={},this._colors4={},this._colors4Arrays={},this._vectors2={},this._vectors3={},this._vectors4={},this._quaternions={},this._quaternionsArrays={},this._matrices={},this._matrixArrays={},this._matrices3x3={},this._matrices2x2={},this._vectors2Arrays={},this._vectors3Arrays={},this._vectors4Arrays={},this._uniformBuffers={},this._textureSamplers={},this._storageBuffers={},this._cachedWorldViewMatrix=new t.Matrix,this._cachedWorldViewProjectionMatrix=new t.Matrix,this._multiview=!1,this._vertexPullingMetadata=null,this._materialHelperNeedsPreviousMatrices=!1,this._shaderPath=r,this._options={needAlphaBlending:!1,needAlphaTesting:!1,attributes:["position","normal","uv"],uniforms:["worldViewProjection"],uniformBuffers:[],samplers:[],externalTextures:[],samplerObjects:[],storageBuffers:[],defines:[],useClipPlane:!1,...i}}get shaderPath(){return this._shaderPath}set shaderPath(e){this._shaderPath=e}get options(){return this._options}get isMultiview(){return this._multiview}getClassName(){return"ShaderMaterial"}needAlphaBlending(){return this.alpha<1||this._options.needAlphaBlending}needAlphaTesting(){return this._options.needAlphaTesting}_checkUniform(e){-1===this._options.uniforms.indexOf(e)&&this._options.uniforms.push(e)}setTexture(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._textures[e]=t,this}setInternalTexture(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._internalTextures[e]=t,this}removeTexture(e){delete this._textures[e]}setTextureArray(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._checkUniform(e),this._textureArrays[e]=t,this}setExternalTexture(e,t){return -1===this._options.externalTextures.indexOf(e)&&this._options.externalTextures.push(e),this._externalTextures[e]=t,this}setFloat(e,t){return this._checkUniform(e),this._floats[e]=t,this}setInt(e,t){return this._checkUniform(e),this._ints[e]=t,this}setUInt(e,t){return this._checkUniform(e),this._uints[e]=t,this}setFloats(e,t){return this._checkUniform(e),this._floatsArrays[e]=t,this}setColor3(e,t){return this._checkUniform(e),this._colors3[e]=t,this}setColor3Array(e,t){return this._checkUniform(e),this._colors3Arrays[e]=t.reduce((e,t)=>(e.push(t.r,t.g,t.b),e),[]),this}setColor4(e,t){return this._checkUniform(e),this._colors4[e]=t,this}setColor4Array(e,t){return this._checkUniform(e),this._colors4Arrays[e]=t.reduce((e,t)=>(e.push(t.r,t.g,t.b,t.a),e),[]),this}setVector2(e,t){return this._checkUniform(e),this._vectors2[e]=t,this}setVector3(e,t){return this._checkUniform(e),this._vectors3[e]=t,this}setVector4(e,t){return this._checkUniform(e),this._vectors4[e]=t,this}setQuaternion(e,t){return this._checkUniform(e),this._quaternions[e]=t,this}setQuaternionArray(e,t){return this._checkUniform(e),this._quaternionsArrays[e]=t.reduce((e,t)=>(t.toArray(e,e.length),e),[]),this}setMatrix(e,t){return this._checkUniform(e),this._matrices[e]=t,this}setMatrices(e,t){this._checkUniform(e);let s=new Float32Array(16*t.length);for(let e=0;e<t.length;e++)t[e].copyToArray(s,16*e);return this._matrixArrays[e]=s,this}setMatrix3x3(e,t){return this._checkUniform(e),this._matrices3x3[e]=t,this}setMatrix2x2(e,t){return this._checkUniform(e),this._matrices2x2[e]=t,this}setArray2(e,t){return this._checkUniform(e),this._vectors2Arrays[e]=t,this}setArray3(e,t){return this._checkUniform(e),this._vectors3Arrays[e]=t,this}setArray4(e,t){return this._checkUniform(e),this._vectors4Arrays[e]=t,this}setUniformBuffer(e,t){return -1===this._options.uniformBuffers.indexOf(e)&&this._options.uniformBuffers.push(e),this._uniformBuffers[e]=t,this}setTextureSampler(e,t){return -1===this._options.samplerObjects.indexOf(e)&&this._options.samplerObjects.push(e),this._textureSamplers[e]=t,this}setStorageBuffer(e,t){return -1===this._options.storageBuffers.indexOf(e)&&this._options.storageBuffers.push(e),this._storageBuffers[e]=t,this}setDefine(e,t){let s=e.trimEnd()+" ",r=this.options.defines.findIndex(t=>t===e||t.startsWith(s));return r>=0&&this.options.defines.splice(r,1),("boolean"!=typeof t||t)&&this.options.defines.push(s+t),this}isReadyForSubMesh(e,t,s){return this.isReady(e,s,t)}isReady(e,t,s){let r=s&&this._storeEffectOnSubMeshes;if(this.isFrozen){let e=r?s._drawWrapper:this._drawWrapper;if(e.effect&&e._wasPreviouslyReady&&e._wasPreviouslyUsingInstances===t)return!0}let i=this.getScene(),n=i.getEngine(),a=[],h=[],c=null,f=this._shaderPath,_=this._options.uniforms,d=this._options.uniformBuffers,g=this._options.samplers;n.getCaps().multiview&&i.activeCamera&&i.activeCamera.outputRenderTarget&&i.activeCamera.outputRenderTarget.getViewCount()>1&&(this._multiview=!0,a.push("#define MULTIVIEW"),-1!==_.indexOf("viewProjection")&&-1===_.indexOf("viewProjectionR")&&_.push("viewProjectionR"));for(let e=0;e<this._options.defines.length;e++){let t=0===this._options.defines[e].indexOf("#define")?this._options.defines[e]:`#define ${this._options.defines[e]}`;a.push(t)}for(let e=0;e<this._options.attributes.length;e++)h.push(this._options.attributes[e]);if(e&&e.isVerticesDataPresent(o.VertexBuffer.ColorKind)&&(-1===h.indexOf(o.VertexBuffer.ColorKind)&&h.push(o.VertexBuffer.ColorKind),a.push("#define VERTEXCOLOR")),t&&(a.push("#define INSTANCES"),(0,x.PushAttributesForInstances)(h,this._materialHelperNeedsPreviousMatrices),e?.hasThinInstances&&(a.push("#define THIN_INSTANCES"),e&&e.isVerticesDataPresent(o.VertexBuffer.ColorInstanceKind)&&(h.push(o.VertexBuffer.ColorInstanceKind),a.push("#define INSTANCESCOLOR")))),e&&e.useBones&&e.computeBonesUsingShaders&&e.skeleton){h.push(o.VertexBuffer.MatricesIndicesKind),h.push(o.VertexBuffer.MatricesWeightsKind),e.numBoneInfluencers>4&&(h.push(o.VertexBuffer.MatricesIndicesExtraKind),h.push(o.VertexBuffer.MatricesWeightsExtraKind));let t=e.skeleton;a.push("#define NUM_BONE_INFLUENCERS "+e.numBoneInfluencers),(c=new l.EffectFallbacks).addCPUSkinningFallback(0,e),t.isUsingTextureForMatrices?(a.push("#define BONETEXTURE"),-1===_.indexOf("boneTextureInfo")&&_.push("boneTextureInfo"),-1===this._options.samplers.indexOf("boneSampler")&&this._options.samplers.push("boneSampler")):(a.push("#define BonesPerMesh "+(t.bones.length+1)),-1===_.indexOf("mBones")&&_.push("mBones"))}else a.push("#define NUM_BONE_INFLUENCERS 0");let A=0,M=e?e.morphTargetManager:null;if(M){let t=-1!==a.indexOf("#define UV1"),s=-1!==a.indexOf("#define UV2"),r=-1!==a.indexOf("#define TANGENT"),i=-1!==a.indexOf("#define NORMAL"),n=-1!==a.indexOf("#define VERTEXCOLOR");A=(0,x.PrepareDefinesAndAttributesForMorphTargets)(M,a,h,e,!0,i,r,t,s,n),M.isUsingTextureForTargets&&(-1===_.indexOf("morphTargetTextureIndices")&&_.push("morphTargetTextureIndices"),-1===this._options.samplers.indexOf("morphTargets")&&this._options.samplers.push("morphTargets")),A>0&&((_=_.slice()).push("morphTargetInfluences"),_.push("morphTargetCount"),_.push("morphTargetTextureInfo"),_.push("morphTargetTextureIndices"))}else a.push("#define NUM_MORPH_INFLUENCERS 0");if(e){let s=e.bakedVertexAnimationManager;s&&s.isEnabled&&(a.push("#define BAKED_VERTEX_ANIMATION_TEXTURE"),-1===_.indexOf("bakedVertexAnimationSettings")&&_.push("bakedVertexAnimationSettings"),-1===_.indexOf("bakedVertexAnimationTextureSizeInverted")&&_.push("bakedVertexAnimationTextureSizeInverted"),-1===_.indexOf("bakedVertexAnimationTime")&&_.push("bakedVertexAnimationTime"),-1===this._options.samplers.indexOf("bakedVertexAnimationTexture")&&this._options.samplers.push("bakedVertexAnimationTexture"),t&&h.push("bakedVertexAnimationSettingsInstanced"))}for(let e in this._textures)if(!this._textures[e].isReady())return!1;for(let e in this._internalTextures)if(!this._internalTextures[e].isReady)return!1;e&&this.needAlphaTestingForMesh(e)&&a.push("#define ALPHATEST"),!1!==this._options.useClipPlane&&((0,p.AddClipPlaneUniforms)(_),(0,p.PrepareStringDefinesForClipPlanes)(this,i,a)),i.fogEnabled&&e?.applyFog&&i.fogMode!==u.Scene.FOGMODE_NONE&&(a.push("#define FOG"),-1===_.indexOf("view")&&_.push("view"),-1===_.indexOf("vFogInfos")&&_.push("vFogInfos"),-1===_.indexOf("vFogColor")&&_.push("vFogColor")),this._useLogarithmicDepth&&(a.push("#define LOGARITHMICDEPTH"),-1===_.indexOf("logarithmicDepthConstant")&&_.push("logarithmicDepthConstant"));let v=s?s.getRenderingMesh():e;if(v&&this.useVertexPulling){let e=v.geometry;e&&(this._vertexPullingMetadata=(0,m.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{_.push(`vp_${t}_info`)})),a.push("#define USE_VERTEX_PULLING");let t=v.geometry?.getIndexBuffer();t&&!v.isUnIndexed&&(a.push("#define VERTEX_PULLING_USE_INDEX_BUFFER"),t.is32Bits&&a.push("#define VERTEX_PULLING_INDEX_BUFFER_32BITS"))}this.customShaderNameResolve&&(_=_.slice(),d=d.slice(),g=g.slice(),f=this.customShaderNameResolve(this.name,_,d,g,a,h));let T=r?s._getDrawWrapper(void 0,!0):this._drawWrapper,b=T?.effect??null,I=T?.defines??null,S=a.join("\n"),O=b;return I!==S&&(O=n.createEffect(f,{attributes:h,uniformsNames:_,uniformBuffersNames:d,samplers:g,defines:S,fallbacks:c,onCompiled:this.onCompiled,onError:this.onError,indexParameters:{maxSimultaneousMorphTargets:A},shaderLanguage:this._options.shaderLanguage,extraInitializationsAsync:this._options.extraInitializationsAsync},n),r?s.setEffect(O,S,this._materialContext):T&&T.setEffect(O,S),this._onEffectCreatedObservable&&(y.effect=O,y.subMesh=s??e?.subMeshes[0]??null,this._onEffectCreatedObservable.notifyObservers(y))),T._wasPreviouslyUsingInstances=!!t,!!O?.isReady()&&(b!==O&&i.resetCachedMaterial(),T._wasPreviouslyReady=!0,!0)}bindOnlyWorldMatrix(e,t){let s=t??this.getEffect();if(!s)return;let r=this._options.uniforms;-1!==r.indexOf("world")&&s.setMatrix("world",e);let i=this.getScene();-1!==r.indexOf("worldView")&&(e.multiplyToRef(i.getViewMatrix(),this._cachedWorldViewMatrix),s.setMatrix("worldView",this._cachedWorldViewMatrix)),-1!==r.indexOf("worldViewProjection")&&(e.multiplyToRef(i.getTransformMatrix(),this._cachedWorldViewProjectionMatrix),s.setMatrix("worldViewProjection",this._cachedWorldViewProjectionMatrix)),-1!==r.indexOf("view")&&s.setMatrix("view",i.getViewMatrix())}bindForSubMesh(e,t,s){this.bind(e,t,s._drawWrapperOverride?.effect,s)}bind(e,t,s,r){let i=r&&this._storeEffectOnSubMeshes,n=s??(i?r.effect:this.getEffect());if(!n)return;let o=this.getScene();this._activeEffect=n,this.bindOnlyWorldMatrix(e,s);let a=this._options.uniformBuffers,h=!1;if(n&&a&&a.length>0&&o.getEngine().supportsUniformBuffers)for(let s=0;s<a.length;++s)switch(a[s]){case"Mesh":t&&(t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e));break;case"Scene":(0,x.BindSceneUniformBuffer)(n,o.getSceneUniformBuffer()),o.finalizeSceneUbo(),h=!0}let u=t&&i?this._mustRebind(o,n,r,t.visibility):o.getCachedMaterial()!==this;if(n&&u){let e;for(e in h||-1===this._options.uniforms.indexOf("view")||n.setMatrix("view",o.getViewMatrix()),h||-1===this._options.uniforms.indexOf("projection")||n.setMatrix("projection",o.getProjectionMatrix()),!h&&-1!==this._options.uniforms.indexOf("viewProjection")&&(n.setMatrix("viewProjection",o.getTransformMatrix()),this._multiview&&n.setMatrix("viewProjectionR",o._transformMatrixR)),o.activeCamera&&-1!==this._options.uniforms.indexOf("cameraPosition")&&n.setVector3("cameraPosition",o.activeCamera.globalPosition),(0,x.BindBonesParameters)(t,n),(0,p.BindClipPlane)(n,this,o),this._vertexPullingMetadata&&(0,m.BindVertexPullingUniforms)(n,this._vertexPullingMetadata),this._useLogarithmicDepth&&(0,x.BindLogDepth)(i?r.materialDefines:n.defines,n,o),t&&(0,x.BindFogParameters)(o,t,n),this._textures)n.setTexture(e,this._textures[e]);for(e in this._internalTextures)n._bindTexture(e,this._internalTextures[e]);for(e in this._textureArrays)n.setTextureArray(e,this._textureArrays[e]);for(e in this._ints)n.setInt(e,this._ints[e]);for(e in this._uints)n.setUInt(e,this._uints[e]);for(e in this._floats)n.setFloat(e,this._floats[e]);for(e in this._floatsArrays)n.setArray(e,this._floatsArrays[e]);for(e in this._colors3)n.setColor3(e,this._colors3[e]);for(e in this._colors3Arrays)n.setArray3(e,this._colors3Arrays[e]);for(e in this._colors4){let t=this._colors4[e];n.setFloat4(e,t.r,t.g,t.b,t.a)}for(e in this._colors4Arrays)n.setArray4(e,this._colors4Arrays[e]);for(e in this._vectors2)n.setVector2(e,this._vectors2[e]);for(e in this._vectors3)n.setVector3(e,this._vectors3[e]);for(e in this._vectors4)n.setVector4(e,this._vectors4[e]);for(e in this._quaternions)n.setQuaternion(e,this._quaternions[e]);for(e in this._matrices)n.setMatrix(e,this._matrices[e]);for(e in this._matrixArrays)n.setMatrices(e,this._matrixArrays[e]);for(e in this._matrices3x3)n.setMatrix3x3(e,this._matrices3x3[e]);for(e in this._matrices2x2)n.setMatrix2x2(e,this._matrices2x2[e]);for(e in this._vectors2Arrays)n.setArray2(e,this._vectors2Arrays[e]);for(e in this._vectors3Arrays)n.setArray3(e,this._vectors3Arrays[e]);for(e in this._vectors4Arrays)n.setArray4(e,this._vectors4Arrays[e]);for(e in this._quaternionsArrays)n.setArray4(e,this._quaternionsArrays[e]);for(e in this._uniformBuffers){let t=this._uniformBuffers[e].getBuffer();t&&n.bindUniformBuffer(t,e)}let s=o.getEngine(),a=s.setExternalTexture;if(a)for(e in this._externalTextures)a.call(s,e,this._externalTextures[e]);let u=s.setTextureSampler;if(u)for(e in this._textureSamplers)u.call(s,e,this._textureSamplers[e]);let c=s.setStorageBuffer;if(c)for(e in this._storageBuffers)c.call(s,e,this._storageBuffers[e])}if(n&&t&&(u||!this.isFrozen)){(0,x.BindMorphTargetParameters)(t,n),t.morphTargetManager&&t.morphTargetManager.isUsingTextureForTargets&&t.morphTargetManager._bind(n);let e=t.bakedVertexAnimationManager;if(e&&e.isEnabled){let e=i?r._drawWrapper:this._drawWrapper;t.bakedVertexAnimationManager?.bind(n,!!e._wasPreviouslyUsingInstances)}}this._afterBind(t,n,r)}getActiveTextures(){let e=super.getActiveTextures();for(let t in this._textures)e.push(this._textures[t]);for(let t in this._textureArrays){let s=this._textureArrays[t];for(let t=0;t<s.length;t++)e.push(s[t])}return e}hasTexture(e){if(super.hasTexture(e))return!0;for(let t in this._textures)if(this._textures[t]===e)return!0;let t=e.getInternalTexture();for(let e in this._internalTextures)if(this._internalTextures[e]===t)return!0;for(let t in this._textureArrays){let s=this._textureArrays[t];for(let t=0;t<s.length;t++)if(s[t]===e)return!0}return!1}clone(e){let t=h.SerializationHelper.Clone(()=>new A(e,this.getScene(),this._shaderPath,this._options,this._storeEffectOnSubMeshes),this);for(let s of(t.name=e,t.id=e,"object"==typeof t._shaderPath&&(t._shaderPath={...t._shaderPath}),this._options={...this._options},Object.keys(this._options))){let e=this._options[s];Array.isArray(e)&&(this._options[s]=e.slice(0))}for(let e in this.stencil.copyTo(t.stencil),this._textures)t.setTexture(e,this._textures[e]);for(let e in this._internalTextures)t.setInternalTexture(e,this._internalTextures[e]);for(let e in this._textureArrays)t.setTextureArray(e,this._textureArrays[e]);for(let e in this._externalTextures)t.setExternalTexture(e,this._externalTextures[e]);for(let e in this._ints)t.setInt(e,this._ints[e]);for(let e in this._uints)t.setUInt(e,this._uints[e]);for(let e in this._floats)t.setFloat(e,this._floats[e]);for(let e in this._floatsArrays)t.setFloats(e,this._floatsArrays[e]);for(let e in this._colors3)t.setColor3(e,this._colors3[e]);for(let e in this._colors3Arrays)t._colors3Arrays[e]=this._colors3Arrays[e];for(let e in this._colors4)t.setColor4(e,this._colors4[e]);for(let e in this._colors4Arrays)t._colors4Arrays[e]=this._colors4Arrays[e];for(let e in this._vectors2)t.setVector2(e,this._vectors2[e]);for(let e in this._vectors3)t.setVector3(e,this._vectors3[e]);for(let e in this._vectors4)t.setVector4(e,this._vectors4[e]);for(let e in this._quaternions)t.setQuaternion(e,this._quaternions[e]);for(let e in this._quaternionsArrays)t._quaternionsArrays[e]=this._quaternionsArrays[e];for(let e in this._matrices)t.setMatrix(e,this._matrices[e]);for(let e in this._matrixArrays)t._matrixArrays[e]=this._matrixArrays[e].slice();for(let e in this._matrices3x3)t.setMatrix3x3(e,this._matrices3x3[e]);for(let e in this._matrices2x2)t.setMatrix2x2(e,this._matrices2x2[e]);for(let e in this._vectors2Arrays)t.setArray2(e,this._vectors2Arrays[e]);for(let e in this._vectors3Arrays)t.setArray3(e,this._vectors3Arrays[e]);for(let e in this._vectors4Arrays)t.setArray4(e,this._vectors4Arrays[e]);for(let e in this._uniformBuffers)t.setUniformBuffer(e,this._uniformBuffers[e]);for(let e in this._textureSamplers)t.setTextureSampler(e,this._textureSamplers[e]);for(let e in this._storageBuffers)t.setStorageBuffer(e,this._storageBuffers[e]);return t}dispose(e,t,s){if(t){let e;for(e in this._textures)this._textures[e].dispose();for(e in this._internalTextures)this._internalTextures[e].dispose();for(e in this._textureArrays){let t=this._textureArrays[e];for(let e=0;e<t.length;e++)t[e].dispose()}}this._textures={},this._internalTextures={},super.dispose(e,t,s)}serialize(){let e,t=h.SerializationHelper.Serialize(this);for(e in t.customType="BABYLON.ShaderMaterial",t.uniqueId=this.uniqueId,t.options=this._options,t.shaderPath=this._shaderPath,t.storeEffectOnSubMeshes=this._storeEffectOnSubMeshes,t.stencil=this.stencil.serialize(),t.textures={},this._textures)t.textures[e]=this._textures[e].serialize();for(e in t.textureArrays={},this._textureArrays){t.textureArrays[e]=[];let s=this._textureArrays[e];for(let r=0;r<s.length;r++)t.textureArrays[e].push(s[r].serialize())}for(e in t.ints={},this._ints)t.ints[e]=this._ints[e];for(e in t.uints={},this._uints)t.uints[e]=this._uints[e];for(e in t.floats={},this._floats)t.floats[e]=this._floats[e];for(e in t.floatsArrays={},this._floatsArrays)t.floatsArrays[e]=this._floatsArrays[e];for(e in t.colors3={},this._colors3){let s=this._colors3[e];t.colors3[e]=[s.r,s.g,s.b]}for(e in t.colors3Arrays={},this._colors3Arrays)t.colors3Arrays[e]=this._colors3Arrays[e];for(e in t.colors4={},this._colors4){let s=this._colors4[e];t.colors4[e]=[s.r,s.g,s.b,s.a]}for(e in t.colors4Arrays={},this._colors4Arrays)t.colors4Arrays[e]=this._colors4Arrays[e];for(e in t.vectors2={},this._vectors2){let s=this._vectors2[e];t.vectors2[e]=[s.x,s.y]}for(e in t.vectors3={},this._vectors3){let s=this._vectors3[e];t.vectors3[e]=[s.x,s.y,s.z]}for(e in t.vectors4={},this._vectors4){let s=this._vectors4[e];t.vectors4[e]=[s.x,s.y,s.z,s.w]}for(e in t.quaternions={},this._quaternions)t.quaternions[e]=this._quaternions[e].asArray();for(e in t.matrices={},this._matrices)t.matrices[e]=this._matrices[e].asArray();for(e in t.matrixArray={},this._matrixArrays)t.matrixArray[e]=this._matrixArrays[e];for(e in t.matrices3x3={},this._matrices3x3)t.matrices3x3[e]=this._matrices3x3[e];for(e in t.matrices2x2={},this._matrices2x2)t.matrices2x2[e]=this._matrices2x2[e];for(e in t.vectors2Arrays={},this._vectors2Arrays)t.vectors2Arrays[e]=this._vectors2Arrays[e];for(e in t.vectors3Arrays={},this._vectors3Arrays)t.vectors3Arrays[e]=this._vectors3Arrays[e];for(e in t.vectors4Arrays={},this._vectors4Arrays)t.vectors4Arrays[e]=this._vectors4Arrays[e];for(e in t.quaternionsArrays={},this._quaternionsArrays)t.quaternionsArrays[e]=this._quaternionsArrays[e];return t}}function M(e,s,r){let i,n=h.SerializationHelper.Parse(()=>new A(e.name,s,e.shaderPath,e.options,e.storeEffectOnSubMeshes),e,s,r);for(i in e.stencil&&n.stencil.parse(e.stencil,s,r),e.textures)n.setTexture(i,c.Texture.Parse(e.textures[i],s,r));for(i in e.textureArrays){let t=e.textureArrays[i],o=[];for(let e=0;e<t.length;e++)o.push(c.Texture.Parse(t[e],s,r));n.setTextureArray(i,o)}for(i in e.ints)n.setInt(i,e.ints[i]);for(i in e.uints)n.setUInt(i,e.uints[i]);for(i in e.floats)n.setFloat(i,e.floats[i]);for(i in e.floatsArrays)n.setFloats(i,e.floatsArrays[i]);for(i in e.colors3){let t=e.colors3[i];n.setColor3(i,{r:t[0],g:t[1],b:t[2]})}for(i in e.colors3Arrays){let t=e.colors3Arrays[i].reduce((e,t,s)=>(s%3==0?e.push([t]):e[e.length-1].push(t),e),[]).map(e=>({r:e[0],g:e[1],b:e[2]}));n.setColor3Array(i,t)}for(i in e.colors4){let t=e.colors4[i];n.setColor4(i,{r:t[0],g:t[1],b:t[2],a:t[3]})}for(i in e.colors4Arrays){let t=e.colors4Arrays[i].reduce((e,t,s)=>(s%4==0?e.push([t]):e[e.length-1].push(t),e),[]).map(e=>({r:e[0],g:e[1],b:e[2],a:e[3]}));n.setColor4Array(i,t)}for(i in e.vectors2){let t=e.vectors2[i];n.setVector2(i,{x:t[0],y:t[1]})}for(i in e.vectors3){let t=e.vectors3[i];n.setVector3(i,{x:t[0],y:t[1],z:t[2]})}for(i in e.vectors4){let t=e.vectors4[i];n.setVector4(i,{x:t[0],y:t[1],z:t[2],w:t[3]})}for(i in e.quaternions)n.setQuaternion(i,t.Quaternion.FromArray(e.quaternions[i]));for(i in e.matrices)n.setMatrix(i,t.Matrix.FromArray(e.matrices[i]));for(i in e.matrixArray)n._matrixArrays[i]=new Float32Array(e.matrixArray[i]);for(i in e.matrices3x3)n.setMatrix3x3(i,e.matrices3x3[i]);for(i in e.matrices2x2)n.setMatrix2x2(i,e.matrices2x2[i]);for(i in e.vectors2Arrays)n.setArray2(i,e.vectors2Arrays[i]);for(i in e.vectors3Arrays)n.setArray3(i,e.vectors3Arrays[i]);for(i in e.vectors4Arrays)n.setArray4(i,e.vectors4Arrays[i]);for(i in e.quaternionsArrays)n.setArray4(i,e.quaternionsArrays[i]);return n}async function v(e,t,s,r=""){return await new Promise((i,n)=>{let o=new f.WebRequest;o.addEventListener("readystatechange",()=>{if(4==o.readyState)if(200==o.status){let t=M(JSON.parse(o.responseText),s||d.EngineStore.LastCreatedScene,r);e&&(t.name=e),i(t)}else n("Unable to load the ShaderMaterial")}),o.open("GET",t),o.send()})}async function T(e,t,s=""){let r=this?.SnippetUrl??A.SnippetUrl;return await new Promise((i,n)=>{let o=new f.WebRequest;o.addEventListener("readystatechange",()=>{if(4==o.readyState)if(200==o.status){let r=M(JSON.parse(JSON.parse(JSON.parse(o.responseText).jsonPayload).shaderMaterial),t||d.EngineStore.LastCreatedScene,s);r.snippetId=e,i(r)}else n("Unable to load the snippet "+e)}),o.open("GET",r+"/"+e.replace(/#/g,"/")),o.send()})}A.SnippetUrl="https://snippet.babylonjs.com";let b=!1;e.s(["RegisterShaderMaterial",0,function(){b||(b=!0,A.Parse=M,A.ParseFromFileAsync=v,A.ParseFromSnippetAsync=T,A.CreateFromSnippetAsync=T,(0,g.RegisterClass)("BABYLON.ShaderMaterial",A))},"ShaderMaterial",0,A],82549)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33002,e=>{"use strict";var t=e.i(43350),n=e.i(77052);class c extends t.FlowGraphEventBlock{constructor(){super(...arguments),this.initPriority=-1,this.type="SceneReady"}_executeEvent(e,t){return this._execute(e),!0}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphSceneReadyEventBlock"}}let s=!1;function r(){s||(s=!0,(0,n.RegisterClass)("FlowGraphSceneReadyEventBlock",c))}e.s(["FlowGraphSceneReadyEventBlock",0,c,"RegisterFlowGraphSceneReadyEventBlock",0,r],61195),r(),e.s([],93386),e.i(93386),e.i(61195),e.s(["FlowGraphSceneReadyEventBlock",0,c],33002)}]);