@uptimizr/dashboard 0.3.0 → 0.3.2
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 +4 -4
- package/out/__next._full.txt +11 -11
- package/out/__next._head.txt +4 -4
- package/out/__next._index.txt +4 -4
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
- package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
- package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
- package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
- package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
- package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
- package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
- package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
- package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
- package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
- package/out/_next/static/chunks/06m_64ysu9kn0.js +1 -0
- package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
- package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
- package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
- package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
- package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
- package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
- package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
- package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
- package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
- package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
- package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
- package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
- package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
- package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
- package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
- package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
- package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
- package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
- package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
- package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
- package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
- package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
- package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
- package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
- package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
- package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
- package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
- package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
- package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
- package/out/_next/static/chunks/0msckddycfy76.js +1 -0
- package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
- package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
- package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
- package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
- package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
- package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
- package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
- package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
- package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
- package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
- package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
- package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
- package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
- package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
- package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
- package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
- package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
- package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
- package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
- package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
- package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
- package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
- package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
- package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
- package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
- package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
- package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
- package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
- package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
- package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
- package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
- package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
- package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
- package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
- package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
- package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
- package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
- package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
- package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
- package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
- package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
- package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
- package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
- package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
- package/out/_next/static/chunks/1fa265388524p.js +1 -0
- package/out/_next/static/chunks/1fruncg3k-3pu.js +3 -0
- package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
- package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
- package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
- package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
- package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
- package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
- package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
- package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
- package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
- package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
- package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
- package/out/_next/static/chunks/1par9m038tiov.js +1 -0
- package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
- package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
- package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
- package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
- package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
- package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
- package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
- package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
- package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
- package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
- package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
- package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
- package/out/_next/static/chunks/224_scesvd739.js +1 -0
- package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
- package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
- package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
- package/out/_next/static/chunks/24cqjhy669845.js +1 -0
- package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
- package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
- package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
- package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
- package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
- package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
- package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
- package/out/_next/static/chunks/2_hgfg-cjqw1-.js +1 -0
- package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
- package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
- package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
- package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
- package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
- package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
- package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
- package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
- package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
- package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
- package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
- package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
- package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
- package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
- package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
- package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
- package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
- package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
- package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
- package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
- package/out/_next/static/chunks/2ktxjmx03u9l3.js +1 -0
- package/out/_next/static/chunks/2kw33jl_i9o5j.css +3 -0
- package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
- package/out/_next/static/chunks/{42k2-4_2hrg6u.js → 2mleh3pbge181.js} +1 -1
- package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
- package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
- package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
- package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
- package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
- package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
- package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
- package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
- package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
- package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
- package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
- package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
- package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
- package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
- package/out/_next/static/chunks/30363ptka3vzy.js +1 -0
- package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
- package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
- package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
- package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
- package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
- package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
- package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
- package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
- package/out/_next/static/chunks/39ojyykom0z2r.js +1 -0
- package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
- package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
- package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
- package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
- package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
- package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
- package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
- package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
- package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
- package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
- package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
- package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
- package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
- package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
- package/out/_next/static/chunks/3jha6wlqw8459.js +1 -0
- package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
- package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
- package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
- package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
- package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
- package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
- package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
- package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
- package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
- package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
- package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
- package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
- package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
- package/out/_next/static/chunks/3wqs57qehored.js +1 -0
- package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
- package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
- package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
- package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
- package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
- package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
- package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
- package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
- package/out/_not-found/__next._full.txt +9 -9
- package/out/_not-found/__next._head.txt +4 -4
- package/out/_not-found/__next._index.txt +4 -4
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +9 -9
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +8 -8
- package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
- package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
- package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
- package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
- package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
- package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
- package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
- package/out/_next/static/chunks/0927l-ygd5c8d.js +0 -1
- package/out/_next/static/chunks/09510356f0lad.js +0 -1
- package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
- package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
- package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
- package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
- package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
- package/out/_next/static/chunks/0g_v2zswo4l6f.js +0 -1
- package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
- package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
- package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
- package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
- package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
- package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
- package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
- package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
- package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
- package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
- package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
- package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
- package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
- package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
- package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
- package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
- package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
- package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
- package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
- package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
- package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
- package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
- package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
- package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
- package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
- package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
- package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
- package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
- package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
- package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
- package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
- package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
- package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
- package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
- package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
- package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
- package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
- package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
- package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
- package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
- package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
- package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
- package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
- package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
- package/out/_next/static/chunks/1tta1a064979p.js +0 -1
- package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
- package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
- package/out/_next/static/chunks/1vuq3dos1406d.css +0 -3
- package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
- package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
- package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
- package/out/_next/static/chunks/2-qo2o1_fmpy-.js +0 -3
- package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
- package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
- package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
- package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
- package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
- package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
- package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
- package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
- package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
- package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
- package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
- package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
- package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
- package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
- package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
- package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
- package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
- package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
- package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
- package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
- package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
- package/out/_next/static/chunks/2r3ct6se2qn8z.js +0 -1
- package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
- package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
- package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
- package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
- package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
- package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
- package/out/_next/static/chunks/2x-00glogc485.js +0 -1
- package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
- package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
- package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
- package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
- package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
- package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
- package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
- package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
- package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
- package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
- package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
- package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
- package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
- package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
- package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
- package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
- package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
- package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
- package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
- package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
- package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
- package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
- package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
- package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
- package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
- package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
- package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
- package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
- package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
- package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
- package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
- package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
- package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
- package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
- package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_buildManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56771,e=>{"use strict";var t=e.i(16147),s=e.i(40220),r=e.i(816),i=e.i(75053),a=e.i(66052),n=e.i(67374),o=e.i(52344),l=e.i(95397),u=e.i(90551),h=e.i(57970),_=e.i(20193),T=e.i(4760),c=e.i(69858),d=e.i(72014),p=e.i(65703),m=e.i(48004),g=e.i(68069),f=e.i(47044),R=e.i(83464),A=e.i(33987),E=e.i(88955);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(10534),y=e.i(75613),M=e.i(93565),I=e.i(95294),C=e.i(29711),F=e.i(74040);class b 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),!this.isSupported)return void this.dispose();this._textureNames=a;const _=[],T=[],c=[],d=[],p=[],m=[],g=[],f=[];this._initTypes(s,_,T,c,d,p,m,g,f,i);const R=!i||void 0===i.generateDepthBuffer||i.generateDepthBuffer,A=!!i&&void 0!==i.generateStencilBuffer&&i.generateStencilBuffer,E=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:E,formats:d,targetTypes:p,faceIndex:m,layerIndex:g,layerCounts:f,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 L=e.i(54670),P=e.i(56770),O=e.i(93127);class N{constructor(e){this.name=O.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER,this.scene=e}register(){this.scene._gatherRenderTargetsStage.registerStep(O.SceneComponentConstants.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER,this,this._gatherRenderTargets)}rebuild(){}dispose(){}_gatherRenderTargets(e){this.scene._geometryBufferRenderer&&e.push(this.scene._geometryBufferRenderer.getGBuffer())}}let D=!1,v=["diffuseSampler","bumpSampler","reflectivitySampler","albedoSampler","morphTargets","boneSampler","transmissionWeightSampler","subsurfaceWeightSampler","iblShadowSampler"],U=["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 B{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===B.POSITION_TEXTURE_TYPE?(this._positionIndex=t,this._enablePosition=!0):e===B.VELOCITY_TEXTURE_TYPE?(this._velocityIndex=t,this._enableVelocity=!0):e===B.VELOCITY_LINEAR_TEXTURE_TYPE?(this._velocityLinearIndex=t,this._enableVelocityLinear=!0):e===B.REFLECTIVITY_TEXTURE_TYPE?(this._reflectivityIndex=t,this._enableReflectivity=!0):e===B.DEPTH_TEXTURE_TYPE?(this._depthIndex=t,this._enableDepth=!0):e===B.NORMAL_TEXTURE_TYPE?(this._normalIndex=t,this._enableNormal=!0):e===B.SCREENSPACE_DEPTH_TEXTURE_TYPE?(this._screenspaceDepthIndex=t,this._enableScreenspaceDepth=!0):e===B.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 B.POSITION_TEXTURE_TYPE:return this._positionIndex;case B.VELOCITY_TEXTURE_TYPE:return this._velocityIndex;case B.VELOCITY_LINEAR_TEXTURE_TYPE:return this._velocityLinearIndex;case B.REFLECTIVITY_TEXTURE_TYPE:return this._reflectivityIndex;case B.DEPTH_TEXTURE_TYPE:return this._depthIndex;case B.NORMAL_TEXTURE_TYPE:return this._normalIndex;case B.SCREENSPACE_DEPTH_TEXTURE_TYPE:return this._screenspaceDepthIndex;case B.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){D||(D=!0,Object.defineProperty(P.Scene.prototype,"geometryBufferRenderer",{get:function(){return this._geometryBufferRenderer},set:function(e){e&&e.isSupported&&(this._geometryBufferRenderer=e)},enumerable:!0,configurable:!0}),P.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},P.Scene.prototype.disableGeometryBufferRenderer=function(){this._geometryBufferRenderer&&(this._geometryBufferRenderer.dispose(),this._geometryBufferRenderer=null)},e._SceneComponentInitialization=e=>{let t=e._getComponent(O.SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER);t||(t=new N(e),e._addComponent(t))})}(B),B._SceneComponentInitialization(this._scene),this._createRenderTargets()}async _initShaderSourceAsync(){this._scene.getEngine().isWebGPU&&!B.ForceGLSL?(this._shaderLanguage=1,await Promise.all([e.A(62923),e.A(11426)])):await Promise.all([e.A(74517),e.A(12850)]),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)&&f.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:U,samplers:v,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[B.DEPTH_TEXTURE_TYPE])),this._enableNormal&&(this._normalIndex=s,s++,e.push("gBuffer_Normal"),t.push(this._textureTypesAndFormats[B.NORMAL_TEXTURE_TYPE])),this._enablePosition&&(this._positionIndex=s,s++,e.push("gBuffer_Position"),t.push(this._textureTypesAndFormats[B.POSITION_TEXTURE_TYPE])),this._enableVelocity&&(this._velocityIndex=s,s++,e.push("gBuffer_Velocity"),t.push(this._textureTypesAndFormats[B.VELOCITY_TEXTURE_TYPE])),this._enableVelocityLinear&&(this._velocityLinearIndex=s,s++,e.push("gBuffer_VelocityLinear"),t.push(this._textureTypesAndFormats[B.VELOCITY_LINEAR_TEXTURE_TYPE])),this._enableReflectivity&&(this._reflectivityIndex=s,s++,e.push("gBuffer_Reflectivity"),t.push(this._textureTypesAndFormats[B.REFLECTIVITY_TEXTURE_TYPE])),this._enableScreenspaceDepth&&(this._screenspaceDepthIndex=s,s++,e.push("gBuffer_ScreenspaceDepth"),t.push(this._textureTypesAndFormats[B.SCREENSPACE_DEPTH_TEXTURE_TYPE])),this._enableIrradiance&&(this._irradianceIndex=s,s++,e.push("gBuffer_Irradiance"),t.push(this._textureTypesAndFormats[B.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[B.NORMAL_TEXTURE_TYPE]||13===l[B.NORMAL_TEXTURE_TYPE],this._multiRenderTarget=new b("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(_),g=e.buildTextureLayout(c),R=e.buildTextureLayout(p);this._multiRenderTarget.onClearObservable.add(e=>{e.bindAttachments(this.useSpecificClearForDepthTexture?g:m),e.clear(this._clearColor,!0,!0,!0),this.useSpecificClearForDepthTexture&&(e.bindAttachments(R),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 A=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&&f.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++)A(i.data[a]);e.setColorWrite(!0)}for(a=0;a<t.length;a++)A(t.data[a]);for(e.setDepthWrite(!1),a=0;a<s.length;a++)A(s.data[a]);if(this.renderTransparentMeshes)for(a=0;a<r.length;a++)A(r.data[a]);e.setDepthWrite(!0)}}_copyBonesTransformationMatrices(e,t){for(let s=0;s<e.length;s++)t[s]=e[s];return t}}B.ForceGLSL=!1,B.DEPTH_TEXTURE_TYPE=0,B.NORMAL_TEXTURE_TYPE=1,B.POSITION_TEXTURE_TYPE=2,B.VELOCITY_TEXTURE_TYPE=3,B.REFLECTIVITY_TEXTURE_TYPE=4,B.SCREENSPACE_DEPTH_TEXTURE_TYPE=5,B.VELOCITY_LINEAR_TEXTURE_TYPE=6,B.IRRADIANCE_TEXTURE_TYPE=7,B._SceneComponentInitialization=e=>{throw(0,L._WarnImport)("GeometryBufferRendererSceneComponent")};var k=e.i(48477);let G={effect:null,subMesh:null};function V(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 z{populateVectorFromLinkedProperties(e){let t=V(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?R.Logger.Error(`Float property ${s.name} has an offset that is too large.`):R.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?z._tmpArray[s.targetUniformComponentOffset]=s.value:s.value.toArray(z._tmpArray,s.targetUniformComponentOffset)}e.fromArray(z._tmpArray)}constructor(e,t){this.linkedProperties={},this.firstLinkedKey="",this.name=e,this.numComponents=t}}z._tmpArray=[0,0,0,0];class H{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:V(this.defaultValue)}}class W{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 w extends(0,E.PrepassDefinesMixin)((0,A.UVDefinesMixin)(u.MaterialDefines)){}class X extends x(w){}class Y extends(0,h.ImageProcessingDefinesMixin)(X){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 Z extends(0,y.ImageProcessingMixin)(M.PushMaterial){}class K extends Z{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||K.ForceGLSL),this._baseWeight=new H("base_weight",1,"vBaseWeight",1),this._baseWeightTexture=new W("base_weight","baseWeight","BASE_WEIGHT"),this._baseColor=new H("base_color",i.Color3.White(),"vBaseColor",4),this._baseColorTexture=new W("base_color","baseColor","BASE_COLOR"),this._baseDiffuseRoughness=new H("base_diffuse_roughness",0,"vBaseDiffuseRoughness",1),this._baseDiffuseRoughnessTexture=new W("base_diffuse_roughness","baseDiffuseRoughness","BASE_DIFFUSE_ROUGHNESS"),this._baseMetalness=new H("base_metalness",0,"vReflectanceInfo",4,0),this._baseMetalnessTexture=new W("base_metalness","baseMetalness","BASE_METALNESS"),this._specularWeight=new H("specular_weight",1,"vReflectanceInfo",4,3),this._specularWeightTexture=new W("specular_weight","specularWeight","SPECULAR_WEIGHT"),this._specularColor=new H("specular_color",i.Color3.White(),"vSpecularColor",4),this._specularColorTexture=new W("specular_color","specularColor","SPECULAR_COLOR"),this._specularRoughness=new H("specular_roughness",.3,"vReflectanceInfo",4,1),this._specularRoughnessTexture=new W("specular_roughness","specularRoughness","SPECULAR_ROUGHNESS"),this._specularRoughnessAnisotropy=new H("specular_roughness_anisotropy",0,"vSpecularAnisotropy",3,2),this._specularRoughnessAnisotropyTexture=new W("specular_roughness_anisotropy","specularRoughnessAnisotropy","SPECULAR_ROUGHNESS_ANISOTROPY"),this._specularIor=new H("specular_ior",1.5,"vReflectanceInfo",4,2),this._transmissionWeight=new H("transmission_weight",0,"vTransmissionWeight",1),this._transmissionWeightTexture=new W("transmission_weight","transmissionWeight","TRANSMISSION_WEIGHT"),this._transmissionColor=new H("transmission_color",i.Color3.White(),"vTransmissionColor",3,0),this._transmissionColorTexture=new W("transmission_color","transmissionColor","TRANSMISSION_COLOR"),this._transmissionDepth=new H("transmission_depth",0,"vTransmissionDepth",1,0),this._transmissionDepthTexture=new W("transmission_depth","transmissionDepth","TRANSMISSION_DEPTH"),this._transmissionScatter=new H("transmission_scatter",i.Color3.Black(),"vTransmissionScatter",3,0),this._transmissionScatterTexture=new W("transmission_scatter","transmissionScatter","TRANSMISSION_SCATTER"),this._transmissionScatterAnisotropy=new H("transmission_scatter_anisotropy",0,"vTransmissionScatterAnisotropy",1,0),this._transmissionDispersionScale=new H("transmission_dispersion_scale",0,"vTransmissionDispersionScale",1,0),this._transmissionDispersionScaleTexture=new W("transmission_dispersion_scale","transmissionDispersionScale","TRANSMISSION_DISPERSION_SCALE"),this._transmissionDispersionAbbeNumber=new H("transmission_dispersion_abbe_number",20,"vTransmissionDispersionAbbeNumber",1,0),this._subsurfaceWeight=new H("subsurface_weight",0,"vSubsurfaceWeight",1,0,"SUBSURFACE_SLAB"),this._subsurfaceWeightTexture=new W("subsurface_weight","subsurfaceWeight","SUBSURFACE_WEIGHT"),this._subsurfaceColor=new H("subsurface_color",new i.Color3(.8,.8,.8),"vSubsurfaceColor",3,0,"SUBSURFACE_SLAB"),this._subsurfaceColorTexture=new W("subsurface_color","subsurfaceColor","SUBSURFACE_COLOR"),this._subsurfaceRadius=new H("subsurface_radius",.1,"vSubsurfaceRadius",1,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScale=new H("subsurface_radius_scale",new i.Color3(1,.5,.25),"vSubsurfaceRadiusScale",3,0,"SUBSURFACE_SLAB"),this._subsurfaceRadiusScaleTexture=new W("subsurface_radius_scale","subsurfaceRadiusScale","SUBSURFACE_RADIUS_SCALE"),this._subsurfaceScatterAnisotropy=new H("subsurface_scatter_anisotropy",0,"vSubsurfaceScatterAnisotropy",1,0,"SUBSURFACE_SLAB"),this._coatWeight=new H("coat_weight",0,"vCoatWeight",1,0),this._coatWeightTexture=new W("coat_weight","coatWeight","COAT_WEIGHT"),this._coatColor=new H("coat_color",i.Color3.White(),"vCoatColor",3,0),this._coatColorTexture=new W("coat_color","coatColor","COAT_COLOR"),this._coatRoughness=new H("coat_roughness",0,"vCoatRoughness",1,0),this._coatRoughnessTexture=new W("coat_roughness","coatRoughness","COAT_ROUGHNESS"),this._coatRoughnessAnisotropy=new H("coat_roughness_anisotropy",0,"vCoatRoughnessAnisotropy",1),this._coatRoughnessAnisotropyTexture=new W("coat_roughness_anisotropy","coatRoughnessAnisotropy","COAT_ROUGHNESS_ANISOTROPY"),this._coatIor=new H("coat_ior",1.5,"vCoatIor",1,0),this._coatDarkening=new H("coat_darkening",1,"vCoatDarkening",1,0),this._coatDarkeningTexture=new W("coat_darkening","coatDarkening","COAT_DARKENING"),this.useCoatRoughnessFromWeightTexture=!1,this._fuzzWeight=new H("fuzz_weight",0,"vFuzzWeight",1,0),this._fuzzWeightTexture=new W("fuzz_weight","fuzzWeight","FUZZ_WEIGHT"),this._fuzzColor=new H("fuzz_color",i.Color3.White(),"vFuzzColor",3,0),this._fuzzColorTexture=new W("fuzz_color","fuzzColor","FUZZ_COLOR"),this._fuzzRoughness=new H("fuzz_roughness",.5,"vFuzzRoughness",1,0),this._fuzzRoughnessTexture=new W("fuzz_roughness","fuzzRoughness","FUZZ_ROUGHNESS"),this._geometryThinWalled=new H("geometry_thin_walled",0,"vGeometryThinWalled",1,0),this._geometryNormalTexture=new W("geometry_normal","geometryNormal","GEOMETRY_NORMAL"),this._geometryTangent=new H("geometry_tangent",new S.Vector2(1,0),"vSpecularAnisotropy",3,0),this._geometryTangentTexture=new W("geometry_tangent","geometryTangent","GEOMETRY_TANGENT"),this._geometryCoatNormalTexture=new W("geometry_coat_normal","geometryCoatNormal","GEOMETRY_COAT_NORMAL"),this._geometryCoatTangent=new H("geometry_coat_tangent",new S.Vector2(1,0),"vGeometryCoatTangent",2,0),this._geometryCoatTangentTexture=new W("geometry_coat_tangent","geometryCoatTangent","GEOMETRY_COAT_TANGENT"),this._geometryOpacity=new H("geometry_opacity",1,"vBaseColor",4,3),this._geometryOpacityTexture=new W("geometry_opacity","geometryOpacity","GEOMETRY_OPACITY"),this._geometryThickness=new H("geometry_thickness",0,"vGeometryThickness",1,0),this._geometryThicknessTexture=new W("geometry_thickness","geometryThickness","GEOMETRY_THICKNESS"),this._emissionLuminance=new H("emission_luminance",1,"vLightingIntensity",4,1),this._emissionColor=new H("emission_color",i.Color3.Black(),"vEmissionColor",3),this._emissionColorTexture=new W("emission_color","emissionColor","EMISSION_COLOR"),this._thinFilmWeight=new H("thin_film_weight",0,"vThinFilmWeight",1,0),this._thinFilmWeightTexture=new W("thin_film_weight","thinFilmWeight","THIN_FILM_WEIGHT"),this._thinFilmThickness=new H("thin_film_thickness",.5,"vThinFilmThickness",2,0),this._thinFilmThicknessMin=new H("thin_film_thickness_min",0,"vThinFilmThickness",2,1),this._thinFilmThicknessTexture=new W("thin_film_thickness","thinFilmThickness","THIN_FILM_THICKNESS"),this._thinFilmIor=new H("thin_film_ior",1.4,"vThinFilmIor",1,0),this._ambientOcclusionTexture=new W("ambient_occlusion","ambientOcclusion","AMBIENT_OCCLUSION"),this._sssQuality=K.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&&R.Logger.Error("OpenPBRMaterial: WebGL 2.0 or above is required for this material."),K._noiseTextures[this.getScene().uniqueId]||(K._noiseTextures[this.getScene().uniqueId]=new n.Texture(C.Tools.GetAssetUrl("https://assets.babylonjs.com/core/blue_noise/blue_noise_rgb.png"),this.getScene(),!1,!0,1),this.getScene().onDisposeObservable.addOnce(()=>{K._noiseTextures[this.getScene().uniqueId]?.dispose(),delete K._noiseTextures[this.getScene().uniqueId]})),this._attachImageProcessingConfiguration(null),this.getRenderTargetTextures=()=>(this._renderTargets.reset(),f.MaterialFlags.ReflectionTextureEnabled&&this._radianceTexture&&this._radianceTexture.isRenderTarget&&this._renderTargets.push(this._radianceTexture),f.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 g.PrePassConfiguration,this._propertyList={},Object.getOwnPropertyNames(this))){const e=this[a];e instanceof H&&(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?R.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 z(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 W&&(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!!f.MaterialFlags.ReflectionTextureEnabled&&!!this._radianceTexture&&!!this._radianceTexture.isRenderTarget||!!f.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 K(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 K(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 Y({...this._eventInfo.defineNames||{},...this._samplerDefines||{}}),i=this._prepareEffect(e,e,s,void 0,void 0,r.useInstances,r.clipPlane);this._onEffectCreatedObservable&&(G.effect=i,G.subMesh=null,this._onEffectCreatedObservable.notifyObservers(G)),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 Y({...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&&f.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&&f.MaterialFlags.ReflectionTextureEnabled&&!this._environmentBRDFTexture.isReady()||this._environmentFuzzBRDFTexture&&f.MaterialFlags.ReflectionTextureEnabled&&!this._environmentFuzzBRDFTexture.isReady()||this._backgroundRefractionTexture&&f.MaterialFlags.RefractionTextureEnabled&&!this._backgroundRefractionTexture.isReadyOrNotBlocking()||K._noiseTextures[a.uniqueId]&&!K._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),R.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&&(G.effect=u,G.subMesh=t,this._onEffectCreatedObservable.notifyObservers(G)),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",K._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,f=0;r.USESPHERICALINVERTEX&&h.addFallback(f++,"USESPHERICALINVERTEX"),r.FOG&&h.addFallback(f,"FOG"),r.SPECULARAA&&h.addFallback(f,"SPECULARAA"),r.POINTSIZE&&h.addFallback(f,"POINTSIZE"),r.LOGARITHMICDEPTH&&h.addFallback(f,"LOGARITHMICDEPTH"),r.PARALLAX&&h.addFallback(f,"PARALLAX"),r.PARALLAX_RHS&&h.addFallback(f,"PARALLAX_RHS"),r.PARALLAXOCCLUSION&&h.addFallback(f++,"PARALLAXOCCLUSION"),r.ENVIRONMENTBRDF&&h.addFallback(f++,"ENVIRONMENTBRDF"),r.TANGENT&&h.addFallback(f++,"TANGENT"),f=(0,d.HandleFallbacksForShadows)(r,h,this._maxSimultaneousLights,f),r.SPECULARTERM&&h.addFallback(f++,"SPECULARTERM"),r.USESPHERICALFROMREFLECTIONMAP&&h.addFallback(f++,"USESPHERICALFROMREFLECTIONMAP"),r.USEIRRADIANCEMAP&&h.addFallback(f++,"USEIRRADIANCEMAP"),r.NORMAL&&h.addFallback(f++,"NORMAL"),r.VERTEXCOLOR&&h.addFallback(f++,"VERTEXCOLOR"),r.MORPHTARGETS&&h.addFallback(f++,"MORPHTARGETS"),r.MULTIVIEW&&h.addFallback(0,"MULTIVIEW");let R=[p.VertexBuffer.PositionKind];r.NORMAL&&R.push(p.VertexBuffer.NormalKind),r.TANGENT&&R.push(p.VertexBuffer.TangentKind);for(let e=1;e<=6;++e)r["UV"+e]&&R.push(`uv${1===e?"":e}`);r.VERTEXCOLOR&&R.push(p.VertexBuffer.ColorKind),(0,d.PrepareAttributesForBones)(R,t,r,h),(0,d.PrepareAttributesForInstances)(R,r),(0,d.PrepareAttributesForMorphTargets)(R,t,r),(0,d.PrepareAttributesForBakedVertexAnimation)(R,t,r);let A="openpbr",E=["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)E.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),E.push(t.samplerInfoName),E.push(t.samplerMatrixName)}(0,d.PrepareUniformsAndSamplersForIBL)(E,x,!0);let S=["Material","Scene","Mesh"],y={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:r.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=h,this._eventInfo.fallbackRank=f,this._eventInfo.defines=r,this._eventInfo.uniforms=E,this._eventInfo.attributes=R,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=S,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=y,this._callbackPluginEventGeneric(128,this._eventInfo),m.MaterialHelperGeometryRendering.AddUniformsAndSamplers(E,x),g.PrePassConfiguration.AddUniforms(E),g.PrePassConfiguration.AddSamplers(x),(0,T.AddClipPlaneUniforms)(E),this._useVertexPulling){let e=s?.geometry;e&&(this._vertexPullingMetadata=(0,c.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{E.push(`vp_${t}_info`)}))}else this._vertexPullingMetadata=null;a.ImageProcessingConfiguration&&(a.ImageProcessingConfiguration.PrepareUniforms(E,r),a.ImageProcessingConfiguration.PrepareSamplers(x,r)),(0,d.PrepareUniformsAndSamplersList)({uniformsNames:E,uniformBuffersNames:S,samplers:x,defines:r,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage});let M={};this.customShaderNameResolve&&(A=this.customShaderNameResolve(A,E,S,x,r,R,M));let I=r.toString(),C=u.createEffect(A,{attributes:R,uniformsNames:E,uniformBuffersNames:S,samplers:x,defines:I,fallbacks:h,onCompiled:i,onError:n,indexParameters:y,processFinalCode:M.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(5125),e.A(88059)]):await Promise.all([e.A(24171),e.A(95840)]),this._shadersLoaded=!0}},u);return this._eventInfo.customCode=void 0,C}_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&&f.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&&f.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&&f.MaterialFlags.RefractionTextureEnabled,s.REFRACTION_HIGH_QUALITY_BLUR=this._refractionHighQualityBlur,s.REFRACTED_LIGHTS=!0;let e=this._getRadianceTexture();e?(s.REFRACTED_ENVIRONMENT=f.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)&&K._noiseTextures[l.uniqueId]&&f.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(B.IRRADIANCE_TEXTURE_TYPE);this.sssIrradianceTexture=l.geometryBufferRenderer.getGBuffer().textures[t],e=!0}if(!this.sssDepthTexture&&l.geometryBufferRenderer){let t=l.geometryBufferRenderer.getTextureIndex(B.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&&f.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)}}K.SSS_QUALITY_LOW=0,K.SSS_QUALITY_MEDIUM=1,K.SSS_QUALITY_HIGH=2,K._noiseTextures={},K.ForceGLSL=!1,(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeight")],K.prototype,"_baseWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseWeightTexture")],K.prototype,"_baseWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColor")],K.prototype,"_baseColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseColorTexture")],K.prototype,"_baseColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughness")],K.prototype,"_baseDiffuseRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseDiffuseRoughnessTexture")],K.prototype,"_baseDiffuseRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalness")],K.prototype,"_baseMetalness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","baseMetalnessTexture")],K.prototype,"_baseMetalnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeight")],K.prototype,"_specularWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularWeightTexture")],K.prototype,"_specularWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColor")],K.prototype,"_specularColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularColorTexture")],K.prototype,"_specularColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughness")],K.prototype,"_specularRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessTexture")],K.prototype,"_specularRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropy")],K.prototype,"_specularRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularRoughnessAnisotropyTexture")],K.prototype,"_specularRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","specularIor")],K.prototype,"_specularIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeight")],K.prototype,"_transmissionWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionWeightTexture")],K.prototype,"_transmissionWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColor")],K.prototype,"_transmissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionColorTexture")],K.prototype,"_transmissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepth")],K.prototype,"_transmissionDepth",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDepthTexture")],K.prototype,"_transmissionDepthTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatter")],K.prototype,"_transmissionScatter",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterTexture")],K.prototype,"_transmissionScatterTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionScatterAnisotropy")],K.prototype,"_transmissionScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScale")],K.prototype,"_transmissionDispersionScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionScaleTexture")],K.prototype,"_transmissionDispersionScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","transmissionDispersionAbbeNumber")],K.prototype,"_transmissionDispersionAbbeNumber",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeight")],K.prototype,"_subsurfaceWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceWeightTexture")],K.prototype,"_subsurfaceWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColor")],K.prototype,"_subsurfaceColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceColorTexture")],K.prototype,"_subsurfaceColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadius")],K.prototype,"_subsurfaceRadius",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScale")],K.prototype,"_subsurfaceRadiusScale",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceRadiusScaleTexture")],K.prototype,"_subsurfaceRadiusScaleTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","subsurfaceScatterAnisotropy")],K.prototype,"_subsurfaceScatterAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeight")],K.prototype,"_coatWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatWeightTexture")],K.prototype,"_coatWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColor")],K.prototype,"_coatColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatColorTexture")],K.prototype,"_coatColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughness")],K.prototype,"_coatRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessTexture")],K.prototype,"_coatRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropy")],K.prototype,"_coatRoughnessAnisotropy",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatRoughnessAnisotropyTexture")],K.prototype,"_coatRoughnessAnisotropyTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatIor")],K.prototype,"_coatIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkening")],K.prototype,"_coatDarkening",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","coatDarkeningTexture")],K.prototype,"_coatDarkeningTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeight")],K.prototype,"_fuzzWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzWeightTexture")],K.prototype,"_fuzzWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColor")],K.prototype,"_fuzzColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzColorTexture")],K.prototype,"_fuzzColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughness")],K.prototype,"_fuzzRoughness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","fuzzRoughnessTexture")],K.prototype,"_fuzzRoughnessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThinWalled")],K.prototype,"_geometryThinWalled",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryNormalTexture")],K.prototype,"_geometryNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangent")],K.prototype,"_geometryTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryTangentTexture")],K.prototype,"_geometryTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatNormalTexture")],K.prototype,"_geometryCoatNormalTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangent")],K.prototype,"_geometryCoatTangent",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryCoatTangentTexture")],K.prototype,"_geometryCoatTangentTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacity")],K.prototype,"_geometryOpacity",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryOpacityTexture")],K.prototype,"_geometryOpacityTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThickness")],K.prototype,"_geometryThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","geometryThicknessTexture")],K.prototype,"_geometryThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionLuminance")],K.prototype,"_emissionLuminance",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColor")],K.prototype,"_emissionColor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","emissionColorTexture")],K.prototype,"_emissionColorTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeight")],K.prototype,"_thinFilmWeight",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmWeightTexture")],K.prototype,"_thinFilmWeightTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThickness")],K.prototype,"_thinFilmThickness",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessMin")],K.prototype,"_thinFilmThicknessMin",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmThicknessTexture")],K.prototype,"_thinFilmThicknessTexture",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","thinFilmIor")],K.prototype,"_thinFilmIor",void 0),(0,t.__decorate)([(0,s.addAccessorsForMaterialProperty)("_markAllSubMeshesAsTexturesDirty","ambientOcclusionTexture")],K.prototype,"_ambientOcclusionTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"directIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"environmentIntensity",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useSpecularWeightFromTextureAlpha",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],K.prototype,"forceAlphaTest",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesAndMiscDirty")],K.prototype,"alphaCutOff",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAmbientOcclusionFromMetallicTextureRed",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAmbientInGrayScale",void 0),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"usePhysicalLightFalloff",null),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"useGLTFLightFalloff",null),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useObjectSpaceNormalMap",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useParallax",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useParallaxOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"parallaxScaleBias",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],K.prototype,"disableLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"forceIrradianceInFragment",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsLightsDirty")],K.prototype,"maxSimultaneousLights",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"invertNormalMapX",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"invertNormalMapY",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"twoSidedLighting",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useAlphaFresnel",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useLinearAlphaFresnel",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"environmentBRDFTexture",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"forceNormalForward",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"enableSpecularAntiAliasing",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useHorizonOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],K.prototype,"useRadianceOcclusion",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"unlit",void 0),(0,t.__decorate)([(0,s.serialize)(),(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"applyDecalMapAfterDetailMap",void 0),(0,t.__decorate)([(0,s.expandToProperty)("_markAllSubMeshesAsMiscDirty")],K.prototype,"debugMode",void 0),(0,t.__decorate)([(0,s.serialize)()],K.prototype,"transparencyMode",null);let Q=!1;function q(){Q||(Q=!0,(0,k.RegisterClass)("BABYLON.OpenPBRMaterial",K))}e.s(["OpenPBRMaterial",0,K,"OpenPBRMaterialDefines",0,Y,"RegisterOpenpbrMaterial",0,q],37625),q(),e.s([],29918),e.i(29918),e.i(37625),e.s(["OpenPBRMaterial",0,K,"OpenPBRMaterialDefines",0,Y,"RegisterOpenpbrMaterial",0,q],56771)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58279,e=>{"use strict";var o=e.i(83464),t=e.i(48477);class r{static Instantiate(e){if(this.RegisteredExternalClasses&&this.RegisteredExternalClasses[e])return this.RegisteredExternalClasses[e];let r=(0,t.GetClass)(e);if(r)return r;o.Logger.Warn(e+" not found, you may have missed an import.");let i=e.split("."),a="u">typeof window?window:"u">typeof globalThis?globalThis:this;for(let e=0,o=i.length;e<o;e++)a=a[i[e]];return"function"!=typeof a?null:a}}r.RegisteredExternalClasses={},e.s(["InstantiationTools",0,r])},29711,34637,e=>{"use strict";var o,t=e.i(57554),r=e.i(75865),i=e.i(83464);let a=(e,o,t)=>!e||e.getClassName&&"Mesh"===e.getClassName()?null:e.getClassName&&("SubMesh"===e.getClassName()||"PhysicsBody"===e.getClassName())?e.clone(o):e.clone?e.clone():Array.isArray(e)?e.slice():t&&"object"==typeof e?{...e}:null;class n{static DeepCopy(e,o,t,r,n=!1){for(let s of function(e){let o=[];do for(let t of Object.getOwnPropertyNames(e))-1===o.indexOf(t)&&o.push(t);while(e=Object.getPrototypeOf(e))return o}(e)){if("_"===s[0]&&(!r||-1===r.indexOf(s))||s.endsWith("Observable")||t&&-1!==t.indexOf(s))continue;let l=e[s],c=typeof l;if("function"!==c)try{if("object"===c)if(l instanceof Uint8Array)o[s]=Uint8Array.from(l);else if(l instanceof Array){if(o[s]=[],l.length>0)if("object"==typeof l[0])for(let e=0;e<l.length;e++){let t=a(l[e],o,n);-1===o[s].indexOf(t)&&o[s].push(t)}else o[s]=l.slice(0)}else o[s]=a(l,o,n);else o[s]=l}catch(e){i.Logger.Warn(e.message)}}}}e.s(["DeepCopier",0,n],34637);var s=e.i(85240),l=e.i(54670),c=e.i(72491),K=e.i(47867),g=e.i(25746),u=e.i(4775),P=e.i(58279),f=e.i(53477),d=e.i(65679);class v{static get BaseUrl(){return g.FileToolsOptions.BaseUrl}static set BaseUrl(e){g.FileToolsOptions.BaseUrl=e}static get CleanUrl(){return g.FileToolsOptions.CleanUrl}static set CleanUrl(e){g.FileToolsOptions.CleanUrl=e}static IsAbsoluteUrl(e){return 0===e.indexOf("//")||!(-1===e.indexOf("://")||-1===e.indexOf(".")||-1===e.indexOf("/")||e.indexOf(":")>e.indexOf("/"))&&(!!(e.indexOf("://")<e.indexOf("."))||0===e.indexOf("data:")||0===e.indexOf("blob:"))}static set ScriptBaseUrl(e){g.FileToolsOptions.ScriptBaseUrl=e}static get ScriptBaseUrl(){return g.FileToolsOptions.ScriptBaseUrl}static set CDNBaseUrl(e){o.ScriptBaseUrl=e,o.AssetBaseUrl=e}static set ScriptPreprocessUrl(e){g.FileToolsOptions.ScriptPreprocessUrl=e}static get ScriptPreprocessUrl(){return g.FileToolsOptions.ScriptPreprocessUrl}static get DefaultRetryStrategy(){return g.FileToolsOptions.DefaultRetryStrategy}static set DefaultRetryStrategy(e){g.FileToolsOptions.DefaultRetryStrategy=e}static get CorsBehavior(){return g.FileToolsOptions.CorsBehavior}static set CorsBehavior(e){g.FileToolsOptions.CorsBehavior=e}static get UseFallbackTexture(){return K.EngineStore.UseFallbackTexture}static set UseFallbackTexture(e){K.EngineStore.UseFallbackTexture=e}static get RegisteredExternalClasses(){return P.InstantiationTools.RegisteredExternalClasses}static set RegisteredExternalClasses(e){P.InstantiationTools.RegisteredExternalClasses=e}static get fallbackTexture(){return K.EngineStore.FallbackTexture}static set fallbackTexture(e){K.EngineStore.FallbackTexture=e}static FetchToRef(e,o,t,r,i,a){let n=((Math.abs(e)*t%t|0)+(Math.abs(o)*r%r|0)*t)*4;a.r=i[n]/255,a.g=i[n+1]/255,a.b=i[n+2]/255,a.a=i[n+3]/255}static Mix(e,o,t){return 0}static Instantiate(e){return P.InstantiationTools.Instantiate(e)}static SetImmediate(e){u.TimingTools.SetImmediate(e)}static IsExponentOfTwo(e){return!0}static FloatRound(e){return Math.fround(e)}static GetFilename(e){let o=e.lastIndexOf("/");return o<0?e:e.substring(o+1)}static GetFolderPath(e,o=!1){let t=e.lastIndexOf("/");return t<0?o?e:"":e.substring(0,t+1)}static ToDegrees(e){return 180*e/Math.PI}static ToRadians(e){return e*Math.PI/180}static SmoothAngleChange(e,o,t=.9){let r=this.ToRadians(e),i=this.ToRadians(o);return this.ToDegrees(Math.atan2((1-t)*Math.sin(i)+t*Math.sin(r),(1-t)*Math.cos(i)+t*Math.cos(r)))}static MakeArray(e,o){return!0!==o&&(void 0===e||null==e)?null:Array.isArray(e)?e:[e]}static GetPointerPrefix(e){return(0,r.IsWindowObjectExist)()&&!window.PointerEvent?"mouse":"pointer"}static SetCorsBehavior(e,o){(0,g.SetCorsBehavior)(e,o)}static SetReferrerPolicyBehavior(e,o){o.referrerPolicy=e}static get PreprocessUrl(){return g.FileToolsOptions.PreprocessUrl}static set PreprocessUrl(e){g.FileToolsOptions.PreprocessUrl=e}static LoadImage(e,o,t,r,i,a){return(0,g.LoadImage)(e,o,t,r,i,a)}static LoadFile(e,o,t,r,i,a){return(0,g.LoadFile)(e,o,t,r,i,a)}static async LoadFileAsync(e,o=!0){return await new Promise((t,r)=>{(0,g.LoadFile)(e,e=>{t(e)},void 0,void 0,o,(e,o)=>{r(o)})})}static GetAssetUrl(e){if(!e)return"";if(o.AssetBaseUrl&&e.startsWith(o._DefaultAssetsUrl)){let t=o.AssetBaseUrl.endsWith("/")?o.AssetBaseUrl.slice(0,-1):o.AssetBaseUrl;return e.replace(o._DefaultAssetsUrl,t)}return e}static GetBabylonScriptURL(e,t){if(!e)return"";if(e.startsWith(o._DefaultCdnUrl)){if(o.ScriptBaseUrl){let t=o.ScriptBaseUrl.endsWith("/")?o.ScriptBaseUrl.slice(0,-1):o.ScriptBaseUrl;e=e.replace(o._DefaultCdnUrl,t)}else if(o._CdnVersion){let t=`${o._DefaultCdnUrl}/v${o._CdnVersion}`;e.startsWith(t)||(e=e.replace(o._DefaultCdnUrl,t))}}return e=o.ScriptPreprocessUrl(e),t&&!o.IsAbsoluteUrl(e)&&(e=o.GetAbsoluteUrl(e)),e}static LoadBabylonScript(e,t,r,i){e=o.GetBabylonScriptURL(e),o.LoadScript(e,t,r)}static async LoadBabylonScriptAsync(e){return e=o.GetBabylonScriptURL(e),await o.LoadScriptAsync(e)}static _LoadScriptNative(e,t,r){_native&&o.LoadFile(e,e=>{try{Function(e).apply(null),t&&t()}catch(e){r&&r("LoadScript Error",e)}},void 0,void 0,!1,(e,o)=>{r&&r("LoadScript Error",o)})}static _LoadScriptWeb(e,o,t,i,a=!1){if("function"==typeof importScripts){try{importScripts(e),o&&o()}catch(o){t?.(`Unable to load script '${e}' in worker`,o)}return}if(!(0,r.IsWindowObjectExist)())return void t?.(`Cannot load script '${e}' outside of a window or a worker`);let n=document.getElementsByTagName("head")[0],s=document.createElement("script");a?(s.setAttribute("type","module"),s.innerText=e):(s.setAttribute("type","text/javascript"),s.setAttribute("src",e)),i&&(s.id=i),s.onload=()=>{o&&o()},s.onerror=o=>{t&&t(`Unable to load script '${e}'`,o)},n.appendChild(s)}static async LoadScriptAsync(e,o){return await new Promise((t,r)=>{this.LoadScript(e,()=>{t()},(e,o)=>{r(o||Error(e))},o)})}static ReadFileAsDataURL(e,o,r){let i=new FileReader,a={onCompleteObservable:new t.Observable,abort:()=>i.abort()};return i.onloadend=()=>{a.onCompleteObservable.notifyObservers(a)},i.onload=e=>{o(e.target.result)},i.onprogress=r,i.readAsDataURL(e),a}static ReadFile(e,o,t,r,i){return(0,g.ReadFile)(e,o,t,r,i)}static FileAsURL(e){let o=new Blob([e]);return window.URL.createObjectURL(o)}static Format(e,o=2){return e.toFixed(o)}static DeepCopy(e,o,t,r){n.DeepCopy(e,o,t,r)}static IsEmpty(e){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))return!1;return!0}static RegisterTopRootEvents(e,o){for(let t=0;t<o.length;t++){let r=o[t];e.addEventListener(r.name,r.handler,!1);try{window.parent&&window.parent.addEventListener(r.name,r.handler,!1)}catch(e){}}}static UnregisterTopRootEvents(e,o){for(let t=0;t<o.length;t++){let r=o[t];e.removeEventListener(r.name,r.handler);try{e.parent&&e.parent.removeEventListener(r.name,r.handler)}catch(e){}}}static async DumpFramebuffer(e,o,t,r,i="image/png",a,n){throw(0,l._WarnImport)("DumpTools")}static DumpData(e,o,t,r,i="image/png",a,n=!1,s=!1,c){throw(0,l._WarnImport)("DumpTools")}static async DumpDataAsync(e,o,t,r="image/png",i,a=!1,n=!1,s){throw(0,l._WarnImport)("DumpTools")}static _IsOffScreenCanvas(e){return void 0!==e.convertToBlob}static ToBlob(e,t,r="image/png",i){o._IsOffScreenCanvas(e)||e.toBlob||(e.toBlob=function(e,o,t){setTimeout(()=>{let r=atob(this.toDataURL(o,t).split(",")[1]),i=r.length,a=new Uint8Array(i);for(let e=0;e<i;e++)a[e]=r.charCodeAt(e);e(new Blob([a]))})}),o._IsOffScreenCanvas(e)?e.convertToBlob({type:r,quality:i}).then(e=>t(e)):e.toBlob(function(e){t(e)},r,i)}static DownloadBlob(e,t){if("download"in document.createElement("a")){if(!t){let e=new Date;t="screenshot_"+((e.getFullYear()+"-"+(e.getMonth()+1)).slice(2)+"-"+e.getDate()+"_"+e.getHours()+"-")+("0"+e.getMinutes()).slice(-2)+".png"}o.Download(e,t)}else if(e&&"u">typeof URL){let o=URL.createObjectURL(e),t=window.open("");if(!t)return;let r=t.document.createElement("img");r.onload=function(){URL.revokeObjectURL(o)},r.src=o,t.document.body.appendChild(r)}}static EncodeScreenshotCanvasData(e,t,r="image/png",i,a){if("string"!=typeof i&&t){if(t){if(o._IsOffScreenCanvas(e))return void e.convertToBlob({type:r,quality:a}).then(e=>{let o=new FileReader;o.readAsDataURL(e),o.onloadend=()=>{t(o.result)}});t(e.toDataURL(r,a))}}else this.ToBlob(e,function(e){e&&o.DownloadBlob(e,i),t&&t("")},r,a)}static Download(e,o){if("u"<typeof URL)return;let t=window.URL.createObjectURL(e),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=t,r.download=o,r.addEventListener("click",()=>{r.parentElement&&r.parentElement.removeChild(r)}),r.click(),window.URL.revokeObjectURL(t)}static BackCompatCameraNoPreventDefault(e){return"boolean"==typeof e[0]?e[0]:"boolean"==typeof e[1]&&e[1]}static CreateScreenshot(e,o,t,r,i="image/png",a=!1,n){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotAsync(e,o,t,r="image/png",i){throw(0,l._WarnImport)("ScreenshotTools")}static CreateScreenshotUsingRenderTarget(e,o,t,r,i="image/png",a=1,n=!1,s,c=!1,K=!1,g=!0,u,P){throw(0,l._WarnImport)("ScreenshotTools")}static async CreateScreenshotUsingRenderTargetAsync(e,o,t,r="image/png",i=1,a=!1,n,s=!1,c=!1,K=!0,g,u){throw(0,l._WarnImport)("ScreenshotTools")}static RandomId(){return(0,f.RandomGUID)()}static IsBase64(e){return(0,g.IsBase64DataUrl)(e)}static DecodeBase64(e){return(0,g.DecodeBase64UrlToBinary)(e)}static get errorsCount(){return i.Logger.errorsCount}static Log(e){i.Logger.Log(e)}static Warn(e){i.Logger.Warn(e)}static Error(e){i.Logger.Error(e)}static get LogCache(){return i.Logger.LogCache}static ClearLogCache(){i.Logger.ClearLogCache()}static set LogLevels(e){i.Logger.LogLevels=e}static set PerformanceLogLevel(e){(e&o.PerformanceUserMarkLogLevel)===o.PerformanceUserMarkLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(1),o.StartPerformanceCounter=o._StartMarkNative,o.EndPerformanceCounter=o._EndMarkNative):(o.StartPerformanceCounter=o._StartUserMark,o.EndPerformanceCounter=o._EndUserMark):(e&o.PerformanceConsoleLogLevel)===o.PerformanceConsoleLogLevel?_native?.enablePerformanceLogging?(_native.enablePerformanceLogging(2),o.StartPerformanceCounter=o._StartMarkNative,o.EndPerformanceCounter=o._EndMarkNative):(o.StartPerformanceCounter=o._StartPerformanceConsole,o.EndPerformanceCounter=o._EndPerformanceConsole):(o.StartPerformanceCounter=o._StartPerformanceCounterDisabled,o.EndPerformanceCounter=o._EndPerformanceCounterDisabled,_native?.disablePerformanceLogging?.())}static _StartPerformanceCounterDisabled(e,o){}static _EndPerformanceCounterDisabled(e,o){}static _StartUserMark(e,t=!0){if(!o._Performance){if(!(0,r.IsWindowObjectExist)())return;o._Performance=window.performance}t&&o._Performance.mark&&o._Performance.mark(e+"-Begin")}static _EndUserMark(e,t=!0){t&&o._Performance.mark&&(o._Performance.mark(e+"-End"),o._Performance.measure(e,e+"-Begin",e+"-End"))}static _StartPerformanceConsole(e,t=!0){t&&(o._StartUserMark(e,t),console.time&&console.time(e))}static _EndPerformanceConsole(e,t=!0){t&&(o._EndUserMark(e,t),console.timeEnd(e))}static _StartMarkNative(e,t=!0){if(t&&_native?.startPerformanceCounter)if(o._NativePerformanceCounterHandles.has(e))o.Warn(`Performance counter with name ${e} is already started.`);else{let t=_native.startPerformanceCounter(e);o._NativePerformanceCounterHandles.set(e,t)}}static _EndMarkNative(e,t=!0){if(t&&_native?.endPerformanceCounter){let t=o._NativePerformanceCounterHandles.get(e);t?(_native.endPerformanceCounter(t),o._NativePerformanceCounterHandles.delete(e)):o.Warn(`Performance counter with name ${e} was not started.`)}}static get Now(){return s.PrecisionDate.Now}static GetClassName(e,o=!1){let t=null;return!o&&e.getClassName?t=e.getClassName():(e instanceof Object&&(t=(o?e:Object.getPrototypeOf(e)).constructor.__bjsclassName__),t||(t=typeof e)),t}static First(e,o){for(let t of e)if(o(t))return t;return null}static getFullClassName(e,o=!1){let t=null,r=null;if(!o&&e.getClassName)t=e.getClassName();else{if(e instanceof Object){let i=o?e:Object.getPrototypeOf(e);t=i.constructor.__bjsclassName__,r=i.constructor.__bjsmoduleName__}t||(t=typeof e)}return t?(null!=r?r+".":"")+t:null}static async DelayAsync(e){await new Promise(o=>{setTimeout(()=>{o()},e)})}static IsSafari(){return!!(0,r.IsNavigatorAvailable)()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}o=v,v.AssetBaseUrl="",v.UseCustomRequestHeaders=!1,v.CustomRequestHeaders=c.WebRequest.CustomRequestHeaders,v.GetDOMTextContent=r.GetDOMTextContent,v._DefaultCdnUrl="https://cdn.babylonjs.com",v._CdnVersion="9.14.0",v._DefaultAssetsUrl="https://assets.babylonjs.com/core",v.LoadScript="u"<typeof _native?o._LoadScriptWeb:o._LoadScriptNative,v.GetAbsoluteUrl="object"==typeof document?e=>{let o=document.createElement("a");return o.href=e,o.href}:"function"==typeof URL&&"object"==typeof location?e=>new URL(e,location.origin).href:()=>{throw Error("Unable to get absolute URL. Override BABYLON.Tools.GetAbsoluteUrl to a custom implementation for the current context.")},v.NoneLogLevel=i.Logger.NoneLogLevel,v.MessageLogLevel=i.Logger.MessageLogLevel,v.WarningLogLevel=i.Logger.WarningLogLevel,v.ErrorLogLevel=i.Logger.ErrorLogLevel,v.AllLogLevel=i.Logger.AllLogLevel,v.IsWindowObjectExist=r.IsWindowObjectExist,v.PerformanceNoneLogLevel=0,v.PerformanceUserMarkLogLevel=1,v.PerformanceConsoleLogLevel=2,v._NativePerformanceCounterHandles=new Map,v.StartPerformanceCounter=o._StartPerformanceCounterDisabled,v.EndPerformanceCounter=o._EndPerformanceCounterDisabled;class A{constructor(e,o,t,r=0){this.iterations=e,this.index=r-1,this._done=!1,this._fn=o,this._successCallback=t}executeNext(){this._done||(this.index+1<this.iterations?(++this.index,this._fn(this)):this.breakLoop())}breakLoop(){this._done=!0,this._successCallback()}static Run(e,o,t,r=0){let i=new A(e,o,t,r);return i.executeNext(),i}static SyncAsyncForLoop(e,o,t,r,i,a=0){return A.Run(Math.ceil(e/o),r=>{i&&i()?r.breakLoop():setTimeout(()=>{for(let a=0;a<o;++a){let n=r.index*o+a;if(n>=e)break;if(t(n),i&&i()){r.breakLoop();break}}r.executeNext()},a)},r)}}let U=!1;e.s(["AsyncLoop",0,A,"RegisterTools",0,function(){U||(U=!0,v.Mix=d.Mix,v.IsExponentOfTwo=d.IsExponentOfTwo,K.EngineStore.FallbackTexture="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAAExAAIAAAAQAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQubmV0IDQuMC41AP/bAEMABAIDAwMCBAMDAwQEBAQFCQYFBQUFCwgIBgkNCw0NDQsMDA4QFBEODxMPDAwSGBITFRYXFxcOERkbGRYaFBYXFv/bAEMBBAQEBQUFCgYGChYPDA8WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFv/AABEIAQABAAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APH6KKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76CiiigD5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BQooooA+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/voKKKKAPl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FCiiigD6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++gooooA+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gUKKKKAPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76Pl+iiivuj+BT6gooor4U/vo+X6KKK+6P4FPqCiiivhT++j5fooor7o/gU+oKKKK+FP76P//Z")},"Tools",0,v],29711)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84201,e=>{"use strict";var t,i,s=e.i(99267);class r{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,i=1,s=1,r=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=i,this._cachedAnisotropicFilteringLevel=s,this.samplingMode=r,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=i||(i={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends r{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,i=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new s.Observable,this.onErrorObservable=new s.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,i||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,i=1){this._engine.updateTextureDimensions(this,e,t,i),this.width=e,this.height=t,this.depth=i,this.baseWidth=e,this.baseHeight=t,this.baseDepth=i,this._size=e*t*i}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let i=this._engine.getLoadedTexturesCache(),s=i.indexOf(this);-1!==s&&i.splice(s,1),-1===(s=i.indexOf(e))&&i.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],84201)},10272,94047,37143,e=>{"use strict";e.s(["__decorate",0,function(e,t,i,s){var r,a=arguments.length,n=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,i,n):r(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n}],10272);let t={},i={};function s(e){let t=e.getClassName();return i[t]||(i[t]={}),i[t]}function r(e,t){return(i,r)=>{let a=s(i);a[r]||(a[r]={type:e,sourceName:t})}}function a(e,t,i,s){let r=i.value;i.value=(...i)=>{let a=r;if("u">typeof _native&&_native[t]){let e=_native[t];a=s?(...t)=>s(...t)?e(...t):r(...t):e}return e[t]=a,a(...i)}}e.s(["GetDirectStore",0,s,"GetMergedStore",0,function(e){let s=e.getClassName();if(t[s])return t[s];t[s]={};let r=t[s],a=e,n=s;for(;n;){let e,t=i[n];for(let e in t)r[e]=t[e];let s=!1;do{if(!(e=Object.getPrototypeOf(a)).getClassName){s=!0;break}if(e.getClassName()!==n)break;a=e}while(e)if(s)break;n=e.getClassName(),a=e}return r}],94047),a.filter=function(e){return(t,i,s)=>a(t,i,s,e)},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(i,s)=>{Object.defineProperty(i,t||"",{get:function(){return this[s].value},set:function(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,i[e].apply(this))},enumerable:!0,configurable:!0})}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(i,s)=>{let r=t||"_"+s;Object.defineProperty(i,s,{get:function(){return this[r]},set:function(t){"function"==typeof this[r]?.equals&&this[r].equals(t)||this[r]!==t&&(this[r]=t,i[e].apply(this))},enumerable:!0,configurable:!0})}}(e,t)},"nativeOverride",0,a,"serialize",0,function(e){return r(0,e)},"serializeAsColor3",0,function(e){return r(2,e)},"serializeAsColor4",0,function(e){return r(8,e)},"serializeAsColorCurves",0,function(e){return r(7,e)},"serializeAsFresnelParameters",0,function(e){return r(3,e)},"serializeAsImageProcessingConfiguration",0,function(e){return r(9,e)},"serializeAsMatrix",0,function(e){return r(12,e)},"serializeAsMeshReference",0,function(e){return r(6,e)},"serializeAsQuaternion",0,function(e){return r(10,e)},"serializeAsTexture",0,function(e){return r(1,e)},"serializeAsVector2",0,function(e){return r(4,e)},"serializeAsVector3",0,function(e){return r(5,e)}],37143)},80871,76312,e=>{"use strict";var t=e.i(75405);class i{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),i._HandleParenthesisContent(e,t))):i._HandleParenthesisContent(e,t))||"false"!==e&&i.Eval(e,t)}static _HandleParenthesisContent(e,t){let s;t=t||(e=>"true"===e);let r=e.split("||");for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let a=i._SimplifyNegation(r[e].trim()),n=a.split("&&");if(n.length>1)for(let e=0;e<n.length;++e){let r=i._SimplifyNegation(n[e].trim());if(!(s="true"!==r&&"false"!==r?"!"===r[0]?!t(r.substring(1)):t(r):"true"===r)){a="false";break}}if(s||"true"===a){s=!0;break}s="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a}return s?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class s{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>s.HasTags(e),e.addTags=t=>s.AddTagsTo(e,t),e.removeTags=t=>s.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>s.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let i in e._tags)Object.prototype.hasOwnProperty.call(e._tags,i)&&!0===e._tags[i]&&t.push(i);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let i of t.split(" "))s._AddTagTo(e,i)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(s.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!s.HasTags(e))return;let i=t.split(" ");for(let t in i)s._RemoveTagFrom(e,i[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?s.HasTags(e):i.Eval(t,t=>s.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,s],76312);var r=e.i(70653),a=e.i(96265),n=e.i(94047);let o=function(e,t,i,r={}){let a=e();s&&s.HasTags(t)&&s.AddTagsTo(a,s.GetTags(t,!0));let o=(0,n.GetMergedStore)(a),h={};for(let e in o){let s=o[e],n=t[e],u=s.type;if(null!=n&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(u){case 0:case 6:case 9:case 11:"function"==typeof n.slice?a[e]=n.slice():a[e]=n;break;case 1:r.cloneTexturesOnlyOnce&&h[n.uniqueId]?a[e]=h[n.uniqueId]:(a[e]=i||n.isRenderTarget?n:n.clone(),h[n.uniqueId]=a[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:a[e]=i?n:n.clone()}}return a};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let i=0;i<e.animations.length;i++){let s=e.animations[i];t.animations.push(s.serialize())}}}static Serialize(e,t){t||(t={}),s&&(t.tags=s.GetTags(e));let i=(0,n.GetMergedStore)(e);for(let s in i){let r=i[s],a=r.sourceName||s,n=r.type,o=e[s];if(null!=o&&("uniqueId"!==s||l.AllowLoadingUniqueId))switch(n){case 0:Array.isArray(o)?t[a]=o.slice():t[a]=o;break;case 1:case 3:case 7:case 9:t[a]=o.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:t[a]=o.asArray();break;case 6:case 11:t[a]=o.id}}return t}static ParseProperties(e,t,i,s){s||(s="");let o=(0,n.GetMergedStore)(t);for(let n in o){let h=o[n],u=e[h.sourceName||n],c=h.type;if(null!=u&&("uniqueId"!==n||l.AllowLoadingUniqueId))switch(c){case 0:t[n]=u;break;case 1:i&&(t[n]=l._TextureParser(u,i,s));break;case 2:t[n]=r.Color3.FromArray(u);break;case 3:t[n]=l._FresnelParametersParser(u);break;case 4:t[n]=a.Vector2.FromArray(u);break;case 5:t[n]=a.Vector3.FromArray(u);break;case 6:i&&(t[n]=i.getLastMeshById(u));break;case 7:t[n]=l._ColorCurvesParser(u);break;case 8:t[n]=r.Color4.FromArray(u);break;case 9:t[n]=l._ImageProcessingConfigurationParser(u);break;case 10:t[n]=a.Quaternion.FromArray(u);break;case 11:i&&(t[n]=i.getCameraById(u));break;case 12:t[n]=a.Matrix.FromArray(u)}}}static Parse(e,t,i,r=null){let a=e();return s&&s.AddTagsTo(a,t.tags),l.ParseProperties(t,a,i,r),a}static Clone(e,t,i={}){return o(e,t,!1,i)}static Instanciate(e,t){return o(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,i,s)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],80871)},65002,e=>{"use strict";var t=e.i(96265);class i{constructor(e,i,s,r){this.normal=new t.Vector3(e,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=i._TmpMatrix;e.invertToRef(t);let s=t.m,r=this.normal.x,a=this.normal.y,n=this.normal.z,o=this.d;return new i(r*s[0]+a*s[1]+n*s[2]+o*s[3],r*s[4]+a*s[5]+n*s[6]+o*s[7],r*s[8]+a*s[9]+n*s[10]+o*s[11],r*s[12]+a*s[13]+n*s[14]+o*s[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,i){let s,r=t.x-e.x,a=t.y-e.y,n=t.z-e.z,o=i.x-e.x,l=i.y-e.y,h=i.z-e.z,u=a*h-n*l,c=n*o-r*h,d=r*l-a*o,p=Math.sqrt(u*u+c*c+d*d);return s=0!==p?1/p:0,this.normal.x=u*s,this.normal.y=c*s,this.normal.z=d*s,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,i){return t.Vector3.Dot(this.normal,e)<=i}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new i(e[0],e[1],e[2],e[3])}static FromPoints(e,t,s){let r=new i(0,0,0,0);return r.copyFromPoints(e,t,s),r}static FromPositionAndNormal(e,t){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,s)}static FromPositionAndNormalToRef(e,t,i){return i.normal.copyFrom(t),i.normal.normalize(),i.d=-e.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(e,i,s){let r=-(i.x*e.x+i.y*e.y+i.z*e.z);return t.Vector3.Dot(s,i)+r}}i._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,i])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58727,e=>{"use strict";var t,i,s=e.i(57554);class r{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,i=1,s=1,r=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=i,this._cachedAnisotropicFilteringLevel=s,this.samplingMode=r,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=i||(i={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends r{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,i=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new s.Observable,this.onErrorObservable=new s.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,i||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,i=1){this._engine.updateTextureDimensions(this,e,t,i),this.width=e,this.height=t,this.depth=i,this.baseWidth=e,this.baseHeight=t,this.baseDepth=i,this._size=e*t*i}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let i=this._engine.getLoadedTexturesCache(),s=i.indexOf(this);-1!==s&&i.splice(s,1),-1===(s=i.indexOf(e))&&i.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],58727)},16147,68853,40220,e=>{"use strict";e.s(["__decorate",0,function(e,t,i,s){var r,a=arguments.length,n=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,i,n):r(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n}],16147);let t={},i={};function s(e){let t=e.getClassName();return i[t]||(i[t]={}),i[t]}function r(e,t){return(i,r)=>{let a=s(i);a[r]||(a[r]={type:e,sourceName:t})}}function a(e,t,i,s){let r=i.value;i.value=(...i)=>{let a=r;if("u">typeof _native&&_native[t]){let e=_native[t];a=s?(...t)=>s(...t)?e(...t):r(...t):e}return e[t]=a,a(...i)}}e.s(["GetDirectStore",0,s,"GetMergedStore",0,function(e){let s=e.getClassName();if(t[s])return t[s];t[s]={};let r=t[s],a=e,n=s;for(;n;){let e,t=i[n];for(let e in t)r[e]=t[e];let s=!1;do{if(!(e=Object.getPrototypeOf(a)).getClassName){s=!0;break}if(e.getClassName()!==n)break;a=e}while(e)if(s)break;n=e.getClassName(),a=e}return r}],68853),a.filter=function(e){return(t,i,s)=>a(t,i,s,e)},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(i,s)=>{Object.defineProperty(i,t||"",{get:function(){return this[s].value},set:function(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,i[e].apply(this))},enumerable:!0,configurable:!0})}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(i,s)=>{let r=t||"_"+s;Object.defineProperty(i,s,{get:function(){return this[r]},set:function(t){"function"==typeof this[r]?.equals&&this[r].equals(t)||this[r]!==t&&(this[r]=t,i[e].apply(this))},enumerable:!0,configurable:!0})}}(e,t)},"nativeOverride",0,a,"serialize",0,function(e){return r(0,e)},"serializeAsColor3",0,function(e){return r(2,e)},"serializeAsColor4",0,function(e){return r(8,e)},"serializeAsColorCurves",0,function(e){return r(7,e)},"serializeAsFresnelParameters",0,function(e){return r(3,e)},"serializeAsImageProcessingConfiguration",0,function(e){return r(9,e)},"serializeAsMatrix",0,function(e){return r(12,e)},"serializeAsMeshReference",0,function(e){return r(6,e)},"serializeAsQuaternion",0,function(e){return r(10,e)},"serializeAsTexture",0,function(e){return r(1,e)},"serializeAsVector2",0,function(e){return r(4,e)},"serializeAsVector3",0,function(e){return r(5,e)}],40220)},95397,55250,e=>{"use strict";var t=e.i(54670);class i{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),i._HandleParenthesisContent(e,t))):i._HandleParenthesisContent(e,t))||"false"!==e&&i.Eval(e,t)}static _HandleParenthesisContent(e,t){let s;t=t||(e=>"true"===e);let r=e.split("||");for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let a=i._SimplifyNegation(r[e].trim()),n=a.split("&&");if(n.length>1)for(let e=0;e<n.length;++e){let r=i._SimplifyNegation(n[e].trim());if(!(s="true"!==r&&"false"!==r?"!"===r[0]?!t(r.substring(1)):t(r):"true"===r)){a="false";break}}if(s||"true"===a){s=!0;break}s="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a}return s?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class s{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>s.HasTags(e),e.addTags=t=>s.AddTagsTo(e,t),e.removeTags=t=>s.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>s.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let i in e._tags)Object.prototype.hasOwnProperty.call(e._tags,i)&&!0===e._tags[i]&&t.push(i);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let i of t.split(" "))s._AddTagTo(e,i)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(s.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!s.HasTags(e))return;let i=t.split(" ");for(let t in i)s._RemoveTagFrom(e,i[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?s.HasTags(e):i.Eval(t,t=>s.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,s],55250);var r=e.i(75053),a=e.i(10534),n=e.i(68853);let o=function(e,t,i,r={}){let a=e();s&&s.HasTags(t)&&s.AddTagsTo(a,s.GetTags(t,!0));let o=(0,n.GetMergedStore)(a),h={};for(let e in o){let s=o[e],n=t[e],u=s.type;if(null!=n&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(u){case 0:case 6:case 9:case 11:"function"==typeof n.slice?a[e]=n.slice():a[e]=n;break;case 1:r.cloneTexturesOnlyOnce&&h[n.uniqueId]?a[e]=h[n.uniqueId]:(a[e]=i||n.isRenderTarget?n:n.clone(),h[n.uniqueId]=a[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:a[e]=i?n:n.clone()}}return a};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let i=0;i<e.animations.length;i++){let s=e.animations[i];t.animations.push(s.serialize())}}}static Serialize(e,t){t||(t={}),s&&(t.tags=s.GetTags(e));let i=(0,n.GetMergedStore)(e);for(let s in i){let r=i[s],a=r.sourceName||s,n=r.type,o=e[s];if(null!=o&&("uniqueId"!==s||l.AllowLoadingUniqueId))switch(n){case 0:Array.isArray(o)?t[a]=o.slice():t[a]=o;break;case 1:case 3:case 7:case 9:t[a]=o.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:t[a]=o.asArray();break;case 6:case 11:t[a]=o.id}}return t}static ParseProperties(e,t,i,s){s||(s="");let o=(0,n.GetMergedStore)(t);for(let n in o){let h=o[n],u=e[h.sourceName||n],c=h.type;if(null!=u&&("uniqueId"!==n||l.AllowLoadingUniqueId))switch(c){case 0:t[n]=u;break;case 1:i&&(t[n]=l._TextureParser(u,i,s));break;case 2:t[n]=r.Color3.FromArray(u);break;case 3:t[n]=l._FresnelParametersParser(u);break;case 4:t[n]=a.Vector2.FromArray(u);break;case 5:t[n]=a.Vector3.FromArray(u);break;case 6:i&&(t[n]=i.getLastMeshById(u));break;case 7:t[n]=l._ColorCurvesParser(u);break;case 8:t[n]=r.Color4.FromArray(u);break;case 9:t[n]=l._ImageProcessingConfigurationParser(u);break;case 10:t[n]=a.Quaternion.FromArray(u);break;case 11:i&&(t[n]=i.getCameraById(u));break;case 12:t[n]=a.Matrix.FromArray(u)}}}static Parse(e,t,i,r=null){let a=e();return s&&s.AddTagsTo(a,t.tags),l.ParseProperties(t,a,i,r),a}static Clone(e,t,i={}){return o(e,t,!1,i)}static Instanciate(e,t){return o(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,i,s)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],95397)},38677,e=>{"use strict";var t=e.i(10534);class i{constructor(e,i,s,r){this.normal=new t.Vector3(e,i,s),this.d=r}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new i(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=i._TmpMatrix;e.invertToRef(t);let s=t.m,r=this.normal.x,a=this.normal.y,n=this.normal.z,o=this.d;return new i(r*s[0]+a*s[1]+n*s[2]+o*s[3],r*s[4]+a*s[5]+n*s[6]+o*s[7],r*s[8]+a*s[9]+n*s[10]+o*s[11],r*s[12]+a*s[13]+n*s[14]+o*s[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,i){let s,r=t.x-e.x,a=t.y-e.y,n=t.z-e.z,o=i.x-e.x,l=i.y-e.y,h=i.z-e.z,u=a*h-n*l,c=n*o-r*h,d=r*l-a*o,p=Math.sqrt(u*u+c*c+d*d);return s=0!==p?1/p:0,this.normal.x=u*s,this.normal.y=c*s,this.normal.z=d*s,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,i){return t.Vector3.Dot(this.normal,e)<=i}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new i(e[0],e[1],e[2],e[3])}static FromPoints(e,t,s){let r=new i(0,0,0,0);return r.copyFromPoints(e,t,s),r}static FromPositionAndNormal(e,t){let s=new i(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,s)}static FromPositionAndNormalToRef(e,t,i){return i.normal.copyFrom(t),i.normal.normalize(),i.d=-e.dot(i.normal),i}static SignedDistanceToPlaneFromPositionAndNormal(e,i,s){let r=-(i.x*e.x+i.y*e.y+i.z*e.z);return t.Vector3.Dot(s,i)+r}}i._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,i])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99916,e=>{"use strict";var o=e.i(1719);let t="postprocessVertexShader",i=`attribute vec2 position;uniform vec2 scale;varying vec2 vUV;const vec2 madd=vec2(0.5,0.5);
|
|
2
2
|
#define CUSTOM_VERTEX_DEFINITIONS
|
|
3
3
|
void main(void) {
|
|
4
4
|
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13953,e=>{"use strict";var l=e.i(95330),t=e.i(82350),a=e.i(87986),i=e.i(48477);class r extends l.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.delayIndex=this.registerDataInput("delayIndex",t.RichTypeFlowGraphInteger)}_execute(e,l){let t=(0,a.getNumericValue)(this.delayIndex.getValue(e));if(t<0||isNaN(t)||!isFinite(t))return this._reportError(e,"Invalid delay index");let i=e._getGlobalContextVariable("pendingDelays",[])[t];i&&i.dispose(),this.out._activateSignal(e)}getClassName(){return"FlowGraphCancelDelayBlock"}}let o=!1;function s(){o||(o=!0,(0,i.RegisterClass)("FlowGraphCancelDelayBlock",r))}e.s(["FlowGraphCancelDelayBlock",0,r,"RegisterFlowGraphCancelDelayBlock",0,s],19179),s(),e.s([],70324),e.i(70324),e.i(19179),e.s(["FlowGraphCancelDelayBlock",0,r],13953)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34495,t=>{"use strict";var e=t.i(82531),i=t.i(82350),a=t.i(58667),n=t.i(48477);class r extends e.FlowGraphBlock{constructor(t={}){super(t),this.keyFrames=[];const e="string"==typeof t?.animationType?(0,i.getRichTypeByFlowGraphType)(t.animationType):(0,i.getRichTypeByAnimationType)(t?.animationType??0),a=t?.keyFramesCount??1,n=this.registerDataInput("duration_0",i.RichTypeNumber,0),r=this.registerDataInput("value_0",e);this.keyFrames.push({duration:n,value:r});for(let n=1;n<a+1;n++){const r=this.registerDataInput(`duration_${n}`,i.RichTypeNumber,n===a?t.duration:void 0),s=this.registerDataInput(`value_${n}`,e);this.keyFrames.push({duration:r,value:s})}this.initialValue=this.keyFrames[0].value,this.endValue=this.keyFrames[a].value,this.easingFunction=this.registerDataInput("easingFunction",i.RichTypeAny),this.animation=this.registerDataOutput("animation",i.RichTypeAny),this.propertyName=this.registerDataInput("propertyName",i.RichTypeString,t?.propertyName),this.customBuildAnimation=this.registerDataInput("customBuildAnimation",i.RichTypeAny)}_updateOutputs(t){let e=t._getGlobalContextVariable("interpolationAnimations",[]),i=this.propertyName.getValue(t),a=this.easingFunction.getValue(t),n=this._createAnimation(t,i,a);if(this.animation.setValue(n,t),Array.isArray(n))for(let t of n)e.push(t.uniqueId);else e.push(n.uniqueId);t._setGlobalContextVariable("interpolationAnimations",e)}_createAnimation(t,e,i){let n=this.initialValue.richType,r=[],s=this.initialValue.getValue(t)||n.defaultValue;r.push({frame:0,value:s});let o=this.config?.numberOfKeyFrames??1;for(let e=1;e<o+1;e++){let i=this.keyFrames[e].duration?.getValue(t),a=this.keyFrames[e].value?.getValue(t);e===o-1&&(a=a||n.defaultValue),void 0!==i&&a&&r.push({frame:60*i,value:a})}let l=this.customBuildAnimation.getValue(t);if(l)return l(null,null,t)(r,60,n.animationType,i);if("string"!=typeof e)return e.map(t=>{let e=(0,a.AnimationCreateAnimation)(t,n.animationType,60,i);return e.setKeys(r),e});{let t=(0,a.AnimationCreateAnimation)(e,n.animationType,60,i);return t.setKeys(r),[t]}}getClassName(){return"FlowGraphInterpolationBlock"}}let s=!1;function o(){s||(s=!0,(0,n.RegisterClass)("FlowGraphInterpolationBlock",r))}t.s(["FlowGraphInterpolationBlock",0,r,"RegisterFlowGraphInterpolationBlock",0,o],13029),o(),t.s([],80275),t.i(80275),t.i(13029),t.s(["FlowGraphInterpolationBlock",0,r],34495)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88388,e=>{"use strict";var t=e.i(82531),s=e.i(82350),i=e.i(48477);class r extends t.FlowGraphBlock{constructor(e){super(e),this.userVariables=this.registerDataOutput("userVariables",s.RichTypeAny),this.executionId=this.registerDataOutput("executionId",s.RichTypeNumber)}_updateOutputs(e){this.userVariables.setValue(e.userVariables,e),this.executionId.setValue(e.executionId,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphContextBlock"}}let o=!1;function a(){o||(o=!0,(0,i.RegisterClass)("FlowGraphContextBlock",r))}e.s(["FlowGraphContextBlock",0,r,"RegisterFlowGraphContextBlock",0,a],61472),a(),e.s([],20384),e.i(20384),e.i(61472),e.s(["FlowGraphContextBlock",0,r],88388)}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95611,e=>{"use strict";var r=e.i(1719);let t="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
|
|
2
2
|
#ifdef MULTIVIEW
|
|
3
3
|
viewProjectionR : mat4x4<f32>,
|
|
4
4
|
#endif
|
|
@@ -8,7 +8,7 @@ vEyePosition : vec4<f32>,
|
|
|
8
8
|
inverseProjection : mat4x4<f32>,};
|
|
9
9
|
#define SCENE_UBO
|
|
10
10
|
var<uniform> scene : Scene;
|
|
11
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["sceneUboDeclarationWGSL",0,{name:t,shader:i}])},
|
|
11
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["sceneUboDeclarationWGSL",0,{name:t,shader:i}])},2720,e=>{"use strict";var r=e.i(1719);let t="harmonicsFunctions",i=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
12
12
|
#ifdef SPHERICAL_HARMONICS
|
|
13
13
|
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSphericalL00
|
|
14
14
|
+ uniforms.vSphericalL1_1*(normal.y)
|
|
@@ -23,7 +23,7 @@ fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSpherica
|
|
|
23
23
|
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {var Nx: f32=normal.x;var Ny: f32=normal.y;var Nz: f32=normal.z;var C1: vec3f=uniforms.vSphericalZZ.rgb;var Cx: vec3f=uniforms.vSphericalX.rgb;var Cy: vec3f=uniforms.vSphericalY.rgb;var Cz: vec3f=uniforms.vSphericalZ.rgb;var Cxx_zz: vec3f=uniforms.vSphericalXX_ZZ.rgb;var Cyy_zz: vec3f=uniforms.vSphericalYY_ZZ.rgb;var Cxy: vec3f=uniforms.vSphericalXY.rgb;var Cyz: vec3f=uniforms.vSphericalYZ.rgb;var Czx: vec3f=uniforms.vSphericalZX.rgb;var a1: vec3f=Cyy_zz*Ny+Cy;var a2: vec3f=Cyz*Nz+a1;var b1: vec3f=Czx*Nz+Cx;var b2: vec3f=Cxy*Ny+b1;var b3: vec3f=Cxx_zz*Nx+b2;var t1: vec3f=Cz *Nz+C1;var t2: vec3f=a2 *Ny+t1;var t3: vec3f=b3 *Nx+t2;return t3;}
|
|
24
24
|
#endif
|
|
25
25
|
#endif
|
|
26
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["harmonicsFunctionsWGSL",0,{name:t,shader:i}])},
|
|
26
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["harmonicsFunctionsWGSL",0,{name:t,shader:i}])},88356,58731,e=>{"use strict";var r=e.i(1719);let t="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
|
|
27
27
|
#ifndef USE_VERTEX_PULLING
|
|
28
28
|
attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
|
|
29
29
|
#if NUM_BONE_INFLUENCERS>4
|
|
@@ -46,7 +46,7 @@ let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x
|
|
|
46
46
|
#endif
|
|
47
47
|
#endif
|
|
48
48
|
#endif
|
|
49
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["bonesDeclarationWGSL",0,{name:t,shader:i}],
|
|
49
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["bonesDeclarationWGSL",0,{name:t,shader:i}],88356);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
50
50
|
uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
|
|
51
51
|
#ifdef INSTANCES
|
|
52
52
|
attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
@@ -54,7 +54,7 @@ attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
|
54
54
|
fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
|
|
55
55
|
{let offset=i32(index)*4;let frameUV=i32(frame);let m0=textureLoad(smp,vec2<i32>(offset+0,frameUV),0);let m1=textureLoad(smp,vec2<i32>(offset+1,frameUV),0);let m2=textureLoad(smp,vec2<i32>(offset+2,frameUV),0);let m3=textureLoad(smp,vec2<i32>(offset+3,frameUV),0);return mat4x4<f32>(m0,m1,m2,m3);}
|
|
56
56
|
#endif
|
|
57
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],
|
|
57
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],58731)},76295,e=>{"use strict";var r=e.i(1719);let t="instancesDeclaration",i=`#ifdef INSTANCES
|
|
58
58
|
attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
|
|
59
59
|
#ifdef INSTANCESCOLOR
|
|
60
60
|
attribute instanceColor : vec4<f32>;
|
|
@@ -76,7 +76,7 @@ uniform world : mat4x4<f32>;
|
|
|
76
76
|
uniform previousWorld : mat4x4<f32>;
|
|
77
77
|
#endif
|
|
78
78
|
#endif
|
|
79
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["instancesDeclarationWGSL",0,{name:t,shader:i}])},
|
|
79
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["instancesDeclarationWGSL",0,{name:t,shader:i}])},77715,e=>{"use strict";var r=e.i(1719);let t="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
|
|
80
80
|
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
81
81
|
#endif
|
|
82
82
|
#ifdef CLIPPLANE2
|
|
@@ -94,7 +94,7 @@ uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
|
94
94
|
#ifdef CLIPPLANE6
|
|
95
95
|
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
96
96
|
#endif
|
|
97
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:t,shader:i}])},
|
|
97
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:t,shader:i}])},18606,64169,67626,31291,e=>{"use strict";var r=e.i(1719);let t="instancesVertex",i=`#ifdef INSTANCES
|
|
98
98
|
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
|
|
99
99
|
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
100
100
|
var finalPreviousWorld=mat4x4<f32>(
|
|
@@ -121,7 +121,7 @@ var finalWorld=mesh.world;
|
|
|
121
121
|
var finalPreviousWorld=uniforms.previousWorld;
|
|
122
122
|
#endif
|
|
123
123
|
#endif
|
|
124
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["instancesVertexWGSL",0,{name:t,shader:i}],
|
|
124
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["instancesVertexWGSL",0,{name:t,shader:i}],18606);let n="bonesVertex",a=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
125
125
|
#if NUM_BONE_INFLUENCERS>0
|
|
126
126
|
var influence : mat4x4<f32>;
|
|
127
127
|
#ifdef BONETEXTURE
|
|
@@ -174,7 +174,7 @@ influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*v
|
|
|
174
174
|
finalWorld=finalWorld*influence;
|
|
175
175
|
#endif
|
|
176
176
|
#endif
|
|
177
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bonesVertexWGSL",0,{name:n,shader:a}],
|
|
177
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bonesVertexWGSL",0,{name:n,shader:a}],64169);let f="bakedVertexAnimation",d=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
178
178
|
{
|
|
179
179
|
#ifdef INSTANCES
|
|
180
180
|
let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
|
|
@@ -205,7 +205,7 @@ VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTextur
|
|
|
205
205
|
#endif
|
|
206
206
|
finalWorld=finalWorld*VATInfluence;}
|
|
207
207
|
#endif
|
|
208
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:d}],
|
|
208
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:d}],67626);let o="clipPlaneVertex",s=`#ifdef CLIPPLANE
|
|
209
209
|
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
210
210
|
#endif
|
|
211
211
|
#ifdef CLIPPLANE2
|
|
@@ -223,7 +223,7 @@ vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
|
|
|
223
223
|
#ifdef CLIPPLANE6
|
|
224
224
|
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
|
|
225
225
|
#endif
|
|
226
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["clipPlaneVertexWGSL",0,{name:o,shader:s}],
|
|
226
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["clipPlaneVertexWGSL",0,{name:o,shader:s}],31291)},31893,46223,90154,75224,e=>{"use strict";var r=e.i(1719);let t="morphTargetsVertexGlobalDeclaration",i=`#ifdef MORPHTARGETS
|
|
227
227
|
uniform morphTargetInfluences : array<f32,NUM_MORPH_INFLUENCERS>;
|
|
228
228
|
#ifdef MORPHTARGETS_TEXTURE
|
|
229
229
|
uniform morphTargetTextureIndices : array<f32,NUM_MORPH_INFLUENCERS>;uniform morphTargetTextureInfo : vec3<f32>;var morphTargets : texture_2d_array<f32>;fn readVector3FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec3<f32>
|
|
@@ -235,7 +235,7 @@ let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
|
|
|
235
235
|
let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
|
|
236
236
|
#endif
|
|
237
237
|
#endif
|
|
238
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:t,shader:i}],
|
|
238
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:t,shader:i}],31893);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
|
|
239
239
|
#ifndef MORPHTARGETS_TEXTURE
|
|
240
240
|
#ifdef MORPHTARGETS_POSITION
|
|
241
241
|
attribute position{X} : vec3<f32>;
|
|
@@ -259,12 +259,12 @@ attribute color{X} : vec4<f32>;
|
|
|
259
259
|
uniform morphTargetCount: f32;
|
|
260
260
|
#endif
|
|
261
261
|
#endif
|
|
262
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],
|
|
262
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[n]||(r.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],46223);let f="morphTargetsVertexGlobal",d=`#ifdef MORPHTARGETS
|
|
263
263
|
#ifdef MORPHTARGETS_TEXTURE
|
|
264
264
|
var vertexID : f32;
|
|
265
265
|
#endif
|
|
266
266
|
#endif
|
|
267
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:d}],
|
|
267
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[f]||(r.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:d}],90154);let o="morphTargetsVertex",s=`#ifdef MORPHTARGETS
|
|
268
268
|
#ifdef MORPHTARGETS_TEXTURE
|
|
269
269
|
#if {X}==0
|
|
270
270
|
for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
|
|
@@ -374,12 +374,12 @@ colorUpdated=colorUpdated+(vertexInputs.color{X}-vertexInputs.color)*uniforms.mo
|
|
|
374
374
|
#endif
|
|
375
375
|
#endif
|
|
376
376
|
#endif
|
|
377
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["morphTargetsVertexWGSL",0,{name:o,shader:s}],
|
|
377
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["morphTargetsVertexWGSL",0,{name:o,shader:s}],75224)},28247,e=>{"use strict";var r=e.i(1719);let t="bumpVertex",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
378
378
|
#if defined(TANGENT) && defined(NORMAL)
|
|
379
379
|
var tbnNormal: vec3f=normalize(normalUpdated);var tbnTangent: vec3f=normalize(tangentUpdated.xyz);var tbnBitangent: vec3f=cross(tbnNormal,tbnTangent)*tangentUpdated.w;var matTemp= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz)* mat3x3f(tbnTangent,tbnBitangent,tbnNormal);vertexOutputs.vTBN0=matTemp[0];vertexOutputs.vTBN1=matTemp[1];vertexOutputs.vTBN2=matTemp[2];
|
|
380
380
|
#endif
|
|
381
381
|
#endif
|
|
382
|
-
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["bumpVertexWGSL",0,{name:t,shader:i}])},
|
|
382
|
+
`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=i),e.s(["bumpVertexWGSL",0,{name:t,shader:i}])},70536,e=>{"use strict";var r=e.i(1719),t=e.i(88356),i=e.i(58731),n=e.i(31893),a=e.i(46223),f=e.i(76295),d=e.i(95611),o=e.i(77715),s=e.i(2720),u=e.i(90154),v=e.i(75224),m=e.i(18606),l=e.i(64169),c=e.i(67626),p=e.i(31291),x=e.i(28247);let S="geometryVertexShader",I=`#include<bonesDeclaration>
|
|
383
383
|
#include<bakedVertexAnimationDeclaration>
|
|
384
384
|
#include<morphTargetsVertexGlobalDeclaration>
|
|
385
385
|
#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
|