@uptimizr/dashboard 0.2.0 → 0.3.1

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 (355) hide show
  1. package/README.md +1 -1
  2. package/out/404.html +1 -1
  3. package/out/__next.__PAGE__.txt +4 -4
  4. package/out/__next._full.txt +11 -11
  5. package/out/__next._head.txt +4 -4
  6. package/out/__next._index.txt +4 -4
  7. package/out/__next._tree.txt +2 -2
  8. package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
  9. package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
  10. package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
  11. package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
  12. package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
  13. package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
  14. package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
  15. package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
  16. package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
  17. package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
  18. package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
  19. package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
  20. package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
  21. package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
  22. package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
  23. package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
  24. package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
  25. package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
  26. package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
  27. package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
  28. package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
  29. package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
  30. package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
  31. package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
  32. package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
  33. package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
  34. package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
  35. package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
  36. package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
  37. package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
  38. package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
  39. package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
  40. package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
  41. package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
  42. package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
  43. package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
  44. package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
  45. package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
  46. package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
  47. package/out/_next/static/chunks/0msckddycfy76.js +1 -0
  48. package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
  49. package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
  50. package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
  51. package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
  52. package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
  53. package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
  54. package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
  55. package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
  56. package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
  57. package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
  58. package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
  59. package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
  60. package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
  61. package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
  62. package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
  63. package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
  64. package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
  65. package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
  66. package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
  67. package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
  68. package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
  69. package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
  70. package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
  71. package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
  72. package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
  73. package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
  74. package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
  75. package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
  76. package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
  77. package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
  78. package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
  79. package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
  80. package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
  81. package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
  82. package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
  83. package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
  84. package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
  85. package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
  86. package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
  87. package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
  88. package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
  89. package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
  90. package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
  91. package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
  92. package/out/_next/static/chunks/1fa265388524p.js +1 -0
  93. package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
  94. package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
  95. package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
  96. package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
  97. package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
  98. package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
  99. package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
  100. package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
  101. package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
  102. package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
  103. package/out/_next/static/chunks/1my2rhysaxjw4.js +3 -0
  104. package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
  105. package/out/_next/static/chunks/1par9m038tiov.js +1 -0
  106. package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
  107. package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
  108. package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
  109. package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
  110. package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
  111. package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
  112. package/out/_next/static/chunks/1vuq3dos1406d.css +3 -0
  113. package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
  114. package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
  115. package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
  116. package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
  117. package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
  118. package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
  119. package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
  120. package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
  121. package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
  122. package/out/_next/static/chunks/24cqjhy669845.js +1 -0
  123. package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
  124. package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
  125. package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
  126. package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
  127. package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
  128. package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
  129. package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
  130. package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
  131. package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
  132. package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
  133. package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
  134. package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
  135. package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
  136. package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
  137. package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
  138. package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
  139. package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
  140. package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
  141. package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
  142. package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
  143. package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
  144. package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
  145. package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
  146. package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
  147. package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
  148. package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
  149. package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
  150. package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
  151. package/out/_next/static/chunks/{1xpwp4m1tqugp.js → 2mleh3pbge181.js} +1 -1
  152. package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
  153. package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
  154. package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
  155. package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
  156. package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
  157. package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
  158. package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
  159. package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
  160. package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
  161. package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
  162. package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
  163. package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
  164. package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
  165. package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
  166. package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
  167. package/out/_next/static/chunks/31nbg0n1q43p2.js +1 -0
  168. package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
  169. package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
  170. package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
  171. package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
  172. package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
  173. package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
  174. package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
  175. package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
  176. package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
  177. package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
  178. package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
  179. package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
  180. package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
  181. package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
  182. package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
  183. package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
  184. package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
  185. package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
  186. package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
  187. package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
  188. package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
  189. package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
  190. package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
  191. package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
  192. package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
  193. package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
  194. package/out/_next/static/chunks/{0927l-ygd5c8d.js → 3qw6q7d74g5wp.js} +1 -1
  195. package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
  196. package/out/_next/static/chunks/3s2d9ymcd0l4e.js +1 -0
  197. package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
  198. package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
  199. package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
  200. package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
  201. package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
  202. package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
  203. package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
  204. package/out/_next/static/chunks/3wqs57qehored.js +1 -0
  205. package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
  206. package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
  207. package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
  208. package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
  209. package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
  210. package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
  211. package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
  212. package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
  213. package/out/_not-found/__next._full.txt +9 -9
  214. package/out/_not-found/__next._head.txt +4 -4
  215. package/out/_not-found/__next._index.txt +4 -4
  216. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  217. package/out/_not-found/__next._not-found.txt +3 -3
  218. package/out/_not-found/__next._tree.txt +2 -2
  219. package/out/_not-found.html +1 -1
  220. package/out/_not-found.txt +9 -9
  221. package/out/index.html +1 -1
  222. package/out/index.txt +11 -11
  223. package/package.json +8 -8
  224. package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
  225. package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
  226. package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
  227. package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
  228. package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
  229. package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
  230. package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
  231. package/out/_next/static/chunks/09510356f0lad.js +0 -1
  232. package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
  233. package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
  234. package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
  235. package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
  236. package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
  237. package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
  238. package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
  239. package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
  240. package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
  241. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
  242. package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
  243. package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
  244. package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
  245. package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
  246. package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
  247. package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
  248. package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
  249. package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
  250. package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
  251. package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
  252. package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
  253. package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
  254. package/out/_next/static/chunks/137xbvd4nd41j.js +0 -3
  255. package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
  256. package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
  257. package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
  258. package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
  259. package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
  260. package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
  261. package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
  262. package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
  263. package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
  264. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
  265. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
  266. package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
  267. package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
  268. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
  269. package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
  270. package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
  271. package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
  272. package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
  273. package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
  274. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
  275. package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
  276. package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
  277. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
  278. package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
  279. package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
  280. package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
  281. package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
  282. package/out/_next/static/chunks/1tta1a064979p.js +0 -1
  283. package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
  284. package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
  285. package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
  286. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
  287. package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
  288. package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
  289. package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
  290. package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
  291. package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
  292. package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
  293. package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
  294. package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
  295. package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
  296. package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
  297. package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
  298. package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
  299. package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
  300. package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
  301. package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
  302. package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
  303. package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
  304. package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
  305. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
  306. package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
  307. package/out/_next/static/chunks/2mdbvf1b5h00_.css +0 -3
  308. package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
  309. package/out/_next/static/chunks/2our10fwtj87e.js +0 -1
  310. package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
  311. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
  312. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
  313. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
  314. package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
  315. package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
  316. package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
  317. package/out/_next/static/chunks/2x-00glogc485.js +0 -1
  318. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
  319. package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
  320. package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
  321. package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
  322. package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
  323. package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
  324. package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
  325. package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
  326. package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
  327. package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
  328. package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
  329. package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
  330. package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
  331. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
  332. package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
  333. package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
  334. package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
  335. package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
  336. package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
  337. package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
  338. package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
  339. package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
  340. package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
  341. package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
  342. package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
  343. package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
  344. package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
  345. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
  346. package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
  347. package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
  348. package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
  349. package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
  350. package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
  351. package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
  352. package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
  353. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_buildManifest.js +0 -0
  354. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_clientMiddlewareManifest.js +0 -0
  355. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4357,e=>{"use strict";var t=e.i(12423);let r="helperFunctions",i=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70882,e=>{"use strict";var t=e.i(1719);let r="helperFunctions",i=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
2
2
  const LinearEncodePowerApprox: f32=2.2;const GammaEncodePowerApprox: f32=1.0/LinearEncodePowerApprox;const LuminanceEncodeApprox: vec3f=vec3f(0.2126,0.7152,0.0722);const Epsilon:f32=0.0000001;fn square(x: f32)->f32 {return x*x;}
3
3
  fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
4
4
  fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
@@ -84,7 +84,7 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
84
84
  fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
85
85
  fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
86
86
  uint2float(rstate*2447445414u));}
87
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},60106,e=>{"use strict";var t=e.i(12423);let r="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
87
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},95611,e=>{"use strict";var t=e.i(1719);let r="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
88
88
  #ifdef MULTIVIEW
89
89
  viewProjectionR : mat4x4<f32>,
90
90
  #endif
@@ -94,16 +94,16 @@ vEyePosition : vec4<f32>,
94
94
  inverseProjection : mat4x4<f32>,};
95
95
  #define SCENE_UBO
96
96
  var<uniform> scene : Scene;
97
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}])},50008,39780,54758,e=>{"use strict";var t=e.i(12423);let r="meshUboDeclaration",i=`struct Mesh {world : mat4x4<f32>,
97
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}])},96024,58834,23681,e=>{"use strict";var t=e.i(1719);let r="meshUboDeclaration",i=`struct Mesh {world : mat4x4<f32>,
98
98
  visibility : f32,};var<uniform> mesh : Mesh;
99
99
  #define WORLD_UBO
100
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["meshUboDeclarationWGSL",0,{name:r,shader:i}],50008);let n="mainUVVaryingDeclaration",a=`#ifdef MAINUV{X}
100
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["meshUboDeclarationWGSL",0,{name:r,shader:i}],96024);let n="mainUVVaryingDeclaration",a=`#ifdef MAINUV{X}
101
101
  varying vMainUV{X}: vec2f;
102
102
  #endif
103
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["mainUVVaryingDeclarationWGSL",0,{name:n,shader:a}],39780);let f="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
103
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["mainUVVaryingDeclarationWGSL",0,{name:n,shader:a}],58834);let f="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
104
104
  uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
105
105
  #endif
106
- `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["logDepthDeclarationWGSL",0,{name:f,shader:o}],54758)},99452,e=>{"use strict";var t=e.i(12423);let r="harmonicsFunctions",i=`#ifdef USESPHERICALFROMREFLECTIONMAP
106
+ `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["logDepthDeclarationWGSL",0,{name:f,shader:o}],23681)},2720,e=>{"use strict";var t=e.i(1719);let r="harmonicsFunctions",i=`#ifdef USESPHERICALFROMREFLECTIONMAP
107
107
  #ifdef SPHERICAL_HARMONICS
108
108
  fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSphericalL00
109
109
  + uniforms.vSphericalL1_1*(normal.y)
@@ -118,7 +118,7 @@ fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSpherica
118
118
  fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {var Nx: f32=normal.x;var Ny: f32=normal.y;var Nz: f32=normal.z;var C1: vec3f=uniforms.vSphericalZZ.rgb;var Cx: vec3f=uniforms.vSphericalX.rgb;var Cy: vec3f=uniforms.vSphericalY.rgb;var Cz: vec3f=uniforms.vSphericalZ.rgb;var Cxx_zz: vec3f=uniforms.vSphericalXX_ZZ.rgb;var Cyy_zz: vec3f=uniforms.vSphericalYY_ZZ.rgb;var Cxy: vec3f=uniforms.vSphericalXY.rgb;var Cyz: vec3f=uniforms.vSphericalYZ.rgb;var Czx: vec3f=uniforms.vSphericalZX.rgb;var a1: vec3f=Cyy_zz*Ny+Cy;var a2: vec3f=Cyz*Nz+a1;var b1: vec3f=Czx*Nz+Cx;var b2: vec3f=Cxy*Ny+b1;var b3: vec3f=Cxx_zz*Nx+b2;var t1: vec3f=Cz *Nz+C1;var t2: vec3f=a2 *Ny+t1;var t3: vec3f=b3 *Nx+t2;return t3;}
119
119
  #endif
120
120
  #endif
