@uptimizr/dashboard 0.4.5 → 0.4.7
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.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +19 -5
- package/out/__next._full.txt +11 -11
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/{3kalvwsf11-ss.js → 0-_j1khfoib6l.js} +119 -115
- package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 005bbq_px7lke.js} +2 -2
- package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
- package/out/_next/static/chunks/017pn-pen381_.js +1 -0
- package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
- package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 02qk_wmkf9at-.js} +211 -211
- package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
- package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
- package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
- package/out/_next/static/chunks/05ere0-228syf.js +1 -0
- package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 05h8u5lrypn5m.js} +1 -1
- package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
- package/out/_next/static/chunks/{3go-mst7n3udd.js → 05v-nubi896jg.js} +1 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
- package/out/_next/static/chunks/{1t2exh89lnazc.js → 060iult6f68_e.js} +504 -571
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
- package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
- package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
- package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
- package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 0btmk0wmekl02.js} +2 -2
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
- package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
- package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
- package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
- package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 0fd-0i1yt23kz.js} +1 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
- package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
- package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
- package/out/_next/static/chunks/{380ivzcfb4o_3.js → 0grasqqf5dw7r.js} +2 -2
- package/out/_next/static/chunks/{0okbyggxe6mx5.js → 0hajwk2yd-rwr.js} +1 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
- package/out/_next/static/chunks/{1vmpltnr0cyos.js → 0j74ipw4fps-n.js} +1 -1
- package/out/_next/static/chunks/{03zip1uidm6x9.js → 0kj-vckdn7t5p.js} +1 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
- package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
- package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
- package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
- package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
- package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
- package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
- package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 0rracz73p38mo.js} +26 -23
- package/out/_next/static/chunks/{3z4suna4kq4j5.js → 0sw-8gxbg4x0l.js} +568 -569
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
- package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
- package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
- package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
- package/out/_next/static/chunks/{35aagg46wp139.js → 0ybs1u66q26su.js} +1 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
- package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0z004fn14pbcu.js} +1 -1
- package/out/_next/static/chunks/{2z9mdtudj8crz.js → 0z9erbl3llr_b.js} +226 -224
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
- package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
- package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
- package/out/_next/static/chunks/{1ng-fqh2_n984.js → 10_5p5-xf2aoo.js} +1 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
- package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
- package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
- package/out/_next/static/chunks/{1ho02fc091nj2.js → 129m5i93ltoym.js} +1 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
- package/out/_next/static/chunks/{3n-7bcmfbh299.js → 13zcn4lv0qj76.js} +11 -11
- package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
- package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 15o4_2t-l3rj5.js} +1 -1
- package/out/_next/static/chunks/{00o9hr_3hd0r8.js → 175st2ogkg_1o.js} +1 -1
- package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
- package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
- package/out/_next/static/chunks/{1solqr18og2ot.js → 1by60_b14x-3o.js} +1 -1
- package/out/_next/static/chunks/1cyq7i39885sl.js +1 -0
- package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
- package/out/_next/static/chunks/1dp1s1t-y7gal.js +1 -0
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
- package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1dt30s_sp8415.js} +1 -1
- package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 1e8_jl2cxd3rp.js} +576 -576
- package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
- package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
- package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
- package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 1gttu-n9am66k.js} +255 -253
- package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
- package/out/_next/static/chunks/{17aahvhpls1l7.js → 1l_3oidssbhns.js} +298 -231
- package/out/_next/static/chunks/1m9zc5gm-327d.js +112 -0
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
- package/out/_next/static/chunks/1nix_lulkpklo.js +1 -0
- package/out/_next/static/chunks/{141tngxsk32hq.js → 1ntqovuz2c217.js} +1 -1
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
- package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1q4lkgxfnqnew.js} +1 -1
- package/out/_next/static/chunks/{2khh_pmm224k5.js → 1qg1l7t00nyib.js} +97 -300
- package/out/_next/static/chunks/{1qxhgauuomthl.js → 1rcdimhu0qhlu.js} +407 -407
- package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
- package/out/_next/static/chunks/1ses023uud001.js +1 -0
- package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
- package/out/_next/static/chunks/{25gf6xn9u1c57.js → 1t9i20i5-f8ze.js} +1 -1
- package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 1tgj55b305g4h.js} +1 -1
- package/out/_next/static/chunks/{255knovck7pv2.js → 1u8snlm6a7uhi.js} +4 -4
- package/out/_next/static/chunks/{04_3ri5emyfcu.js → 1ug4k-1zhr63a.js} +1 -1
- package/out/_next/static/chunks/{3-_08i4_7yhno.js → 1uh9zgsy69g92.js} +1 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
- package/out/_next/static/chunks/1vurgl6oz2qey.js +17 -0
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
- package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
- package/out/_next/static/chunks/{2zyjw8g4tiu51.js → 1zj4307ugq0qz.js} +1 -1
- package/out/_next/static/chunks/{425epvuw3yy-n.js → 1zkd8v-qka--j.js} +169 -174
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
- package/out/_next/static/chunks/{267q_eg-c6f6m.js → 1zm6eo861i3c8.js} +1 -1
- package/out/_next/static/chunks/{1e_-_7biavwmb.js → 1zp9363yfhpom.js} +1 -1
- package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
- package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
- package/out/_next/static/chunks/209sxygecny37.js +1 -0
- package/out/_next/static/chunks/{1ccn725by19i1.js → 216uiih3_vdfd.js} +1 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
- package/out/_next/static/chunks/22yqh0zlo_vwr.js +1 -0
- package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
- package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
- package/out/_next/static/chunks/{0zf26k6juhlzo.js → 267prao6fyt22.js} +23 -20
- package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
- package/out/_next/static/chunks/26y9sv8_-ykxf.js +1 -0
- package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
- package/out/_next/static/chunks/{1x99m91nt1m3b.js → 271333m8y3k0e.js} +1 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
- package/out/_next/static/chunks/{077eo-0dhbxz-.js → 2a07so920b6aa.js} +1 -1
- package/out/_next/static/chunks/2a2oy8ryz2tsk.js +1 -0
- package/out/_next/static/chunks/2ao-3jzz7yw3p.js +532 -0
- package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
- package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
- package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
- package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 2c721vfva711t.js} +1 -1
- package/out/_next/static/chunks/{442e2l3jzxd-_.js → 2d2kl_m64j9cb.js} +1 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
- package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
- package/out/_next/static/chunks/2h249uvhh2sij.js +114 -0
- package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2izok2otbk8-2.js} +505 -505
- package/out/_next/static/chunks/{0yvevihll7sz-.js → 2j120dkh7q3uf.js} +1 -1
- package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
- package/out/_next/static/chunks/{2-p206i_ihx09.js → 2kok6zedeeltw.js} +1 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
- package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 2lsvk7xcfkarc.js} +1 -1
- package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
- package/out/_next/static/chunks/{00xc-0pj7on2s.js → 2n3xu_wbvtj7h.js} +29 -29
- package/out/_next/static/chunks/{1oljzgz5jistn.js → 2of8q0kaeqpf0.js} +1 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
- package/out/_next/static/chunks/2phl5ta4iim7l.js +12 -0
- package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
- package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
- package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
- package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
- package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 2r96kyeehsji9.js} +1 -1
- package/out/_next/static/chunks/{3gyyjsot8mdav.js → 2rmc6ru7mc-kg.js} +1 -1
- package/out/_next/static/chunks/{1ephzzweysylq.js → 2s6kpclh6ie7o.js} +901 -973
- package/out/_next/static/chunks/{0vso09vdz38sr.js → 2sys9nj8lo3uk.js} +1 -1
- package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 2tc3e-iqv71y_.js} +1 -1
- package/out/_next/static/chunks/2uo6vm7mfgrbf.js +1 -0
- package/out/_next/static/chunks/2urx6fow8c8c9.js +505 -0
- package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
- package/out/_next/static/chunks/{22rl_arnzs-ve.js → 2w99knknr5i8c.js} +1 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
- package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
- package/out/_next/static/chunks/{2e46-2ubc90do.js → 2y8i7_nxm4r05.js} +5 -5
- package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
- package/out/_next/static/chunks/{309f81l5ucsb_.js → 2z_iab7ozohhq.js} +60 -60
- package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
- package/out/_next/static/chunks/{0t89-lfct-7m6.js → 302qk2fjdrthp.js} +5 -5
- package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
- package/out/_next/static/chunks/{0tn-9w46cwydp.js → 30n4y_uu8chbh.js} +515 -514
- package/out/_next/static/chunks/{2-hdejef-mpka.js → 32_c4mbb6j1l6.js} +372 -169
- package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
- package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 33i36o_l69sm5.js} +1 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
- package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
- package/out/_next/static/chunks/{11p92pnn5el0v.js → 35ntbr_c-yx44.js} +1 -1
- package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 35sne1llxnc-m.js} +57 -57
- package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
- package/out/_next/static/chunks/{3-x7522okdy-7.js → 3772oce1n3t_g.js} +1 -1
- package/out/_next/static/chunks/{1rb8wewjbdisv.js → 37cnbm5ft1mqf.js} +1 -1
- package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
- package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 3_dgblylldcgb.js} +1 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
- package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
- package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
- package/out/_next/static/chunks/{43hwl25uke0l_.js → 3eve5y7fpzx2h.js} +1 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
- package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
- package/out/_next/static/chunks/{1n_gxvu31aofy.js → 3f8qelpscqfym.js} +2 -2
- package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
- package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 3h6akt2uu05ku.js} +29 -29
- package/out/_next/static/chunks/{3w4qettzp7khe.js → 3huu0tqmxwowu.js} +523 -522
- package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
- package/out/_next/static/chunks/{1qsut_e3msg0l.js → 3ipx7xbxchsq9.js} +1 -1
- package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3j9xvdz55bi4p.js} +345 -345
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
- package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
- package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3njwfothmmg7u.js} +3 -3
- package/out/_next/static/chunks/{0bj_310rugcn1.js → 3oqxl46ukaojj.js} +11 -11
- package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 3qn6r8-0u6dij.js} +352 -352
- package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
- package/out/_next/static/chunks/3rlp9yr75liz7.js +1 -0
- package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3sa_hlx3konc7.js} +1 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
- package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 3utpc-fc6_y0f.js} +1 -1
- package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
- package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
- package/out/_next/static/chunks/{1og49_atcksim.js → 3vbamaoiuk9yj.js} +1 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
- package/out/_next/static/chunks/{1nqojcig-0m3c.js → 3w59kt5ztyvoq.js} +1 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
- package/out/_next/static/chunks/3xl-op0hwxytg.js +272 -0
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
- package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 3zdtteq-r2fs5.js} +3 -3
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
- package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3zs7l4362msjd.js} +1 -1
- package/out/_next/static/chunks/40etabvml_71y.js +1 -0
- package/out/_next/static/chunks/417jkzz0slv9m.js +1 -0
- package/out/_next/static/chunks/41b5gpyqbj58m.js +338 -0
- package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
- package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
- package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 42ymanq326mo7.js} +1 -1
- package/out/_next/static/chunks/{3w_umk1xtj6to.js → 43fp64xnfy646.js} +1 -1
- package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
- package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
- package/out/_next/static/chunks/{1ozi46t8jajqh.js → 44zi0gl0a6a8w.js} +1 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
- package/out/_not-found/__next._full.txt +12 -12
- package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +12 -12
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +15 -15
- package/out/__next._head.txt +0 -6
- package/out/__next._index.txt +0 -5
- package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
- package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
- package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
- package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
- package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
- package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
- package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
- package/out/_next/static/chunks/04j9pexbmysdy.js +0 -1
- package/out/_next/static/chunks/055baac5e-c2o.js +0 -1
- package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
- package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
- package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
- package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
- package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
- package/out/_next/static/chunks/099ilz3dmm1jw.js +0 -1
- package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
- package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
- package/out/_next/static/chunks/0c5d3qn2mb3ew.js +0 -1
- package/out/_next/static/chunks/0dck67in84de0.js +0 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
- package/out/_next/static/chunks/0dva036n8ab62.js +0 -1
- package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
- package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
- package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
- package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
- package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
- package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
- package/out/_next/static/chunks/0n-zml1gn0o1u.js +0 -1
- package/out/_next/static/chunks/0n92hec_jb_-_.js +0 -1
- package/out/_next/static/chunks/0pv2wirx45e1m.js +0 -1
- package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
- package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
- package/out/_next/static/chunks/0s84ekz_f9ngx.js +0 -1
- package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
- package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
- package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
- package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
- package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
- package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
- package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
- package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
- package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
- package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
- package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
- package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
- package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
- package/out/_next/static/chunks/18wa83g0qfh-b.js +0 -1
- package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
- package/out/_next/static/chunks/1__nujzr9e352.js +0 -3
- package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
- package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
- package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
- package/out/_next/static/chunks/1di5enkavl9vx.js +0 -4
- package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
- package/out/_next/static/chunks/1gnggc6370ji-.js +0 -1
- package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
- package/out/_next/static/chunks/1hsvckd0sgdgr.js +0 -1
- package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
- package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
- package/out/_next/static/chunks/1mrvp94tietcv.js +0 -1
- package/out/_next/static/chunks/1mvadj46owrck.js +0 -1
- package/out/_next/static/chunks/1nasz7q3tvb53.js +0 -1
- package/out/_next/static/chunks/1o3ggu95lfu6i.js +0 -1
- package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
- package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
- package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
- package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
- package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
- package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
- package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
- package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
- package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
- package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
- package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
- package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
- package/out/_next/static/chunks/2bm95r0011asw.js +0 -1
- package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
- package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
- package/out/_next/static/chunks/2c2dspoukng-5.js +0 -1
- package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
- package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
- package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
- package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
- package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
- package/out/_next/static/chunks/2ies66gmou203.js +0 -1
- package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
- package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
- package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
- package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
- package/out/_next/static/chunks/2o8k8x5zcepfy.js +0 -1
- package/out/_next/static/chunks/2pcdnd4nzcw4c.js +0 -1
- package/out/_next/static/chunks/2q0rz76kj6h5z.js +0 -1
- package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
- package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
- package/out/_next/static/chunks/2wi7y3sfqyqdo.js +0 -3
- package/out/_next/static/chunks/2ymtumj-hfrjo.js +0 -1
- package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
- package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
- package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
- package/out/_next/static/chunks/31ei992g8gqz9.js +0 -1
- package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
- package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
- package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
- package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
- package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
- package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
- package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
- package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
- package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
- package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
- package/out/_next/static/chunks/3k-gz8qf-mj-p.js +0 -1
- package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
- package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
- package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
- package/out/_next/static/chunks/3mvaub8qjdyuc.js +0 -1
- package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
- package/out/_next/static/chunks/3tdzweqszru4y.js +0 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
- package/out/_next/static/chunks/3y_51bmdnc0ey.js +0 -1
- package/out/_next/static/chunks/3yr66ufoli71t.js +0 -1
- package/out/_next/static/chunks/41qxc142snm22.js +0 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
- package/out/_next/static/chunks/turbopack-3r8yn0j92tqw_.js +0 -1
- package/out/_not-found/__next._head.txt +0 -6
- package/out/_not-found/__next._index.txt +0 -5
- package/out/_not-found/__next._not-found.txt +0 -5
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20263,e=>{"use strict";var t=e.i(85595),s=e.i(53773),r=e.i(26272),i=e.i(42580),a=e.i(67298),n=e.i(71615),o=e.i(57135),l=e.i(68401),u=e.i(47700),h=e.i(62844),_=e.i(69914),T=e.i(36146),c=e.i(47899),d=e.i(1682),p=e.i(45707),m=e.i(75493),f=e.i(53692),g=e.i(24462),E=e.i(80434),R=e.i(71094),A=e.i(79757);function x(e){return class extends e{constructor(){super(...arguments),this.REFLECTION=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_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.INVERTCUBICMAP=!1,this.USESPHERICALFROMREFLECTIONMAP=!1,this.USEIRRADIANCEMAP=!1,this.USE_IRRADIANCE_DOMINANT_DIRECTION=!1,this.USESPHERICALINVERTEX=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.LODINREFLECTIONALPHA=!1,this.GAMMAREFLECTION=!1,this.RGBDREFLECTION=!1}}}var S=e.i(95410),M=e.i(67482),y=e.i(25974),I=e.i(70432),b=e.i(13856),F=e.i(7989),C=e.i(93298),L=e.i(35160);let P=!1;class O extends F.RenderTargetTexture{get isSupported(){return this._engine?.getCaps().drawBuffersExtension??!1}get textures(){return this._textures}get count(){return this._count}get depthTexture(){return this._textures[this._textures.length-1]}set wrapU(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapU=e}set wrapV(e){if(this._textures)for(let t=0;t<this._textures.length;t++)this._textures[t].wrapV=e}constructor(e,t,s,r,i,a){const n=!!i&&!!i.generateMipMaps&&i.generateMipMaps,o=!!i&&!!i.generateDepthTexture&&i.generateDepthTexture,l=i&&i.depthTextureFormat?i.depthTextureFormat:15,u=!i||void 0===i.doNotChangeAspectRatio||i.doNotChangeAspectRatio,h=!!i&&!!i.drawOnlyOnFirstAttachmentByDefault&&i.drawOnlyOnFirstAttachmentByDefault;if(super(e,t,r,n,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0),P||(P=!0,L.ThinEngine.prototype.restoreSingleAttachment=function(){let e=this._gl;this.bindAttachments([e.BACK])},L.ThinEngine.prototype.restoreSingleAttachmentForRenderTarget=function(){let e=this._gl;this.bindAttachments([e.COLOR_ATTACHMENT0])},L.ThinEngine.prototype.buildTextureLayout=function(e,t=!1){let s=this._gl,r=[];if(t)r.push(s.BACK);else for(let t=0;t<e.length;t++)e[t]?r.push(s["COLOR_ATTACHMENT"+t]):r.push(s.NONE);return r},L.ThinEngine.prototype.bindAttachments=function(e){this._gl.drawBuffers(e)},L.ThinEngine.prototype.unBindMultiColorAttachmentFramebuffer=function(e,t=!1,s){this._currentRenderTarget=null,e.disableAutomaticMSAAResolve||this.resolveMultiFramebuffer(e),t||this.generateMipMapsMultiFramebuffer(e),s&&(e._MSAAFramebuffer&&this._bindUnboundFramebuffer(e._framebuffer),s()),this._bindUnboundFramebuffer(null)},L.ThinEngine.prototype.createMultipleRenderTarget=function(e,t,s=!0){let r,i=!1,a=!0,n=!1,o=!1,l=1,u=1,h=[],_=[],T=[],c=[],d=[],p=[],m=[],f=[],g=[],R=!1,A=this._createHardwareRenderTargetWrapper(!0,!1,e);void 0!==t&&(i=void 0!==t.generateMipMaps&&t.generateMipMaps,a=void 0===t.generateDepthBuffer||t.generateDepthBuffer,n=void 0!==t.generateStencilBuffer&&t.generateStencilBuffer,o=void 0!==t.generateDepthTexture&&t.generateDepthTexture,l=t.textureCount??1,u=t.samples??u,h=t.types||h,_=t.samplingModes||_,T=t.useSRGBBuffers||T,c=t.formats||c,d=t.targetTypes||d,p=t.faceIndex||p,m=t.layerIndex||m,f=t.layerCounts||f,g=t.labels||g,R=t.dontCreateTextures??!1,this.webGLVersion>1&&(13===t.depthTextureFormat||17===t.depthTextureFormat||16===t.depthTextureFormat||14===t.depthTextureFormat||18===t.depthTextureFormat)&&(r=t.depthTextureFormat)),void 0===r&&(r=n?13:14);let x=this._gl,S=this._currentFramebuffer,M=x.createFramebuffer();this._bindUnboundFramebuffer(M);let y=e.width??e,I=e.height??e,b=[],F=[],L=this.webGLVersion>1&&(13===r||17===r||18===r);A.label=t?.label??"MultiRenderTargetWrapper",A._framebuffer=M,A._generateDepthBuffer=o||a,A._generateStencilBuffer=o?L:n,A._depthStencilBuffer=this._setupFramebufferDepthAttachments(A._generateStencilBuffer,A._generateDepthBuffer,y,I,1,r),A._attachments=F;for(let e=0;e<l;e++){let t=_[e]||3,s=h[e]||0,r=T[e]||!1,a=c[e]||5,n=d[e]||3553,o=f[e]??1;(1!==s||this._caps.textureFloatLinearFiltering)&&(2!==s||this._caps.textureHalfFloatLinearFiltering)||(t=1);let l=this._getSamplingParameters(t,i);1!==s||this._caps.textureFloat||(s=0,E.Logger.Warn("Float textures are not supported. Render target forced to TEXTURETYPE_UNSIGNED_BYTE type")),r=r&&this._caps.supportSRGBBuffers&&(this.webGLVersion>1||this.isWebGPU);let u=this.webGLVersion>1,p=x[u?"COLOR_ATTACHMENT"+e:"COLOR_ATTACHMENT"+e+"_WEBGL"];if(F.push(p),-1===n||R)continue;let m=new C.InternalTexture(this,6);b[e]=m,x.activeTexture(x["TEXTURE"+e]),x.bindTexture(n,m._hardwareTexture.underlyingResource),x.texParameteri(n,x.TEXTURE_MAG_FILTER,l.mag),x.texParameteri(n,x.TEXTURE_MIN_FILTER,l.min),x.texParameteri(n,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(n,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE);let S=this._getRGBABufferInternalSizedFormat(s,a,r),M=this._getInternalFormat(a),L=this._getWebGLTextureType(s);if(u&&(35866===n||32879===n))35866===n?m.is2DArray=!0:m.is3D=!0,m.baseDepth=m.depth=o,x.texImage3D(n,0,S,y,I,o,0,M,L,null);else if(34067===n){for(let e=0;e<6;e++)x.texImage2D(x.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,S,y,I,0,M,L,null);m.isCube=!0}else x.texImage2D(x.TEXTURE_2D,0,S,y,I,0,M,L,null);i&&x.generateMipmap(n),this._bindTextureDirectly(n,null),m.baseWidth=y,m.baseHeight=I,m.width=y,m.height=I,m.isReady=!0,m.samples=1,m.generateMipMaps=i,m.samplingMode=t,m.type=s,m._useSRGBBuffer=r,m.format=a,m.label=g[e]??A.label+"-Texture"+e,this._internalTexturesCache.push(m)}if(o&&this._caps.depthTextureExtension&&!R){let e=new C.InternalTexture(this,14),t=5,s=x.DEPTH_COMPONENT16,a=x.DEPTH_COMPONENT,n=x.UNSIGNED_SHORT,o=x.DEPTH_ATTACHMENT;this.webGLVersion<2?s=x.DEPTH_COMPONENT:14===r?(t=1,n=x.FLOAT,s=x.DEPTH_COMPONENT32F):18===r?(t=0,n=x.FLOAT_32_UNSIGNED_INT_24_8_REV,s=x.DEPTH32F_STENCIL8,a=x.DEPTH_STENCIL,o=x.DEPTH_STENCIL_ATTACHMENT):16===r?(t=0,n=x.UNSIGNED_INT,s=x.DEPTH_COMPONENT24,o=x.DEPTH_ATTACHMENT):(13===r||17===r)&&(t=12,n=x.UNSIGNED_INT_24_8,s=x.DEPTH24_STENCIL8,a=x.DEPTH_STENCIL,o=x.DEPTH_STENCIL_ATTACHMENT),this._bindTextureDirectly(x.TEXTURE_2D,e,!0),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MAG_FILTER,x.NEAREST),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MIN_FILTER,x.NEAREST),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE),x.texImage2D(x.TEXTURE_2D,0,s,y,I,0,a,n,null),x.framebufferTexture2D(x.FRAMEBUFFER,o,x.TEXTURE_2D,e._hardwareTexture.underlyingResource,0),this._bindTextureDirectly(x.TEXTURE_2D,null),A._depthStencilTexture=e,A._depthStencilTextureWithStencil=L,e.baseWidth=y,e.baseHeight=I,e.width=y,e.height=I,e.isReady=!0,e.samples=1,e.generateMipMaps=i,e.samplingMode=1,e.format=r,e.type=t,e.label=A.label+"-DepthStencil",b[l]=e,this._internalTexturesCache.push(e)}if(A.setTextures(b),s&&x.drawBuffers(F),this._bindUnboundFramebuffer(S),A.setLayerAndFaceIndices(m,p),this.resetTextureCache(),R){if(u>1){let e=x.createFramebuffer();if(!e)throw Error("Unable to create multi sampled framebuffer");A._samples=u,A._MSAAFramebuffer=e,l>0&&s&&(this._bindUnboundFramebuffer(e),x.drawBuffers(F),this._bindUnboundFramebuffer(S))}}else this.updateMultipleRenderTargetTextureSampleCount(A,u,s);return A},L.ThinEngine.prototype.updateMultipleRenderTargetTextureSampleCount=function(e,t,s=!0){if(this.webGLVersion<2||!e)return 1;if(e.samples===t)return t;let r=this._gl;t=Math.min(t,this.getCaps().maxMSAASamples),e._depthStencilBuffer&&(r.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=null),e._MSAAFramebuffer&&(r.deleteFramebuffer(e._MSAAFramebuffer),e._MSAAFramebuffer=null);let i=e._attachments.length;for(let t=0;t<i;t++){let s=e.textures[t]._hardwareTexture;s?.releaseMSAARenderBuffers()}if(t>1&&"function"==typeof r.renderbufferStorageMultisample){let a=r.createFramebuffer();if(!a)throw Error("Unable to create multi sampled framebuffer");e._MSAAFramebuffer=a,this._bindUnboundFramebuffer(a);let n=[];for(let s=0;s<i;s++){let i=e.textures[s],a=i._hardwareTexture,o=r[this.webGLVersion>1?"COLOR_ATTACHMENT"+s:"COLOR_ATTACHMENT"+s+"_WEBGL"],l=this._createRenderBuffer(i.width,i.height,t,-1,this._getRGBABufferInternalSizedFormat(i.type,i.format,i._useSRGBBuffer),o);if(!l)throw Error("Unable to create multi sampled framebuffer");a.addMSAARenderBuffer(l),i.samples=t,n.push(o)}s&&r.drawBuffers(n)}else this._bindUnboundFramebuffer(e._framebuffer);let a=e._depthStencilTexture?e._depthStencilTexture.format:void 0;return e._depthStencilBuffer=this._setupFramebufferDepthAttachments(e._generateStencilBuffer,e._generateDepthBuffer,e.width,e.height,t,a),this._bindUnboundFramebuffer(null),e._samples=t,t},L.ThinEngine.prototype.generateMipMapsMultiFramebuffer=function(e){let t=this._gl;if(e.isMulti)for(let s=0;s<e._attachments.length;s++){let r=e.textures[s];!r?.generateMipMaps||r?.isCube||r?.is3D||(this._bindTextureDirectly(t.TEXTURE_2D,r,!0),t.generateMipmap(t.TEXTURE_2D),this._bindTextureDirectly(t.TEXTURE_2D,null))}},L.ThinEngine.prototype.resolveMultiFramebuffer=function(e){let t=this._gl;if(!e._MSAAFramebuffer||!e.isMulti)return;let s=e.resolveMSAAColors?t.COLOR_BUFFER_BIT:0;s|=e._generateDepthBuffer&&e.resolveMSAADepth?t.DEPTH_BUFFER_BIT:0,s|=e._generateStencilBuffer&&e.resolveMSAAStencil?t.STENCIL_BUFFER_BIT:0;let r=e._attachments,i=r.length;t.bindFramebuffer(t.READ_FRAMEBUFFER,e._MSAAFramebuffer),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,e._framebuffer);for(let a=0;a<i;a++){let n=e.textures[a];for(let e=0;e<i;e++)r[e]=t.NONE;r[a]=t[this.webGLVersion>1?"COLOR_ATTACHMENT"+a:"COLOR_ATTACHMENT"+a+"_WEBGL"],t.readBuffer(r[a]),t.drawBuffers(r),t.blitFramebuffer(0,0,n.width,n.height,0,0,n.width,n.height,s,t.NEAREST)}for(let e=0;e<i;e++)r[e]=t[this.webGLVersion>1?"COLOR_ATTACHMENT"+e:"COLOR_ATTACHMENT"+e+"_WEBGL"];t.drawBuffers(r),t.bindFramebuffer(this._gl.FRAMEBUFFER,e._MSAAFramebuffer)}),!this.isSupported)return void this.dispose();this._textureNames=a;const _=[],T=[],c=[],d=[],p=[],m=[],f=[],g=[];this._initTypes(s,_,T,c,d,p,m,f,g,i);const R=!i||void 0===i.generateDepthBuffer||i.generateDepthBuffer,A=!!i&&void 0!==i.generateStencilBuffer&&i.generateStencilBuffer,x=i&&i.samples?i.samples:1;this._multiRenderTargetOptions={samplingModes:T,generateMipMaps:n,generateDepthBuffer:R,generateStencilBuffer:A,generateDepthTexture:o,depthTextureFormat:l,types:_,textureCount:s,useSRGBBuffers:c,samples:x,formats:d,targetTypes:p,faceIndex:m,layerIndex:f,layerCounts:g,labels:a,label:e},this._count=s,this._drawOnlyOnFirstAttachmentByDefault=h,s>0&&(this._createInternalTextures(),this._createTextures(a))}_initTypes(e,t,s,r,i,a,o,l,u,h){for(let _=0;_<e;_++)h&&h.types&&void 0!==h.types[_]?t.push(h.types[_]):t.push(h&&h.defaultType?h.defaultType:0),h&&h.samplingModes&&void 0!==h.samplingModes[_]?s.push(h.samplingModes[_]):s.push(n.Texture.BILINEAR_SAMPLINGMODE),h&&h.useSRGBBuffers&&void 0!==h.useSRGBBuffers[_]?r.push(h.useSRGBBuffers[_]):r.push(!1),h&&h.formats&&void 0!==h.formats[_]?i.push(h.formats[_]):i.push(5),h&&h.targetTypes&&void 0!==h.targetTypes[_]?a.push(h.targetTypes[_]):a.push(3553),h&&h.faceIndex&&void 0!==h.faceIndex[_]?o.push(h.faceIndex[_]):o.push(0),h&&h.layerIndex&&void 0!==h.layerIndex[_]?l.push(h.layerIndex[_]):l.push(0),h&&h.layerCounts&&void 0!==h.layerCounts[_]?u.push(h.layerCounts[_]):u.push(1)}_createInternaTextureIndexMapping(){let e={},t=[];if(!this._renderTarget)return t;let s=this._renderTarget.textures;for(let r=0;r<s.length;r++){let i=s[r];if(!i)continue;let a=e[i.uniqueId];void 0!==a?t[r]=a:e[i.uniqueId]=r}return t}_rebuild(e=!1,t=!1,s){if(this._count<1||e)return;let r=this._createInternaTextureIndexMapping();this.releaseInternalTextures(),this._createInternalTextures(),t&&(this._releaseTextures(),this._createTextures(s));let i=this._renderTarget.textures;for(let e=0;e<i.length;e++){let t=this._textures[e];void 0!==r[e]&&this._renderTarget.setTexture(i[r[e]],e),t._texture=i[e],t._texture&&(t._noMipmap=!t._texture.useMipMaps,t._useSRGBBuffer=t._texture._useSRGBBuffer)}1!==this.samples&&this._renderTarget.setSamples(this.samples,!this._drawOnlyOnFirstAttachmentByDefault,!0)}_createInternalTextures(){this._renderTarget=this._getEngine().createMultipleRenderTarget(this._size,this._multiRenderTargetOptions,!this._drawOnlyOnFirstAttachmentByDefault),this._texture=this._renderTarget.texture}_releaseTextures(){if(this._textures)for(let e=0;e<this._textures.length;e++)this._textures[e]._texture=null,this._textures[e].dispose()}_createTextures(e){let t=this._renderTarget.textures;this._textures=[];for(let s=0;s<t.length;s++){let r=new n.Texture(null,this.getScene());e?.[s]&&(r.name=e[s]),r._texture=t[s],r._texture&&(r._noMipmap=!r._texture.useMipMaps,r._useSRGBBuffer=r._texture._useSRGBBuffer),this._textures.push(r)}}setInternalTexture(e,t,s=!0){if(this.renderTarget&&(0===t&&(this._texture=e),this.renderTarget.setTexture(e,t,s),this.textures[t]||(this.textures[t]=new n.Texture(null,this.getScene()),this.textures[t].name=this._textureNames?.[t]??this.textures[t].name),this.textures[t]._texture=e,this.textures[t]._noMipmap=!e.useMipMaps,this.textures[t]._useSRGBBuffer=e._useSRGBBuffer,this._count=this.renderTarget.textures?this.renderTarget.textures.length:0,this._multiRenderTargetOptions.types&&(this._multiRenderTargetOptions.types[t]=e.type),this._multiRenderTargetOptions.samplingModes&&(this._multiRenderTargetOptions.samplingModes[t]=e.samplingMode),this._multiRenderTargetOptions.useSRGBBuffers&&(this._multiRenderTargetOptions.useSRGBBuffers[t]=e._useSRGBBuffer),this._multiRenderTargetOptions.targetTypes&&-1!==this._multiRenderTargetOptions.targetTypes[t])){let s;s=e.is2DArray?35866:e.isCube?34067:e.is3D?32879:3553,this._multiRenderTargetOptions.targetTypes[t]=s}}setLayerAndFaceIndex(e,t=-1,s=-1){this.textures[e]&&this.renderTarget&&(this._multiRenderTargetOptions.layerIndex&&(this._multiRenderTargetOptions.layerIndex[e]=t),this._multiRenderTargetOptions.faceIndex&&(this._multiRenderTargetOptions.faceIndex[e]=s),this.renderTarget.setLayerAndFaceIndex(e,t,s))}setLayerAndFaceIndices(e,t){this.renderTarget&&(this._multiRenderTargetOptions.layerIndex=e,this._multiRenderTargetOptions.faceIndex=t,this.renderTarget.setLayerAndFaceIndices(e,t))}get samples(){return this._samples}set samples(e){this._renderTarget?this._samples=this._renderTarget.setSamples(e):this._samples=e}resize(e){this._processSizeParameter(e),this._rebuild(!1,void 0,this._textureNames)}updateCount(e,t,s){this._multiRenderTargetOptions.textureCount=e,this._count=e;let r=[],i=[],a=[],n=[],o=[],l=[],u=[],h=[];this._textureNames=s,this._initTypes(e,r,i,a,n,o,l,u,h,t),this._multiRenderTargetOptions.types=r,this._multiRenderTargetOptions.samplingModes=i,this._multiRenderTargetOptions.useSRGBBuffers=a,this._multiRenderTargetOptions.formats=n,this._multiRenderTargetOptions.targetTypes=o,this._multiRenderTargetOptions.faceIndex=l,this._multiRenderTargetOptions.layerIndex=u,this._multiRenderTargetOptions.layerCounts=h,this._multiRenderTargetOptions.labels=s,this._rebuild(!1,!0,s)}_unbindFrameBuffer(e,t){this._renderTarget&&e.unBindMultiColorAttachmentFramebuffer(this._renderTarget,this.isCube,()=>{this.onAfterRenderObservable.notifyObservers(t)})}dispose(e=!1){this._releaseTextures(),e?this._texture=null:this.releaseInternalTextures(),super.dispose()}releaseInternalTextures(){let e=this._renderTarget?.textures;if(e){for(let t=e.length-1;t>=0;t--)this._textures[t]._texture=null;this._renderTarget?.dispose(),this._renderTarget=null}}}var N=e.i(33945),D=e.i(19990),v=e.i(14149);class U{constructor(e){this.name=v.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER,this.scene=e}register(){this.scene._gatherRenderTargetsStage.registerStep(v.SceneComponentConstants.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER,this,this._gatherRenderTargets)}rebuild(){}dispose(){}_gatherRenderTargets(e){this.scene._geometryBufferRenderer&&e.push(this.scene._geometryBufferRenderer.getGBuffer())}}let B=!1,G=["diffuseSampler","bumpSampler","reflectivitySampler","albedoSampler","morphTargets","boneSampler","transmissionWeightSampler","subsurfaceWeightSampler","iblShadowSampler"],k=["world","mBones","viewProjection","diffuseMatrix","view","previousWorld","previousViewProjection","mPreviousBones","bumpMatrix","reflectivityMatrix","albedoMatrix","reflectivityColor","albedoColor","reflectionMatrix","vTransmissionWeight","vSubsurfaceWeight","vEyePosition","vTransmissionScatterAnisotropy","vSubsurfaceScatterAnisotropy","shadowTextureSize","metallic","glossiness","vTangentSpaceParams","vBumpInfos","morphTargetInfluences","morphTargetCount","morphTargetTextureInfo","morphTargetTextureIndices","boneTextureInfo"];class V{get normalsAreUnsigned(){return this._normalsAreUnsigned}_linkPrePassRenderer(e){this._linkedWithPrePass=!0,this._prePassRenderer=e,this._multiRenderTarget&&(this._multiRenderTarget.onClearObservable.clear(),this._multiRenderTarget.onClearObservable.add(()=>{}))}_unlinkPrePassRenderer(){this._linkedWithPrePass=!1,this._createRenderTargets()}_resetLayout(){this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableReflectivity=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._attachmentsFromPrePass=[]}_forceTextureType(e,t){e===V.POSITION_TEXTURE_TYPE?(this._positionIndex=t,this._enablePosition=!0):e===V.VELOCITY_TEXTURE_TYPE?(this._velocityIndex=t,this._enableVelocity=!0):e===V.VELOCITY_LINEAR_TEXTURE_TYPE?(this._velocityLinearIndex=t,this._enableVelocityLinear=!0):e===V.REFLECTIVITY_TEXTURE_TYPE?(this._reflectivityIndex=t,this._enableReflectivity=!0):e===V.DEPTH_TEXTURE_TYPE?(this._depthIndex=t,this._enableDepth=!0):e===V.NORMAL_TEXTURE_TYPE?(this._normalIndex=t,this._enableNormal=!0):e===V.SCREENSPACE_DEPTH_TEXTURE_TYPE?(this._screenspaceDepthIndex=t,this._enableScreenspaceDepth=!0):e===V.IRRADIANCE_TEXTURE_TYPE&&(this._irradianceIndex=t,this._enableIrradiance=!0)}_setAttachments(e){this._attachmentsFromPrePass=e}_linkInternalTexture(e){this._multiRenderTarget.setInternalTexture(e,0,!1)}get renderList(){return this._multiRenderTarget.renderList}set renderList(e){this._multiRenderTarget.renderList=e}get isSupported(){return this._multiRenderTarget.isSupported}getTextureIndex(e){switch(e){case V.POSITION_TEXTURE_TYPE:return this._positionIndex;case V.VELOCITY_TEXTURE_TYPE:return this._velocityIndex;case V.VELOCITY_LINEAR_TEXTURE_TYPE:return this._velocityLinearIndex;case V.REFLECTIVITY_TEXTURE_TYPE:return this._reflectivityIndex;case V.DEPTH_TEXTURE_TYPE:return this._depthIndex;case V.NORMAL_TEXTURE_TYPE:return this._normalIndex;case V.SCREENSPACE_DEPTH_TEXTURE_TYPE:return this._screenspaceDepthIndex;case V.IRRADIANCE_TEXTURE_TYPE:return this._irradianceIndex;default:return -1}}get enableDepth(){return this._enableDepth}set enableDepth(e){this._enableDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableNormal(){return this._enableNormal}set enableNormal(e){this._enableNormal=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enablePosition(){return this._enablePosition}set enablePosition(e){this._enablePosition=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableVelocity(){return this._enableVelocity}set enableVelocity(e){this._enableVelocity=e,e||(this._previousTransformationMatrices={}),this._linkedWithPrePass||(this.dispose(),this._createRenderTargets()),this._scene.needsPreviousWorldMatrices=e}get enableVelocityLinear(){return this._enableVelocityLinear}set enableVelocityLinear(e){this._enableVelocityLinear=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableReflectivity(){return this._enableReflectivity}set enableReflectivity(e){this._enableReflectivity=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableScreenspaceDepth(){return this._enableScreenspaceDepth}set enableScreenspaceDepth(e){this._enableScreenspaceDepth=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get enableIrradiance(){return this._enableIrradiance}set enableIrradiance(e){this._enableIrradiance=e,this._linkedWithPrePass||(this.dispose(),this._createRenderTargets())}get scene(){return this._scene}get ratio(){return"object"==typeof this._ratioOrDimensions?1:this._ratioOrDimensions}get shaderLanguage(){return this._shaderLanguage}constructor(e,t=1,s=15,r){this._previousTransformationMatrices={},this._previousBonesTransformationMatrices={},this.excludedSkinnedMeshesFromVelocity=[],this.renderTransparentMeshes=!0,this.generateNormalsInWorldSpace=!1,this._normalsAreUnsigned=!1,this._resizeObserver=null,this._enableDepth=!0,this._enableNormal=!0,this._enablePosition=!1,this._enableVelocity=!1,this._enableVelocityLinear=!1,this._enableReflectivity=!1,this._enableScreenspaceDepth=!1,this._enableIrradiance=!1,this._clearColor=new i.Color4(0,0,0,0),this._clearDepthColor=new i.Color4(0,0,0,1),this._positionIndex=-1,this._velocityIndex=-1,this._velocityLinearIndex=-1,this._reflectivityIndex=-1,this._depthIndex=-1,this._normalIndex=-1,this._screenspaceDepthIndex=-1,this._irradianceIndex=-1,this._linkedWithPrePass=!1,this.generateIrradianceWithScatterMask=!1,this.useSpecificClearForDepthTexture=!1,this._shaderLanguage=0,this._shadersLoaded=!1,this._scene=e,this._ratioOrDimensions=t,this._useUbo=e.getEngine().supportsUniformBuffers,this._depthFormat=s,this._textureTypesAndFormats=r||{},this._initShaderSourceAsync(),function(e){B||(B=!0,Object.defineProperty(D.Scene.prototype,"geometryBufferRenderer",{get:function(){return this._geometryBufferRenderer},set:function(e){e&&e.isSupported&&(this._geometryBufferRenderer=e)},enumerable:!0,configurable:!0}),D.Scene.prototype.enableGeometryBufferRenderer=function(t=1,s=15,r){return this._geometryBufferRenderer||(this._geometryBufferRenderer=new e(this,t,s,r),this._geometryBufferRenderer.isSupported||(this._geometryBufferRenderer=null)),this._geometryBufferRenderer},D.Scene.prototype.disableGeometryBufferRenderer=function(){this._geometryBufferRenderer&&(this._geometryBufferRenderer.dispose(),this._geometryBufferRenderer=null)},e._SceneComponentInitialization=e=>{let t=e._getComponent(v.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER);t||(t=new U(e),e._addComponent(t))})}(V),V._SceneComponentInitialization(this._scene),this._createRenderTargets()}async _initShaderSourceAsync(){this._scene.getEngine().isWebGPU&&!V.ForceGLSL?(this._shaderLanguage=1,await Promise.all([e.A(10864),e.A(2450)])):await Promise.all([e.A(64936),e.A(94959)]),this._shadersLoaded=!0}isReady(e,t){if(!this._shadersLoaded)return!1;let s=e.getMaterial();if(s&&s.disableDepthWrite||"GaussianSplattingMesh"===e.getMesh().getClassName())return!1;let r=[],i=[p.VertexBuffer.PositionKind],a=e.getMesh();a.isVerticesDataPresent(p.VertexBuffer.NormalKind)&&(r.push("#define HAS_NORMAL_ATTRIBUTE"),i.push(p.VertexBuffer.NormalKind));let n=!1,o=!1;if(s){let e=!1;if(s.needAlphaTestingForMesh(a)&&s.getAlphaTestTexture()&&(r.push("#define ALPHATEST"),r.push(`#define ALPHATEST_UV${s.getAlphaTestTexture().coordinatesIndex+1}`),e=!0),(s.bumpTexture||s.normalTexture||s.geometryNormalTexture)&&g.MaterialFlags.BumpTextureEnabled){let t=s.bumpTexture||s.normalTexture||s.geometryNormalTexture;r.push("#define BUMP"),r.push(`#define BUMP_UV${t.coordinatesIndex+1}`),e=!0}if(this._enableReflectivity){let t=!1;"PBRMetallicRoughnessMaterial"===s.getClassName()?(s.metallicRoughnessTexture&&(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.metallicRoughnessTexture.coordinatesIndex+1}`),r.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(r.push("#define METALLIC"),r.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(r.push("#define ROUGHNESS"),r.push("#define METALLICWORKFLOW"),t=!0),t&&(s.baseTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.baseTexture.coordinatesIndex+1}`),s.baseTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&r.push("#define ALBEDOCOLOR"))):"PBRSpecularGlossinessMaterial"===s.getClassName()?(s.specularGlossinessTexture?(r.push("#define SPECULARGLOSSINESSTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.specularGlossinessTexture.coordinatesIndex+1}`),e=!0,s.specularGlossinessTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE")):s.specularColor&&r.push("#define REFLECTIVITYCOLOR"),null!=s.glossiness&&r.push("#define GLOSSINESS")):"PBRMaterial"===s.getClassName()?(s.metallicTexture&&(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.metallicTexture.coordinatesIndex+1}`),r.push("#define METALLICWORKFLOW"),e=!0,t=!0),null!=s.metallic&&(r.push("#define METALLIC"),r.push("#define METALLICWORKFLOW"),t=!0),null!=s.roughness&&(r.push("#define ROUGHNESS"),r.push("#define METALLICWORKFLOW"),t=!0),t?(s.albedoTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.albedoTexture.coordinatesIndex+1}`),s.albedoTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.albedoColor&&r.push("#define ALBEDOCOLOR")):(s.reflectivityTexture?(r.push("#define SPECULARGLOSSINESSTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.reflectivityTexture.coordinatesIndex+1}`),s.reflectivityTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0):s.reflectivityColor&&r.push("#define REFLECTIVITYCOLOR"),null!=s.microSurface&&r.push("#define GLOSSINESS"))):"StandardMaterial"===s.getClassName()?(s.specularTexture&&(r.push("#define REFLECTIVITYTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.specularTexture.coordinatesIndex+1}`),s.specularTexture.gammaSpace&&r.push("#define GAMMAREFLECTIVITYTEXTURE"),e=!0),s.specularColor&&r.push("#define REFLECTIVITYCOLOR")):"OpenPBRMaterial"===s.getClassName()&&(r.push("#define METALLIC"),r.push("#define ROUGHNESS"),s._useRoughnessFromMetallicTextureGreen&&s.baseMetalnessTexture?(r.push("#define ORMTEXTURE"),r.push(`#define REFLECTIVITY_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.baseMetalnessTexture?(r.push("#define METALLIC_TEXTURE"),r.push(`#define METALLIC_UV${s.baseMetalnessTexture.coordinatesIndex+1}`),e=!0):s.specularRoughnessTexture&&(r.push("#define ROUGHNESS_TEXTURE"),r.push(`#define ROUGHNESS_UV${s.specularRoughnessTexture.coordinatesIndex+1}`),e=!0),s.baseColorTexture&&(r.push("#define ALBEDOTEXTURE"),r.push(`#define ALBEDO_UV${s.baseColorTexture.coordinatesIndex+1}`),s.baseColorTexture.gammaSpace&&r.push("#define GAMMAALBEDO"),e=!0),s.baseColor&&r.push("#define ALBEDOCOLOR"))}this._enableIrradiance&&this.generateIrradianceWithScatterMask&&(r.push("#define IRRADIANCE_SCATTER_MASK"),"OpenPBRMaterial"===s.getClassName()&&(s.subsurfaceWeight>0&&s.subsurfaceWeightTexture&&(r.push("#define SUBSURFACE_WEIGHT"),r.push(`#define SUBSURFACEWEIGHT_UV${s.subsurfaceWeightTexture.coordinatesIndex+1}`),e=!0),s.transmissionWeight>0&&s.transmissionWeightTexture&&(r.push("#define TRANSMISSION_WEIGHT"),r.push(`#define TRANSMISSIONWEIGHT_UV${s.transmissionWeightTexture.coordinatesIndex+1}`),e=!0))),e&&(r.push("#define NEED_UV"),a.isVerticesDataPresent(p.VertexBuffer.UVKind)&&(i.push(p.VertexBuffer.UVKind),r.push("#define UV1"),n=!0),a.isVerticesDataPresent(p.VertexBuffer.UV2Kind)&&(i.push(p.VertexBuffer.UV2Kind),r.push("#define UV2"),o=!0))}if(this._enableDepth&&(r.push("#define DEPTH"),r.push("#define DEPTH_INDEX "+this._depthIndex)),this._enableNormal&&(r.push("#define NORMAL"),r.push("#define NORMAL_INDEX "+this._normalIndex)),this._enablePosition&&(r.push("#define POSITION"),r.push("#define POSITION_INDEX "+this._positionIndex)),this._enableVelocity&&(r.push("#define VELOCITY"),r.push("#define VELOCITY_INDEX "+this._velocityIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&r.push("#define BONES_VELOCITY_ENABLED")),this._enableVelocityLinear&&(r.push("#define VELOCITY_LINEAR"),r.push("#define VELOCITY_LINEAR_INDEX "+this._velocityLinearIndex),-1===this.excludedSkinnedMeshesFromVelocity.indexOf(a)&&r.push("#define BONES_VELOCITY_ENABLED")),this._enableReflectivity&&(r.push("#define REFLECTIVITY"),r.push("#define REFLECTIVITY_INDEX "+this._reflectivityIndex)),this._enableScreenspaceDepth&&-1!==this._screenspaceDepthIndex&&(r.push("#define SCREENSPACE_DEPTH_INDEX "+this._screenspaceDepthIndex),r.push("#define SCREENSPACE_DEPTH")),this._enableIrradiance&&-1!==this._irradianceIndex){r.push("#define IRRADIANCE_INDEX "+this._irradianceIndex),r.push("#define IRRADIANCE");let e=this._scene;if(e.environmentTexture){let t={},i=!1,a=0;for(let n in("OpenPBRMaterial"===s.getClassName()||"StandardMaterial"===s.getClassName()||"PBRMetallicRoughnessMaterial"===s.getClassName()||"PBRSpecularGlossinessMaterial"===s.getClassName()||"PBRMaterial"===s.getClassName())&&(i=!!s.realtimeFiltering,a=s.realtimeFilteringQuality||0),(0,d.PrepareDefinesForIBL)(e,e.environmentTexture,t,i,a,!0),t)t[n]&&r.push("#define "+n);t.USEIRRADIANCEMAP||r.push("#define SPHERICAL_HARMONICS");let n=e.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());n&&n._getAccumulatedTexture()&&(r.push("#define IBL_SHADOW_TEXTURE"),n.coloredShadows&&r.push("#define COLORED_IBL_SHADOWS"))}}this.generateNormalsInWorldSpace&&r.push("#define NORMAL_WORLDSPACE"),this._normalsAreUnsigned&&r.push("#define ENCODE_NORMAL"),a.useBones&&a.computeBonesUsingShaders&&a.skeleton?(i.push(p.VertexBuffer.MatricesIndicesKind),i.push(p.VertexBuffer.MatricesWeightsKind),a.numBoneInfluencers>4&&(i.push(p.VertexBuffer.MatricesIndicesExtraKind),i.push(p.VertexBuffer.MatricesWeightsExtraKind)),r.push("#define NUM_BONE_INFLUENCERS "+a.numBoneInfluencers),r.push("#define BONETEXTURE "+a.skeleton.isUsingTextureForMatrices),r.push("#define BonesPerMesh "+(a.skeleton.bones.length+1))):(r.push("#define NUM_BONE_INFLUENCERS 0"),r.push("#define BONETEXTURE false"),r.push("#define BonesPerMesh 0"));let l=a.morphTargetManager?(0,d.PrepareDefinesAndAttributesForMorphTargets)(a.morphTargetManager,r,i,a,!0,!0,!1,n,o,!1):0;t&&(r.push("#define INSTANCES"),(0,d.PushAttributesForInstances)(i,this._enableVelocity||this._enableVelocityLinear),e.getRenderingMesh().hasThinInstances&&r.push("#define THIN_INSTANCES")),this._linkedWithPrePass?r.push("#define SCENE_MRT_COUNT "+this._attachmentsFromPrePass.length):r.push("#define SCENE_MRT_COUNT "+this._multiRenderTarget.textures.length),(0,T.PrepareStringDefinesForClipPlanes)(s,this._scene,r);let u=this._scene.getEngine(),h=e._getDrawWrapper(void 0,!0),_=h.defines,c=r.join("\n");return _!==c&&h.setEffect(u.createEffect("geometry",{attributes:i,uniformsNames:k,samplers:G,defines:c,onCompiled:null,fallbacks:null,onError:null,uniformBuffersNames:["Scene"],indexParameters:{buffersCount:this._multiRenderTarget.textures.length-1,maxSimultaneousMorphTargets:l},shaderLanguage:this.shaderLanguage},u),c),h.effect.isReady()}getGBuffer(){return this._multiRenderTarget}get samples(){return this._multiRenderTarget.samples}set samples(e){this._multiRenderTarget.samples=e}dispose(){this._resizeObserver&&(this._scene.getEngine().onResizeObservable.remove(this._resizeObserver),this._resizeObserver=null),this._multiRenderTarget?.renderTarget&&this.scene.getEngine()._currentRenderTarget===this._multiRenderTarget.renderTarget&&this.scene.getEngine().unBindFramebuffer(this._multiRenderTarget?.renderTarget),this.getGBuffer().dispose()}_assignRenderTargetIndices(){let e=[],t=[],s=0;return this._enableDepth&&(this._depthIndex=s,s++,e.push("gBuffer_Depth"),t.push(this._textureTypesAndFormats[V.DEPTH_TEXTURE_TYPE])),this._enableNormal&&(this._normalIndex=s,s++,e.push("gBuffer_Normal"),t.push(this._textureTypesAndFormats[V.NORMAL_TEXTURE_TYPE])),this._enablePosition&&(this._positionIndex=s,s++,e.push("gBuffer_Position"),t.push(this._textureTypesAndFormats[V.POSITION_TEXTURE_TYPE])),this._enableVelocity&&(this._velocityIndex=s,s++,e.push("gBuffer_Velocity"),t.push(this._textureTypesAndFormats[V.VELOCITY_TEXTURE_TYPE])),this._enableVelocityLinear&&(this._velocityLinearIndex=s,s++,e.push("gBuffer_VelocityLinear"),t.push(this._textureTypesAndFormats[V.VELOCITY_LINEAR_TEXTURE_TYPE])),this._enableReflectivity&&(this._reflectivityIndex=s,s++,e.push("gBuffer_Reflectivity"),t.push(this._textureTypesAndFormats[V.REFLECTIVITY_TEXTURE_TYPE])),this._enableScreenspaceDepth&&(this._screenspaceDepthIndex=s,s++,e.push("gBuffer_ScreenspaceDepth"),t.push(this._textureTypesAndFormats[V.SCREENSPACE_DEPTH_TEXTURE_TYPE])),this._enableIrradiance&&(this._irradianceIndex=s,s++,e.push("gBuffer_Irradiance"),t.push(this._textureTypesAndFormats[V.IRRADIANCE_TEXTURE_TYPE])),[s,e,t]}_createRenderTargets(){let e=this._scene.getEngine(),[t,s,r]=this._assignRenderTargetIndices(),i=0;e._caps.textureFloat&&e._caps.textureFloatLinearFiltering?i=1:e._caps.textureHalfFloat&&e._caps.textureHalfFloatLinearFiltering&&(i=2);let a=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions},l=[],u=[],h=[];for(let e of r)e?(l.push(e.textureType),u.push(e.textureFormat),h.push(e.samplingMode??2)):(l.push(i),u.push(5),h.push(2));if(this._normalsAreUnsigned=11===l[V.NORMAL_TEXTURE_TYPE]||13===l[V.NORMAL_TEXTURE_TYPE],this._multiRenderTarget=new O("gBuffer",a,t,this._scene,{generateMipMaps:!1,generateDepthTexture:!0,types:l,formats:u,samplingModes:h,depthTextureFormat:this._depthFormat},s.concat("gBuffer_DepthBuffer")),!this.isSupported)return;this._multiRenderTarget.wrapU=n.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.wrapV=n.Texture.CLAMP_ADDRESSMODE,this._multiRenderTarget.refreshRate=1,this._multiRenderTarget.renderParticles=!1,this._multiRenderTarget.renderList=null;let _=[!0],c=[!1],p=[!0];for(let e=1;e<t;++e)_.push(!0),p.push(!1),c.push(!0);let m=e.buildTextureLayout(_),f=e.buildTextureLayout(c),E=e.buildTextureLayout(p);this._multiRenderTarget.onClearObservable.add(e=>{e.bindAttachments(this.useSpecificClearForDepthTexture?f:m),e.clear(this._clearColor,!0,!0,!0),this.useSpecificClearForDepthTexture&&(e.bindAttachments(E),e.clear(this._clearDepthColor,!0,!0,!0)),e.bindAttachments(m)}),this._resizeObserver=e.onResizeObservable.add(()=>{if(this._multiRenderTarget){let t=void 0!==this._ratioOrDimensions.width?this._ratioOrDimensions:{width:e.getRenderWidth()*this._ratioOrDimensions,height:e.getRenderHeight()*this._ratioOrDimensions};this._multiRenderTarget.resize(t)}});let R=e=>{let t=e.getRenderingMesh(),s=e.getEffectiveMesh(),r=this._scene,i=r.getEngine(),a=e.getMaterial();if(!a)return;if(s._internalAbstractMeshDataInfo._isActiveIntermediate=!1,(this._enableVelocity||this._enableVelocityLinear)&&!this._previousTransformationMatrices[s.uniqueId]&&(this._previousTransformationMatrices[s.uniqueId]={world:S.Matrix.Identity(),viewProjection:r.getTransformMatrix()},t.skeleton)){let e=t.skeleton.getTransformMatrices(t);this._previousBonesTransformationMatrices[t.uniqueId]=this._copyBonesTransformationMatrices(e,new Float32Array(e.length))}let n=t._getInstancesRenderList(e._id,!!e.getReplacementMesh());if(n.mustReturn)return;let l=i.getCaps().instancedArrays&&(null!==n.visibleInstances[e._id]||t.hasThinInstances),u=s.getWorldMatrix();if(this.isReady(e,l)){let h,_=e._getDrawWrapper();if(!_)return;let c=_.effect;if(i.enableEffect(_),l||t._bind(e,c,a.fillMode),this._useUbo?((0,d.BindSceneUniformBuffer)(c,this._scene.getSceneUniformBuffer()),this._scene.finalizeSceneUbo()):(c.setMatrix("viewProjection",r.getTransformMatrix()),c.setMatrix("view",r.getViewMatrix()),this._scene.bindEyePosition(c,"vEyePosition")),!t._instanceDataStorage.isFrozen&&(a.backFaceCulling||null!==a.sideOrientation)){let e=s._getWorldMatrixDeterminant();h=a._getEffectiveOrientation(t),e<0&&(h=h===o.Material.ClockWiseSideOrientation?o.Material.CounterClockWiseSideOrientation:o.Material.ClockWiseSideOrientation)}else h=t._effectiveSideOrientation;if(a._preBind(_,h),a.needAlphaTestingForMesh(s)){let e=a.getAlphaTestTexture();e&&(c.setTexture("diffuseSampler",e),c.setMatrix("diffuseMatrix",e.getTextureMatrix()))}if((a.bumpTexture||a.normalTexture||a.geometryNormalTexture)&&r.getEngine().getCaps().standardDerivatives&&g.MaterialFlags.BumpTextureEnabled){let e=a.bumpTexture||a.normalTexture||a.geometryNormalTexture;c.setFloat3("vBumpInfos",e.coordinatesIndex,1/e.level,a.parallaxScaleBias),c.setMatrix("bumpMatrix",e.getTextureMatrix()),c.setTexture("bumpSampler",e),c.setFloat2("vTangentSpaceParams",a.invertNormalMapX?-1:1,a.invertNormalMapY?-1:1)}if(this._enableReflectivity&&("PBRMetallicRoughnessMaterial"===a.getClassName()?(null!==a.metallicRoughnessTexture&&(c.setTexture("reflectivitySampler",a.metallicRoughnessTexture),c.setMatrix("reflectivityMatrix",a.metallicRoughnessTexture.getTextureMatrix())),null!==a.metallic&&c.setFloat("metallic",a.metallic),null!==a.roughness&&c.setFloat("glossiness",1-a.roughness),null!==a.baseTexture&&(c.setTexture("albedoSampler",a.baseTexture),c.setMatrix("albedoMatrix",a.baseTexture.getTextureMatrix())),null!==a.baseColor&&c.setColor3("albedoColor",a.baseColor)):"PBRSpecularGlossinessMaterial"===a.getClassName()?(null!==a.specularGlossinessTexture?(c.setTexture("reflectivitySampler",a.specularGlossinessTexture),c.setMatrix("reflectivityMatrix",a.specularGlossinessTexture.getTextureMatrix())):null!==a.specularColor&&c.setColor3("reflectivityColor",a.specularColor),null!==a.glossiness&&c.setFloat("glossiness",a.glossiness)):"PBRMaterial"===a.getClassName()?(null!==a.metallicTexture&&(c.setTexture("reflectivitySampler",a.metallicTexture),c.setMatrix("reflectivityMatrix",a.metallicTexture.getTextureMatrix())),null!==a.metallic&&c.setFloat("metallic",a.metallic),null!==a.roughness&&c.setFloat("glossiness",1-a.roughness),null!==a.roughness||null!==a.metallic||null!==a.metallicTexture?(null!==a.albedoTexture&&(c.setTexture("albedoSampler",a.albedoTexture),c.setMatrix("albedoMatrix",a.albedoTexture.getTextureMatrix())),null!==a.albedoColor&&c.setColor3("albedoColor",a.albedoColor)):(null!==a.reflectivityTexture?(c.setTexture("reflectivitySampler",a.reflectivityTexture),c.setMatrix("reflectivityMatrix",a.reflectivityTexture.getTextureMatrix())):null!==a.reflectivityColor&&c.setColor3("reflectivityColor",a.reflectivityColor),null!==a.microSurface&&c.setFloat("glossiness",a.microSurface))):"StandardMaterial"===a.getClassName()?(null!==a.specularTexture&&(c.setTexture("reflectivitySampler",a.specularTexture),c.setMatrix("reflectivityMatrix",a.specularTexture.getTextureMatrix())),null!==a.specularColor&&c.setColor3("reflectivityColor",a.specularColor)):"OpenPBRMaterial"===a.getClassName()&&(a._useRoughnessFromMetallicTextureGreen&&a.baseMetalnessTexture?(c.setTexture("reflectivitySampler",a.baseMetalnessTexture),c.setMatrix("reflectivityMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.baseMetalnessTexture?(c.setTexture("metallicSampler",a.baseMetalnessTexture),c.setMatrix("metallicMatrix",a.baseMetalnessTexture.getTextureMatrix())):a.specularRoughnessTexture&&(c.setTexture("roughnessSampler",a.specularRoughnessTexture),c.setMatrix("roughnessMatrix",a.specularRoughnessTexture.getTextureMatrix())),c.setFloat("metallic",a.baseMetalness),c.setFloat("glossiness",1-a.specularRoughness),null!==a.baseColorTexture&&(c.setTexture("albedoSampler",a.baseColorTexture),c.setMatrix("albedoMatrix",a.baseColorTexture.getTextureMatrix())),null!==a.baseColor&&c.setColor3("albedoColor",a.baseColor))),this._enableIrradiance&&r.environmentTexture){let e=r.environmentTexture,t=r.postProcessRenderPipelineManager.supportedPipelines.find(e=>"IBLShadowsRenderPipeline"===e.getClassName());if(t){let e=t._getAccumulatedTexture();e&&(c.setTexture("iblShadowSampler",e),c.setFloat2("shadowTextureSize",e.getSize().width,e.getSize().height))}if(c.setMatrix("reflectionMatrix",e.getReflectionTextureMatrix()),c.setFloat2("vReflectionInfos",e.level*r.iblIntensity,0),c.setTexture("reflectionSampler",e),e.irradianceTexture&&(c.setTexture("irradianceSampler",e.irradianceTexture),e.irradianceTexture._dominantDirection&&c.setVector3("vReflectionDominantDirection",e.irradianceTexture._dominantDirection)),e.sphericalPolynomial){let t=e.sphericalPolynomial;if(t.preScaledHarmonics){let e=t.preScaledHarmonics;c.setVector3("vSphericalL00",e.l00),c.setVector3("vSphericalL1_1",e.l1_1),c.setVector3("vSphericalL10",e.l10),c.setVector3("vSphericalL11",e.l11),c.setVector3("vSphericalL2_2",e.l2_2),c.setVector3("vSphericalL2_1",e.l2_1),c.setVector3("vSphericalL20",e.l20),c.setVector3("vSphericalL21",e.l21),c.setVector3("vSphericalL22",e.l22)}else c.setFloat3("vSphericalX",t.x.x,t.x.y,t.x.z),c.setFloat3("vSphericalY",t.y.x,t.y.y,t.y.z),c.setFloat3("vSphericalZ",t.z.x,t.z.y,t.z.z),c.setFloat3("vSphericalXX_ZZ",t.xx.x-t.zz.x,t.xx.y-t.zz.y,t.xx.z-t.zz.z),c.setFloat3("vSphericalYY_ZZ",t.yy.x-t.zz.x,t.yy.y-t.zz.y,t.yy.z-t.zz.z),c.setFloat3("vSphericalZZ",t.zz.x,t.zz.y,t.zz.z),c.setFloat3("vSphericalXY",t.xy.x,t.xy.y,t.xy.z),c.setFloat3("vSphericalYZ",t.yz.x,t.yz.y,t.yz.z),c.setFloat3("vSphericalZX",t.zx.x,t.zx.y,t.zx.z)}this.generateIrradianceWithScatterMask&&"OpenPBRMaterial"===a.getClassName()&&(c.setFloat("vSubsurfaceWeight",a.subsurfaceWeight),a.subsurfaceWeightTexture&&(c.setTexture("subsurfaceWeightSampler",a.subsurfaceWeightTexture),c.setMatrix("subsurfaceWeightMatrix",a.subsurfaceWeightTexture.getTextureMatrix())),c.setFloat("vTransmissionWeight",a.transmissionWeight),a.transmissionWeightTexture&&(c.setTexture("transmissionWeightSampler",a.transmissionWeightTexture),c.setMatrix("transmissionWeightMatrix",a.transmissionWeightTexture.getTextureMatrix())),c.setFloat("vTransmissionScatterAnisotropy",a.transmissionScatterAnisotropy),c.setFloat("vSubsurfaceScatterAnisotropy",a.subsurfaceScatterAnisotropy))}if((0,T.BindClipPlane)(c,a,this._scene),t.useBones&&t.computeBonesUsingShaders&&t.skeleton){let e=t.skeleton;if(e.isUsingTextureForMatrices&&c.getUniformIndex("boneTextureInfo")>-1){let s=e.getTransformMatrixTexture(t);c.setTexture("boneSampler",s),c.setFloat2("boneTextureInfo",e._textureWidth,e._textureHeight)}else c.setMatrices("mBones",t.skeleton.getTransformMatrices(t));(this._enableVelocity||this._enableVelocityLinear)&&c.setMatrices("mPreviousBones",this._previousBonesTransformationMatrices[t.uniqueId])}(0,d.BindMorphTargetParameters)(t,c),t.morphTargetManager&&t.morphTargetManager.isUsingTextureForTargets&&t.morphTargetManager._bind(c),(this._enableVelocity||this._enableVelocityLinear)&&(c.setMatrix("previousWorld",this._previousTransformationMatrices[s.uniqueId].world),c.setMatrix("previousViewProjection",this._previousTransformationMatrices[s.uniqueId].viewProjection)),l&&t.hasThinInstances&&c.setMatrix("world",u),t._processRendering(s,e,c,a.fillMode,n,l,(e,t)=>{e||c.setMatrix("world",t)})}(this._enableVelocity||this._enableVelocityLinear)&&(this._previousTransformationMatrices[s.uniqueId].world=u.clone(),this._previousTransformationMatrices[s.uniqueId].viewProjection=this._scene.getTransformMatrix().clone(),t.skeleton&&this._copyBonesTransformationMatrices(t.skeleton.getTransformMatrices(t),this._previousBonesTransformationMatrices[s.uniqueId]))};this._multiRenderTarget.customIsReadyFunction=(t,s,r)=>{if((r||0===s)&&t.subMeshes)for(let s=0;s<t.subMeshes.length;++s){let r=t.subMeshes[s],i=r.getMaterial(),a=r.getRenderingMesh();if(!i)continue;let n=a._getInstancesRenderList(r._id,!!r.getReplacementMesh()),o=e.getCaps().instancedArrays&&(null!==n.visibleInstances[r._id]||a.hasThinInstances);if(!this.isReady(r,o))return!1}return!0},this._multiRenderTarget.customRenderFunction=(t,s,r,i)=>{let a;if(this._linkedWithPrePass){if(!this._prePassRenderer.enabled)return;this._scene.getEngine().bindAttachments(this._attachmentsFromPrePass)}if(i.length){for(e.setColorWrite(!1),a=0;a<i.length;a++)R(i.data[a]);e.setColorWrite(!0)}for(a=0;a<t.length;a++)R(t.data[a]);for(e.setDepthWrite(!1),a=0;a<s.length;a++)R(s.data[a]);if(this.renderTransparentMeshes)for(a=0;a<r.length;a++)R(r.data[a]);e.setDepthWrite(!0)}}_copyBonesTransformationMatrices(e,t){for(let s=0;s<e.length;s++)t[s]=e[s];return t}}V.ForceGLSL=!1,V.DEPTH_TEXTURE_TYPE=0,V.NORMAL_TEXTURE_TYPE=1,V.POSITION_TEXTURE_TYPE=2,V.VELOCITY_TEXTURE_TYPE=3,V.REFLECTIVITY_TEXTURE_TYPE=4,V.SCREENSPACE_DEPTH_TEXTURE_TYPE=5,V.VELOCITY_LINEAR_TEXTURE_TYPE=6,V.IRRADIANCE_TEXTURE_TYPE=7,V._SceneComponentInitialization=e=>{throw(0,N._WarnImport)("GeometryBufferRendererSceneComponent")};var H=e.i(38116);let z={effect:null,subMesh:null};function W(e){if("number"==typeof e)return 1;if(e instanceof S.Vector2)return 2;if(e instanceof S.Vector3||e instanceof i.Color3)return 3;if(e instanceof S.Vector4||e instanceof i.Color4)return 4;throw Error("Unsupported OpenPBR property type.")}class w{populateVectorFromLinkedProperties(e){let t=W(e);for(let e in this.linkedProperties){let s=this.linkedProperties[e],r=s.numComponents;if(t<r||s.targetUniformComponentOffset>t-r)return void(1==r?E.Logger.Error(`Float property ${s.name} has an offset that is too large.`):E.Logger.Error(`Vector${r} property ${s.name} won't fit in Vector${t} or has an offset that is too large.`));"number"==typeof s.value?w._tmpArray[s.targetUniformComponentOffset]=s.value:s.value.toArray(w._tmpArray,s.targetUniformComponentOffset)}e.fromArray(w._tmpArray)}constructor(e,t){this.linkedProperties={},this.firstLinkedKey="",this.name=e,this.numComponents=t}}w._tmpArray=[0,0,0,0];class X{constructor(e,t,s,r,i=0,a){this.targetUniformComponentNum=4,this.targetUniformComponentOffset=0,this.name=e,this.targetUniformName=s,this.defaultValue=t,this.value=t,this.targetUniformComponentNum=r,this.targetUniformComponentOffset=i,this.requiredDefine=a}get numComponents(){return"number"==typeof this.defaultValue?1:W(this.defaultValue)}}class Y{get samplerName(){return this.samplerPrefix+"Sampler"}get samplerInfoName(){return"v"+this.samplerPrefix.charAt(0).toUpperCase()+this.samplerPrefix.slice(1)+"Infos"}get samplerMatrixName(){return this.samplerPrefix+"Matrix"}constructor(e,t,s){this.value=null,this.samplerPrefix="",this.textureDefine="",this.name=e,this.samplerPrefix=t,this.textureDefine=s}}class Z extends(0,A.PrepassDefinesMixin)((0,R.UVDefinesMixin)(u.MaterialDefines)){}class K extends x(Z){}class Q extends(0,h.ImageProcessingDefinesMixin)(K){constructor(e){super(e),this.NUM_SAMPLES="0",this.REALTIME_FILTERING=!1,this.IBL_CDF_FILTERING=!1,this.LIGHTCOUNT=0,this.VERTEXCOLOR=!1,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.VERTEXALPHA=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHABLEND=!1,this.ALPHA_FROM_BASE_COLOR_TEXTURE=!1,this.ALPHATESTVALUE="0.5",this.PREMULTIPLYALPHA=!1,this.REFLECTIVITY_GAMMA=!1,this.REFLECTIVITYDIRECTUV=0,this.SPECULARTERM=!1,this.LODBASEDMICROSFURACE=!0,this.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=!1,this.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=!1,this.AOSTOREINMETALMAPRED=!1,this.SPECULAR_WEIGHT_IN_ALPHA=!1,this.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=!1,this.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=!1,this.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=!1,this.USE_GLTF_STYLE_ANISOTROPY=!1,this.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=!1,this.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=!1,this.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=!1,this.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=!1,this.ENVIRONMENTBRDF=!1,this.ENVIRONMENTBRDF_RGBD=!1,this.FUZZENVIRONMENTBRDF=!1,this.NORMAL=!1,this.TANGENT=!1,this.OBJECTSPACE_NORMALMAP=!1,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.NORMALXYSCALE=!0,this.ANISOTROPIC=!1,this.ANISOTROPIC_OPENPBR=!0,this.ANISOTROPIC_BASE=!1,this.ANISOTROPIC_COAT=!1,this.FUZZ_IBL_SAMPLES=6,this.REFRACTION_HIGH_QUALITY_BLUR=!1,this.FUZZ=!1,this.THIN_FILM=!1,this.IRIDESCENCE=!1,this.DISPERSION=!1,this.SCATTERING=!1,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!1,this.SSS_SAMPLE_COUNT=16,this.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!1,this.TRANSMISSION_SLAB=!1,this.TRANSMISSION_SLAB_VOLUME=!1,this.SUBSURFACE_SLAB=!1,this.GEOMETRY_THIN_WALLED=!1,this.REFRACTED_BACKGROUND=!1,this.REFRACTED_LIGHTS=!1,this.REFRACTED_ENVIRONMENT=!1,this.REFRACTED_ENVIRONMENT_OPPOSITEZ=!1,this.REFRACTED_ENVIRONMENT_LOCAL_CUBE=!1,this.RADIANCEOCCLUSION=!1,this.HORIZONOCCLUSION=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.NONUNIFORMSCALING=!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.USEPHYSICALLIGHTFALLOFF=!1,this.USEGLTFLIGHTFALLOFF=!1,this.TWOSIDEDLIGHTING=!1,this.MIRRORED=!1,this.SHADOWFLOAT=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.POINTSIZE=!1,this.FOG=!1,this.LOGARITHMICDEPTH=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.FORCENORMALFORWARD=!1,this.SPECULARAA=!1,this.UNLIT=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.DEBUGMODE=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.BRDF_V_HEIGHT_CORRELATED=!0,this.MS_BRDF_ENERGY_CONSERVATION=!0,this.SPHERICAL_HARMONICS=!0,this.SPECULAR_GLOSSINESS_ENERGY_CONSERVATION=!0,this.MIX_IBL_RADIANCE_WITH_IRRADIANCE=!0,this.LEGACY_SPECULAR_ENERGY_CONSERVATION=!1,this.BASE_DIFFUSE_MODEL=0,this.DIELECTRIC_SPECULAR_MODEL=1,this.CONDUCTOR_SPECULAR_MODEL=1,this.rebuild()}reset(){super.reset(),this.ALPHATESTVALUE="0.5",this.NORMALXYSCALE=!0}}class q extends(0,M.ImageProcessingMixin)(y.PushMaterial){}class j extends q{get geometryTangentAngle(){return Math.atan2(this.geometryTangent.y,this.geometryTangent.x)}set geometryTangentAngle(e){this.geometryTangent=new S.Vector2(Math.cos(e),Math.sin(e))}get geometryCoatTangentAngle(){return Math.atan2(this.geometryCoatTangent.y,this.geometryCoatTangent.x)}set geometryCoatTangentAngle(e){this.geometryCoatTangent=new S.Vector2(Math.cos(e),Math.sin(e))}get sssQuality(){return this._sssQuality}set sssQuality(e){this._sssQuality!==e&&(this._sssQuality=e,this.markAsDirty(1))}get sssIrradianceTexture(){return this._sssIrradianceTexture}set sssIrradianceTexture(e){this._sssIrradianceTexture!==e&&(this._sssIrradianceTexture=e,this._markAllSubMeshesAsTexturesDirty())}get sssDepthTexture(){return this._sssDepthTexture}set sssDepthTexture(e){this._sssDepthTexture!==e&&(this._sssDepthTexture=e,this._markAllSubMeshesAsTexturesDirty())}get hasTransparency(){return this.subsurfaceWeight>0||this.transmissionWeight>0}get hasScattering(){return this.transmissionWeight>0&&this.transmissionDepth>0&&!this.transmissionScatter.equals(i.Color3.BlackReadOnly)||this.subsurfaceWeight>0}get usePhysicalLightFalloff(){return this._lightFalloff===o.Material.LIGHTFALLOFF_PHYSICAL}set usePhysicalLightFalloff(e){e!==this.usePhysicalLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=o.Material.LIGHTFALLOFF_PHYSICAL:this._lightFalloff=o.Material.LIGHTFALLOFF_STANDARD)}get useGLTFLightFalloff(){return this._lightFalloff===o.Material.LIGHTFALLOFF_GLTF}set useGLTFLightFalloff(e){e!==this.useGLTFLightFalloff&&(this._markAllSubMeshesAsTexturesDirty(),e?this._lightFalloff=o.Material.LIGHTFALLOFF_GLTF:this._lightFalloff=o.Material.LIGHTFALLOFF_STANDARD)}get backgroundRefractionTexture(){return this._backgroundRefractionTexture}set backgroundRefractionTexture(e){this._backgroundRefractionTexture=e,this._markAllSubMeshesAsTexturesDirty()}get refractionHighQualityBlur(){return this._refractionHighQualityBlur}set refractionHighQualityBlur(e){this._refractionHighQualityBlur!==e&&(this._refractionHighQualityBlur=e,this.markAsDirty(1))}get realTimeFiltering(){return this._realTimeFiltering}set realTimeFiltering(e){this._realTimeFiltering=e,this.markAsDirty(1)}get realTimeFilteringQuality(){return this._realTimeFilteringQuality}set realTimeFilteringQuality(e){this._realTimeFilteringQuality=e,this.markAsDirty(1)}get fuzzSampleNumber(){return this._fuzzSampleNumber}set fuzzSampleNumber(e){this._fuzzSampleNumber=e,this.markAsDirty(1)}get canRenderToMRT(){return!0}constructor(e,t,s=!1){for(const a of(super(e,t,void 0,s||j.ForceGLSL),this._baseWeight=new X("base_weight",1,"vBaseWeight",1),this._baseWeightTexture=new Y("base_weight","baseWeight","BASE_WEIGHT"),this._baseColor=new X("base_color",i.Color3.White(),"vBaseColor",4),this._baseColorTexture=new Y("base_color","baseColor","BASE_COLOR"),this._baseDiffuseRoughness=new X("base_diffuse_roughness",0,"vBaseDiffuseRoughness",1),this._baseDiffuseRoughnessTexture=new Y("base_diffuse_roughness","baseDiffuseRoughness","BASE_DIFFUSE_ROUGHNESS"),this._baseMetalness=new X("base_metalness",0,"vReflectanceInfo",4,0),this._baseMetalnessTexture=new Y("base_metalness","baseMetalness","BASE_METALNESS"),this._specularWeight=new X("specular_weight",1,"vReflectanceInfo",4,3),this._specularWeightTexture=new Y("specular_weight","specularWeight","SPECULAR_WEIGHT"),this._specularColor=new X("specular_color",i.Color3.White(),"vSpecularColor",4),this._specularColorTexture=new Y("specular_color","specularColor","SPECULAR_COLOR"),this._specularRoughness=new X("specular_roughness",.3,"vReflectanceInfo",4,1),this._specularRoughnessTexture=new Y("specular_roughness","specularRoughness","SPECULAR_ROUGHNESS"),this._specularRoughnessAnisotropy=new X("specular_roughness_anisotropy",0,"vSpecularAnisotropy",3,2),this._specularRoughnessAnisotropyTexture=new Y("specular_roughness_anisotropy","specularRoughnessAnisotropy","SPECULAR_ROUGHNESS_ANISOTROPY"),this._specularIor=new X("specular_ior",1.5,"vReflectanceInfo",4,2),this._transmissionWeight=new X("transmission_weight",0,"vTransmissionWeight",1),this._transmissionWeightTexture=new Y("transmission_weight","transmissionWeight","TRANSMISSION_WEIGHT"),this._transmissionColor=new X("transmission_color",i.Color3.White(),"vTransmissionColor",3,0),this._transmissionColorTexture=new Y("transmission_color","transmissionColor","TRANSMISSION_COLOR"),this._transmissionDepth=new X("transmission_depth",0,"vTransmissionDepth",1,0),this._transmissionDepthTexture=new Y("transmission_depth","transmissionDepth","TRANSMISSION_DEPTH"),this._transmissionScatter=new X("transmission_scatter",i.Color3.Black(),"vTransmissionScatter",3,0),this._transmissionScatterTexture=new Y("transmission_scatter","transmissionScatter","TRANSMISSION_SCATTER"),this._transmissionScatterAnisotropy=new X("transmission_scatter_anisotropy",0,"vTransmissionScatterAnisotropy",1,0),this._transmissionDispersionScale=new X("transmission_dispersion_scale",0,"vTransmissionDispersionScale",1,0),this._transmissionDispersionScaleTexture=new Y("transmission_dispersion_scale","transmissionDispersionScale","TRANSMISSION_DISPERSION_SCALE"),this._transmissionDispersionAbbeNumber=new X("transmission_dispersion_abbe_number",20,"vTransmissionDispersionAbbeNumber",1,0),this._subsurfaceWeight=new X("subsurface_weight",0,"vSubsurfaceWeight",1,0,"SUBSURFACE_SLAB"),this._subsurfaceWeightTexture=new Y("subsurface_weight","subsurfaceWeight","SUBSURFACE_WEIGHT"),this._subsurfaceColor=new X("subsurface_color",new i.Color3(.8,.8,.8),"vSubsurfaceColor",3,0,"SUBSURFACE_SLAB"),this._subsurfaceColorTexture=new Y("subsurface_color","subsurfaceColor","SUBSURFACE_COLOR"),this._subsurfaceRadius=new X("subsurface_radius",.1,"vSubsurfaceRadius",1,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScale=new X("subsurface_radius_scale",new i.Color3(1,.5,.25),"vSubsurfaceRadiusScale",3,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScaleTexture=new Y("subsurface_radius_scale","subsurfaceRadiusScale","SUBSURFACE_RADIUS_SCALE"),this._subsurfaceScatterAnisotropy=new X("subsurface_scatter_anisotropy",0,"vSubsurfaceScatterAnisotropy",1,0,"SUBSURFACE_SLAB"),this._coatWeight=new X("coat_weight",0,"vCoatWeight",1,0),this._coatWeightTexture=new Y("coat_weight","coatWeight","COAT_WEIGHT"),this._coatColor=new X("coat_color",i.Color3.White(),"vCoatColor",3,0),this._coatColorTexture=new Y("coat_color","coatColor","COAT_COLOR"),this._coatRoughness=new X("coat_roughness",0,"vCoatRoughness",1,0),this._coatRoughnessTexture=new Y("coat_roughness","coatRoughness","COAT_ROUGHNESS"),this._coatRoughnessAnisotropy=new X("coat_roughness_anisotropy",0,"vCoatRoughnessAnisotropy",1),this._coatRoughnessAnisotropyTexture=new Y("coat_roughness_anisotropy","coatRoughnessAnisotropy","COAT_ROUGHNESS_ANISOTROPY"),this._coatIor=new X("coat_ior",1.5,"vCoatIor",1,0),this._coatDarkening=new X("coat_darkening",1,"vCoatDarkening",1,0),this._coatDarkeningTexture=new Y("coat_darkening","coatDarkening","COAT_DARKENING"),this.useCoatRoughnessFromWeightTexture=!1,this._fuzzWeight=new X("fuzz_weight",0,"vFuzzWeight",1,0),this._fuzzWeightTexture=new Y("fuzz_weight","fuzzWeight","FUZZ_WEIGHT"),this._fuzzColor=new X("fuzz_color",i.Color3.White(),"vFuzzColor",3,0),this._fuzzColorTexture=new Y("fuzz_color","fuzzColor","FUZZ_COLOR"),this._fuzzRoughness=new X("fuzz_roughness",.5,"vFuzzRoughness",1,0),this._fuzzRoughnessTexture=new Y("fuzz_roughness","fuzzRoughness","FUZZ_ROUGHNESS"),this._geometryThinWalled=new X("geometry_thin_walled",0,"vGeometryThinWalled",1,0),this._geometryNormalTexture=new Y("geometry_normal","geometryNormal","GEOMETRY_NORMAL"),this._geometryTangent=new X("geometry_tangent",new S.Vector2(1,0),"vSpecularAnisotropy",3,0),this._geometryTangentTexture=new Y("geometry_tangent","geometryTangent","GEOMETRY_TANGENT"),this._geometryCoatNormalTexture=new Y("geometry_coat_normal","geometryCoatNormal","GEOMETRY_COAT_NORMAL"),this._geometryCoatTangent=new X("geometry_coat_tangent",new S.Vector2(1,0),"vGeometryCoatTangent",2,0),this._geometryCoatTangentTexture=new Y("geometry_coat_tangent","geometryCoatTangent","GEOMETRY_COAT_TANGENT"),this._geometryOpacity=new X("geometry_opacity",1,"vBaseColor",4,3),this._geometryOpacityTexture=new Y("geometry_opacity","geometryOpacity","GEOMETRY_OPACITY"),this._geometryThickness=new X("geometry_thickness",0,"vGeometryThickness",1,0),this._geometryThicknessTexture=new Y("geometry_thickness","geometryThickness","GEOMETRY_THICKNESS"),this._emissionLuminance=new X("emission_luminance",1,"vLightingIntensity",4,1),this._emissionColor=new X("emission_color",i.Color3.Black(),"vEmissionColor",3),this._emissionColorTexture=new Y("emission_color","emissionColor","EMISSION_COLOR"),this._thinFilmWeight=new X("thin_film_weight",0,"vThinFilmWeight",1,0),this._thinFilmWeightTexture=new Y("thin_film_weight","thinFilmWeight","THIN_FILM_WEIGHT"),this._thinFilmThickness=new X("thin_film_thickness",.5,"vThinFilmThickness",2,0),this._thinFilmThicknessMin=new X("thin_film_thickness_min",0,"vThinFilmThickness",2,1),this._thinFilmThicknessTexture=new Y("thin_film_thickness","thinFilmThickness","THIN_FILM_THICKNESS"),this._thinFilmIor=new X("thin_film_ior",1.4,"vThinFilmIor",1,0),this._ambientOcclusionTexture=new Y("ambient_occlusion","ambientOcclusion","AMBIENT_OCCLUSION"),this._sssQuality=j.SSS_QUALITY_MEDIUM,this._sssIrradianceTexture=null,this._sssDepthTexture=null,this._uniformsList={},this._uniformsArray=[],this._samplersList={},this._samplerDefines={},this.directIntensity=1,this.environmentIntensity=1,this.useSpecularWeightFromTextureAlpha=!1,this.forceAlphaTest=!1,this.alphaCutOff=.4,this.useAmbientOcclusionFromMetallicTextureRed=!1,this.useAmbientInGrayScale=!1,this.useObjectSpaceNormalMap=!1,this.useParallax=!1,this.useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this.disableLighting=!1,this.forceIrradianceInFragment=!1,this.maxSimultaneousLights=4,this.invertNormalMapX=!1,this.invertNormalMapY=!1,this.twoSidedLighting=!1,this.useAlphaFresnel=!1,this.useLinearAlphaFresnel=!1,this.environmentBRDFTexture=null,this.forceNormalForward=!1,this.enableSpecularAntiAliasing=!1,this.useHorizonOcclusion=!0,this.useRadianceOcclusion=!0,this.unlit=!1,this.applyDecalMapAfterDetailMap=!1,this._lightingInfos=new S.Vector4(this.directIntensity,1,this.environmentIntensity,1),this._radianceTexture=null,this._useSpecularWeightFromAlpha=!1,this._useSpecularWeightFromSpecularColorTexture=!1,this._useSpecularRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessAnisotropyFromTangentTexture=!1,this._useCoatRoughnessFromGreenChannel=!1,this._useGltfStyleAnisotropy=!1,this._useFuzzRoughnessFromTextureAlpha=!1,this._useSubsurfaceWeightFromTextureAlpha=!1,this._useHorizonOcclusion=!0,this._useRadianceOcclusion=!0,this._useAlphaFromBaseColorTexture=!1,this._useAmbientOcclusionFromMetallicTextureRed=!1,this._useRoughnessFromMetallicTextureGreen=!1,this._useMetallicFromMetallicTextureBlue=!1,this._useThinFilmThicknessFromTextureGreen=!1,this._useGeometryThicknessFromGreenChannel=!1,this._lightFalloff=o.Material.LIGHTFALLOFF_PHYSICAL,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this._parallaxScaleBias=.05,this._disableLighting=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._alphaCutOff=.4,this._useAlphaFresnel=!1,this._useLinearAlphaFresnel=!1,this._environmentBRDFTexture=null,this._environmentFuzzBRDFTexture=null,this._backgroundRefractionTexture=null,this._refractionHighQualityBlur=!0,this._forceIrradianceInFragment=!1,this._realTimeFiltering=!1,this._realTimeFilteringQuality=8,this._fuzzSampleNumber=4,this._forceNormalForward=!1,this._enableSpecularAntiAliasing=!1,this._renderTargets=new I.SmartArray(16),this._unlit=!1,this._applyDecalMapAfterDetailMap=!1,this._debugMode=0,this._shadersLoaded=!1,this._breakShaderLoadedCheck=!1,this._vertexPullingMetadata=null,this.debugMode=0,this.debugLimit=-1,this.debugFactor=1,this._cacheHasRenderTargetTextures=!1,this._transparencyMode=o.Material.MATERIAL_OPAQUE,this.getScene()&&!this.getScene()?.getEngine().isWebGPU&&this.getScene().getEngine().webGLVersion<2&&E.Logger.Error("OpenPBRMaterial: WebGL 2.0 or above is required for this material."),j._noiseTextures[this.getScene().uniqueId]||(j._noiseTextures[this.getScene().uniqueId]=new n.Texture(b.Tools.GetAssetUrl("https://assets.babylonjs.com/core/blue_noise/blue_noise_rgb.png"),this.getScene(),!1,!0,1),this.getScene().onDisposeObservable.addOnce(()=>{j._noiseTextures[this.getScene().uniqueId]?.dispose(),delete j._noiseTextures[this.getScene().uniqueId]})),this._attachImageProcessingConfiguration(null),this.getRenderTargetTextures=()=>(this._renderTargets.reset(),g.MaterialFlags.ReflectionTextureEnabled&&this._radianceTexture&&this._radianceTexture.isRenderTarget&&this._renderTargets.push(this._radianceTexture),g.MaterialFlags.RefractionTextureEnabled&&this._backgroundRefractionTexture&&this._backgroundRefractionTexture.isRenderTarget&&this._renderTargets.push(this._backgroundRefractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets),this._environmentBRDFTexture=(0,r.GetOpenPBREnvironmentBRDFTexture)(this.getScene()),this._environmentFuzzBRDFTexture=(0,r.GetEnvironmentFuzzBRDFTexture)(this.getScene()),this.prePassConfiguration=new f.PrePassConfiguration,this._propertyList={},Object.getOwnPropertyNames(this))){const e=this[a];e instanceof X&&(this._propertyList[a]=e)}for(const e of(Object.keys(this._propertyList).forEach(e=>{let t=this._propertyList[e],s=this._uniformsList[t.targetUniformName];s?s.numComponents!==t.targetUniformComponentNum?E.Logger.Error(`Uniform ${t.targetUniformName} already exists of size ${s.numComponents}, but trying to set it to ${t.targetUniformComponentNum}.`):s.requiredDefine!==t.requiredDefine&&(s.requiredDefine=void 0):((s=new w(t.targetUniformName,t.targetUniformComponentNum)).requiredDefine=t.requiredDefine,this._uniformsList[t.targetUniformName]=s),""===s.firstLinkedKey&&(s.firstLinkedKey=t.name),s.linkedProperties[t.name]=t}),this._uniformsArray=Object.values(this._uniformsList),this._samplersList={},Object.getOwnPropertyNames(this))){const t=this[e];t instanceof Y&&(this._samplersList[e]=t)}for(const e in this._samplersList){const t=this._samplersList[e].textureDefine;this._samplerDefines[t]={type:"boolean",default:!1},this._samplerDefines[t+"DIRECTUV"]={type:"number",default:0},this._samplerDefines[t+"_GAMMA"]={type:"boolean",default:!1}}this._baseWeight,this._baseWeightTexture,this._baseColor,this._baseColorTexture,this._baseDiffuseRoughness,this._baseDiffuseRoughnessTexture,this._baseMetalness,this._baseMetalnessTexture,this._specularWeight,this._specularWeightTexture,this._specularColor,this._specularColorTexture,this._specularRoughness,this._specularIor,this._specularRoughnessTexture,this._specularRoughnessAnisotropy,this._specularRoughnessAnisotropyTexture,this._transmissionWeight,this._transmissionWeightTexture,this._transmissionColor,this._transmissionColorTexture,this._transmissionDepth,this._transmissionDepthTexture,this._transmissionScatter,this._transmissionScatterTexture,this._transmissionScatterAnisotropy,this._transmissionDispersionScale,this._transmissionDispersionScaleTexture,this._transmissionDispersionAbbeNumber,this._subsurfaceWeight,this._subsurfaceWeightTexture,this._subsurfaceColor,this._subsurfaceColorTexture,this._subsurfaceRadius,this._subsurfaceRadiusScale,this._subsurfaceRadiusScaleTexture,this._subsurfaceScatterAnisotropy,this._coatWeight,this._coatWeightTexture,this._coatColor,this._coatColorTexture,this._coatRoughness,this._coatRoughnessTexture,this._coatRoughnessAnisotropy,this._coatRoughnessAnisotropyTexture,this._coatIor,this._coatDarkening,this._coatDarkeningTexture,this._fuzzWeight,this._fuzzWeightTexture,this._fuzzColor,this._fuzzColorTexture,this._fuzzRoughness,this._fuzzRoughnessTexture,this._geometryThinWalled,this._geometryNormalTexture,this._geometryTangent,this._geometryTangentTexture,this._geometryCoatNormalTexture,this._geometryCoatTangent,this._geometryCoatTangentTexture,this._geometryOpacity,this._geometryOpacityTexture,this._geometryThickness,this._geometryThicknessTexture,this._thinFilmWeight,this._thinFilmWeightTexture,this._thinFilmThickness,this._thinFilmThicknessMin,this._thinFilmThicknessTexture,this._thinFilmIor,this._emissionLuminance,this._emissionColor,this._emissionColorTexture,this._ambientOcclusionTexture}get hasRenderTargetTextures(){return!!g.MaterialFlags.ReflectionTextureEnabled&&!!this._radianceTexture&&!!this._radianceTexture.isRenderTarget||!!g.MaterialFlags.RefractionTextureEnabled&&!!this._backgroundRefractionTexture&&!!this._backgroundRefractionTexture.isRenderTarget||this._cacheHasRenderTargetTextures}get isPrePassCapable(){return!this.disableDepthWrite}getClassName(){return"OpenPBRMaterial"}get transparencyMode(){return this._transparencyMode}set transparencyMode(e){this._transparencyMode!==e&&(this._transparencyMode=e,this._markAllSubMeshesAsTexturesAndMiscDirty())}_shouldUseAlphaFromBaseColorTexture(){return this._hasAlphaChannel()&&this._transparencyMode!==o.Material.MATERIAL_OPAQUE&&!this.geometryOpacityTexture}_hasAlphaChannel(){return null!=this.baseColorTexture&&this.baseColorTexture.hasAlpha&&this._useAlphaFromBaseColorTexture||null!=this.geometryOpacityTexture}needAlphaBlending(){return this.geometryOpacity<1||null!=this.geometryOpacityTexture}needAlphaBlendingForMesh(e){return this.geometryOpacity<1||null!=this.geometryOpacityTexture||super.needAlphaBlendingForMesh(e)}clone(e,t=!0,s=""){let r=l.SerializationHelper.Clone(()=>new j(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return r.id=e,r.name=e,this.stencil.copyTo(r.stencil),this._clonePlugins(r,s),r}serialize(){let e=super.serialize();return e.customType="BABYLON.OpenPBRMaterial",e}static Parse(e,t,s){let r=l.SerializationHelper.Parse(()=>new j(e.name,t),e,t,s);return e.stencil&&r.stencil.parse(e.stencil,t,s),o.Material._ParsePlugins(e,r,t,s),r}forceCompilation(e,t,s){let r={clipPlane:!1,useInstances:!1,...s};this._uniformBufferLayoutBuilt||this.buildUniformLayout(),this._callbackPluginEventGeneric(4,this._eventInfo),(()=>{if(this._breakShaderLoadedCheck)return;let s=new Q({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}),i=this._prepareEffect(e,e,s,void 0,void 0,r.useInstances,r.clipPlane);this._onEffectCreatedObservable&&(z.effect=i,z.subMesh=null,this._onEffectCreatedObservable.notifyObservers(z)),i.isReady()?t&&t(this):i.onCompileObservable.add(()=>{t&&t(this)})})()}isReadyForSubMesh(e,t,s){this._uniformBufferLayoutBuilt||this.buildUniformLayout();let r=t._drawWrapper;if(r.effect&&this.isFrozen&&r._wasPreviouslyReady&&r._wasPreviouslyUsingInstances===s)return!0;t.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),t.materialDefines=new Q({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}));let i=t.materialDefines;if(this._isReadyForSubMesh(t))return!0;let a=this.getScene(),n=a.getEngine();if(i._areTexturesDirty&&(this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,a.texturesEnabled)){for(let e in this._samplersList){let t=this._samplersList[e];if(t.value&&!t.value.isReadyOrNotBlocking())return!1}let e=this._getRadianceTexture();if(e&&g.MaterialFlags.ReflectionTextureEnabled){if(!e.isReadyOrNotBlocking())return!1;if(e.irradianceTexture){if(!e.irradianceTexture.isReadyOrNotBlocking())return!1}else if(!e.sphericalPolynomial&&e.getInternalTexture()?._sphericalPolynomialPromise)return!1}if(this._environmentBRDFTexture&&g.MaterialFlags.ReflectionTextureEnabled&&!this._environmentBRDFTexture.isReady()||this._environmentFuzzBRDFTexture&&g.MaterialFlags.ReflectionTextureEnabled&&!this._environmentFuzzBRDFTexture.isReady()||this._backgroundRefractionTexture&&g.MaterialFlags.RefractionTextureEnabled&&!this._backgroundRefractionTexture.isReadyOrNotBlocking()||j._noiseTextures[a.uniqueId]&&!j._noiseTextures[a.uniqueId].isReady()||this._sssIrradianceTexture&&this._sssDepthTexture&&(!this._sssIrradianceTexture.isReady()||!this._sssDepthTexture.isReady()))return!1}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=i,this._eventInfo.subMesh=t,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh||i._areImageProcessingDirty&&this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.isReady())return!1;if(i.AREALIGHTUSED){for(let t=0;t<e.lightSources.length;t++)if(!e.lightSources[t]._isReady())return!1}if(n.getCaps().standardDerivatives||e.isVerticesDataPresent(p.VertexBuffer.NormalKind)||(e.createNormals(!0),E.Logger.Warn("OpenPBRMaterial: Normals have been created for the mesh: "+e.name)),!(0,d.AreLightsTexturesReady)(a,e,this._maxSimultaneousLights,this._disableLighting))return!1;let o=t.effect,l=i._areLightsDisposed,u=this._prepareEffect(e,t.getRenderingMesh(),i,this.onCompiled,this.onError,s,null),h=!1;if(u)if(this._onEffectCreatedObservable&&(z.effect=u,z.subMesh=t,this._onEffectCreatedObservable.notifyObservers(z)),this.allowShaderHotSwapping&&o&&!u.isReady()){if(i.markAsUnprocessed(),h=this.isFrozen,l)return i._areLightsDisposed=!0,!1}else a.resetCachedMaterial(),t.setEffect(u,i,this._materialContext);return!!t.effect&&!!t.effect.isReady()&&(i._renderId=a.getRenderId(),r._wasPreviouslyReady=!h,r._wasPreviouslyUsingInstances=!!s,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){let e=this._uniformBuffer;e.addUniform("vTangentSpaceParams",2),e.addUniform("vLightingIntensity",4),e.addUniform("pointSize",1),e.addUniform("vDebugMode",2),e.addUniform("renderTargetSize",2),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),e.addUniform("backgroundRefractionMatrix",16),e.addUniform("vBackgroundRefractionInfos",3),(0,d.PrepareUniformLayoutForIBL)(e,!0,!0,!0,!0,!0),Object.values(this._uniformsList).forEach(t=>{e.addUniform(t.name,t.numComponents)}),Object.values(this._samplersList).forEach(t=>{e.addUniform(t.samplerInfoName,2),e.addUniform(t.samplerMatrixName,16)}),super.buildUniformLayout()}bindPropertiesForSubMesh(e,t,s,r){if(0===this.geometryThickness)e.updateFloat("vGeometryThickness",0);else{r.getRenderingMesh().getWorldMatrix().decompose(S.TmpVectors.Vector3[0]);let t=Math.max(Math.abs(S.TmpVectors.Vector3[0].x),Math.abs(S.TmpVectors.Vector3[0].y),Math.abs(S.TmpVectors.Vector3[0].z));e.updateFloat("vGeometryThickness",this.geometryThickness*t)}}bindForSubMesh(e,t,s){let r=this.getScene(),a=s.materialDefines;if(!a)return;let n=s.effect;if(!n)return;this._activeEffect=n,t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e);let o=r.getEngine();this._uniformBuffer.bindToEffect(n,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,r,t,e,this.isFrozen),m.MaterialHelperGeometryRendering.Bind(o.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=s,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),a.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));let h=this._mustRebind(r,n,s,t.visibility),_=o._features.needToAlwaysBindUniformBuffers;(0,d.BindBonesParameters)(t,this._activeEffect,this.prePassConfiguration),this._vertexPullingMetadata&&(0,c.BindVertexPullingUniforms)(this._activeEffect,this._vertexPullingMetadata);let p=this._uniformBuffer;if(h){this.bindViewProjection(n);let e=this._getRadianceTexture();if(!p.useUbo||!this.isFrozen||!p.isSync||s._drawWrapper._forceRebindOnNextCall){if(r.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&(p.updateFloat2(t.samplerInfoName,t.value.coordinatesIndex,t.value.level),(0,d.BindTextureMatrix)(t.value,p,t.samplerPrefix))}(this.geometryNormalTexture||this.geometryCoatNormalTexture)&&(r._mirroredCameraPosition?p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):p.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),(0,d.BindIBLParameters)(r,a,p,i.Color3.White(),e,this.realTimeFiltering,!0,!0,!0,!0,!0)}this.pointsCloud&&p.updateFloat("pointSize",this.pointSize);let t=this._uniformsArray;for(let e=0,s=t.length;e<s;e++){let s=t[e];(void 0===s.requiredDefine||a[s.requiredDefine])&&(4===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector4[0]),p.updateVector4(s.name,S.TmpVectors.Vector4[0])):3===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector3[0]),p.updateVector3(s.name,S.TmpVectors.Vector3[0])):2===s.numComponents?(s.populateVectorFromLinkedProperties(S.TmpVectors.Vector2[0]),p.updateFloat2(s.name,S.TmpVectors.Vector2[0].x,S.TmpVectors.Vector2[0].y)):1===s.numComponents&&p.updateFloat(s.name,s.linkedProperties[s.firstLinkedKey].value))}this._lightingInfos.x=this.directIntensity,this._lightingInfos.y=this.emissionLuminance,this._lightingInfos.z=this.environmentIntensity*r.environmentIntensity,this._lightingInfos.w=1,p.updateVector4("vLightingIntensity",this._lightingInfos),p.updateFloat2("vDebugMode",this.debugLimit,this.debugFactor)}if(r.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value&&p.setTexture(t.samplerName,t.value)}if((0,d.BindIBLSamplers)(r,a,p,e,this.realTimeFiltering),a.ENVIRONMENTBRDF&&p.setTexture("environmentBrdfSampler",this._environmentBRDFTexture),a.FUZZENVIRONMENTBRDF&&p.setTexture("environmentFuzzBrdfSampler",this._environmentFuzzBRDFTexture),a.REFRACTED_BACKGROUND&&(p.setTexture("backgroundRefractionSampler",this._backgroundRefractionTexture),p.updateMatrix("backgroundRefractionMatrix",this._backgroundRefractionTexture.getReflectionTextureMatrix()),S.TmpVectors.Vector3[1].set(Math.log2(this._backgroundRefractionTexture.getSize().width),0,0),p.updateVector3("vBackgroundRefractionInfos",S.TmpVectors.Vector3[1])),(a.ANISOTROPIC||a.FUZZ||a.REFRACTED_BACKGROUND||a.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&p.setTexture("blueNoiseSampler",j._noiseTextures[this.getScene().uniqueId]),a.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&this.sssIrradianceTexture&&this.sssDepthTexture){let e=this.sssIrradianceTexture.getSize().width,t=this.sssIrradianceTexture.getSize().height;p.setTexture("sceneIrradianceSampler",this.sssIrradianceTexture),p.setTexture("sceneDepthSampler",this.sssDepthTexture),p.updateFloat2("renderTargetSize",e,t)}}this.getScene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(n),this._eventInfo.subMesh=s,this._callbackPluginEventBindForSubMesh(this._eventInfo),(0,T.BindClipPlane)(this._activeEffect,this,r),this.bindEyePosition(n)}else _&&(this._needToBindSceneUbo=!0);this.bindPropertiesForSubMesh(this._uniformBuffer,r,r.getEngine(),s),(h||!this.isFrozen||_)&&r.lightsEnabled&&!this._disableLighting&&(0,d.BindLights)(r,t,this._activeEffect,a,this._maxSimultaneousLights),(h||!this.isFrozen)&&(this.bindView(n),(0,d.BindFogParameters)(r,t,this._activeEffect,!0),a.NUM_MORPH_INFLUENCERS&&(0,d.BindMorphTargetParameters)(t,this._activeEffect),a.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(n,a.INSTANCES),this._imageProcessingConfiguration.bind(this._activeEffect),(0,d.BindLogDepth)(a,this._activeEffect,r)),this._afterBind(t,this._activeEffect,s),p.update()}getAnimatables(){let e=super.getAnimatables();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&s.value.animations&&s.value.animations.length>0&&e.push(s.value)}return this._radianceTexture&&this._radianceTexture.animations&&this._radianceTexture.animations.length>0&&e.push(this._radianceTexture),e}getActiveTextures(){let e=super.getActiveTextures();for(let t in this._samplersList){let s=this._samplersList[t];s.value&&e.push(s.value)}return this._radianceTexture&&e.push(this._radianceTexture),e}hasTexture(e){if(super.hasTexture(e))return!0;for(let t in this._samplersList)if(this._samplersList[t].value===e)return!0;return this._radianceTexture===e}setPrePassRenderer(){return!1}dispose(e,t){if(this._breakShaderLoadedCheck=!0,t){for(let e in this._environmentBRDFTexture&&this.getScene().openPBREnvironmentBRDFTexture!==this._environmentBRDFTexture&&this._environmentBRDFTexture.dispose(),this._environmentFuzzBRDFTexture&&this.getScene().environmentFuzzBRDFTexture!==this._environmentFuzzBRDFTexture&&this._environmentFuzzBRDFTexture.dispose(),this._backgroundRefractionTexture=null,this._samplersList){let t=this._samplersList[e];t.value?.dispose()}this._radianceTexture?.dispose()}this._renderTargets.dispose(),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}_getRadianceTexture(){return this._radianceTexture?this._radianceTexture:this.getScene().environmentTexture}_prepareEffect(t,s,r,i=null,n=null,o=null,l=null){if(this._prepareDefines(t,s,r,o,l),!r.isDirty)return null;r.markAsProcessed();let u=this.getScene().getEngine(),h=new _.EffectFallbacks,g=0;r.USESPHERICALINVERTEX&&h.addFallback(g++,"USESPHERICALINVERTEX"),r.FOG&&h.addFallback(g,"FOG"),r.SPECULARAA&&h.addFallback(g,"SPECULARAA"),r.POINTSIZE&&h.addFallback(g,"POINTSIZE"),r.LOGARITHMICDEPTH&&h.addFallback(g,"LOGARITHMICDEPTH"),r.PARALLAX&&h.addFallback(g,"PARALLAX"),r.PARALLAX_RHS&&h.addFallback(g,"PARALLAX_RHS"),r.PARALLAXOCCLUSION&&h.addFallback(g++,"PARALLAXOCCLUSION"),r.ENVIRONMENTBRDF&&h.addFallback(g++,"ENVIRONMENTBRDF"),r.TANGENT&&h.addFallback(g++,"TANGENT"),g=(0,d.HandleFallbacksForShadows)(r,h,this._maxSimultaneousLights,g),r.SPECULARTERM&&h.addFallback(g++,"SPECULARTERM"),r.USESPHERICALFROMREFLECTIONMAP&&h.addFallback(g++,"USESPHERICALFROMREFLECTIONMAP"),r.USEIRRADIANCEMAP&&h.addFallback(g++,"USEIRRADIANCEMAP"),r.NORMAL&&h.addFallback(g++,"NORMAL"),r.VERTEXCOLOR&&h.addFallback(g++,"VERTEXCOLOR"),r.MORPHTARGETS&&h.addFallback(g++,"MORPHTARGETS"),r.MULTIVIEW&&h.addFallback(0,"MULTIVIEW");let E=[p.VertexBuffer.PositionKind];r.NORMAL&&E.push(p.VertexBuffer.NormalKind),r.TANGENT&&E.push(p.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)r["UV"+e]&&E.push(`uv${1===e?"":e}`);r.VERTEXCOLOR&&E.push(p.VertexBuffer.ColorKind),(0,d.PrepareAttributesForBones)(E,t,r,h),(0,d.PrepareAttributesForInstances)(E,r),(0,d.PrepareAttributesForMorphTargets)(E,t,r),(0,d.PrepareAttributesForBakedVertexAnimation)(E,t,r);let R="openpbr",A=["world","view","viewProjection","projection","vEyePosition","inverseProjection","renderTargetSize","vLightsType","visibility","vFogInfos","vFogColor","pointSize","mBones","normalMatrix","vLightingIntensity","logarithmicDepthConstant","vTangentSpaceParams","boneTextureInfo","vDebugMode","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams","backgroundRefractionMatrix","vBackgroundRefractionInfos"];for(let e in this._uniformsList)A.push(e);let x=["environmentBrdfSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];for(let e in r.FUZZENVIRONMENTBRDF&&x.push("environmentFuzzBrdfSampler"),r.REFRACTED_BACKGROUND&&x.push("backgroundRefractionSampler"),(r.ANISOTROPIC||r.FUZZ||r.REFRACTED_BACKGROUND||r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING)&&x.push("blueNoiseSampler"),r.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING&&(x.push("sceneIrradianceSampler"),x.push("sceneDepthSampler")),this._samplersList){let t=this._samplersList[e];x.push(t.samplerName),A.push(t.samplerInfoName),A.push(t.samplerMatrixName)}(0,d.PrepareUniformsAndSamplersForIBL)(A,x,!0);let S=["Material","Scene","Mesh"],M={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:r.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=h,this._eventInfo.fallbackRank=g,this._eventInfo.defines=r,this._eventInfo.uniforms=A,this._eventInfo.attributes=E,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=S,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=M,this._callbackPluginEventGeneric(128,this._eventInfo),m.MaterialHelperGeometryRendering.AddUniformsAndSamplers(A,x),f.PrePassConfiguration.AddUniforms(A),f.PrePassConfiguration.AddSamplers(x),(0,T.AddClipPlaneUniforms)(A),this._useVertexPulling){let e=s?.geometry;e&&(this._vertexPullingMetadata=(0,c.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{A.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;a.ImageProcessingConfiguration&&(a.ImageProcessingConfiguration.PrepareUniforms(A,r),a.ImageProcessingConfiguration.PrepareSamplers(x,r)),(0,d.PrepareUniformsAndSamplersList)({uniformsNames:A,uniformBuffersNames:S,samplers:x,defines:r,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage});let y={};this.customShaderNameResolve&&(R=this.customShaderNameResolve(R,A,S,x,r,E,y));let I=r.toString(),b=u.createEffect(R,{attributes:E,uniformsNames:A,uniformBuffersNames:S,samplers:x,defines:I,fallbacks:h,onCompiled:i,onError:n,indexParameters:M,processFinalCode:y.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:r.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{1===this.shaderLanguage?await Promise.all([e.A(65324),e.A(10383)]):await Promise.all([e.A(69092),e.A(69695)]),this._shadersLoaded=!0}},u);return this._eventInfo.customCode=void 0,b}_prepareDefines(e,t,s,i=null,a=null){let n=t.hasThinInstances,l=this.getScene(),u=l.getEngine();(0,d.PrepareDefinesForLights)(l,e,s,!0,this._maxSimultaneousLights,this._disableLighting),s._needNormals=!0,(0,d.PrepareDefinesForMultiview)(l,s);let h=this.needAlphaBlendingForMesh(e)&&this.getScene().useOrderIndependentTransparency;if((0,d.PrepareDefinesForPrePass)(l,s,this.canRenderToMRT&&!h),(0,d.PrepareDefinesForOIT)(l,s,h),m.MaterialHelperGeometryRendering.PrepareDefines(u.currentRenderPassId,e,s),s._areTexturesDirty){s._needUVs=!1;for(let e=1;e<=6;++e)s["MAINUV"+e]=!1;if(l.texturesEnabled){for(let e in this._samplersList){let t=this._samplersList[e];t.value?((0,d.PrepareDefinesForMergedUV)(t.value,s,t.textureDefine),s[t.textureDefine+"_GAMMA"]=t.value.gammaSpace):s[t.textureDefine]=!1}let e=this._getRadianceTexture(),t=this._forceIrradianceInFragment||this.realTimeFiltering||this._twoSidedLighting||u.getCaps().maxVaryingVectors<=8||null!=this._baseDiffuseRoughnessTexture;if((0,d.PrepareDefinesForIBL)(l,e,s,this.realTimeFiltering,this.realTimeFilteringQuality,!t),this._baseMetalnessTexture&&(s.AOSTOREINMETALMAPRED=this._useAmbientOcclusionFromMetallicTextureRed),s.SPECULAR_WEIGHT_IN_ALPHA=this._useSpecularWeightFromAlpha,s.SPECULAR_WEIGHT_FROM_SPECULAR_COLOR_TEXTURE=this._useSpecularWeightFromSpecularColorTexture,s.SPECULAR_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useSpecularRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_ANISOTROPY_FROM_TANGENT_TEXTURE=this._useCoatRoughnessAnisotropyFromTangentTexture,s.COAT_ROUGHNESS_FROM_GREEN_CHANNEL=this._useCoatRoughnessFromGreenChannel,s.SPECULAR_ROUGHNESS_FROM_METALNESS_TEXTURE_GREEN=this._useRoughnessFromMetallicTextureGreen,s.FUZZ_ROUGHNESS_FROM_TEXTURE_ALPHA=this._useFuzzRoughnessFromTextureAlpha,s.SUBSURFACE_WEIGHT_FROM_TEXTURE_ALPHA=this._useSubsurfaceWeightFromTextureAlpha,s.BASE_METALNESS_FROM_METALNESS_TEXTURE_BLUE=this._useMetallicFromMetallicTextureBlue,s.THIN_FILM_THICKNESS_FROM_THIN_FILM_TEXTURE=this._useThinFilmThicknessFromTextureGreen,s.GEOMETRY_THICKNESS_FROM_GREEN_CHANNEL=this._useGeometryThicknessFromGreenChannel,this.geometryNormalTexture?(this._useParallax&&this.baseColorTexture&&g.MaterialFlags.DiffuseTextureEnabled?(s.PARALLAX=!0,s.PARALLAX_RHS=l.useRightHandedSystem,s.PARALLAXOCCLUSION=!!this._useParallaxOcclusion):s.PARALLAX=!1,s.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap):(s.PARALLAX=!1,s.PARALLAX_RHS=!1,s.PARALLAXOCCLUSION=!1,s.OBJECTSPACE_NORMALMAP=!1),this._environmentBRDFTexture&&g.MaterialFlags.ReflectionTextureEnabled?(s.ENVIRONMENTBRDF=!0,s.ENVIRONMENTBRDF_RGBD=this._environmentBRDFTexture.isRGBD):(s.ENVIRONMENTBRDF=!1,s.ENVIRONMENTBRDF_RGBD=!1),this._environmentFuzzBRDFTexture?s.FUZZENVIRONMENTBRDF=!0:s.FUZZENVIRONMENTBRDF=!1,this.hasTransparency){s.REFRACTED_BACKGROUND=!!this._backgroundRefractionTexture&&g.MaterialFlags.RefractionTextureEnabled,s.REFRACTION_HIGH_QUALITY_BLUR=this._refractionHighQualityBlur,s.REFRACTED_LIGHTS=!0;let e=this._getRadianceTexture();e?(s.REFRACTED_ENVIRONMENT=g.MaterialFlags.RefractionTextureEnabled,s.REFRACTED_ENVIRONMENT_OPPOSITEZ=this.getScene().useRightHandedSystem?!e.invertZ:e.invertZ,s.REFRACTED_ENVIRONMENT_LOCAL_CUBE=e.isCube&&e.boundingBoxSize):s.REFRACTED_ENVIRONMENT=!1}else s.REFRACTED_BACKGROUND=!1,s.REFRACTED_LIGHTS=!1,s.REFRACTED_ENVIRONMENT=!1;this._shouldUseAlphaFromBaseColorTexture()?s.ALPHA_FROM_BASE_COLOR_TEXTURE=!0:s.ALPHA_FROM_BASE_COLOR_TEXTURE=!1}this._lightFalloff===o.Material.LIGHTFALLOFF_STANDARD?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!1):this._lightFalloff===o.Material.LIGHTFALLOFF_GLTF?(s.USEPHYSICALLIGHTFALLOFF=!1,s.USEGLTFLIGHTFALLOFF=!0):(s.USEPHYSICALLIGHTFALLOFF=!0,s.USEGLTFLIGHTFALLOFF=!1),!this.backFaceCulling&&this._twoSidedLighting?s.TWOSIDEDLIGHTING=!0:s.TWOSIDEDLIGHTING=!1,s.MIRRORED=!!l._mirroredCameraPosition,s.SPECULARAA=u.getCaps().standardDerivatives&&this._enableSpecularAntiAliasing}if((s._areTexturesDirty||s._areMiscDirty)&&(s.ALPHATESTVALUE=`${this._alphaCutOff}${this._alphaCutOff%1==0?".":""}`,s.PREMULTIPLYALPHA=7===this.alphaMode||8===this.alphaMode,s.ALPHABLEND=this.needAlphaBlendingForMesh(e)),s._areTexturesDirty&&(s.TEXTURE_REPETITION_MODE=u.version>1||u.isWebGPU?this.textureRepetitionMode:0),s._areImageProcessingDirty&&this._imageProcessingConfiguration&&this._imageProcessingConfiguration.prepareDefines(s),s.FORCENORMALFORWARD=this._forceNormalForward,s.RADIANCEOCCLUSION=this._useRadianceOcclusion,s.HORIZONOCCLUSION=this._useHorizonOcclusion,(this.specularRoughnessAnisotropy>0||this.coatRoughnessAnisotropy>0)&&j._noiseTextures[l.uniqueId]&&g.MaterialFlags.ReflectionTextureEnabled?(s.ANISOTROPIC=!0,e.isVerticesDataPresent(p.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._useGltfStyleAnisotropy&&(s.USE_GLTF_STYLE_ANISOTROPY=!0),s.ANISOTROPIC_BASE=this.specularRoughnessAnisotropy>0,s.ANISOTROPIC_COAT=this.coatRoughnessAnisotropy>0):(s.ANISOTROPIC=!1,s.USE_GLTF_STYLE_ANISOTROPY=!1,s.ANISOTROPIC_BASE=!1,s.ANISOTROPIC_COAT=!1),s.THIN_FILM=this.thinFilmWeight>0,s.IRIDESCENCE=this.thinFilmWeight>0,s.DISPERSION=this.transmissionDispersionScale>0,s.SCATTERING=this.hasScattering,s.SSS_SAMPLE_COUNT=[8,16,32][this._sssQuality]??16,s.TRANSMISSION_SLAB=this.transmissionWeight>0,s.TRANSMISSION_SLAB_VOLUME=this.transmissionWeight>0&&this.transmissionDepth>0,s.SUBSURFACE_SLAB=this.subsurfaceWeight>0,!s.PREPASS&&(s.SUBSURFACE_SLAB||s.TRANSMISSION_SLAB_VOLUME)){let e=!1;if(!this.sssIrradianceTexture&&l.geometryBufferRenderer){let t=l.geometryBufferRenderer.getTextureIndex(V.IRRADIANCE_TEXTURE_TYPE);this.sssIrradianceTexture=l.geometryBufferRenderer.getGBuffer().textures[t],e=!0}if(!this.sssDepthTexture&&l.geometryBufferRenderer){let t=l.geometryBufferRenderer.getTextureIndex(V.SCREENSPACE_DEPTH_TEXTURE_TYPE);this.sssDepthTexture=l.geometryBufferRenderer.getGBuffer().textures[t],e=!0}this.sssIrradianceTexture&&this.sssDepthTexture&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING=!0,e&&(s.USE_IRRADIANCE_TEXTURE_FOR_SCATTERING_GBUFFER=!0))}s.FUZZ=this.fuzzWeight>0&&g.MaterialFlags.ReflectionTextureEnabled,s.GEOMETRY_THIN_WALLED=0!=this.geometryThinWalled,s.FUZZ?(e.isVerticesDataPresent(p.VertexBuffer.TangentKind)||(s._needUVs=!0,s.MAINUV1=!0),this._environmentFuzzBRDFTexture=(0,r.GetEnvironmentFuzzBRDFTexture)(this.getScene()),s.FUZZ_IBL_SAMPLES=this.fuzzSampleNumber):(this._environmentFuzzBRDFTexture=null,s.FUZZENVIRONMENTBRDF=!1,s.FUZZ_IBL_SAMPLES=0),s._areMiscDirty&&((0,d.PrepareDefinesForMisc)(e,l,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(e),s,this._applyDecalMapAfterDetailMap,this._useVertexPulling,t,this._isVertexOutputInvariant),s.UNLIT=this._unlit||(this.pointsCloud||this.wireframe)&&!e.isVerticesDataPresent(p.VertexBuffer.NormalKind),s.DEBUGMODE=this._debugMode),(0,d.PrepareDefinesForFrameBoundValues)(l,u,this,s,!!i,a,n),this._eventInfo.defines=s,this._eventInfo.mesh=e,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),(0,d.PrepareDefinesForAttributes)(e,s,!0,!0,!0,this._transparencyMode!==o.Material.MATERIAL_OPAQUE),this._callbackPluginEventPrepareDefines(this._eventInfo)}}j.SSS_QUALITY_LOW=0,j.SSS_QUALITY_MEDIUM=1,j.SSS_QUALITY_HIGH=2,j._noiseTextures={},j.ForceGLSL=!1,(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeight")],j.prototype,"_baseWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeightTexture")],j.prototype,"_baseWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColor")],j.prototype,"_baseColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColorTexture")],j.prototype,"_baseColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughness")],j.prototype,"_baseDiffuseRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughnessTexture")],j.prototype,"_baseDiffuseRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalness")],j.prototype,"_baseMetalness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalnessTexture")],j.prototype,"_baseMetalnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeight")],j.prototype,"_specularWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeightTexture")],j.prototype,"_specularWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColor")],j.prototype,"_specularColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColorTexture")],j.prototype,"_specularColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughness")],j.prototype,"_specularRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessTexture")],j.prototype,"_specularRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropy")],j.prototype,"_specularRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropyTexture")],j.prototype,"_specularRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularIor")],j.prototype,"_specularIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeight")],j.prototype,"_transmissionWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeightTexture")],j.prototype,"_transmissionWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColor")],j.prototype,"_transmissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColorTexture")],j.prototype,"_transmissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepth")],j.prototype,"_transmissionDepth",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepthTexture")],j.prototype,"_transmissionDepthTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatter")],j.prototype,"_transmissionScatter",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterTexture")],j.prototype,"_transmissionScatterTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterAnisotropy")],j.prototype,"_transmissionScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScale")],j.prototype,"_transmissionDispersionScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScaleTexture")],j.prototype,"_transmissionDispersionScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionAbbeNumber")],j.prototype,"_transmissionDispersionAbbeNumber",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeight")],j.prototype,"_subsurfaceWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeightTexture")],j.prototype,"_subsurfaceWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColor")],j.prototype,"_subsurfaceColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColorTexture")],j.prototype,"_subsurfaceColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadius")],j.prototype,"_subsurfaceRadius",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScale")],j.prototype,"_subsurfaceRadiusScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScaleTexture")],j.prototype,"_subsurfaceRadiusScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceScatterAnisotropy")],j.prototype,"_subsurfaceScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeight")],j.prototype,"_coatWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeightTexture")],j.prototype,"_coatWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColor")],j.prototype,"_coatColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColorTexture")],j.prototype,"_coatColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughness")],j.prototype,"_coatRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessTexture")],j.prototype,"_coatRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropy")],j.prototype,"_coatRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropyTexture")],j.prototype,"_coatRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatIor")],j.prototype,"_coatIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkening")],j.prototype,"_coatDarkening",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkeningTexture")],j.prototype,"_coatDarkeningTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeight")],j.prototype,"_fuzzWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeightTexture")],j.prototype,"_fuzzWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColor")],j.prototype,"_fuzzColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColorTexture")],j.prototype,"_fuzzColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughness")],j.prototype,"_fuzzRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughnessTexture")],j.prototype,"_fuzzRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThinWalled")],j.prototype,"_geometryThinWalled",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryNormalTexture")],j.prototype,"_geometryNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangent")],j.prototype,"_geometryTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangentTexture")],j.prototype,"_geometryTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatNormalTexture")],j.prototype,"_geometryCoatNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangent")],j.prototype,"_geometryCoatTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangentTexture")],j.prototype,"_geometryCoatTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacity")],j.prototype,"_geometryOpacity",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacityTexture")],j.prototype,"_geometryOpacityTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThickness")],j.prototype,"_geometryThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThicknessTexture")],j.prototype,"_geometryThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionLuminance")],j.prototype,"_emissionLuminance",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColor")],j.prototype,"_emissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColorTexture")],j.prototype,"_emissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeight")],j.prototype,"_thinFilmWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeightTexture")],j.prototype,"_thinFilmWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThickness")],j.prototype,"_thinFilmThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessMin")],j.prototype,"_thinFilmThicknessMin",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessTexture")],j.prototype,"_thinFilmThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmIor")],j.prototype,"_thinFilmIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","ambientOcclusionTexture")],j.prototype,"_ambientOcclusionTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"directIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"environmentIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useSpecularWeightFromTextureAlpha",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],j.prototype,"forceAlphaTest",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],j.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useAmbientOcclusionFromMetallicTextureRed",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useAmbientInGrayScale",void 0),(0,t.__decorate)([(0,s.serialize)()],j.prototype,"usePhysicalLightFalloff",null),(0,t.__decorate)([(0,s.serialize)()],j.prototype,"useGLTFLightFalloff",null),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useParallax",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],j.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"forceIrradianceInFragment",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],j.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useAlphaFresnel",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useLinearAlphaFresnel",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"environmentBRDFTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"forceNormalForward",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"enableSpecularAntiAliasing",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useHorizonOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],j.prototype,"useRadianceOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],j.prototype,"unlit",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],j.prototype,"applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],j.prototype,"debugMode",void 0),(0,t.__decorate)([(0,s.serialize)()],j.prototype,"transparencyMode",null);let $=!1;e.s(["OpenPBRMaterial",0,j,"OpenPBRMaterialDefines",0,Q,"RegisterOpenpbrMaterial",0,function(){$||($=!0,(0,a.RegisterImageProcessingConfiguration)(),(0,H.RegisterClass)("BABYLON.OpenPBRMaterial",j))}],20263)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40984,e=>{"use strict";class t{}t.AUTOSAMPLERSUFFIX="Sampler",t.DISABLEUA="#define DISABLE_UNIFORMITY_ANALYSIS",t.ALPHA_DISABLE=0,t.ALPHA_ADD=1,t.ALPHA_COMBINE=2,t.ALPHA_SUBTRACT=3,t.ALPHA_MULTIPLY=4,t.ALPHA_MAXIMIZED=5,t.ALPHA_ONEONE=6,t.ALPHA_PREMULTIPLIED=7,t.ALPHA_PREMULTIPLIED_PORTERDUFF=8,t.ALPHA_INTERPOLATE=9,t.ALPHA_SCREENMODE=10,t.ALPHA_ONEONE_ONEONE=11,t.ALPHA_ALPHATOCOLOR=12,t.ALPHA_REVERSEONEMINUS=13,t.ALPHA_SRC_DSTONEMINUSSRCALPHA=14,t.ALPHA_ONEONE_ONEZERO=15,t.ALPHA_EXCLUSION=16,t.ALPHA_LAYER_ACCUMULATE=17,t.ALPHA_MIN=18,t.ALPHA_MAX=19,t.ALPHA_DUAL_SRC0_ADD_SRC1xDST=20,t.ALPHA_EQUATION_ADD=0,t.ALPHA_EQUATION_SUBSTRACT=1,t.ALPHA_EQUATION_REVERSE_SUBTRACT=2,t.ALPHA_EQUATION_MAX=3,t.ALPHA_EQUATION_MIN=4,t.ALPHA_EQUATION_DARKEN=5,t.DELAYLOADSTATE_NONE=0,t.DELAYLOADSTATE_LOADED=1,t.DELAYLOADSTATE_LOADING=2,t.DELAYLOADSTATE_NOTLOADED=4,t.NEVER=512,t.ALWAYS=519,t.LESS=513,t.EQUAL=514,t.LEQUAL=515,t.GREATER=516,t.GEQUAL=518,t.NOTEQUAL=517,t.KEEP=7680,t.ZERO=0,t.REPLACE=7681,t.INCR=7682,t.DECR=7683,t.INVERT=5386,t.INCR_WRAP=34055,t.DECR_WRAP=34056,t.TEXTURE_CLAMP_ADDRESSMODE=0,t.TEXTURE_WRAP_ADDRESSMODE=1,t.TEXTURE_MIRROR_ADDRESSMODE=2,t.TEXTURE_REPETITION_NONE=0,t.TEXTURE_REPETITION_NOISE_BLEND=1,t.TEXTURE_REPETITION_HEX_TILING=2,t.TEXTURE_REPETITION_TILE_RANDOMIZATION=3,t.TEXTURE_REPETITION_VORONOI_BOMBING=4,t.TEXTURE_CREATIONFLAG_STORAGE=1,t.TEXTUREFORMAT_ALPHA=0,t.TEXTUREFORMAT_LUMINANCE=1,t.TEXTUREFORMAT_LUMINANCE_ALPHA=2,t.TEXTUREFORMAT_RGB=4,t.TEXTUREFORMAT_RGBA=5,t.TEXTUREFORMAT_RED=6,t.TEXTUREFORMAT_R=6,t.TEXTUREFORMAT_R16_UNORM=33322,t.TEXTUREFORMAT_RG16_UNORM=33324,t.TEXTUREFORMAT_RGB16_UNORM=32852,t.TEXTUREFORMAT_RGBA16_UNORM=32859,t.TEXTUREFORMAT_R16_SNORM=36760,t.TEXTUREFORMAT_RG16_SNORM=36761,t.TEXTUREFORMAT_RGB16_SNORM=36762,t.TEXTUREFORMAT_RGBA16_SNORM=36763,t.TEXTUREFORMAT_RG=7,t.TEXTUREFORMAT_RED_INTEGER=8,t.TEXTUREFORMAT_R_INTEGER=8,t.TEXTUREFORMAT_RG_INTEGER=9,t.TEXTUREFORMAT_RGB_INTEGER=10,t.TEXTUREFORMAT_RGBA_INTEGER=11,t.TEXTUREFORMAT_BGRA=12,t.TEXTUREFORMAT_DEPTH24_STENCIL8=13,t.TEXTUREFORMAT_DEPTH32_FLOAT=14,t.TEXTUREFORMAT_DEPTH16=15,t.TEXTUREFORMAT_DEPTH24=16,t.TEXTUREFORMAT_DEPTH24UNORM_STENCIL8=17,t.TEXTUREFORMAT_DEPTH32FLOAT_STENCIL8=18,t.TEXTUREFORMAT_STENCIL8=19,t.TEXTUREFORMAT_UNDEFINED=0xffffffff,t.TEXTUREFORMAT_COMPRESSED_RGBA_BPTC_UNORM=36492,t.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_BPTC_UNORM=36493,t.TEXTUREFORMAT_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT=36495,t.TEXTUREFORMAT_COMPRESSED_RGB_BPTC_SIGNED_FLOAT=36494,t.TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT5=33779,t.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919,t.TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT3=33778,t.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918,t.TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT1=33777,t.TEXTUREFORMAT_COMPRESSED_RGB_S3TC_DXT1=33776,t.TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917,t.TEXTUREFORMAT_COMPRESSED_SRGB_S3TC_DXT1_EXT=35916,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_4x4=37808,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_5x4=37809,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_5x5=37810,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_6x5=37811,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_6x6=37812,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_8x5=37813,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_8x6=37814,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_8x8=37815,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_10x5=37816,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_10x6=37817,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_10x8=37818,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_10x10=37819,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_12x10=37820,t.TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_12x12=37821,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR=37840,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR=37841,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR=37842,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR=37843,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR=37844,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR=37845,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR=37846,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR=37847,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR=37848,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR=37849,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR=37850,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR=37851,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR=37852,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR=37853,t.TEXTUREFORMAT_COMPRESSED_RGB_ETC1_WEBGL=36196,t.TEXTUREFORMAT_COMPRESSED_RGB8_ETC2=37492,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ETC2=37493,t.TEXTUREFORMAT_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494,t.TEXTUREFORMAT_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495,t.TEXTUREFORMAT_COMPRESSED_RGBA8_ETC2_EAC=37496,t.TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497,t.TEXTURETYPE_UNSIGNED_BYTE=0,t.TEXTURETYPE_UNSIGNED_INT=0,t.TEXTURETYPE_FLOAT=1,t.TEXTURETYPE_HALF_FLOAT=2,t.TEXTURETYPE_BYTE=3,t.TEXTURETYPE_SHORT=4,t.TEXTURETYPE_UNSIGNED_SHORT=5,t.TEXTURETYPE_INT=6,t.TEXTURETYPE_UNSIGNED_INTEGER=7,t.TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4=8,t.TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1=9,t.TEXTURETYPE_UNSIGNED_SHORT_5_6_5=10,t.TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV=11,t.TEXTURETYPE_UNSIGNED_INT_24_8=12,t.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV=13,t.TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV=14,t.TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV=15,t.TEXTURETYPE_UNDEFINED=16,t.TEXTURE_2D=3553,t.TEXTURE_2D_ARRAY=35866,t.TEXTURE_CUBE_MAP=34067,t.TEXTURE_CUBE_MAP_ARRAY=0xdeadbeef,t.TEXTURE_3D=32879,t.TEXTURE_NEAREST_SAMPLINGMODE=1,t.TEXTURE_NEAREST_NEAREST=1,t.TEXTURE_BILINEAR_SAMPLINGMODE=2,t.TEXTURE_LINEAR_LINEAR=2,t.TEXTURE_TRILINEAR_SAMPLINGMODE=3,t.TEXTURE_LINEAR_LINEAR_MIPLINEAR=3,t.TEXTURE_NEAREST_NEAREST_MIPNEAREST=4,t.TEXTURE_NEAREST_LINEAR_MIPNEAREST=5,t.TEXTURE_NEAREST_LINEAR_MIPLINEAR=6,t.TEXTURE_NEAREST_LINEAR=7,t.TEXTURE_NEAREST_NEAREST_MIPLINEAR=8,t.TEXTURE_LINEAR_NEAREST_MIPNEAREST=9,t.TEXTURE_LINEAR_NEAREST_MIPLINEAR=10,t.TEXTURE_LINEAR_LINEAR_MIPNEAREST=11,t.TEXTURE_LINEAR_NEAREST=12,t.TEXTURE_EXPLICIT_MODE=0,t.TEXTURE_SPHERICAL_MODE=1,t.TEXTURE_PLANAR_MODE=2,t.TEXTURE_CUBIC_MODE=3,t.TEXTURE_PROJECTION_MODE=4,t.TEXTURE_SKYBOX_MODE=5,t.TEXTURE_INVCUBIC_MODE=6,t.TEXTURE_EQUIRECTANGULAR_MODE=7,t.TEXTURE_FIXED_EQUIRECTANGULAR_MODE=8,t.TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,t.TEXTURE_FILTERING_QUALITY_OFFLINE=4096,t.TEXTURE_FILTERING_QUALITY_HIGH=64,t.TEXTURE_FILTERING_QUALITY_MEDIUM=16,t.TEXTURE_FILTERING_QUALITY_LOW=8,t.SCALEMODE_FLOOR=1,t.SCALEMODE_NEAREST=2,t.SCALEMODE_CEILING=3,t.MATERIAL_TextureDirtyFlag=1,t.MATERIAL_LightDirtyFlag=2,t.MATERIAL_FresnelDirtyFlag=4,t.MATERIAL_AttributesDirtyFlag=8,t.MATERIAL_MiscDirtyFlag=16,t.MATERIAL_PrePassDirtyFlag=32,t.MATERIAL_ImageProcessingDirtyFlag=64,t.MATERIAL_AllDirtyFlag=127,t.MATERIAL_TriangleFillMode=0,t.MATERIAL_WireFrameFillMode=1,t.MATERIAL_PointFillMode=2,t.MATERIAL_PointListDrawMode=3,t.MATERIAL_LineListDrawMode=4,t.MATERIAL_LineLoopDrawMode=5,t.MATERIAL_LineStripDrawMode=6,t.MATERIAL_TriangleStripDrawMode=7,t.MATERIAL_TriangleFanDrawMode=8,t.MATERIAL_ClockWiseSideOrientation=0,t.MATERIAL_CounterClockWiseSideOrientation=1,t.MATERIAL_DIFFUSE_MODEL_E_OREN_NAYAR=0,t.MATERIAL_DIFFUSE_MODEL_BURLEY=1,t.MATERIAL_DIFFUSE_MODEL_LAMBERT=2,t.MATERIAL_DIFFUSE_MODEL_LEGACY=3,t.MATERIAL_DIELECTRIC_SPECULAR_MODEL_GLTF=0,t.MATERIAL_DIELECTRIC_SPECULAR_MODEL_OPENPBR=1,t.MATERIAL_CONDUCTOR_SPECULAR_MODEL_GLTF=0,t.MATERIAL_CONDUCTOR_SPECULAR_MODEL_OPENPBR=1,t.ACTION_NothingTrigger=0,t.ACTION_OnPickTrigger=1,t.ACTION_OnLeftPickTrigger=2,t.ACTION_OnRightPickTrigger=3,t.ACTION_OnCenterPickTrigger=4,t.ACTION_OnPickDownTrigger=5,t.ACTION_OnDoublePickTrigger=6,t.ACTION_OnPickUpTrigger=7,t.ACTION_OnPickOutTrigger=16,t.ACTION_OnLongPressTrigger=8,t.ACTION_OnPointerOverTrigger=9,t.ACTION_OnPointerOutTrigger=10,t.ACTION_OnEveryFrameTrigger=11,t.ACTION_OnIntersectionEnterTrigger=12,t.ACTION_OnIntersectionExitTrigger=13,t.ACTION_OnKeyDownTrigger=14,t.ACTION_OnKeyUpTrigger=15,t.PARTICLES_BILLBOARDMODE_Y=2,t.PARTICLES_BILLBOARDMODE_ALL=7,t.PARTICLES_BILLBOARDMODE_STRETCHED=8,t.PARTICLES_BILLBOARDMODE_STRETCHED_LOCAL=9,t.MESHES_CULLINGSTRATEGY_STANDARD=0,t.MESHES_CULLINGSTRATEGY_BOUNDINGSPHERE_ONLY=1,t.MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION=2,t.MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION_THEN_BSPHERE_ONLY=3,t.SCENELOADER_NO_LOGGING=0,t.SCENELOADER_MINIMAL_LOGGING=1,t.SCENELOADER_SUMMARY_LOGGING=2,t.SCENELOADER_DETAILED_LOGGING=3,t.PREPASS_IRRADIANCE_LEGACY_TEXTURE_TYPE=0,t.PREPASS_POSITION_TEXTURE_TYPE=1,t.PREPASS_VELOCITY_TEXTURE_TYPE=2,t.PREPASS_REFLECTIVITY_TEXTURE_TYPE=3,t.PREPASS_COLOR_TEXTURE_TYPE=4,t.PREPASS_DEPTH_TEXTURE_TYPE=5,t.PREPASS_NORMAL_TEXTURE_TYPE=6,t.PREPASS_ALBEDO_SQRT_TEXTURE_TYPE=7,t.PREPASS_WORLD_NORMAL_TEXTURE_TYPE=8,t.PREPASS_LOCAL_POSITION_TEXTURE_TYPE=9,t.PREPASS_SCREENSPACE_DEPTH_TEXTURE_TYPE=10,t.PREPASS_VELOCITY_LINEAR_TEXTURE_TYPE=11,t.PREPASS_ALBEDO_TEXTURE_TYPE=12,t.PREPASS_NORMALIZED_VIEW_DEPTH_TEXTURE_TYPE=13,t.PREPASS_IRRADIANCE_TEXTURE_TYPE=14,t.BUFFER_CREATIONFLAG_READ=1,t.BUFFER_CREATIONFLAG_WRITE=2,t.BUFFER_CREATIONFLAG_READWRITE=3,t.BUFFER_CREATIONFLAG_UNIFORM=4,t.BUFFER_CREATIONFLAG_VERTEX=8,t.BUFFER_CREATIONFLAG_INDEX=16,t.BUFFER_CREATIONFLAG_STORAGE=32,t.BUFFER_CREATIONFLAG_INDIRECT=64,t.RENDERPASS_MAIN=0,t.INPUT_ALT_KEY=18,t.INPUT_CTRL_KEY=17,t.INPUT_META_KEY1=91,t.INPUT_META_KEY2=92,t.INPUT_META_KEY3=93,t.INPUT_SHIFT_KEY=16,t.SNAPSHOTRENDERING_STANDARD=0,t.SNAPSHOTRENDERING_FAST=1,t.PERSPECTIVE_CAMERA=0,t.ORTHOGRAPHIC_CAMERA=1,t.FOVMODE_VERTICAL_FIXED=0,t.FOVMODE_HORIZONTAL_FIXED=1,t.RIG_MODE_NONE=0,t.RIG_MODE_STEREOSCOPIC_ANAGLYPH=10,t.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL=11,t.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED=12,t.RIG_MODE_STEREOSCOPIC_OVERUNDER=13,t.RIG_MODE_STEREOSCOPIC_INTERLACED=14,t.RIG_MODE_VR=20,t.RIG_MODE_CUSTOM=22,t.MAX_SUPPORTED_UV_SETS=6,t.GL_ALPHA_EQUATION_ADD=32774,t.GL_ALPHA_EQUATION_MIN=32775,t.GL_ALPHA_EQUATION_MAX=32776,t.GL_ALPHA_EQUATION_SUBTRACT=32778,t.GL_ALPHA_EQUATION_REVERSE_SUBTRACT=32779,t.GL_ALPHA_FUNCTION_SRC=768,t.GL_ALPHA_FUNCTION_ONE_MINUS_SRC_COLOR=769,t.GL_ALPHA_FUNCTION_SRC_ALPHA=770,t.GL_ALPHA_FUNCTION_ONE_MINUS_SRC_ALPHA=771,t.GL_ALPHA_FUNCTION_DST_ALPHA=772,t.GL_ALPHA_FUNCTION_ONE_MINUS_DST_ALPHA=773,t.GL_ALPHA_FUNCTION_DST_COLOR=774,t.GL_ALPHA_FUNCTION_ONE_MINUS_DST_COLOR=775,t.GL_ALPHA_FUNCTION_SRC_ALPHA_SATURATED=776,t.GL_ALPHA_FUNCTION_CONSTANT_COLOR=32769,t.GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_COLOR=32770,t.GL_ALPHA_FUNCTION_CONSTANT_ALPHA=32771,t.GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_ALPHA=32772,t.GL_ALPHA_FUNCTION_SRC1_COLOR=35065,t.GL_ALPHA_FUNCTION_ONE_MINUS_SRC1_COLOR=35066,t.GL_ALPHA_FUNCTION_SRC1_ALPHA=34185,t.GL_ALPHA_FUNCTION_ONE_MINUS_SRC1_ALPHA=35067,t.SnippetUrl="https://snippet.babylonjs.com",t.FOGMODE_NONE=0,t.FOGMODE_EXP=1,t.FOGMODE_EXP2=2,t.FOGMODE_LINEAR=3,t.BYTE=5120,t.UNSIGNED_BYTE=5121,t.SHORT=5122,t.UNSIGNED_SHORT=5123,t.INT=5124,t.UNSIGNED_INT=5125,t.FLOAT=5126,t.HALF_FLOAT=5131,t.PositionKind="position",t.NormalKind="normal",t.TangentKind="tangent",t.UVKind="uv",t.UV2Kind="uv2",t.UV3Kind="uv3",t.UV4Kind="uv4",t.UV5Kind="uv5",t.UV6Kind="uv6",t.ColorKind="color",t.ColorInstanceKind="instanceColor",t.MatricesIndicesKind="matricesIndices",t.MatricesWeightsKind="matricesWeights",t.MatricesIndicesExtraKind="matricesIndicesExtra",t.MatricesWeightsExtraKind="matricesWeightsExtra",t.ANIMATIONTYPE_FLOAT=0,t.ANIMATIONTYPE_VECTOR3=1,t.ANIMATIONTYPE_QUATERNION=2,t.ANIMATIONTYPE_MATRIX=3,t.ANIMATIONTYPE_COLOR3=4,t.ANIMATIONTYPE_COLOR4=7,t.ANIMATIONTYPE_VECTOR2=5,t.ANIMATIONTYPE_SIZE=6,t.ShadowMinZ=0,t.ShadowMaxZ=1e4,t.OUTLINELAYER_SAMPLING_TRIDIRECTIONAL=0,t.OUTLINELAYER_SAMPLING_OCTADIRECTIONAL=1,e.s(["Constants",0,t])},97968,e=>{"use strict";var t=e.i(42580),_=e.i(40984),E=e.i(95410);e.s(["PBRMaterialLoadingAdapter",0,class{constructor(e){this._specWorkflow=!1,this._material=e,this._material.enableSpecularAntiAliasing=!0}get material(){return this._material}async finalizeAsync(e){}get isUnlit(){return this._material.unlit}set isUnlit(e){this._material.unlit=e}set backFaceCulling(e){this._material.backFaceCulling=e}get backFaceCulling(){return this._material.backFaceCulling}set twoSidedLighting(e){this._material.twoSidedLighting=e}get twoSidedLighting(){return this._material.twoSidedLighting}set alphaCutOff(e){this._material.alphaCutOff=e}get alphaCutOff(){return this._material.alphaCutOff}set useAlphaFromBaseColorTexture(e){this._material.useAlphaFromAlbedoTexture=e}get useAlphaFromBaseColorTexture(){return this._material.useAlphaFromAlbedoTexture}get transparencyAsAlphaCoverage(){return this._material.useRadianceOverAlpha||this._material.useSpecularOverAlpha}set transparencyAsAlphaCoverage(e){this._material.useRadianceOverAlpha=!e,this._material.useSpecularOverAlpha=!e}set baseColor(e){this._material.albedoColor=e}get baseColor(){return this._material.albedoColor}set baseColorTexture(e){this._material.albedoTexture=e}get baseColorTexture(){return this._material.albedoTexture}set baseDiffuseRoughness(e){this._material.baseDiffuseRoughness=e,e>0&&(this._material.brdf.baseDiffuseModel=_.Constants.MATERIAL_DIFFUSE_MODEL_E_OREN_NAYAR)}get baseDiffuseRoughness(){return this._material.baseDiffuseRoughness??0}set baseDiffuseRoughnessTexture(e){this._material.baseDiffuseRoughnessTexture=e}get baseDiffuseRoughnessTexture(){return this._material.baseDiffuseRoughnessTexture}set baseMetalness(e){this._material.metallic=e}get baseMetalness(){return this._material.metallic??1}set baseMetalnessTexture(e){this._material.metallicTexture=e}get baseMetalnessTexture(){return this._material.metallicTexture}set useRoughnessFromMetallicTextureGreen(e){this._material.useRoughnessFromMetallicTextureGreen=e,this._material.useRoughnessFromMetallicTextureAlpha=!e}set useMetallicFromMetallicTextureBlue(e){this._material.useMetallnessFromMetallicTextureBlue=e}enableSpecularEdgeColor(e=!1){e&&(this._material.brdf.dielectricSpecularModel=_.Constants.MATERIAL_DIELECTRIC_SPECULAR_MODEL_OPENPBR,this._material.brdf.conductorSpecularModel=_.Constants.MATERIAL_CONDUCTOR_SPECULAR_MODEL_OPENPBR)}configureSpecularGlossiness(){this._specWorkflow=!0,this._material.metallic=null,this._material.roughness=null,this._material.useMicroSurfaceFromReflectivityMapAlpha=!0}set specularWeight(e){this._material.metallicF0Factor=e}get specularWeight(){return this._material.metallicF0Factor??1}set specularWeightTexture(e){e?(this._material.metallicReflectanceTexture=e,this._material.useOnlyMetallicFromMetallicReflectanceTexture=!0):(this._material.metallicReflectanceTexture=null,this._material.useOnlyMetallicFromMetallicReflectanceTexture=!1)}get specularWeightTexture(){return this._material.metallicReflectanceTexture}set specularColor(e){this._specWorkflow?this._material.reflectivityColor=e:this._material.metallicReflectanceColor=e}get specularColor(){return this._specWorkflow?this._material.reflectivityColor:this._material.metallicReflectanceColor}set specularColorTexture(e){this._specWorkflow?(this._material.reflectivityTexture=e,this._material.reflectivityTexture&&(this._material.reflectivityTexture.hasAlpha=!0)):this._material.reflectanceTexture=e}get specularColorTexture(){return this._specWorkflow?this._material.reflectivityTexture:this._material.reflectanceTexture}set specularRoughness(e){this._material.roughness=e}get specularRoughness(){return this._material.roughness??1}set specularRoughnessTexture(e){this.baseMetalnessTexture||(this._material.metallicTexture=e)}get specularRoughnessTexture(){return this._material.metallicTexture}set specularIor(e){this._material.indexOfRefraction=e}get specularIor(){return this._material.indexOfRefraction}get glossiness(){return this._material.microSurface??1}set glossiness(e){this._material.microSurface=e}set emissionColor(e){this._material.emissiveColor=e}get emissionColor(){return this._material.emissiveColor}set emissionLuminance(e){this._material.emissiveIntensity=e}get emissionLuminance(){return this._material.emissiveIntensity}set emissionColorTexture(e){this._material.emissiveTexture=e}get emissionColorTexture(){return this._material.emissiveTexture}set ambientOcclusionTexture(e){this._material.ambientTexture=e,e&&(this._material.useAmbientInGrayScale=!0)}get ambientOcclusionTexture(){return this._material.ambientTexture}set ambientOcclusionTextureStrength(e){this._material.ambientTextureStrength=e}get ambientOcclusionTextureStrength(){return this._material.ambientTextureStrength??1}configureCoat(){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.useRoughnessFromMainTexture=!1,this._material.clearCoat.remapF0OnInterfaceChange=!1}set coatWeight(e){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.intensity=e}get coatWeight(){return this._material.clearCoat.intensity}set coatWeightTexture(e){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.texture=e}get coatWeightTexture(){return this._material.clearCoat.texture}set coatColor(e){this._material.clearCoat.isTintEnabled=e!=t.Color3.White(),this._material.clearCoat.tintColor=e}set coatColorTexture(e){this._material.clearCoat.tintTexture=e}set coatRoughness(e){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.roughness=e}get coatRoughness(){return this._material.clearCoat.roughness??0}set coatRoughnessTexture(e){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.useRoughnessFromMainTexture=!1,this._material.clearCoat.textureRoughness=e}get coatRoughnessTexture(){return this._material.clearCoat.textureRoughness}set coatIor(e){this._material.clearCoat.indexOfRefraction=e}set coatDarkening(e){}set coatDarkeningTexture(e){}set coatRoughnessAnisotropy(e){}get coatRoughnessAnisotropy(){return 0}set geometryCoatTangentAngle(e){}set geometryCoatTangentTexture(e){}get geometryCoatTangentTexture(){return null}set transmissionWeight(e){this._material.subSurface.isRefractionEnabled=e>0,this._material.subSurface.refractionIntensity=e}get transmissionWeight(){return this._material.subSurface.isRefractionEnabled?this._material.subSurface.refractionIntensity:0}set transmissionWeightTexture(e){this._material.subSurface.isRefractionEnabled=!0,this._material.subSurface.refractionIntensityTexture=e,this._material.subSurface.useGltfStyleTextures=!0}set transmissionDepth(e){this.transmissionWeight>0?this._material.subSurface.tintColorAtDistance=e:this.subsurfaceWeight>0&&this._material.subSurface.diffusionDistance.multiplyInPlace(new t.Color3(e,e,e))}get transmissionDepth(){return this.transmissionWeight>0?this._material.subSurface.tintColorAtDistance:0}set transmissionColor(e){this.transmissionWeight>0?this._material.subSurface.tintColor=e:this.subsurfaceWeight>0&&this._material.subSurface.diffusionDistance.multiplyInPlace(e)}get transmissionColor(){return this.transmissionWeight>0?this._material.subSurface.tintColor:this.subsurfaceWeight>0?this._material.subSurface.diffusionDistance:new t.Color3(0,0,0)}set transmissionScatter(e){this._material.subSurface.diffusionDistance=e}get transmissionScatter(){return this._material.subSurface.diffusionDistance}set transmissionScatterTexture(e){}set transmissionScatterAnisotropy(e){}set transmissionDispersionAbbeNumber(e){}set transmissionDispersionScale(e){e>0?(this._material.subSurface.isDispersionEnabled=!0,this._material.subSurface.dispersion=20/e):(this._material.subSurface.isDispersionEnabled=!1,this._material.subSurface.dispersion=0)}get refractionBackgroundTexture(){return this._material.subSurface.refractionTexture}set refractionBackgroundTexture(e){this._material.subSurface.refractionTexture=e}configureTransmission(){this._material.subSurface.volumeIndexOfRefraction=1,this._material.subSurface.useAlbedoToTintRefraction=!0,this._material.subSurface.minimumThickness=0,this._material.subSurface.maximumThickness=0}configureVolume(){}set geometryThinWalled(e){}get geometryThinWalled(){return 0===this._material.subSurface.maximumThickness}set volumeThicknessTexture(e){this._material.subSurface.thicknessTexture=e,this._material.subSurface.useGltfStyleTextures=!0}set volumeThickness(e){this._material.subSurface.minimumThickness=0,this._material.subSurface.maximumThickness=e,this._material.subSurface.useThicknessAsDepth=!0,e>0&&(this._material.subSurface.volumeIndexOfRefraction=this._material.indexOfRefraction)}configureSubsurface(){this._material.subSurface.useGltfStyleTextures=!0,this._material.subSurface.volumeIndexOfRefraction=1,this._material.subSurface.minimumThickness=0,this._material.subSurface.maximumThickness=0,this._material.subSurface.useAlbedoToTintTranslucency=!1}set subsurfaceWeight(e){this._material.subSurface.isTranslucencyEnabled=e>0,this._material.subSurface.translucencyIntensity=e}get subsurfaceWeight(){return this._material.subSurface.isTranslucencyEnabled?this._material.subSurface.translucencyIntensity:0}set subsurfaceWeightTexture(e){this._material.subSurface.translucencyIntensityTexture=e}set subsurfaceColor(e){let _=new E.Vector3(-Math.log(this.transmissionColor.r),-Math.log(this.transmissionColor.g),-Math.log(this.transmissionColor.b));_.scaleInPlace(1/Math.max(this.transmissionDepth,.001));let T=Math.max(_.x,Math.max(_.y,_.z)),i=T>0?1/T:1;this._material.subSurface.diffusionDistance=new t.Color3(Math.exp(-_.x*i),Math.exp(-_.y*i),Math.exp(-_.z*i))}set subsurfaceColorTexture(e){}set diffuseTransmissionTint(e){this._material.subSurface.tintColor=e}get diffuseTransmissionTint(){return this._material.subSurface.tintColor}set diffuseTransmissionTintTexture(e){this._material.subSurface.translucencyColorTexture=e}get subsurfaceRadius(){return 1}set subsurfaceRadius(e){}get subsurfaceRadiusScale(){return this._material.subSurface.scatteringDiffusionProfile??t.Color3.White()}set subsurfaceRadiusScale(e){this._material.subSurface.scatteringDiffusionProfile=e}set subsurfaceScatterAnisotropy(e){}isTranslucent(){return this.transmissionWeight>0||this.subsurfaceWeight>0}configureFuzz(){this._material.sheen.isEnabled=!0,this._material.sheen.useRoughnessFromMainTexture=!1,this._material.sheen.albedoScaling=!0}set fuzzWeight(e){this._material.sheen.isEnabled=!0,this._material.sheen.intensity=e}set fuzzWeightTexture(e){this._material.sheen.texture||(this._material.sheen.texture=e)}set fuzzColor(e){this._material.sheen.isEnabled=!0,this._material.sheen.color=e}set fuzzColorTexture(e){this._material.sheen.texture=e}set fuzzRoughness(e){this._material.sheen.isEnabled=!0,this._material.sheen.roughness=e}set fuzzRoughnessTexture(e){this._material.sheen.isEnabled=!0,this._material.sheen.textureRoughness=e}set specularRoughnessAnisotropy(e){this._material.anisotropy.isEnabled=!0,this._material.anisotropy.intensity=e}get specularRoughnessAnisotropy(){return this._material.anisotropy.intensity}set geometryTangentAngle(e){this._material.anisotropy.isEnabled=!0,this._material.anisotropy.angle=e}set geometryTangentTexture(e){this._material.anisotropy.isEnabled=!0,this._material.anisotropy.texture=e}get geometryTangentTexture(){return this._material.anisotropy.texture}configureGltfStyleAnisotropy(e=!0){}set thinFilmWeight(e){this._material.iridescence.isEnabled=e>0,this._material.iridescence.intensity=e}set thinFilmIor(e){this._material.iridescence.indexOfRefraction=e}set thinFilmThicknessMinimum(e){this._material.iridescence.minimumThickness=e}set thinFilmThicknessMaximum(e){this._material.iridescence.maximumThickness=e}set thinFilmWeightTexture(e){this._material.iridescence.texture=e}set thinFilmThicknessTexture(e){this._material.iridescence.thicknessTexture=e}set unlit(e){this._material.unlit=e}set geometryOpacity(e){this._material.alpha=e}get geometryOpacity(){return this._material.alpha}set geometryNormalTexture(e){this._material.bumpTexture=e,this._material.forceIrradianceInFragment=!0}get geometryNormalTexture(){return this._material.bumpTexture}setNormalMapInversions(e,t){this._material.invertNormalMapX=e,this._material.invertNormalMapY=t}set geometryCoatNormalTexture(e){this._material.clearCoat.isEnabled=!0,this._material.clearCoat.bumpTexture=e}get geometryCoatNormalTexture(){return this._material.clearCoat.bumpTexture}set geometryCoatNormalTextureScale(e){this._material.clearCoat.bumpTexture&&(this._material.clearCoat.bumpTexture.level=e)}}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30280,e=>{"use strict";var t=e.i(85830),s=e.i(37068),i=e.i(19434),a=e.i(30302),l=e.i(92943),r=e.i(38116);class u extends s.FlowGraphBlock{constructor(e){super(e),this.config=e,this.type=this.registerDataInput("type",i.RichTypeAny,e.type),this.value=this.registerDataOutput("value",i.RichTypeAny),this.index=this.registerDataInput("index",i.RichTypeAny,new a.FlowGraphInteger((0,l.getNumericValue)(e.index??-1)))}_updateOutputs(e){let s=this.type.getValue(e),i=this.index.getValue(e),a=(0,t.GetFlowGraphAssetWithType)(e.assetsContext,s,(0,l.getNumericValue)(i),this.config.useIndexAsUniqueId);this.value.setValue(a,e)}getClassName(){return"FlowGraphGetAssetBlock"}}let o=!1;function h(){o||(o=!0,(0,r.RegisterClass)("FlowGraphGetAssetBlock",u))}e.s(["FlowGraphGetAssetBlock",0,u,"RegisterFlowGraphGetAssetBlock",0,h],98366),h(),e.s([],81358),e.i(81358),e.i(98366),e.s(["FlowGraphGetAssetBlock",0,u],30280)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31392,e=>{"use strict";var t=e.i(71502),r=e.i(19434),s=e.i(92943),i=e.i(38116);class n extends t.FlowGraphEventBlock{constructor(e){super(e),this.type="PointerOver",this.pointerId=this.registerDataOutput("pointerId",r.RichTypeNumber),this.targetMesh=this.registerDataInput("targetMesh",r.RichTypeAny,e?.targetMesh),this.meshUnderPointer=this.registerDataOutput("meshUnderPointer",r.RichTypeAny)}_executeEvent(e,t){let r=this.targetMesh.getValue(e);this.meshUnderPointer.setValue(t.mesh,e);let i=t.out&&(0,s._IsDescendantOf)(t.out,r);return this.pointerId.setValue(t.pointerId,e),!(!i&&(t.mesh===r||(0,s._IsDescendantOf)(t.mesh,r)))||(this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerOverEventBlock"}}let o=!1;function a(){o||(o=!0,(0,i.RegisterClass)("FlowGraphPointerOverEventBlock",n))}e.s(["FlowGraphPointerOverEventBlock",0,n,"RegisterFlowGraphPointerOverEventBlock",0,a],66109),a(),e.s([],17468),e.i(17468),e.i(66109),e.s(["FlowGraphPointerOverEventBlock",0,n],31392)}]);
|