121
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["harmonicsFunctionsWGSL",0,{name:r,shader:i}])},61202,e=>{"use strict";var t=e.i(12423);let r="pbrBRDFFunctions",i=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
121
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["harmonicsFunctionsWGSL",0,{name:r,shader:i}])},8067,e=>{"use strict";var t=e.i(1719);let r="pbrBRDFFunctions",i=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
122
122
  #define BRDF_DIFFUSE_MODEL_EON 0
123
123
  #define BRDF_DIFFUSE_MODEL_BURLEY 1
124
124
  #define BRDF_DIFFUSE_MODEL_LAMBERT 2
@@ -290,7 +290,7 @@ fn transmittanceBRDF_Burley(tintColor: vec3f,diffusionDistance: vec3f,thickness:
290
290
  fn computeWrappedDiffuseNdotL(NdotL: f32,w: f32)->f32 {var t: f32=1.0+w;var invt2: f32=1.0/(t*t);return saturate((NdotL+w)*invt2);}
291
291
  #endif
292
292
  #endif
293
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:r,shader:i}])},45329,35011,e=>{"use strict";var t=e.i(12423);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
293
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:r,shader:i}])},88356,58731,e=>{"use strict";var t=e.i(1719);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
294
294
  #ifndef USE_VERTEX_PULLING
295
295
  attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
296
296
  #if NUM_BONE_INFLUENCERS>4
@@ -313,7 +313,7 @@ let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x
313
313
  #endif
314
314
  #endif
315
315
  #endif
316
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],45329);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
316
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],88356);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
317
317
  uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
318
318
  #ifdef INSTANCES
319
319
  attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
@@ -321,7 +321,7 @@ attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
321
321
  fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
322
322
  {let offset=i32(index)*4;let frameUV=i32(frame);let m0=textureLoad(smp,vec2<i32>(offset+0,frameUV),0);let m1=textureLoad(smp,vec2<i32>(offset+1,frameUV),0);let m2=textureLoad(smp,vec2<i32>(offset+2,frameUV),0);let m3=textureLoad(smp,vec2<i32>(offset+3,frameUV),0);return mat4x4<f32>(m0,m1,m2,m3);}
323
323
  #endif
324
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],35011)},18062,e=>{"use strict";var t=e.i(12423);let r="instancesDeclaration",i=`#ifdef INSTANCES
324
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],58731)},76295,e=>{"use strict";var t=e.i(1719);let r="instancesDeclaration",i=`#ifdef INSTANCES
325
325
  attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
326
326
  #ifdef INSTANCESCOLOR
327
327
  attribute instanceColor : vec4<f32>;
@@ -343,7 +343,7 @@ uniform world : mat4x4<f32>;
343
343
  uniform previousWorld : mat4x4<f32>;
344
344
  #endif
345
345
  #endif
346
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesDeclarationWGSL",0,{name:r,shader:i}])},77785,e=>{"use strict";var t=e.i(12423);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
346
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesDeclarationWGSL",0,{name:r,shader:i}])},77715,e=>{"use strict";var t=e.i(1719);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
347
347
  uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
348
348
  #endif
349
349
  #ifdef CLIPPLANE2
@@ -361,7 +361,7 @@ uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
361
361
  #ifdef CLIPPLANE6
362
362
  uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
363
363
  #endif
364
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}])},50331,3350,35845,3878,e=>{"use strict";var t=e.i(12423);let r="instancesVertex",i=`#ifdef INSTANCES
364
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}])},18606,64169,67626,31291,e=>{"use strict";var t=e.i(1719);let r="instancesVertex",i=`#ifdef INSTANCES
365
365
  var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
366
366
  #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
367
367
  var finalPreviousWorld=mat4x4<f32>(
@@ -388,7 +388,7 @@ var finalWorld=mesh.world;
388
388
  var finalPreviousWorld=uniforms.previousWorld;
389
389
  #endif
390
390
  #endif
391
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesVertexWGSL",0,{name:r,shader:i}],50331);let n="bonesVertex",a=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
391
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesVertexWGSL",0,{name:r,shader:i}],18606);let n="bonesVertex",a=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
392
392
  #if NUM_BONE_INFLUENCERS>0
393
393
  var influence : mat4x4<f32>;
394
394
  #ifdef BONETEXTURE
@@ -441,7 +441,7 @@ influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*v
441
441
  finalWorld=finalWorld*influence;
442
442
  #endif
443
443
  #endif
444
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bonesVertexWGSL",0,{name:n,shader:a}],3350);let f="bakedVertexAnimation",o=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
444
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bonesVertexWGSL",0,{name:n,shader:a}],64169);let f="bakedVertexAnimation",o=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
445
445
  {
446
446
  #ifdef INSTANCES
447
447
  let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
@@ -472,7 +472,7 @@ VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTextur
472
472
  #endif
473
473
  finalWorld=finalWorld*VATInfluence;}
474
474
  #endif
475
- `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:o}],35845);let s="clipPlaneVertex",d=`#ifdef CLIPPLANE
475
+ `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:o}],67626);let s="clipPlaneVertex",d=`#ifdef CLIPPLANE
476
476
  vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
477
477
  #endif
478
478
  #ifdef CLIPPLANE2
@@ -490,17 +490,17 @@ vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
490
490
  #ifdef CLIPPLANE6
491
491
  vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
492
492
  #endif
493
- `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["clipPlaneVertexWGSL",0,{name:s,shader:d}],3878)},75234,42893,8154,e=>{"use strict";var t=e.i(12423);let r="fogVertexDeclaration",i=`#ifdef FOG
493
+ `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["clipPlaneVertexWGSL",0,{name:s,shader:d}],31291)},91676,67233,97885,e=>{"use strict";var t=e.i(1719);let r="fogVertexDeclaration",i=`#ifdef FOG
494
494
  varying vFogDistance: vec3f;
495
495
  #endif
496
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],75234);let n="fogVertex",a=`#ifdef FOG
496
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],91676);let n="fogVertex",a=`#ifdef FOG
497
497
  #ifdef SCENE_UBO
498
498
  vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
499
499
  #else
500
500
  vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;
501
501
  #endif
502
502
  #endif
503
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexWGSL",0,{name:n,shader:a}],42893);let f="vertexColorMixing",o=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
503
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexWGSL",0,{name:n,shader:a}],67233);let f="vertexColorMixing",o=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
504
504
  vertexOutputs.vColor=vec4f(1.0);
505
505
  #ifdef VERTEXCOLOR
506
506
  #ifdef VERTEXALPHA
@@ -513,7 +513,7 @@ vertexOutputs.vColor=vec4f(vertexOutputs.vColor.rgb*colorUpdated.rgb,vertexOutpu
513
513
  vertexOutputs.vColor*=vertexInputs.instanceColor;
514
514
  #endif
515
515
  #endif
516
- `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["vertexColorMixingWGSL",0,{name:f,shader:o}],8154)},89340,5122,49853,62077,e=>{"use strict";var t=e.i(12423);let r="morphTargetsVertexGlobalDeclaration",i=`#ifdef MORPHTARGETS
516
+ `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["vertexColorMixingWGSL",0,{name:f,shader:o}],97885)},31893,46223,90154,75224,e=>{"use strict";var t=e.i(1719);let r="morphTargetsVertexGlobalDeclaration",i=`#ifdef MORPHTARGETS
517
517
  uniform morphTargetInfluences : array<f32,NUM_MORPH_INFLUENCERS>;
518
518
  #ifdef MORPHTARGETS_TEXTURE
519
519
  uniform morphTargetTextureIndices : array<f32,NUM_MORPH_INFLUENCERS>;uniform morphTargetTextureInfo : vec3<f32>;var morphTargets : texture_2d_array<f32>;fn readVector3FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec3<f32>
@@ -525,7 +525,7 @@ let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
525
525
  let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
526
526
  #endif
527
527
  #endif
528
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:r,shader:i}],89340);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
528
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:r,shader:i}],31893);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
529
529
  #ifndef MORPHTARGETS_TEXTURE
530
530
  #ifdef MORPHTARGETS_POSITION
531
531
  attribute position{X} : vec3<f32>;
@@ -549,12 +549,12 @@ attribute color{X} : vec4<f32>;
549
549
  uniform morphTargetCount: f32;
550
550
  #endif
551
551
  #endif
552
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],5122);let f="morphTargetsVertexGlobal",o=`#ifdef MORPHTARGETS
552
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],46223);let f="morphTargetsVertexGlobal",o=`#ifdef MORPHTARGETS
553
553
  #ifdef MORPHTARGETS_TEXTURE
554
554
  var vertexID : f32;
555
555
  #endif
556
556
  #endif
557
- `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:o}],49853);let s="morphTargetsVertex",d=`#ifdef MORPHTARGETS
557
+ `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:o}],90154);let s="morphTargetsVertex",d=`#ifdef MORPHTARGETS
558
558
  #ifdef MORPHTARGETS_TEXTURE
559
559
  #if {X}==0
560
560
  for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
@@ -664,10 +664,10 @@ colorUpdated=colorUpdated+(vertexInputs.color{X}-vertexInputs.color)*uniforms.mo
664
664
  #endif
665
665
  #endif
666
666
  #endif
667
- `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["morphTargetsVertexWGSL",0,{name:s,shader:d}],62077)},71822,39359,19376,90742,45012,20958,80255,25716,86752,6275,47167,e=>{"use strict";var t=e.i(12423);let r="uvAttributeDeclaration",i=`#if defined(UV{X}) && !defined(USE_VERTEX_PULLING)
667
+ `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["morphTargetsVertexWGSL",0,{name:s,shader:d}],75224)},62983,1087,13103,98386,81740,87143,86424,84722,18012,64107,3309,e=>{"use strict";var t=e.i(1719);let r="uvAttributeDeclaration",i=`#if defined(UV{X}) && !defined(USE_VERTEX_PULLING)
668
668
  attribute uv{X}: vec2f;
669
669
  #endif
670
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["uvAttributeDeclarationWGSL",0,{name:r,shader:i}],71822);let n="prePassVertexDeclaration",a=`#ifdef PREPASS
670
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["uvAttributeDeclarationWGSL",0,{name:r,shader:i}],62983);let n="prePassVertexDeclaration",a=`#ifdef PREPASS
671
671
  #ifdef PREPASS_LOCAL_POSITION
672
672
  varying vPosition : vec3f;
673
673
  #endif
@@ -681,10 +681,10 @@ varying vNormViewDepth: f32;
681
681
  uniform previousViewProjection: mat4x4f;varying vCurrentPosition: vec4f;varying vPreviousPosition: vec4f;
682
682
  #endif
683
683
  #endif
684
- `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["prePassVertexDeclarationWGSL",0,{name:n,shader:a}],39359);let f="samplerVertexDeclaration",o=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
684
+ `;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["prePassVertexDeclarationWGSL",0,{name:n,shader:a}],1087);let f="samplerVertexDeclaration",o=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
685
685
  varying v_VARYINGNAME_UV: vec2f;
686
686
  #endif
687
- `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["samplerVertexDeclarationWGSL",0,{name:f,shader:o}],19376);let s="lightVxUboDeclaration",d=`#ifdef LIGHT{X}
687
+ `;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["samplerVertexDeclarationWGSL",0,{name:f,shader:o}],13103);let s="lightVxUboDeclaration",d=`#ifdef LIGHT{X}
688
688
  struct Light{X}
689
689
  {vLightData: vec4f,
690
690
  vLightDiffuse: vec4f,
@@ -715,7 +715,7 @@ varying vPositionFromLight{X}: vec4f;varying vDepthMetric{X}: f32;uniform lightM
715
715
  #endif
716
716
  #endif
717
717
  #endif
718
- `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["lightVxUboDeclarationWGSL",0,{name:s,shader:d}],90742);let l="vertexPullingDeclaration",c=`#ifdef USE_VERTEX_PULLING
718
+ `;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=d),e.s(["lightVxUboDeclarationWGSL",0,{name:s,shader:d}],98386);let l="vertexPullingDeclaration",c=`#ifdef USE_VERTEX_PULLING
719
719
  #ifdef VERTEX_PULLING_USE_INDEX_BUFFER
720
720
  var<storage,read> indices : array<u32>;
721
721
  #endif
@@ -893,7 +893,7 @@ vp_readMatrixWeightExtraValue(offset+cs*3u,dataType,normalized)
893
893
  #endif
894
894
  #endif
895
895
  #endif
896
- `;t.ShaderStore.IncludesShadersStoreWGSL[l]||(t.ShaderStore.IncludesShadersStoreWGSL[l]=c),e.s(["vertexPullingDeclarationWGSL",0,{name:l,shader:c}],45012);let u="vertexPullingVertex",v=`#ifdef USE_VERTEX_PULLING
896
+ `;t.ShaderStore.IncludesShadersStoreWGSL[l]||(t.ShaderStore.IncludesShadersStoreWGSL[l]=c),e.s(["vertexPullingDeclarationWGSL",0,{name:l,shader:c}],81740);let u="vertexPullingVertex",v=`#ifdef USE_VERTEX_PULLING
897
897
  let vpVertexIndex: u32=vp_readVertexIndex(vertexInputs.vertexIndex);positionUpdated=vp_readPosition(uniforms.vp_position_info,vpVertexIndex);
898
898
  #ifdef NORMAL
899
899
  normalUpdated=vp_readNormal(uniforms.vp_normal_info,vpVertexIndex);
@@ -947,7 +947,7 @@ var vp_matricesIndicesExtra: vec4f=vp_readBoneIndicesExtra(uniforms.vp_matricesI
947
947
  #endif
948
948
  #endif
949
949
  #endif
950
- `;t.ShaderStore.IncludesShadersStoreWGSL[u]||(t.ShaderStore.IncludesShadersStoreWGSL[u]=v),e.s(["vertexPullingVertexWGSL",0,{name:u,shader:v}],20958);let m="prePassVertex",p=`#ifdef PREPASS_DEPTH
950
+ `;t.ShaderStore.IncludesShadersStoreWGSL[u]||(t.ShaderStore.IncludesShadersStoreWGSL[u]=v),e.s(["vertexPullingVertexWGSL",0,{name:u,shader:v}],87143);let m="prePassVertex",p=`#ifdef PREPASS_DEPTH
951
951
  vertexOutputs.vViewPos=(scene.view*worldPos).rgb;
952
952
  #endif
953
953
  #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
@@ -986,7 +986,7 @@ vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWor
986
986
  vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);
987
987
  #endif
988
988
  #endif
989
- `;t.ShaderStore.IncludesShadersStoreWGSL[m]||(t.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["prePassVertexWGSL",0,{name:m,shader:p}],80255);let E="uvVariableDeclaration",_=`#ifdef MAINUV{X}
989
+ `;t.ShaderStore.IncludesShadersStoreWGSL[m]||(t.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["prePassVertexWGSL",0,{name:m,shader:p}],86424);let E="uvVariableDeclaration",_=`#ifdef MAINUV{X}
990
990
  #if !defined(UV{X})
991
991
  var uv{X}: vec2f=vec2f(0.,0.);
992
992
  #elif defined(USE_VERTEX_PULLING)
@@ -996,7 +996,7 @@ var uv{X}: vec2f=vertexInputs.uv{X};
996
996
  #endif
997
997
  vertexOutputs.vMainUV{X}=uv{X};
998
998
  #endif
999
- `;t.ShaderStore.IncludesShadersStoreWGSL[E]||(t.ShaderStore.IncludesShadersStoreWGSL[E]=_),e.s(["uvVariableDeclarationWGSL",0,{name:E,shader:_}],25716);let I="samplerVertexImplementation",S=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
999
+ `;t.ShaderStore.IncludesShadersStoreWGSL[E]||(t.ShaderStore.IncludesShadersStoreWGSL[E]=_),e.s(["uvVariableDeclarationWGSL",0,{name:E,shader:_}],84722);let I="samplerVertexImplementation",S=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
1000
1000
  if (uniforms.v_INFONAME_==0.)
1001
1001
  {vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(uvUpdated,1.0,0.0)).xy;}
1002
1002
  #ifdef UV2
@@ -1020,7 +1020,7 @@ else if (uniforms.v_INFONAME_==5.)
1020
1020
  {vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(vertexInputs.uv6,1.0,0.0)).xy;}
1021
1021
  #endif
1022
1022
  #endif
1023
- `;t.ShaderStore.IncludesShadersStoreWGSL[I]||(t.ShaderStore.IncludesShadersStoreWGSL[I]=S),e.s(["samplerVertexImplementationWGSL",0,{name:I,shader:S}],86752);let x="shadowsVertex",N=`#ifdef SHADOWS
1023
+ `;t.ShaderStore.IncludesShadersStoreWGSL[I]||(t.ShaderStore.IncludesShadersStoreWGSL[I]=S),e.s(["samplerVertexImplementationWGSL",0,{name:I,shader:S}],18012);let x="shadowsVertex",N=`#ifdef SHADOWS
1024
1024
  #if defined(SHADOWCSM{X})
1025
1025
  #ifdef SCENE_UBO
1026
1026
  vertexOutputs.vPositionFromCamera{X}=scene.view*worldPos;
@@ -1068,24 +1068,24 @@ vertexOutputs.vDepthMetric{X}=(vertexOutputs.vPositionFromLight{X}.z+light{X}.de
1068
1068
  #endif
1069
1069
  #endif
1070
1070
  #endif
1071
- `;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=N),e.s(["shadowsVertexWGSL",0,{name:x,shader:N}],6275);let T="logDepthVertex",A=`#ifdef LOGARITHMICDEPTH
1071
+ `;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=N),e.s(["shadowsVertexWGSL",0,{name:x,shader:N}],64107);let T="logDepthVertex",A=`#ifdef LOGARITHMICDEPTH
1072
1072
  vertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant;
1073
1073
  #endif
1074
- `;t.ShaderStore.IncludesShadersStoreWGSL[T]||(t.ShaderStore.IncludesShadersStoreWGSL[T]=A),e.s(["logDepthVertexWGSL",0,{name:T,shader:A}],47167)},40664,e=>{"use strict";var t=e.i(12423);e.i(60106),e.i(50008);let r="openpbrUboDeclaration",i=`uniform vTangentSpaceParams: vec2f;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vDebugMode: vec2f;uniform renderTargetSize: vec2f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform backgroundRefractionMatrix: mat4x4f;uniform vBackgroundRefractionInfos: vec3f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;uniform vBaseWeight: f32;uniform vBaseColor: vec4f;uniform vBaseDiffuseRoughness: f32;uniform vReflectanceInfo: vec4f;uniform vSpecularColor: vec4f;uniform vSpecularAnisotropy: vec3f;uniform vTransmissionWeight : f32;uniform vTransmissionColor : vec3f;uniform vTransmissionDepth : f32;uniform vTransmissionScatter : vec3f;uniform vTransmissionScatterAnisotropy : f32;uniform vTransmissionDispersionScale : f32;uniform vTransmissionDispersionAbbeNumber : f32;uniform vSubsurfaceWeight: f32;uniform vSubsurfaceColor: vec3f;uniform vSubsurfaceRadius: f32;uniform vSubsurfaceRadiusScale: vec3f;uniform vSubsurfaceScatterAnisotropy: f32;uniform vCoatWeight: f32;uniform vCoatColor: vec3f;uniform vCoatRoughness: f32;uniform vCoatRoughnessAnisotropy: f32;uniform vCoatIor: f32;uniform vCoatDarkening : f32;uniform vFuzzWeight: f32;uniform vFuzzColor: vec3f;uniform vFuzzRoughness: f32;uniform vGeometryThinWalled: f32;uniform vGeometryCoatTangent: vec2f;uniform vGeometryThickness: f32;uniform vEmissionColor: vec3f;uniform vThinFilmWeight: f32;uniform vThinFilmThickness: vec2f;uniform vThinFilmIor: f32;uniform vBaseWeightInfos: vec2f;uniform baseWeightMatrix: mat4x4f;uniform vBaseColorInfos: vec2f;uniform baseColorMatrix: mat4x4f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform vBaseMetalnessInfos: vec2f;uniform baseMetalnessMatrix: mat4x4f;uniform vSpecularWeightInfos: vec2f;uniform specularWeightMatrix: mat4x4f;uniform vSpecularColorInfos: vec2f;uniform specularColorMatrix: mat4x4f;uniform vSpecularRoughnessInfos: vec2f;uniform specularRoughnessMatrix: mat4x4f;uniform vSpecularRoughnessAnisotropyInfos: vec2f;uniform specularRoughnessAnisotropyMatrix: mat4x4f;uniform vTransmissionWeightInfos : vec2f;uniform transmissionWeightMatrix : mat4x4f;uniform vTransmissionColorInfos : vec2f;uniform transmissionColorMatrix : mat4x4f;uniform vTransmissionDepthInfos : vec2f;uniform transmissionDepthMatrix : mat4x4f;uniform vTransmissionScatterInfos : vec2f;uniform transmissionScatterMatrix : mat4x4f;uniform vTransmissionDispersionScaleInfos : vec2f;uniform transmissionDispersionScaleMatrix : mat4x4f;uniform vSubsurfaceWeightInfos: vec2f;uniform subsurfaceWeightMatrix: mat4x4f;uniform vSubsurfaceColorInfos: vec2f;uniform subsurfaceColorMatrix: mat4x4f;uniform vSubsurfaceRadiusScaleInfos: vec2f;uniform subsurfaceRadiusScaleMatrix: mat4x4f;uniform vCoatWeightInfos: vec2f;uniform coatWeightMatrix: mat4x4f;uniform vCoatColorInfos: vec2f;uniform coatColorMatrix: mat4x4f;uniform vCoatRoughnessInfos: vec2f;uniform coatRoughnessMatrix: mat4x4f;uniform vCoatRoughnessAnisotropyInfos: vec2f;uniform coatRoughnessAnisotropyMatrix: mat4x4f;uniform vCoatDarkeningInfos : vec2f;uniform coatDarkeningMatrix : mat4x4f;uniform vFuzzWeightInfos: vec2f;uniform fuzzWeightMatrix: mat4x4f;uniform vFuzzColorInfos: vec2f;uniform fuzzColorMatrix: mat4x4f;uniform vFuzzRoughnessInfos: vec2f;uniform fuzzRoughnessMatrix: mat4x4f;uniform vGeometryNormalInfos: vec2f;uniform geometryNormalMatrix: mat4x4f;uniform vGeometryTangentInfos: vec2f;uniform geometryTangentMatrix: mat4x4f;uniform vGeometryCoatNormalInfos: vec2f;uniform geometryCoatNormalMatrix: mat4x4f;uniform vGeometryCoatTangentInfos: vec2f;uniform geometryCoatTangentMatrix: mat4x4f;uniform vGeometryOpacityInfos: vec2f;uniform geometryOpacityMatrix: mat4x4f;uniform vGeometryThicknessInfos: vec2f;uniform geometryThicknessMatrix: mat4x4f;uniform vEmissionColorInfos: vec2f;uniform emissionColorMatrix: mat4x4f;uniform vThinFilmWeightInfos: vec2f;uniform thinFilmWeightMatrix: mat4x4f;uniform vThinFilmThicknessInfos: vec2f;uniform thinFilmThicknessMatrix: mat4x4f;uniform vAmbientOcclusionInfos: vec2f;uniform ambientOcclusionMatrix: mat4x4f;
1074
+ `;t.ShaderStore.IncludesShadersStoreWGSL[T]||(t.ShaderStore.IncludesShadersStoreWGSL[T]=A),e.s(["logDepthVertexWGSL",0,{name:T,shader:A}],3309)},24099,e=>{"use strict";var t=e.i(1719);e.i(95611),e.i(96024);let r="openpbrUboDeclaration",i=`uniform vTangentSpaceParams: vec2f;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vDebugMode: vec2f;uniform renderTargetSize: vec2f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform backgroundRefractionMatrix: mat4x4f;uniform vBackgroundRefractionInfos: vec3f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;uniform vBaseWeight: f32;uniform vBaseColor: vec4f;uniform vBaseDiffuseRoughness: f32;uniform vReflectanceInfo: vec4f;uniform vSpecularColor: vec4f;uniform vSpecularAnisotropy: vec3f;uniform vTransmissionWeight : f32;uniform vTransmissionColor : vec3f;uniform vTransmissionDepth : f32;uniform vTransmissionScatter : vec3f;uniform vTransmissionScatterAnisotropy : f32;uniform vTransmissionDispersionScale : f32;uniform vTransmissionDispersionAbbeNumber : f32;uniform vSubsurfaceWeight: f32;uniform vSubsurfaceColor: vec3f;uniform vSubsurfaceRadius: f32;uniform vSubsurfaceRadiusScale: vec3f;uniform vSubsurfaceScatterAnisotropy: f32;uniform vCoatWeight: f32;uniform vCoatColor: vec3f;uniform vCoatRoughness: f32;uniform vCoatRoughnessAnisotropy: f32;uniform vCoatIor: f32;uniform vCoatDarkening : f32;uniform vFuzzWeight: f32;uniform vFuzzColor: vec3f;uniform vFuzzRoughness: f32;uniform vGeometryThinWalled: f32;uniform vGeometryCoatTangent: vec2f;uniform vGeometryThickness: f32;uniform vEmissionColor: vec3f;uniform vThinFilmWeight: f32;uniform vThinFilmThickness: vec2f;uniform vThinFilmIor: f32;uniform vBaseWeightInfos: vec2f;uniform baseWeightMatrix: mat4x4f;uniform vBaseColorInfos: vec2f;uniform baseColorMatrix: mat4x4f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform vBaseMetalnessInfos: vec2f;uniform baseMetalnessMatrix: mat4x4f;uniform vSpecularWeightInfos: vec2f;uniform specularWeightMatrix: mat4x4f;uniform vSpecularColorInfos: vec2f;uniform specularColorMatrix: mat4x4f;uniform vSpecularRoughnessInfos: vec2f;uniform specularRoughnessMatrix: mat4x4f;uniform vSpecularRoughnessAnisotropyInfos: vec2f;uniform specularRoughnessAnisotropyMatrix: mat4x4f;uniform vTransmissionWeightInfos : vec2f;uniform transmissionWeightMatrix : mat4x4f;uniform vTransmissionColorInfos : vec2f;uniform transmissionColorMatrix : mat4x4f;uniform vTransmissionDepthInfos : vec2f;uniform transmissionDepthMatrix : mat4x4f;uniform vTransmissionScatterInfos : vec2f;uniform transmissionScatterMatrix : mat4x4f;uniform vTransmissionDispersionScaleInfos : vec2f;uniform transmissionDispersionScaleMatrix : mat4x4f;uniform vSubsurfaceWeightInfos: vec2f;uniform subsurfaceWeightMatrix: mat4x4f;uniform vSubsurfaceColorInfos: vec2f;uniform subsurfaceColorMatrix: mat4x4f;uniform vSubsurfaceRadiusScaleInfos: vec2f;uniform subsurfaceRadiusScaleMatrix: mat4x4f;uniform vCoatWeightInfos: vec2f;uniform coatWeightMatrix: mat4x4f;uniform vCoatColorInfos: vec2f;uniform coatColorMatrix: mat4x4f;uniform vCoatRoughnessInfos: vec2f;uniform coatRoughnessMatrix: mat4x4f;uniform vCoatRoughnessAnisotropyInfos: vec2f;uniform coatRoughnessAnisotropyMatrix: mat4x4f;uniform vCoatDarkeningInfos : vec2f;uniform coatDarkeningMatrix : mat4x4f;uniform vFuzzWeightInfos: vec2f;uniform fuzzWeightMatrix: mat4x4f;uniform vFuzzColorInfos: vec2f;uniform fuzzColorMatrix: mat4x4f;uniform vFuzzRoughnessInfos: vec2f;uniform fuzzRoughnessMatrix: mat4x4f;uniform vGeometryNormalInfos: vec2f;uniform geometryNormalMatrix: mat4x4f;uniform vGeometryTangentInfos: vec2f;uniform geometryTangentMatrix: mat4x4f;uniform vGeometryCoatNormalInfos: vec2f;uniform geometryCoatNormalMatrix: mat4x4f;uniform vGeometryCoatTangentInfos: vec2f;uniform geometryCoatTangentMatrix: mat4x4f;uniform vGeometryOpacityInfos: vec2f;uniform geometryOpacityMatrix: mat4x4f;uniform vGeometryThicknessInfos: vec2f;uniform geometryThicknessMatrix: mat4x4f;uniform vEmissionColorInfos: vec2f;uniform emissionColorMatrix: mat4x4f;uniform vThinFilmWeightInfos: vec2f;uniform thinFilmWeightMatrix: mat4x4f;uniform vThinFilmThicknessInfos: vec2f;uniform thinFilmThicknessMatrix: mat4x4f;uniform vAmbientOcclusionInfos: vec2f;uniform ambientOcclusionMatrix: mat4x4f;
1075
1075
  #define ADDITIONAL_UBO_DECLARATION
1076
1076
  #include<sceneUboDeclaration>
1077
1077
  #include<meshUboDeclaration>
1078
- `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["openpbrUboDeclarationWGSL",0,{name:r,shader:i}])},51455,e=>{"use strict";var t=e.i(12423),r=e.i(60106),i=e.i(50008),n=e.i(40664),a=e.i(71822),f=e.i(39780),o=e.i(4357),s=e.i(61202),d=e.i(45329),l=e.i(35011),c=e.i(18062),u=e.i(39359),v=e.i(19376),m=e.i(99452);let p="openpbrNormalMapVertexDeclaration",E=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC) || defined(FUZZ)
1078
+ `;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["openpbrUboDeclarationWGSL",0,{name:r,shader:i}])},43168,e=>{"use strict";var t=e.i(1719),r=e.i(95611),i=e.i(96024),n=e.i(24099),a=e.i(62983),f=e.i(58834),o=e.i(70882),s=e.i(8067),d=e.i(88356),l=e.i(58731),c=e.i(76295),u=e.i(1087),v=e.i(13103),m=e.i(2720);let p="openpbrNormalMapVertexDeclaration",E=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC) || defined(FUZZ)
1079
1079
  #if defined(TANGENT) && defined(NORMAL)
1080
1080
  varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
1081
1081
  #endif
1082
1082
  #endif
1083
- `;t.ShaderStore.IncludesShadersStoreWGSL[p]||(t.ShaderStore.IncludesShadersStoreWGSL[p]=E);var _=e.i(77785),I=e.i(75234),S=e.i(90742),x=e.i(89340),N=e.i(5122),T=e.i(54758),A=e.i(45012),R=e.i(20958),h=e.i(49853),V=e.i(62077),O=e.i(50331),M=e.i(3350),L=e.i(35845),g=e.i(80255),F=e.i(25716),U=e.i(86752);let C="openpbrNormalMapVertex",G=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC) || defined(FUZZ)
1083
+ `;t.ShaderStore.IncludesShadersStoreWGSL[p]||(t.ShaderStore.IncludesShadersStoreWGSL[p]=E);var _=e.i(77715),I=e.i(91676),S=e.i(98386),x=e.i(31893),N=e.i(46223),T=e.i(23681),A=e.i(81740),R=e.i(87143),h=e.i(90154),V=e.i(75224),O=e.i(18606),M=e.i(64169),L=e.i(67626),g=e.i(86424),F=e.i(84722),U=e.i(18012);let C="openpbrNormalMapVertex",G=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC) || defined(FUZZ)
1084
1084
  #if defined(TANGENT) && defined(NORMAL)
1085
1085
  var tbnNormal: vec3f=normalize(normalUpdated);var tbnTangent: vec3f=normalize(tangentUpdated.xyz);var tbnBitangent: vec3f=cross(tbnNormal,tbnTangent)*tangentUpdated.w;var matTemp= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz)* mat3x3f(tbnTangent,tbnBitangent,tbnNormal);vertexOutputs.vTBN0=matTemp[0];vertexOutputs.vTBN1=matTemp[1];vertexOutputs.vTBN2=matTemp[2];
1086
1086
  #endif
1087
1087
  #endif
1088
- `;t.ShaderStore.IncludesShadersStoreWGSL[C]||(t.ShaderStore.IncludesShadersStoreWGSL[C]=G);var D=e.i(3878),P=e.i(42893),b=e.i(6275),y=e.i(8154),W=e.i(47167);let X="openpbrVertexShader",z=`#define OPENPBR_VERTEX_SHADER
1088
+ `;t.ShaderStore.IncludesShadersStoreWGSL[C]||(t.ShaderStore.IncludesShadersStoreWGSL[C]=G);var D=e.i(31291),P=e.i(67233),b=e.i(64107),y=e.i(97885),W=e.i(3309);let X="openpbrVertexShader",z=`#define OPENPBR_VERTEX_SHADER
1089
1089
  #include<openpbrUboDeclaration>
1090
1090
  #define CUSTOM_VERTEX_BEGIN
1091
1091
  #ifndef USE_VERTEX_PULLING
@@ -1325,4 +1325,4 @@ vertexOutputs.vMainUV2=uv2Updated;
1325
1325
  #include<vertexColorMixing>
1326
1326
  #include<logDepthVertex>
1327
1327
  #define CUSTOM_VERTEX_MAIN_END
1328
- }`;for(let e of(t.ShaderStore.ShadersStoreWGSL[X]||(t.ShaderStore.ShadersStoreWGSL[X]=z),[r.sceneUboDeclarationWGSL,i.meshUboDeclarationWGSL,n.openpbrUboDeclarationWGSL,a.uvAttributeDeclarationWGSL,f.mainUVVaryingDeclarationWGSL,o.helperFunctionsWGSL,s.pbrBRDFFunctionsWGSL,d.bonesDeclarationWGSL,l.bakedVertexAnimationDeclarationWGSL,c.instancesDeclarationWGSL,u.prePassVertexDeclarationWGSL,v.samplerVertexDeclarationWGSL,m.harmonicsFunctionsWGSL,{name:p,shader:E},_.clipPlaneVertexDeclarationWGSL,I.fogVertexDeclarationWGSL,S.lightVxUboDeclarationWGSL,x.morphTargetsVertexGlobalDeclarationWGSL,N.morphTargetsVertexDeclarationWGSL,T.logDepthDeclarationWGSL,A.vertexPullingDeclarationWGSL,R.vertexPullingVertexWGSL,h.morphTargetsVertexGlobalWGSL,V.morphTargetsVertexWGSL,O.instancesVertexWGSL,M.bonesVertexWGSL,L.bakedVertexAnimationWGSL,g.prePassVertexWGSL,F.uvVariableDeclarationWGSL,U.samplerVertexImplementationWGSL,{name:C,shader:G},D.clipPlaneVertexWGSL,P.fogVertexWGSL,b.shadowsVertexWGSL,y.vertexColorMixingWGSL,W.logDepthVertexWGSL]))t.ShaderStore.IncludesShadersStoreWGSL[e.name]||(t.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["openpbrVertexShaderWGSL",0,{name:X,shader:z}],51455)}]);
1328
+ }`;for(let e of(t.ShaderStore.ShadersStoreWGSL[X]||(t.ShaderStore.ShadersStoreWGSL[X]=z),[r.sceneUboDeclarationWGSL,i.meshUboDeclarationWGSL,n.openpbrUboDeclarationWGSL,a.uvAttributeDeclarationWGSL,f.mainUVVaryingDeclarationWGSL,o.helperFunctionsWGSL,s.pbrBRDFFunctionsWGSL,d.bonesDeclarationWGSL,l.bakedVertexAnimationDeclarationWGSL,c.instancesDeclarationWGSL,u.prePassVertexDeclarationWGSL,v.samplerVertexDeclarationWGSL,m.harmonicsFunctionsWGSL,{name:p,shader:E},_.clipPlaneVertexDeclarationWGSL,I.fogVertexDeclarationWGSL,S.lightVxUboDeclarationWGSL,x.morphTargetsVertexGlobalDeclarationWGSL,N.morphTargetsVertexDeclarationWGSL,T.logDepthDeclarationWGSL,A.vertexPullingDeclarationWGSL,R.vertexPullingVertexWGSL,h.morphTargetsVertexGlobalWGSL,V.morphTargetsVertexWGSL,O.instancesVertexWGSL,M.bonesVertexWGSL,L.bakedVertexAnimationWGSL,g.prePassVertexWGSL,F.uvVariableDeclarationWGSL,U.samplerVertexImplementationWGSL,{name:C,shader:G},D.clipPlaneVertexWGSL,P.fogVertexWGSL,b.shadowsVertexWGSL,y.vertexColorMixingWGSL,W.logDepthVertexWGSL]))t.ShaderStore.IncludesShadersStoreWGSL[e.name]||(t.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["openpbrVertexShaderWGSL",0,{name:X,shader:z}],43168)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9866,23015,e=>{"use strict";var t=e.i(10272),i=e.i(37143),r=e.i(45707),s=e.i(66749),a=e.i(70653),o=e.i(35407),n=e.i(18131),l=e.i(89748),u=e.i(46862),h=e.i(23507),d=e.i(44702),p=e.i(22369),T=e.i(33457),_=e.i(31278),f=e.i(86206),c=e.i(92040),m=e.i(12033),E=e.i(97001),x=e.i(80871),A=e.i(44451),P=e.i(80737),R=e.i(37882),g=e.i(5436),S=e.i(77052),I=e.i(75405);let F={effect:null,subMesh:null};class b extends(0,R.PrepassDefinesMixin)((0,P.UVDefinesMixin)(d.MaterialDefines)){}class M extends(0,l.ImageProcessingDefinesMixin)(b){constructor(e){super(e),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class v extends(0,g.ImageProcessingMixin)(p.PushMaterial){}class C extends v{get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,i=!1){super(e,t,void 0,i||C.ForceGLSL),this._diffuseTexture=null,this._ambientTexture=null,this._opacityTexture=null,this._reflectionTexture=null,this._emissiveTexture=null,this._specularTexture=null,this._bumpTexture=null,this._lightmapTexture=null,this._refractionTexture=null,this.ambientColor=new a.Color3(0,0,0),this.diffuseColor=new a.Color3(1,1,1),this.specularColor=new a.Color3(1,1,1),this.emissiveColor=new a.Color3(0,0,0),this.specularPower=64,this._useAlphaFromDiffuseTexture=!1,this._useEmissiveAsIllumination=!1,this._linkEmissiveWithDiffuse=!1,this._useSpecularOverAlpha=!1,this._useReflectionOverAlpha=!1,this._disableLighting=!1,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this._roughness=0,this.indexOfRefraction=.98,this.invertRefractionY=!0,this.alphaCutOff=.4,this._useLightmapAsShadowmap=!1,this._useReflectionFresnelFromSpecular=!1,this._useGlossinessFromSpecularMapAlpha=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._applyDecalMapAfterDetailMap=!1,this._shadersLoaded=!1,this._vertexPullingMetadata=null,this._renderTargets=new r.SmartArray(16),this._globalAmbientColor=new a.Color3(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new f.DetailMapConfiguration(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new n.PrePassConfiguration,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),C.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),C.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return!!C.ReflectionTextureEnabled&&!!this._reflectionTexture&&!!this._reflectionTexture.isRenderTarget||!!C.RefractionTextureEnabled&&!!this._refractionTexture&&!!this._refractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&(this.alpha<1||null!=this._opacityTexture||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled)}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(null==this._transparencyMode||this._transparencyMode===h.Material.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==h.Material.MATERIAL_OPAQUE}_hasAlphaChannel(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha||null!=this._opacityTexture}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,i,r=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let s=i._drawWrapper;if(s.effect&&this.isFrozen&&s._wasPreviouslyReady&&s._wasPreviouslyUsingInstances===r)return!0;i.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),i.materialDefines=new M(this._eventInfo.defineNames));let a=this.getScene(),l=i.materialDefines;if(this._isReadyForSubMesh(i))return!0;let h=a.getEngine();if(l._needNormals=(0,E.PrepareDefinesForLights)(a,t,l,!0,this._maxSimultaneousLights,this._disableLighting),!(0,E.AreLightsTexturesReady)(a,t,this._maxSimultaneousLights,this._disableLighting))return!1;(0,E.PrepareDefinesForMultiview)(a,l);let d=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if((0,E.PrepareDefinesForPrePass)(a,l,this.canRenderToMRT&&!d),(0,E.PrepareDefinesForOIT)(a,l,d),A.MaterialHelperGeometryRendering.PrepareDefines(h.currentRenderPassId,t,l),l._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,l._needUVs=!1;for(let e=1;e<=6;++e)l["MAINUV"+e]=!1;if(a.texturesEnabled){if(l.DIFFUSEDIRECTUV=0,l.BUMPDIRECTUV=0,l.AMBIENTDIRECTUV=0,l.OPACITYDIRECTUV=0,l.EMISSIVEDIRECTUV=0,l.SPECULARDIRECTUV=0,l.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&C.DiffuseTextureEnabled)if(!this._diffuseTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._diffuseTexture,l,"DIFFUSE");else l.DIFFUSE=!1;if(this._ambientTexture&&C.AmbientTextureEnabled)if(!this._ambientTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._ambientTexture,l,"AMBIENT");else l.AMBIENT=!1;if(this._opacityTexture&&C.OpacityTextureEnabled)if(!this._opacityTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._opacityTexture,l,"OPACITY"),l.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else l.OPACITY=!1;if(this._reflectionTexture&&C.ReflectionTextureEnabled?(l.ROUGHNESS=this._roughness>0,l.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(l.ROUGHNESS=!1,l.REFLECTIONOVERALPHA=!1),!(0,E.PrepareDefinesForIBL)(a,this._reflectionTexture,l))return!1;if(this._emissiveTexture&&C.EmissiveTextureEnabled)if(!this._emissiveTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._emissiveTexture,l,"EMISSIVE");else l.EMISSIVE=!1;if(this._lightmapTexture&&C.LightmapTextureEnabled)if(!this._lightmapTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._lightmapTexture,l,"LIGHTMAP"),l.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,l.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else l.LIGHTMAP=!1;if(this._specularTexture&&C.SpecularTextureEnabled)if(!this._specularTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._specularTexture,l,"SPECULAR"),l.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else l.SPECULAR=!1;if(a.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&C.BumpTextureEnabled){if(!this._bumpTexture.isReady())return!1;(0,E.PrepareDefinesForMergedUV)(this._bumpTexture,l,"BUMP"),l.PARALLAX=this._useParallax,l.PARALLAX_RHS=a.useRightHandedSystem,l.PARALLAXOCCLUSION=this._useParallaxOcclusion,l.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else l.BUMP=!1,l.PARALLAX=!1,l.PARALLAX_RHS=!1,l.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&C.RefractionTextureEnabled)if(!this._refractionTexture.isReadyOrNotBlocking())return!1;else l._needUVs=!0,l.REFRACTION=!0,l.REFRACTIONMAP_3D=this._refractionTexture.isCube,l.RGBDREFRACTION=this._refractionTexture.isRGBD,l.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else l.REFRACTION=!1;l.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else l.DIFFUSE=!1,l.AMBIENT=!1,l.OPACITY=!1,l.REFLECTION=!1,l.EMISSIVE=!1,l.LIGHTMAP=!1,l.BUMP=!1,l.REFRACTION=!1;l.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),l.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,l.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,l.SPECULAROVERALPHA=this._useSpecularOverAlpha,l.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,l.ALPHATEST_AFTERALLALPHACOMPUTATIONS=null!==this.transparencyMode,l.ALPHABLEND=null===this.transparencyMode||this.needAlphaBlendingForMesh(t),l.TEXTURE_REPETITION_MODE=h.version>1||h.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=l,this._eventInfo.subMesh=i,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(l._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(l),l.IS_REFLECTION_LINEAR=null!=this.reflectionTexture&&!this.reflectionTexture.gammaSpace,l.IS_REFRACTION_LINEAR=null!=this.refractionTexture&&!this.refractionTexture.gammaSpace}if(l._areFresnelDirty&&(C.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(l.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,l.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,l.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,l.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,l.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,l.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,l._needNormals=!0,l.FRESNEL=!0):l.FRESNEL=!1),l.AREALIGHTUSED||l.CLUSTLIGHT_BATCH){for(let e=0;e<t.lightSources.length;e++)if(!t.lightSources[e]._isReady())return!1}(0,E.PrepareDefinesForMisc)(t,a,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),l,this._applyDecalMapAfterDetailMap,this._useVertexPulling,i.getRenderingMesh(),this._isVertexOutputInvariant),(0,E.PrepareDefinesForFrameBoundValues)(a,h,this,l,r,null,i.getRenderingMesh().hasThinInstances),this._eventInfo.defines=l,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,E.PrepareDefinesForAttributes)(t,l,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let p=!1;if(l.isDirty){let r=l._areLightsDisposed;l.markAsProcessed();let s=new _.EffectFallbacks;l.REFLECTION&&s.addFallback(0,"REFLECTION"),l.SPECULAR&&s.addFallback(0,"SPECULAR"),l.BUMP&&s.addFallback(0,"BUMP"),l.PARALLAX&&s.addFallback(1,"PARALLAX"),l.PARALLAX_RHS&&s.addFallback(1,"PARALLAX_RHS"),l.PARALLAXOCCLUSION&&s.addFallback(0,"PARALLAXOCCLUSION"),l.SPECULAROVERALPHA&&s.addFallback(0,"SPECULAROVERALPHA"),l.FOG&&s.addFallback(1,"FOG"),l.POINTSIZE&&s.addFallback(0,"POINTSIZE"),l.LOGARITHMICDEPTH&&s.addFallback(0,"LOGARITHMICDEPTH"),(0,E.HandleFallbacksForShadows)(l,s,this._maxSimultaneousLights),l.SPECULARTERM&&s.addFallback(0,"SPECULARTERM"),l.DIFFUSEFRESNEL&&s.addFallback(1,"DIFFUSEFRESNEL"),l.OPACITYFRESNEL&&s.addFallback(2,"OPACITYFRESNEL"),l.REFLECTIONFRESNEL&&s.addFallback(3,"REFLECTIONFRESNEL"),l.EMISSIVEFRESNEL&&s.addFallback(4,"EMISSIVEFRESNEL"),l.FRESNEL&&s.addFallback(4,"FRESNEL"),l.MULTIVIEW&&s.addFallback(0,"MULTIVIEW");let d=[o.VertexBuffer.PositionKind];l.NORMAL&&d.push(o.VertexBuffer.NormalKind),l.TANGENT&&d.push(o.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)l["UV"+e]&&d.push(`uv${1===e?"":e}`);l.VERTEXCOLOR&&d.push(o.VertexBuffer.ColorKind),(0,E.PrepareAttributesForBones)(d,t,l,s),(0,E.PrepareAttributesForInstances)(d,l),(0,E.PrepareAttributesForMorphTargets)(d,t,l),(0,E.PrepareAttributesForBakedVertexAnimation)(d,t,l);let T="default",f=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],x=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];(0,E.PrepareUniformsAndSamplersForIBL)(f,x,!1);let P=["Material","Scene","Mesh"],R={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:l.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=s,this._eventInfo.fallbackRank=0,this._eventInfo.defines=l,this._eventInfo.uniforms=f,this._eventInfo.attributes=d,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=P,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=R,this._callbackPluginEventGeneric(128,this._eventInfo),A.MaterialHelperGeometryRendering.AddUniformsAndSamplers(f,x),n.PrePassConfiguration.AddUniforms(f),n.PrePassConfiguration.AddSamplers(x),u.ImageProcessingConfiguration&&(u.ImageProcessingConfiguration.PrepareUniforms(f,l),u.ImageProcessingConfiguration.PrepareSamplers(x,l)),(0,E.PrepareUniformsAndSamplersList)({uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:l,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),(0,c.AddClipPlaneUniforms)(f),this._useVertexPulling){let e=i.getRenderingMesh(),t=e?.geometry;t&&(this._vertexPullingMetadata=(0,m.PrepareVertexPullingUniforms)(t),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{f.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;let g={};this.customShaderNameResolve&&(T=this.customShaderNameResolve(T,f,P,x,l,d,g));let S=l.toString(),I=i.effect,b=a.getEngine().createEffect(T,{attributes:d,uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:S,fallbacks:s,onCompiled:this.onCompiled,onError:this.onError,indexParameters:R,processFinalCode:g.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:l.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this._shaderLanguage?await Promise.all([e.A(22649),e.A(39487)]):await Promise.all([e.A(60020),e.A(66183)]),this._shadersLoaded=!0}},h);if(this._eventInfo.customCode=void 0,b)if(this._onEffectCreatedObservable&&(F.effect=b,F.subMesh=i,this._onEffectCreatedObservable.notifyObservers(F)),this.allowShaderHotSwapping&&I&&!b.isReady()){if(l.markAsUnprocessed(),p=this.isFrozen,r)return l._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),i.setEffect(b,l,this._materialContext)}return!!i.effect&&!!i.effect.isReady()&&(l._renderId=a.getRenderId(),s._wasPreviouslyReady=!p,s._wasPreviouslyUsingInstances=r,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),(0,E.PrepareUniformLayoutForIBL)(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,i){let r=this.getScene(),o=i.materialDefines;if(!o)return;let n=i.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),A.MaterialHelperGeometryRendering.Bind(r.getEngine().currentRenderPassId,this._activeEffect,t,e,this);let l=r.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let u=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",u[0],u[1],u[2],u[3]),this._eventInfo.subMesh=i,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),o.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,i,t.visibility),d=r.getEngine()._features.needToAlwaysBindUniformBuffers;(0,E.BindBonesParameters)(t,n),this._vertexPullingMetadata&&(0,m.BindVertexPullingUniforms)(n,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){if(this.bindViewProjection(n),!p.useUbo||!this.isFrozen||!p.isSync||i._drawWrapper._forceRebindOnNextCall){if(C.FresnelEnabled&&o.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(p.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),p.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){let e=a.TmpColors.Color3[0];e.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),p.updateColor4("opacityParts",e,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(p.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),p.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(p.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),p.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(p.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),p.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&(p.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),(0,E.BindTextureMatrix)(this._diffuseTexture,p,"diffuse")),this._ambientTexture&&C.AmbientTextureEnabled&&(p.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),(0,E.BindTextureMatrix)(this._ambientTexture,p,"ambient")),this._opacityTexture&&C.OpacityTextureEnabled&&(p.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),(0,E.BindTextureMatrix)(this._opacityTexture,p,"opacity")),this._hasAlphaChannel()&&p.updateFloat("alphaCutOff",this.alphaCutOff),(0,E.BindIBLParameters)(r,o,p,a.Color3.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),this._reflectionTexture&&C.ReflectionTextureEnabled||p.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&C.EmissiveTextureEnabled&&(p.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),(0,E.BindTextureMatrix)(this._emissiveTexture,p,"emissive")),this._lightmapTexture&&C.LightmapTextureEnabled&&(p.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),(0,E.BindTextureMatrix)(this._lightmapTexture,p,"lightmap")),this._specularTexture&&C.SpecularTextureEnabled&&(p.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),(0,E.BindTextureMatrix)(this._specularTexture,p,"specular")),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&(p.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),(0,E.BindTextureMatrix)(this._bumpTexture,p,"bump"),r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&C.RefractionTextureEnabled)){let e=1;if(!this._refractionTexture.isCube&&(p.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(e=this._refractionTexture.depth)),p.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,e,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){let e=this._refractionTexture;p.updateVector3("vRefractionPosition",e.boundingBoxPosition),p.updateVector3("vRefractionSize",e.boundingBoxSize)}}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize),p.updateColor4("vSpecularColor",this.specularColor,this.specularPower),p.updateColor3("vEmissiveColor",C.EmissiveTextureEnabled?this.emissiveColor:a.Color3.BlackReadOnly),p.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),r.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),p.updateColor3("vAmbientColor",this._globalAmbientColor)}r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&n.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&C.AmbientTextureEnabled&&n.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&C.OpacityTextureEnabled&&n.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&C.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?n.setTexture("reflectionCubeSampler",this._reflectionTexture):n.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&C.EmissiveTextureEnabled&&n.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&C.LightmapTextureEnabled&&n.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&C.SpecularTextureEnabled&&n.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&n.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&C.RefractionTextureEnabled&&(this._refractionTexture.isCube?n.setTexture("refractionCubeSampler",this._refractionTexture):n.setTexture("refraction2DSampler",this._refractionTexture))),this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,c.BindClipPlane)(n,this,r),this.bindEyePosition(n)}else d&&(this._needToBindSceneUbo=!0);(h||!this.isFrozen||d)&&r.lightsEnabled&&!this._disableLighting&&(0,E.BindLights)(r,t,n,o,this._maxSimultaneousLights),(h||!this.isFrozen)&&((r.fogEnabled&&t.applyFog&&r.fogMode!==s.Scene.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||o.PREPASS||o.CLUSTLIGHT_BATCH)&&this.bindView(n),(0,E.BindFogParameters)(r,t,n),o.NUM_MORPH_INFLUENCERS&&(0,E.BindMorphTargetParameters)(t,n),o.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,o.INSTANCES),this.useLogarithmicDepth&&(0,E.BindLogDepth)(o,n,r),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,i),p.update()}getAnimatables(){let e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){let e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e||!1}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,i=""){let r=x.SerializationHelper.Clone(()=>new C(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.name=e,r.id=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,i),r}static Parse(e,t,i){let r=x.SerializationHelper.Parse(()=>new C(e.name,t),e,t,i);return e.stencil&&r.stencil.parse(e.stencil,t,i),h.Material._ParsePlugins(e,r,t,i),r}static get DiffuseTextureEnabled(){return T.MaterialFlags.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){T.MaterialFlags.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return T.MaterialFlags.DetailTextureEnabled}static set DetailTextureEnabled(e){T.MaterialFlags.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return T.MaterialFlags.AmbientTextureEnabled}static set AmbientTextureEnabled(e){T.MaterialFlags.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return T.MaterialFlags.OpacityTextureEnabled}static set OpacityTextureEnabled(e){T.MaterialFlags.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return T.MaterialFlags.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){T.MaterialFlags.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return T.MaterialFlags.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){T.MaterialFlags.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return T.MaterialFlags.SpecularTextureEnabled}static set SpecularTextureEnabled(e){T.MaterialFlags.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return T.MaterialFlags.BumpTextureEnabled}static set BumpTextureEnabled(e){T.MaterialFlags.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return T.MaterialFlags.LightmapTextureEnabled}static set LightmapTextureEnabled(e){T.MaterialFlags.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return T.MaterialFlags.RefractionTextureEnabled}static set RefractionTextureEnabled(e){T.MaterialFlags.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return T.MaterialFlags.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){T.MaterialFlags.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return T.MaterialFlags.FresnelEnabled}static set FresnelEnabled(e){T.MaterialFlags.FresnelEnabled=e}}C.ForceGLSL=!1,(0,t.__decorate)([(0,i.serializeAsTexture)("diffuseTexture")],C.prototype,"_diffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"diffuseTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("ambientTexture")],C.prototype,"_ambientTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"ambientTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("opacityTexture")],C.prototype,"_opacityTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"opacityTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("reflectionTexture")],C.prototype,"_reflectionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"reflectionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("emissiveTexture")],C.prototype,"_emissiveTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"emissiveTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("specularTexture")],C.prototype,"_specularTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"specularTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("bumpTexture")],C.prototype,"_bumpTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"bumpTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("lightmapTexture")],C.prototype,"_lightmapTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"lightmapTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("refractionTexture")],C.prototype,"_refractionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"refractionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("ambient")],C.prototype,"ambientColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("diffuse")],C.prototype,"diffuseColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("specular")],C.prototype,"specularColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("emissive")],C.prototype,"emissiveColor",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"specularPower",void 0),(0,t.__decorate)([(0,i.serialize)("useAlphaFromDiffuseTexture")],C.prototype,"_useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.serialize)("useEmissiveAsIllumination")],C.prototype,"_useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.serialize)("linkEmissiveWithDiffuse")],C.prototype,"_linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.serialize)("useSpecularOverAlpha")],C.prototype,"_useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionOverAlpha")],C.prototype,"_useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("disableLighting")],C.prototype,"_disableLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,i.serialize)("useObjectSpaceNormalMap")],C.prototype,"_useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.serialize)("useParallax")],C.prototype,"_useParallax",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallax",void 0),(0,t.__decorate)([(0,i.serialize)("useParallaxOcclusion")],C.prototype,"_useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,i.serialize)("roughness")],C.prototype,"_roughness",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"roughness",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"indexOfRefraction",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"invertRefractionY",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,i.serialize)("useLightmapAsShadowmap")],C.prototype,"_useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("diffuseFresnelParameters")],C.prototype,"_diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("opacityFresnelParameters")],C.prototype,"_opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelAndMiscDirty")],C.prototype,"opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("reflectionFresnelParameters")],C.prototype,"_reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("refractionFresnelParameters")],C.prototype,"_refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("emissiveFresnelParameters")],C.prototype,"_emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionFresnelFromSpecular")],C.prototype,"_useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.serialize)("useGlossinessFromSpecularMapAlpha")],C.prototype,"_useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("maxSimultaneousLights")],C.prototype,"_maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapX")],C.prototype,"_invertNormalMapX",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapY")],C.prototype,"_invertNormalMapY",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,i.serialize)("twoSidedLighting")],C.prototype,"_twoSidedLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,i.serialize)("applyDecalMapAfterDetailMap")],C.prototype,"_applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsMiscDirty")],C.prototype,"applyDecalMapAfterDetailMap",void 0);let L=!1;function y(){L||(L=!0,(0,S.RegisterClass)("BABYLON.StandardMaterial",C),s.Scene.DefaultMaterialFactory=e=>new C("default material",e))}Object.getOwnPropertyDescriptor(C.prototype,"decalMap")||Object.defineProperty(C.prototype,"decalMap",(0,I._MissingSideEffectProperty)("StandardMaterial","decalMap")),e.s(["RegisterStandardMaterial",0,y,"StandardMaterial",0,C,"StandardMaterialDefines",0,M],23015),y(),e.s([],9866)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84520,35004,e=>{"use strict";var t=e.i(16147),i=e.i(40220),r=e.i(95294),s=e.i(56770),a=e.i(75053),o=e.i(65703),n=e.i(68069),l=e.i(57970),u=e.i(66052),h=e.i(52344),d=e.i(90551),p=e.i(93565),T=e.i(47044),_=e.i(20193),f=e.i(96066),c=e.i(4760),m=e.i(69858),E=e.i(72014),x=e.i(95397),A=e.i(48004),P=e.i(33987),R=e.i(88955),g=e.i(75613),S=e.i(48477),I=e.i(54670);let F={effect:null,subMesh:null};class b extends(0,R.PrepassDefinesMixin)((0,P.UVDefinesMixin)(d.MaterialDefines)){}class M extends(0,l.ImageProcessingDefinesMixin)(b){constructor(e){super(e),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class v extends(0,g.ImageProcessingMixin)(p.PushMaterial){}class C extends v{get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,i=!1){super(e,t,void 0,i||C.ForceGLSL),this._diffuseTexture=null,this._ambientTexture=null,this._opacityTexture=null,this._reflectionTexture=null,this._emissiveTexture=null,this._specularTexture=null,this._bumpTexture=null,this._lightmapTexture=null,this._refractionTexture=null,this.ambientColor=new a.Color3(0,0,0),this.diffuseColor=new a.Color3(1,1,1),this.specularColor=new a.Color3(1,1,1),this.emissiveColor=new a.Color3(0,0,0),this.specularPower=64,this._useAlphaFromDiffuseTexture=!1,this._useEmissiveAsIllumination=!1,this._linkEmissiveWithDiffuse=!1,this._useSpecularOverAlpha=!1,this._useReflectionOverAlpha=!1,this._disableLighting=!1,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this._roughness=0,this.indexOfRefraction=.98,this.invertRefractionY=!0,this.alphaCutOff=.4,this._useLightmapAsShadowmap=!1,this._useReflectionFresnelFromSpecular=!1,this._useGlossinessFromSpecularMapAlpha=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._applyDecalMapAfterDetailMap=!1,this._shadersLoaded=!1,this._vertexPullingMetadata=null,this._renderTargets=new r.SmartArray(16),this._globalAmbientColor=new a.Color3(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new f.DetailMapConfiguration(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new n.PrePassConfiguration,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),C.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),C.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return!!C.ReflectionTextureEnabled&&!!this._reflectionTexture&&!!this._reflectionTexture.isRenderTarget||!!C.RefractionTextureEnabled&&!!this._refractionTexture&&!!this._refractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&(this.alpha<1||null!=this._opacityTexture||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled)}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(null==this._transparencyMode||this._transparencyMode===h.Material.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==h.Material.MATERIAL_OPAQUE}_hasAlphaChannel(){return null!=this._diffuseTexture&&this._diffuseTexture.hasAlpha||null!=this._opacityTexture}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,i,r=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let s=i._drawWrapper;if(s.effect&&this.isFrozen&&s._wasPreviouslyReady&&s._wasPreviouslyUsingInstances===r)return!0;i.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),i.materialDefines=new M(this._eventInfo.defineNames));let a=this.getScene(),l=i.materialDefines;if(this._isReadyForSubMesh(i))return!0;let h=a.getEngine();if(l._needNormals=(0,E.PrepareDefinesForLights)(a,t,l,!0,this._maxSimultaneousLights,this._disableLighting),!(0,E.AreLightsTexturesReady)(a,t,this._maxSimultaneousLights,this._disableLighting))return!1;(0,E.PrepareDefinesForMultiview)(a,l);let d=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if((0,E.PrepareDefinesForPrePass)(a,l,this.canRenderToMRT&&!d),(0,E.PrepareDefinesForOIT)(a,l,d),A.MaterialHelperGeometryRendering.PrepareDefines(h.currentRenderPassId,t,l),l._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,l._needUVs=!1;for(let e=1;e<=6;++e)l["MAINUV"+e]=!1;if(a.texturesEnabled){if(l.DIFFUSEDIRECTUV=0,l.BUMPDIRECTUV=0,l.AMBIENTDIRECTUV=0,l.OPACITYDIRECTUV=0,l.EMISSIVEDIRECTUV=0,l.SPECULARDIRECTUV=0,l.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&C.DiffuseTextureEnabled)if(!this._diffuseTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._diffuseTexture,l,"DIFFUSE");else l.DIFFUSE=!1;if(this._ambientTexture&&C.AmbientTextureEnabled)if(!this._ambientTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._ambientTexture,l,"AMBIENT");else l.AMBIENT=!1;if(this._opacityTexture&&C.OpacityTextureEnabled)if(!this._opacityTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._opacityTexture,l,"OPACITY"),l.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else l.OPACITY=!1;if(this._reflectionTexture&&C.ReflectionTextureEnabled?(l.ROUGHNESS=this._roughness>0,l.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(l.ROUGHNESS=!1,l.REFLECTIONOVERALPHA=!1),!(0,E.PrepareDefinesForIBL)(a,this._reflectionTexture,l))return!1;if(this._emissiveTexture&&C.EmissiveTextureEnabled)if(!this._emissiveTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._emissiveTexture,l,"EMISSIVE");else l.EMISSIVE=!1;if(this._lightmapTexture&&C.LightmapTextureEnabled)if(!this._lightmapTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._lightmapTexture,l,"LIGHTMAP"),l.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,l.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else l.LIGHTMAP=!1;if(this._specularTexture&&C.SpecularTextureEnabled)if(!this._specularTexture.isReadyOrNotBlocking())return!1;else(0,E.PrepareDefinesForMergedUV)(this._specularTexture,l,"SPECULAR"),l.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else l.SPECULAR=!1;if(a.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&C.BumpTextureEnabled){if(!this._bumpTexture.isReady())return!1;(0,E.PrepareDefinesForMergedUV)(this._bumpTexture,l,"BUMP"),l.PARALLAX=this._useParallax,l.PARALLAX_RHS=a.useRightHandedSystem,l.PARALLAXOCCLUSION=this._useParallaxOcclusion,l.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else l.BUMP=!1,l.PARALLAX=!1,l.PARALLAX_RHS=!1,l.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&C.RefractionTextureEnabled)if(!this._refractionTexture.isReadyOrNotBlocking())return!1;else l._needUVs=!0,l.REFRACTION=!0,l.REFRACTIONMAP_3D=this._refractionTexture.isCube,l.RGBDREFRACTION=this._refractionTexture.isRGBD,l.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else l.REFRACTION=!1;l.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else l.DIFFUSE=!1,l.AMBIENT=!1,l.OPACITY=!1,l.REFLECTION=!1,l.EMISSIVE=!1,l.LIGHTMAP=!1,l.BUMP=!1,l.REFRACTION=!1;l.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),l.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,l.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,l.SPECULAROVERALPHA=this._useSpecularOverAlpha,l.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,l.ALPHATEST_AFTERALLALPHACOMPUTATIONS=null!==this.transparencyMode,l.ALPHABLEND=null===this.transparencyMode||this.needAlphaBlendingForMesh(t),l.TEXTURE_REPETITION_MODE=h.version>1||h.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=l,this._eventInfo.subMesh=i,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(l._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(l),l.IS_REFLECTION_LINEAR=null!=this.reflectionTexture&&!this.reflectionTexture.gammaSpace,l.IS_REFRACTION_LINEAR=null!=this.refractionTexture&&!this.refractionTexture.gammaSpace}if(l._areFresnelDirty&&(C.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(l.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,l.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,l.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,l.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,l.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,l.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,l._needNormals=!0,l.FRESNEL=!0):l.FRESNEL=!1),l.AREALIGHTUSED||l.CLUSTLIGHT_BATCH){for(let e=0;e<t.lightSources.length;e++)if(!t.lightSources[e]._isReady())return!1}(0,E.PrepareDefinesForMisc)(t,a,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),l,this._applyDecalMapAfterDetailMap,this._useVertexPulling,i.getRenderingMesh(),this._isVertexOutputInvariant),(0,E.PrepareDefinesForFrameBoundValues)(a,h,this,l,r,null,i.getRenderingMesh().hasThinInstances),this._eventInfo.defines=l,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,E.PrepareDefinesForAttributes)(t,l,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let p=!1;if(l.isDirty){let r=l._areLightsDisposed;l.markAsProcessed();let s=new _.EffectFallbacks;l.REFLECTION&&s.addFallback(0,"REFLECTION"),l.SPECULAR&&s.addFallback(0,"SPECULAR"),l.BUMP&&s.addFallback(0,"BUMP"),l.PARALLAX&&s.addFallback(1,"PARALLAX"),l.PARALLAX_RHS&&s.addFallback(1,"PARALLAX_RHS"),l.PARALLAXOCCLUSION&&s.addFallback(0,"PARALLAXOCCLUSION"),l.SPECULAROVERALPHA&&s.addFallback(0,"SPECULAROVERALPHA"),l.FOG&&s.addFallback(1,"FOG"),l.POINTSIZE&&s.addFallback(0,"POINTSIZE"),l.LOGARITHMICDEPTH&&s.addFallback(0,"LOGARITHMICDEPTH"),(0,E.HandleFallbacksForShadows)(l,s,this._maxSimultaneousLights),l.SPECULARTERM&&s.addFallback(0,"SPECULARTERM"),l.DIFFUSEFRESNEL&&s.addFallback(1,"DIFFUSEFRESNEL"),l.OPACITYFRESNEL&&s.addFallback(2,"OPACITYFRESNEL"),l.REFLECTIONFRESNEL&&s.addFallback(3,"REFLECTIONFRESNEL"),l.EMISSIVEFRESNEL&&s.addFallback(4,"EMISSIVEFRESNEL"),l.FRESNEL&&s.addFallback(4,"FRESNEL"),l.MULTIVIEW&&s.addFallback(0,"MULTIVIEW");let d=[o.VertexBuffer.PositionKind];l.NORMAL&&d.push(o.VertexBuffer.NormalKind),l.TANGENT&&d.push(o.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)l["UV"+e]&&d.push(`uv${1===e?"":e}`);l.VERTEXCOLOR&&d.push(o.VertexBuffer.ColorKind),(0,E.PrepareAttributesForBones)(d,t,l,s),(0,E.PrepareAttributesForInstances)(d,l),(0,E.PrepareAttributesForMorphTargets)(d,t,l),(0,E.PrepareAttributesForBakedVertexAnimation)(d,t,l);let T="default",f=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],x=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];(0,E.PrepareUniformsAndSamplersForIBL)(f,x,!1);let P=["Material","Scene","Mesh"],R={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:l.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=s,this._eventInfo.fallbackRank=0,this._eventInfo.defines=l,this._eventInfo.uniforms=f,this._eventInfo.attributes=d,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=P,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=R,this._callbackPluginEventGeneric(128,this._eventInfo),A.MaterialHelperGeometryRendering.AddUniformsAndSamplers(f,x),n.PrePassConfiguration.AddUniforms(f),n.PrePassConfiguration.AddSamplers(x),u.ImageProcessingConfiguration&&(u.ImageProcessingConfiguration.PrepareUniforms(f,l),u.ImageProcessingConfiguration.PrepareSamplers(x,l)),(0,E.PrepareUniformsAndSamplersList)({uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:l,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),(0,c.AddClipPlaneUniforms)(f),this._useVertexPulling){let e=i.getRenderingMesh(),t=e?.geometry;t&&(this._vertexPullingMetadata=(0,m.PrepareVertexPullingUniforms)(t),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{f.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;let g={};this.customShaderNameResolve&&(T=this.customShaderNameResolve(T,f,P,x,l,d,g));let S=l.toString(),I=i.effect,b=a.getEngine().createEffect(T,{attributes:d,uniformsNames:f,uniformBuffersNames:P,samplers:x,defines:S,fallbacks:s,onCompiled:this.onCompiled,onError:this.onError,indexParameters:R,processFinalCode:g.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:l.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this._shaderLanguage?await Promise.all([e.A(95693),e.A(21288)]):await Promise.all([e.A(34554),e.A(7399)]),this._shadersLoaded=!0}},h);if(this._eventInfo.customCode=void 0,b)if(this._onEffectCreatedObservable&&(F.effect=b,F.subMesh=i,this._onEffectCreatedObservable.notifyObservers(F)),this.allowShaderHotSwapping&&I&&!b.isReady()){if(l.markAsUnprocessed(),p=this.isFrozen,r)return l._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),i.setEffect(b,l,this._materialContext)}return!!i.effect&&!!i.effect.isReady()&&(l._renderId=a.getRenderId(),s._wasPreviouslyReady=!p,s._wasPreviouslyUsingInstances=r,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),(0,E.PrepareUniformLayoutForIBL)(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,i){let r=this.getScene(),o=i.materialDefines;if(!o)return;let n=i.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),A.MaterialHelperGeometryRendering.Bind(r.getEngine().currentRenderPassId,this._activeEffect,t,e,this);let l=r.activeCamera;l?this._uniformBuffer.updateFloat4("cameraInfo",l.minZ,l.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);let u=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",u[0],u[1],u[2],u[3]),this._eventInfo.subMesh=i,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),o.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,i,t.visibility),d=r.getEngine()._features.needToAlwaysBindUniformBuffers;(0,E.BindBonesParameters)(t,n),this._vertexPullingMetadata&&(0,m.BindVertexPullingUniforms)(n,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){if(this.bindViewProjection(n),!p.useUbo||!this.isFrozen||!p.isSync||i._drawWrapper._forceRebindOnNextCall){if(C.FresnelEnabled&&o.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(p.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),p.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){let e=a.TmpColors.Color3[0];e.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),p.updateColor4("opacityParts",e,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(p.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),p.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(p.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),p.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(p.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),p.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&(p.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),(0,E.BindTextureMatrix)(this._diffuseTexture,p,"diffuse")),this._ambientTexture&&C.AmbientTextureEnabled&&(p.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),(0,E.BindTextureMatrix)(this._ambientTexture,p,"ambient")),this._opacityTexture&&C.OpacityTextureEnabled&&(p.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),(0,E.BindTextureMatrix)(this._opacityTexture,p,"opacity")),this._hasAlphaChannel()&&p.updateFloat("alphaCutOff",this.alphaCutOff),(0,E.BindIBLParameters)(r,o,p,a.Color3.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),this._reflectionTexture&&C.ReflectionTextureEnabled||p.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&C.EmissiveTextureEnabled&&(p.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),(0,E.BindTextureMatrix)(this._emissiveTexture,p,"emissive")),this._lightmapTexture&&C.LightmapTextureEnabled&&(p.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),(0,E.BindTextureMatrix)(this._lightmapTexture,p,"lightmap")),this._specularTexture&&C.SpecularTextureEnabled&&(p.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),(0,E.BindTextureMatrix)(this._specularTexture,p,"specular")),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&(p.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),(0,E.BindTextureMatrix)(this._bumpTexture,p,"bump"),r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&C.RefractionTextureEnabled)){let e=1;if(!this._refractionTexture.isCube&&(p.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(e=this._refractionTexture.depth)),p.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,e,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){let e=this._refractionTexture;p.updateVector3("vRefractionPosition",e.boundingBoxPosition),p.updateVector3("vRefractionSize",e.boundingBoxSize)}}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize),p.updateColor4("vSpecularColor",this.specularColor,this.specularPower),p.updateColor3("vEmissiveColor",C.EmissiveTextureEnabled?this.emissiveColor:a.Color3.BlackReadOnly),p.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),r.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),p.updateColor3("vAmbientColor",this._globalAmbientColor)}r.texturesEnabled&&(this._diffuseTexture&&C.DiffuseTextureEnabled&&n.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&C.AmbientTextureEnabled&&n.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&C.OpacityTextureEnabled&&n.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&C.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?n.setTexture("reflectionCubeSampler",this._reflectionTexture):n.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&C.EmissiveTextureEnabled&&n.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&C.LightmapTextureEnabled&&n.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&C.SpecularTextureEnabled&&n.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&r.getEngine().getCaps().standardDerivatives&&C.BumpTextureEnabled&&n.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&C.RefractionTextureEnabled&&(this._refractionTexture.isCube?n.setTexture("refractionCubeSampler",this._refractionTexture):n.setTexture("refraction2DSampler",this._refractionTexture))),this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,c.BindClipPlane)(n,this,r),this.bindEyePosition(n)}else d&&(this._needToBindSceneUbo=!0);(h||!this.isFrozen||d)&&r.lightsEnabled&&!this._disableLighting&&(0,E.BindLights)(r,t,n,o,this._maxSimultaneousLights),(h||!this.isFrozen)&&((r.fogEnabled&&t.applyFog&&r.fogMode!==s.Scene.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||o.PREPASS||o.CLUSTLIGHT_BATCH)&&this.bindView(n),(0,E.BindFogParameters)(r,t,n),o.NUM_MORPH_INFLUENCERS&&(0,E.BindMorphTargetParameters)(t,n),o.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,o.INSTANCES),this.useLogarithmicDepth&&(0,E.BindLogDepth)(o,n,r),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,i),p.update()}getAnimatables(){let e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){let e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e||!1}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,i=""){let r=x.SerializationHelper.Clone(()=>new C(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.name=e,r.id=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,i),r}static Parse(e,t,i){let r=x.SerializationHelper.Parse(()=>new C(e.name,t),e,t,i);return e.stencil&&r.stencil.parse(e.stencil,t,i),h.Material._ParsePlugins(e,r,t,i),r}static get DiffuseTextureEnabled(){return T.MaterialFlags.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){T.MaterialFlags.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return T.MaterialFlags.DetailTextureEnabled}static set DetailTextureEnabled(e){T.MaterialFlags.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return T.MaterialFlags.AmbientTextureEnabled}static set AmbientTextureEnabled(e){T.MaterialFlags.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return T.MaterialFlags.OpacityTextureEnabled}static set OpacityTextureEnabled(e){T.MaterialFlags.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return T.MaterialFlags.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){T.MaterialFlags.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return T.MaterialFlags.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){T.MaterialFlags.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return T.MaterialFlags.SpecularTextureEnabled}static set SpecularTextureEnabled(e){T.MaterialFlags.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return T.MaterialFlags.BumpTextureEnabled}static set BumpTextureEnabled(e){T.MaterialFlags.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return T.MaterialFlags.LightmapTextureEnabled}static set LightmapTextureEnabled(e){T.MaterialFlags.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return T.MaterialFlags.RefractionTextureEnabled}static set RefractionTextureEnabled(e){T.MaterialFlags.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return T.MaterialFlags.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){T.MaterialFlags.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return T.MaterialFlags.FresnelEnabled}static set FresnelEnabled(e){T.MaterialFlags.FresnelEnabled=e}}C.ForceGLSL=!1,(0,t.__decorate)([(0,i.serializeAsTexture)("diffuseTexture")],C.prototype,"_diffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"diffuseTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("ambientTexture")],C.prototype,"_ambientTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"ambientTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("opacityTexture")],C.prototype,"_opacityTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"opacityTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("reflectionTexture")],C.prototype,"_reflectionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"reflectionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("emissiveTexture")],C.prototype,"_emissiveTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"emissiveTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("specularTexture")],C.prototype,"_specularTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"specularTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("bumpTexture")],C.prototype,"_bumpTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"bumpTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("lightmapTexture")],C.prototype,"_lightmapTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"lightmapTexture",void 0),(0,t.__decorate)([(0,i.serializeAsTexture)("refractionTexture")],C.prototype,"_refractionTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"refractionTexture",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("ambient")],C.prototype,"ambientColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("diffuse")],C.prototype,"diffuseColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("specular")],C.prototype,"specularColor",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)("emissive")],C.prototype,"emissiveColor",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"specularPower",void 0),(0,t.__decorate)([(0,i.serialize)("useAlphaFromDiffuseTexture")],C.prototype,"_useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],C.prototype,"useAlphaFromDiffuseTexture",void 0),(0,t.__decorate)([(0,i.serialize)("useEmissiveAsIllumination")],C.prototype,"_useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useEmissiveAsIllumination",void 0),(0,t.__decorate)([(0,i.serialize)("linkEmissiveWithDiffuse")],C.prototype,"_linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"linkEmissiveWithDiffuse",void 0),(0,t.__decorate)([(0,i.serialize)("useSpecularOverAlpha")],C.prototype,"_useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useSpecularOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionOverAlpha")],C.prototype,"_useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useReflectionOverAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("disableLighting")],C.prototype,"_disableLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,i.serialize)("useObjectSpaceNormalMap")],C.prototype,"_useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,i.serialize)("useParallax")],C.prototype,"_useParallax",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallax",void 0),(0,t.__decorate)([(0,i.serialize)("useParallaxOcclusion")],C.prototype,"_useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,i.serialize)("roughness")],C.prototype,"_roughness",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"roughness",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"indexOfRefraction",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"invertRefractionY",void 0),(0,t.__decorate)([(0,i.serialize)()],C.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,i.serialize)("useLightmapAsShadowmap")],C.prototype,"_useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useLightmapAsShadowmap",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("diffuseFresnelParameters")],C.prototype,"_diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"diffuseFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("opacityFresnelParameters")],C.prototype,"_opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelAndMiscDirty")],C.prototype,"opacityFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("reflectionFresnelParameters")],C.prototype,"_reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"reflectionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("refractionFresnelParameters")],C.prototype,"_refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"refractionFresnelParameters",void 0),(0,t.__decorate)([(0,i.serializeAsFresnelParameters)("emissiveFresnelParameters")],C.prototype,"_emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"emissiveFresnelParameters",void 0),(0,t.__decorate)([(0,i.serialize)("useReflectionFresnelFromSpecular")],C.prototype,"_useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsFresnelDirty")],C.prototype,"useReflectionFresnelFromSpecular",void 0),(0,t.__decorate)([(0,i.serialize)("useGlossinessFromSpecularMapAlpha")],C.prototype,"_useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"useGlossinessFromSpecularMapAlpha",void 0),(0,t.__decorate)([(0,i.serialize)("maxSimultaneousLights")],C.prototype,"_maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsLightsDirty")],C.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapX")],C.prototype,"_invertNormalMapX",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,i.serialize)("invertNormalMapY")],C.prototype,"_invertNormalMapY",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,i.serialize)("twoSidedLighting")],C.prototype,"_twoSidedLighting",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],C.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,i.serialize)("applyDecalMapAfterDetailMap")],C.prototype,"_applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_markAllSubMeshesAsMiscDirty")],C.prototype,"applyDecalMapAfterDetailMap",void 0);let L=!1;function y(){L||(L=!0,(0,S.RegisterClass)("BABYLON.StandardMaterial",C),s.Scene.DefaultMaterialFactory=e=>new C("default material",e))}Object.getOwnPropertyDescriptor(C.prototype,"decalMap")||Object.defineProperty(C.prototype,"decalMap",(0,I._MissingSideEffectProperty)("StandardMaterial","decalMap")),e.s(["RegisterStandardMaterial",0,y,"StandardMaterial",0,C,"StandardMaterialDefines",0,M],35004),y(),e.s([],84520)}]);