@uptimizr/dashboard 0.4.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +9 -9
- package/out/__next._full.txt +10 -10
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{209sxygecny37.js → 0-6mdj5wxsfid.js} +1 -1
- package/out/_next/static/chunks/{0ybs1u66q26su.js → 0-qthfqvm1jyj.js} +1 -1
- package/out/_next/static/chunks/01viyuclp2gm9.js +1 -0
- package/out/_next/static/chunks/02aym4t2hgo5c.js +1 -0
- package/out/_next/static/chunks/02ic9b5ejugow.js +1 -0
- package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
- package/out/_next/static/chunks/{33i36o_l69sm5.js → 03pjr-ivdicng.js} +1 -1
- package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
- package/out/_next/static/chunks/{1zm6eo861i3c8.js → 06dzkwetqis-5.js} +1 -1
- package/out/_next/static/chunks/{3ipx7xbxchsq9.js → 06kvanz5-fo52.js} +1 -1
- package/out/_next/static/chunks/07y8ke_iy59dn.js +1 -0
- package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
- package/out/_next/static/chunks/{35sne1llxnc-m.js → 09khmdgez3t0a.js} +18 -18
- package/out/_next/static/chunks/{02qk_wmkf9at-.js → 0_dca4876jshu.js} +38 -38
- package/out/_next/static/chunks/0axcgnl5qzr6e.js +1 -0
- package/out/_next/static/chunks/0ay4fjomijs3n.js +1 -0
- package/out/_next/static/chunks/0c7fy79wlccat.js +1 -0
- package/out/_next/static/chunks/0cqe4-l3imct3.js +1 -0
- package/out/_next/static/chunks/0cssvelju788j.js +1 -0
- package/out/_next/static/chunks/{0-_j1khfoib6l.js → 0ctain5xq2wsd.js} +12 -12
- package/out/_next/static/chunks/{22yqh0zlo_vwr.js → 0df-dr3otg_4w.js} +1 -1
- package/out/_next/static/chunks/{26y9sv8_-ykxf.js → 0endw997j7ao9.js} +1 -1
- package/out/_next/static/chunks/0ev_pbit1v_qg.js +1 -0
- package/out/_next/static/chunks/0eyw9oiwipywb.js +1 -0
- package/out/_next/static/chunks/0fkzbuo1tex4u.js +1 -0
- package/out/_next/static/chunks/0govas0u0t4w3.js +1 -0
- package/out/_next/static/chunks/{0grasqqf5dw7r.js → 0guzhnususp3-.js} +2 -2
- package/out/_next/static/chunks/0h7bq_ysu17q7.js +3 -0
- package/out/_next/static/chunks/0hneh_3xzlo28.js +1 -0
- package/out/_next/static/chunks/0iaqwme19z_0s.js +1 -0
- package/out/_next/static/chunks/0ibmar10xndpn.js +1 -0
- package/out/_next/static/chunks/0ii8mqoteppgh.js +11 -0
- package/out/_next/static/chunks/{1uh9zgsy69g92.js → 0ip6v64di_l6x.js} +1 -1
- package/out/_next/static/chunks/{267prao6fyt22.js → 0ixymgjgz3grn.js} +10 -10
- package/out/_next/static/chunks/0kuah8g7lt5ox.js +1 -0
- package/out/_next/static/chunks/0l3k4j19vxm17.js +1 -0
- package/out/_next/static/chunks/0l6hg0ohwh9-m.js +1 -0
- package/out/_next/static/chunks/0m4um4ylhlfan.js +1 -0
- package/out/_next/static/chunks/0mj837d4h0ddq.js +1 -0
- package/out/_next/static/chunks/0nyn-f4905o91.js +1 -0
- package/out/_next/static/chunks/0og6i9rsgkuif.js +1 -0
- package/out/_next/static/chunks/0os1x-fxzgnxs.js +1 -0
- package/out/_next/static/chunks/0otnra7mp0hog.js +1 -0
- package/out/_next/static/chunks/{1gttu-n9am66k.js → 0oyf2xzv8ofkk.js} +21 -21
- package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
- package/out/_next/static/chunks/{1qg1l7t00nyib.js → 0rl4ddh2vgxyl.js} +14 -14
- package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
- package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
- package/out/_next/static/chunks/{43fp64xnfy646.js → 0te4g160_rb5d.js} +1 -1
- package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
- package/out/_next/static/chunks/{3h6akt2uu05ku.js → 0uvn0op2mlr2u.js} +12 -12
- package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
- package/out/_next/static/chunks/{1m9zc5gm-327d.js → 0w7c30w07uct2.js} +10 -10
- package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
- package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
- package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
- package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
- package/out/_next/static/chunks/{3vbamaoiuk9yj.js → 0zo8xa0nej3ex.js} +1 -1
- package/out/_next/static/chunks/{2of8q0kaeqpf0.js → 0zsir95gpf3xw.js} +1 -1
- package/out/_next/static/chunks/0zu6ryyj0ig-j.js +3 -0
- package/out/_next/static/chunks/{2c721vfva711t.js → 1-jv8k10q_1uw.js} +1 -1
- package/out/_next/static/chunks/1-s5ioie9a94e.js +1 -0
- package/out/_next/static/chunks/{13zcn4lv0qj76.js → 1-yos1h0qws5e.js} +11 -11
- package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
- package/out/_next/static/chunks/{060iult6f68_e.js → 10pae4gb9i929.js} +29 -29
- package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
- package/out/_next/static/chunks/{0btmk0wmekl02.js → 147s8i_lktp4_.js} +2 -2
- package/out/_next/static/chunks/{3njwfothmmg7u.js → 14tgo5xt_3j4w.js} +1 -1
- package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
- package/out/_next/static/chunks/16d6n9e77rqti.js +1 -0
- package/out/_next/static/chunks/{3zs7l4362msjd.js → 16f3d5dv83rsr.js} +1 -1
- package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
- package/out/_next/static/chunks/{1by60_b14x-3o.js → 16rfr165nbha0.js} +1 -1
- package/out/_next/static/chunks/{0zqgq0lwtz9tn.js → 16sl51pvzo4tf.js} +1 -1
- package/out/_next/static/chunks/{2n-pveub8b_5t.js → 1760s-32qpwgg.js} +1 -1
- package/out/_next/static/chunks/{1u8snlm6a7uhi.js → 18kq07c5xy_4g.js} +4 -4
- package/out/_next/static/chunks/{1rcdimhu0qhlu.js → 190tbzt861ao3.js} +39 -39
- package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
- package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
- package/out/_next/static/chunks/{3huu0tqmxwowu.js → 1_kikmeubh0wq.js} +30 -30
- package/out/_next/static/chunks/1ay3z6agelsvz.js +1 -0
- package/out/_next/static/chunks/1b-fi3bfmpe31.js +1 -0
- package/out/_next/static/chunks/1bae3tqv53x9_.js +1 -0
- package/out/_next/static/chunks/1bf421g4peccx.js +2 -0
- package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
- package/out/_next/static/chunks/{1e8_jl2cxd3rp.js → 1ddt0ot7kl8vq.js} +40 -40
- package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
- package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
- package/out/_next/static/chunks/{2apihn9ra2ufp.js → 1g9p2h1-31q8o.js} +1 -1
- package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
- package/out/_next/static/chunks/{3v-0c2aj6c0on.js → 1h8lyicgqhpxa.js} +1 -1
- package/out/_next/static/chunks/{3772oce1n3t_g.js → 1hot663akaepl.js} +1 -1
- package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
- package/out/_next/static/chunks/{2sys9nj8lo3uk.js → 1i8sk_qgpdjhs.js} +1 -1
- package/out/_next/static/chunks/1k8erl2uygr8g.js +1 -0
- package/out/_next/static/chunks/{30bhz7czzs4mf.js → 1kk3ct7pkpf3b.js} +1 -1
- package/out/_next/static/chunks/{33hp-khdfohdq.js → 1kq9o8del67le.js} +1 -1
- package/out/_next/static/chunks/{3d-i_skta_wes.js → 1l7tzyx2mumlq.js} +1 -1
- package/out/_next/static/chunks/1n_uwed9o--go.js +1 -0
- package/out/_next/static/chunks/1o351eldttogn.js +1 -0
- package/out/_next/static/chunks/1ogs4_aj84bfn.js +1 -0
- package/out/_next/static/chunks/{0sw-8gxbg4x0l.js → 1p206txlluipi.js} +18 -18
- package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
- package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
- package/out/_next/static/chunks/{41b5gpyqbj58m.js → 1qcgdx9yl0gfx.js} +4 -4
- package/out/_next/static/chunks/1ql3mm2w5r-m8.js +1 -0
- package/out/_next/static/chunks/1qvcyuyshi3ll.js +53 -0
- package/out/_next/static/chunks/1r0yyg5a_0knc.js +1 -0
- package/out/_next/static/chunks/{15o4_2t-l3rj5.js → 1sa6qiidtcyk2.js} +1 -1
- package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
- package/out/_next/static/chunks/{1rlfg62jxqj3z.js → 1t97zo0tlpbnz.js} +1 -1
- package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
- package/out/_next/static/chunks/{3sa_hlx3konc7.js → 1trt-m2nrck0v.js} +1 -1
- package/out/_next/static/chunks/1ty9jpwr3o_st.js +1 -0
- package/out/_next/static/chunks/1u6w6veke8rze.js +1 -0
- package/out/_next/static/chunks/1u900urmrbv73.js +1 -0
- package/out/_next/static/chunks/{3_dgblylldcgb.js → 1vz2gd8k74lpi.js} +1 -1
- package/out/_next/static/chunks/1wkpl9bfb0wn7.js +1 -0
- package/out/_next/static/chunks/1wrly9a9c3teq.js +1 -0
- package/out/_next/static/chunks/1x0m05155yy4e.js +1 -0
- package/out/_next/static/chunks/{3xl-op0hwxytg.js → 1xf1wfow43ekc.js} +5 -5
- package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
- package/out/_next/static/chunks/{2s6kpclh6ie7o.js → 1y_zykt3fpen4.js} +29 -29
- package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
- package/out/_next/static/chunks/{1t5oynmttpfsw.js → 1z6_57k5h31u7.js} +1 -1
- package/out/_next/static/chunks/{0lep3_bqwfuin.js → 1zboqft0h6mop.js} +1 -1
- package/out/_next/static/chunks/{43v4y2gu5z9_h.js → 1zr3c351x0ri5.js} +1 -1
- package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
- package/out/_next/static/chunks/206hxrq60f1_e.js +1 -0
- package/out/_next/static/chunks/20r05k3-studj.js +1 -0
- package/out/_next/static/chunks/221j_mhvdpitn.js +1 -0
- package/out/_next/static/chunks/22gs24kj2du56.js +1 -0
- package/out/_next/static/chunks/22x5pd1gyp7sf.js +1 -0
- package/out/_next/static/chunks/{2a07so920b6aa.js → 22z-2t_yp1jzs.js} +1 -1
- package/out/_next/static/chunks/{30n4y_uu8chbh.js → 23hmfdw6z5zfy.js} +30 -30
- package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
- package/out/_next/static/chunks/{3f8qelpscqfym.js → 24tbkj1qkux88.js} +2 -2
- package/out/_next/static/chunks/{2ao-3jzz7yw3p.js → 26cmri51v7497.js} +11 -11
- package/out/_next/static/chunks/27jalbk9zu-2b.js +1 -0
- package/out/_next/static/chunks/285d2s9096ryc.js +1 -0
- package/out/_next/static/chunks/296ykep2nvppv.js +1 -0
- package/out/_next/static/chunks/29nehg5cal-ug.js +1 -0
- package/out/_next/static/chunks/2_a56_k3x7to6.js +1 -0
- package/out/_next/static/chunks/2a-0l6eb1blh3.js +4 -0
- package/out/_next/static/chunks/{3qn6r8-0u6dij.js → 2a31-txop1jzg.js} +38 -38
- package/out/_next/static/chunks/2aanowvpmkmvj.js +1 -0
- package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
- package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
- package/out/_next/static/chunks/{2kok6zedeeltw.js → 2ept01b7t-e03.js} +1 -1
- package/out/_next/static/chunks/{3w59kt5ztyvoq.js → 2ey5dqelco_g5.js} +1 -1
- package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
- package/out/_next/static/chunks/{0fd-0i1yt23kz.js → 2ftz9kaxrsgxh.js} +1 -1
- package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
- package/out/_next/static/chunks/{2izok2otbk8-2.js → 2gs-u1n5uv7iz.js} +37 -37
- package/out/_next/static/chunks/{2r96kyeehsji9.js → 2hizqql79u-54.js} +1 -1
- package/out/_next/static/chunks/2iqf2dpdg_vfl.js +1 -0
- package/out/_next/static/chunks/2j7z127s_ycjd.js +1 -0
- package/out/_next/static/chunks/2kax7uslfxdnx.js +31 -0
- package/out/_next/static/chunks/2lh_w9rzy3vek.js +1 -0
- package/out/_next/static/chunks/{0rracz73p38mo.js → 2ln1na26qwp-3.js} +9 -9
- package/out/_next/static/chunks/2n08l1q5o_27e.js +1 -0
- package/out/_next/static/chunks/2n7268gyd9z-6.js +1 -0
- package/out/_next/static/chunks/2nq9cgjmtqwvp.js +1 -0
- package/out/_next/static/chunks/{005bbq_px7lke.js → 2oj8qc_pv14nk.js} +2 -2
- package/out/_next/static/chunks/2q24e72-olbe8.js +1 -0
- package/out/_next/static/chunks/2qc4hscs26cro.js +1 -0
- package/out/_next/static/chunks/{0gf-ztg86zd80.js → 2qe46redkqhfg.js} +1 -1
- package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
- package/out/_next/static/chunks/{0e1jfrmioeuws.js → 2rofu6gu1xzuq.js} +1 -1
- package/out/_next/static/chunks/2tdi94rkq739i.js +1 -0
- package/out/_next/static/chunks/2u_2sacqa9xa7.js +1 -0
- package/out/_next/static/chunks/2ujqz6088shm5.js +1 -0
- package/out/_next/static/chunks/{1l_3oidssbhns.js → 2urh9qafp3fiw.js} +17 -17
- package/out/_next/static/chunks/{05v-nubi896jg.js → 2v06n4z8wsmn9.js} +1 -1
- package/out/_next/static/chunks/2vp-5skbk1nfu.js +1 -0
- package/out/_next/static/chunks/2vu973j_n6cpx.js +1 -0
- package/out/_next/static/chunks/{37cnbm5ft1mqf.js → 2wwra56rehfcj.js} +1 -1
- package/out/_next/static/chunks/2xpwr97h2asal.js +1 -0
- package/out/_next/static/chunks/3000-0b8n9t_2.js +1 -0
- package/out/_next/static/chunks/30t3203d7p2da.js +1 -0
- package/out/_next/static/chunks/31kto7-dxkt3z.js +1 -0
- package/out/_next/static/chunks/{2lsvk7xcfkarc.js → 32oflcl79d8mu.js} +1 -1
- package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
- package/out/_next/static/chunks/{0z9erbl3llr_b.js → 331kthnvoma7n.js} +16 -16
- package/out/_next/static/chunks/{0q75860p8u_ii.js → 337kn1mn34rc6.js} +1 -1
- package/out/_next/static/chunks/{2tc3e-iqv71y_.js → 33xug8kf0-a1o.js} +1 -1
- package/out/_next/static/chunks/{1-ogak5u00kwa.js → 34dcb7_flbrvo.js} +1 -1
- package/out/_next/static/chunks/34g070edw165e.js +3 -0
- package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
- package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
- package/out/_next/static/chunks/{15jlgfcaeaki9.js → 36yv-ialtpx98.js} +1 -1
- package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
- package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
- package/out/_next/static/chunks/{1q4lkgxfnqnew.js → 37xnvnx1jxfaf.js} +1 -1
- package/out/_next/static/chunks/{2z_iab7ozohhq.js → 38w74ixqt-9co.js} +16 -16
- package/out/_next/static/chunks/{2h249uvhh2sij.js → 39t2x_9zd2rst.js} +10 -10
- package/out/_next/static/chunks/{2n3xu_wbvtj7h.js → 3_xqc3658d8sw.js} +12 -12
- package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
- package/out/_next/static/chunks/{2q6l-xdqzgmpf.js → 3buezhxqc8n6n.js} +1 -1
- package/out/_next/static/chunks/{1zt1xxovnjhkm.js → 3c5iwwj-fhbue.js} +1 -1
- package/out/_next/static/chunks/{2urx6fow8c8c9.js → 3d8ot2tw6yqfq.js} +12 -12
- package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
- package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
- package/out/_next/static/chunks/{2y8i7_nxm4r05.js → 3fuqxjjf8o1v9.js} +5 -5
- package/out/_next/static/chunks/{0z004fn14pbcu.js → 3gt6rzg9qw-an.js} +1 -1
- package/out/_next/static/chunks/{1tgj55b305g4h.js → 3h_05w5j8x538.js} +1 -1
- package/out/_next/static/chunks/{3j9xvdz55bi4p.js → 3hkhd1_k8xohv.js} +33 -33
- package/out/_next/static/chunks/{42ymanq326mo7.js → 3ijcc5tfisfnj.js} +1 -1
- package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
- package/out/_next/static/chunks/{1zkd8v-qka--j.js → 3ju83xk-ca7ma.js} +21 -21
- package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
- package/out/_next/static/chunks/{302qk2fjdrthp.js → 3la99oz_0p0r6.js} +5 -5
- package/out/_next/static/chunks/3n1b34fd5fdrh.js +1 -0
- package/out/_next/static/chunks/{2j120dkh7q3uf.js → 3nq_hq4x3rn3r.js} +1 -1
- package/out/_next/static/chunks/3pgb1kkqrdl9t.js +1 -0
- package/out/_next/static/chunks/3pik_-jj-zkfl.js +1 -0
- package/out/_next/static/chunks/{2w99knknr5i8c.js → 3q38kdbzd2nbd.js} +1 -1
- package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
- package/out/_next/static/chunks/{2uo6vm7mfgrbf.js → 3qr10445lte-n.js} +1 -1
- package/out/_next/static/chunks/3r-8bnguvxsyo.js +1 -0
- package/out/_next/static/chunks/3sg56j8boe-3o.js +1 -0
- package/out/_next/static/chunks/{2q8yg63br2jc9.js → 3u7zj1-jdg781.js} +1 -1
- package/out/_next/static/chunks/{32_c4mbb6j1l6.js → 3wj5dmf6cywz8.js} +22 -22
- package/out/_next/static/chunks/{3oqxl46ukaojj.js → 3wr_oijfsq8lr.js} +11 -11
- package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
- package/out/_next/static/chunks/3y5tpixt23-fl.js +1 -0
- package/out/_next/static/chunks/40gjf-_jt8upu.js +5 -0
- package/out/_next/static/chunks/41f12o_5lf-i9.js +1 -0
- package/out/_next/static/chunks/42ma8lqduohlc.js +1 -0
- package/out/_next/static/chunks/{0ai0zgbgjqb92.js → 43usshq2nc125.js} +1 -1
- package/out/_next/static/chunks/{0hajwk2yd-rwr.js → 44bl4ufopbmyh.js} +1 -1
- package/out/_next/static/chunks/44iutzkw9r21x.js +1 -0
- package/out/_next/static/chunks/turbopack-1xrxa3noq196-.js +1 -0
- package/out/_not-found/__next._full.txt +8 -8
- package/out/_not-found/__next._not-found.__PAGE__.txt +7 -7
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +8 -8
- package/out/index.html +1 -1
- package/out/index.txt +10 -10
- package/package.json +10 -10
- package/out/_next/static/chunks/00fbhtmui-yxg.js +0 -1
- package/out/_next/static/chunks/017pn-pen381_.js +0 -1
- package/out/_next/static/chunks/01vov6inx1zzt.js +0 -1
- package/out/_next/static/chunks/03bd5plut08tg.js +0 -1
- package/out/_next/static/chunks/03dwfqmo73w_z.js +0 -1
- package/out/_next/static/chunks/03sn4419dam-h.js +0 -5
- package/out/_next/static/chunks/05ere0-228syf.js +0 -1
- package/out/_next/static/chunks/05h8u5lrypn5m.js +0 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +0 -1
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +0 -1
- package/out/_next/static/chunks/0_v2luu_qmeid.js +0 -1
- package/out/_next/static/chunks/0boov9mwycanf.js +0 -1
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +0 -1
- package/out/_next/static/chunks/0dmrdrwtd093b.js +0 -1
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +0 -1
- package/out/_next/static/chunks/0es97pusfxupl.js +0 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +0 -1
- package/out/_next/static/chunks/0fxhc24djjcgq.js +0 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +0 -1
- package/out/_next/static/chunks/0j74ipw4fps-n.js +0 -1
- package/out/_next/static/chunks/0kj-vckdn7t5p.js +0 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +0 -1
- package/out/_next/static/chunks/0mp0jh1gj7290.js +0 -1
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +0 -1
- package/out/_next/static/chunks/0nhljhguceh66.js +0 -1
- package/out/_next/static/chunks/0p6z73afb9dj2.js +0 -1
- package/out/_next/static/chunks/0p9zfmidzqkps.js +0 -1
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +0 -1
- package/out/_next/static/chunks/0thw099xk3_0p.js +0 -3
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +0 -1
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +0 -31
- package/out/_next/static/chunks/0ulufxnsrou61.js +0 -1
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +0 -2
- package/out/_next/static/chunks/0xvrfvur0p534.js +0 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +0 -1
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +0 -1
- package/out/_next/static/chunks/10_5p5-xf2aoo.js +0 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +0 -1
- package/out/_next/static/chunks/11km5p4gd0ut4.js +0 -1
- package/out/_next/static/chunks/120rl4l29q9xs.js +0 -1
- package/out/_next/static/chunks/129m5i93ltoym.js +0 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +0 -1
- package/out/_next/static/chunks/133glnfos64oo.js +0 -1
- package/out/_next/static/chunks/175st2ogkg_1o.js +0 -1
- package/out/_next/static/chunks/19rsodtu91ja_.js +0 -1
- package/out/_next/static/chunks/1a2ouhup611bz.js +0 -1
- package/out/_next/static/chunks/1cyq7i39885sl.js +0 -1
- package/out/_next/static/chunks/1d9it6yocgt54.js +0 -1
- package/out/_next/static/chunks/1dp1s1t-y7gal.js +0 -1
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +0 -1
- package/out/_next/static/chunks/1dt30s_sp8415.js +0 -1
- package/out/_next/static/chunks/1f1rek_fxk3of.js +0 -1
- package/out/_next/static/chunks/1f2mna0k5efeq.js +0 -1
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +0 -1
- package/out/_next/static/chunks/1gr35qeguuws0.js +0 -1
- package/out/_next/static/chunks/1imi0xwi9hd99.js +0 -1
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +0 -1
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +0 -3
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +0 -1
- package/out/_next/static/chunks/1nix_lulkpklo.js +0 -1
- package/out/_next/static/chunks/1ntqovuz2c217.js +0 -1
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +0 -1
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +0 -1
- package/out/_next/static/chunks/1ses023uud001.js +0 -1
- package/out/_next/static/chunks/1t9i20i5-f8ze.js +0 -1
- package/out/_next/static/chunks/1ug4k-1zhr63a.js +0 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +0 -1
- package/out/_next/static/chunks/1vurgl6oz2qey.js +0 -17
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +0 -1
- package/out/_next/static/chunks/1ycqxcht6x54p.js +0 -1
- package/out/_next/static/chunks/1zj4307ugq0qz.js +0 -1
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +0 -1
- package/out/_next/static/chunks/1zp9363yfhpom.js +0 -1
- package/out/_next/static/chunks/2-3hk_db5fpok.js +0 -1
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +0 -1
- package/out/_next/static/chunks/216uiih3_vdfd.js +0 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +0 -1
- package/out/_next/static/chunks/24ecas0m9tao7.js +0 -3
- package/out/_next/static/chunks/24pq9210rng3f.js +0 -1
- package/out/_next/static/chunks/26skkagvj1z96.js +0 -1
- package/out/_next/static/chunks/2701xfv_07wz_.js +0 -1
- package/out/_next/static/chunks/271333m8y3k0e.js +0 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +0 -1
- package/out/_next/static/chunks/2a2oy8ryz2tsk.js +0 -1
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +0 -1
- package/out/_next/static/chunks/2b481pitl4k85.js +0 -1
- package/out/_next/static/chunks/2bettxaqt3d2p.js +0 -1
- package/out/_next/static/chunks/2d2kl_m64j9cb.js +0 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +0 -1
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +0 -1
- package/out/_next/static/chunks/2eqbsut829r5l.js +0 -1
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +0 -1
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +0 -1
- package/out/_next/static/chunks/2j2ynchpqh34-.js +0 -1
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +0 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +0 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +0 -1
- package/out/_next/static/chunks/2phl5ta4iim7l.js +0 -12
- package/out/_next/static/chunks/2r5qgieqldcd9.js +0 -1
- package/out/_next/static/chunks/2r7y401cvjc1s.js +0 -1
- package/out/_next/static/chunks/2rmc6ru7mc-kg.js +0 -1
- package/out/_next/static/chunks/2w2k1gveljyb7.js +0 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +0 -4
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +0 -1
- package/out/_next/static/chunks/2x7enks3ydgai.js +0 -1
- package/out/_next/static/chunks/2ydub0t01728d.js +0 -1
- package/out/_next/static/chunks/3-m_vzabs1uez.js +0 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +0 -1
- package/out/_next/static/chunks/355dg8yaa94hr.js +0 -1
- package/out/_next/static/chunks/35ntbr_c-yx44.js +0 -1
- package/out/_next/static/chunks/36enkx1skkv2-.js +0 -4
- package/out/_next/static/chunks/38xdo3cifphut.js +0 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +0 -1
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +0 -1
- package/out/_next/static/chunks/3df_l2we755bb.js +0 -1
- package/out/_next/static/chunks/3eve5y7fpzx2h.js +0 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +0 -1
- package/out/_next/static/chunks/3f3789eh18_oy.js +0 -1
- package/out/_next/static/chunks/3g3-e9m1en45q.js +0 -1
- package/out/_next/static/chunks/3i239y-1hbkm-.js +0 -1
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +0 -1
- package/out/_next/static/chunks/3ksq69yq-40_r.js +0 -1
- package/out/_next/static/chunks/3qye1lytea2i8.js +0 -1
- package/out/_next/static/chunks/3rlp9yr75liz7.js +0 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +0 -1
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +0 -1
- package/out/_next/static/chunks/3utpc-fc6_y0f.js +0 -1
- package/out/_next/static/chunks/3v6nxa28rxngq.js +0 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +0 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +0 -1
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +0 -1
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +0 -1
- package/out/_next/static/chunks/3zdtteq-r2fs5.js +0 -62
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +0 -1
- package/out/_next/static/chunks/40etabvml_71y.js +0 -1
- package/out/_next/static/chunks/417jkzz0slv9m.js +0 -1
- package/out/_next/static/chunks/41u2-5jayyajf.js +0 -22
- package/out/_next/static/chunks/42gcpy51w7lk1.js +0 -1
- package/out/_next/static/chunks/44cer242u-f8v.js +0 -1
- package/out/_next/static/chunks/44zi0gl0a6a8w.js +0 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +0 -1
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_buildManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{A1hxMz783bIWo0Q9qqV3L → ThV8NNsoOCsJ6Q9-7H2dV}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49038,e=>{"use strict";var t=e.i(81705),r=e.i(45389);e.s(["_DDSTextureLoader",0,class{constructor(){this.supportCascades=!0}loadCubeData(e,a,o,l){let i,n=a.getEngine(),s=!1,f=1e3;if(Array.isArray(e))for(let t=0;t<e.length;t++){let o=e[t];a.width=(i=r.DDSTools.GetDDSInfo(o)).width,a.height=i.height,s=(i.isRGB||i.isLuminance||i.mipmapCount>1)&&a.generateMipMaps,n._unpackFlipY(i.isCompressed),r.DDSTools.UploadDDSLevels(n,a,o,i,s,6,-1,t),i.isFourCC||1!==i.mipmapCount?f=i.mipmapCount-1:n.generateMipMapsForCubemap(a)}else a.width=(i=r.DDSTools.GetDDSInfo(e)).width,a.height=i.height,o&&(i.sphericalPolynomial=new t.SphericalPolynomial),s=(i.isRGB||i.isLuminance||i.mipmapCount>1)&&a.generateMipMaps,n._unpackFlipY(i.isCompressed),r.DDSTools.UploadDDSLevels(n,a,e,i,s,6),i.isFourCC||1!==i.mipmapCount?f=i.mipmapCount-1:n.generateMipMapsForCubemap(a,!1);n._setCubeMapTextureParams(a,s,f),a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),l&&l({isDDS:!0,width:a.width,info:i,data:e,texture:a})}loadData(e,t,a){let o=r.DDSTools.GetDDSInfo(e),l=(o.isRGB||o.isLuminance||o.mipmapCount>1)&&t.generateMipMaps&&Math.max(o.width,o.height)>>o.mipmapCount-1==1;a(o.width,o.height,l,o.isFourCC,()=>{r.DDSTools.UploadDDSLevels(t.getEngine(),t,e,o,l,1)})}}])},99373,e=>{"use strict";var t=e.i(56173),r=e.i(76197),a=e.i(81705),o=e.i(33491),l=e.i(24617);class i{constructor(e,t,r,a){this.name=e,this.worldAxisForNormal=t,this.worldAxisForFileX=r,this.worldAxisForFileY=a}}class n{static _NearestPow2Floor(e){return e<=1?1:1<<Math.floor(Math.log2(e))}static ConvertCubeMapTextureToSphericalPolynomial(e){let t,r;if(!e.isCube)return null;e.getScene()?.getEngine().flushFramebuffer();let a=e.getSize().width,o=e._sphericalPolynomialTargetSize,l=o>0?this._NearestPow2Floor(o):0,i=!e.noMipmap&&e._texture?.generateMipMaps===!0,n=l>0&&l<a&&i,s=n?Math.max(0,Math.round(Math.log2(a/l))):0,f=n?Math.max(1,Math.floor(a/Math.pow(2,s))):a,u=e.readPixels(0,s,void 0,!1),c=e.readPixels(1,s,void 0,!1);e.isRenderTarget?(t=e.readPixels(3,s,void 0,!1),r=e.readPixels(2,s,void 0,!1)):(t=e.readPixels(2,s,void 0,!1),r=e.readPixels(3,s,void 0,!1));let p=e.readPixels(4,s,void 0,!1),m=e.readPixels(5,s,void 0,!1),h=e.gammaSpace,A=l>0&&l<a&&!n;return new Promise(e=>{Promise.all([c,u,t,r,p,m]).then(([t,r,o,i,n,s])=>{let u=f;A&&(t=this._DownsampleFace(t,a,l,4),r=this._DownsampleFace(r,a,l,4),o=this._DownsampleFace(o,a,l,4),i=this._DownsampleFace(i,a,l,4),n=this._DownsampleFace(n,a,l,4),s=this._DownsampleFace(s,a,l,4),u=l);let c={size:u,right:r,left:t,up:o,down:i,front:n,back:s,format:5,type:+(t instanceof Float32Array),gammaSpace:h};e(this.ConvertCubeMapToSphericalPolynomial(c))})})}static _AreaElement(e,t){return Math.atan2(e*t,Math.sqrt(e*e+t*t+1))}static _DownsampleFace(e,t,r,a){let o=e instanceof Float32Array?e:Float32Array.from(e),l=r*r*a,i=new Float32Array(l),n=t/r,s=1/(n*n);for(let e=0;e<r;e++){let l=Math.floor(e*n),f=Math.floor((e+1)*n);for(let u=0;u<r;u++){let c=Math.floor(u*n),p=Math.floor((u+1)*n),m=(e*r+u)*a;for(let e=0;e<a;e++){let r=0;for(let i=l;i<f;i++)for(let l=c;l<p;l++)r+=o[(i*t+l)*a+e];i[m+e]=r*s}}}if(e instanceof Float32Array)return i;let f=new e.constructor(l);for(let e=0;e<l;e++)f[e]=i[e]+.5|0;return f}static ConvertCubeMapToSphericalPolynomial(e,t=0){let i=t>0?this._NearestPow2Floor(t):0;if(i>0&&e.size>i){let t=5===e.format?4:3,r={};for(let a of["right","left","up","down","front","back"])r[a]=this._DownsampleFace(e[a],e.size,i,t);e={...e,...r,size:i}}let n=new a.SphericalHarmonics,s=0,f=2/e.size,u=.5*f,c=u-1;for(let t=0;t<6;t++){let a=this._FileFaces[t],i=e[a.name],p=c,m=5===e.format?4:3;for(let t=0;t<e.size;t++){let h=c;for(let c=0;c<e.size;c++){let A=a.worldAxisForFileX.scale(h).add(a.worldAxisForFileY.scale(p)).add(a.worldAxisForNormal);A.normalize();let F=this._AreaElement(h-u,p-u)-this._AreaElement(h-u,p+u)-this._AreaElement(h+u,p-u)+this._AreaElement(h+u,p+u),d=i[t*e.size*m+c*m+0],y=i[t*e.size*m+c*m+1],w=i[t*e.size*m+c*m+2];isNaN(d)&&(d=0),isNaN(y)&&(y=0),isNaN(w)&&(w=0),0===e.type&&(d/=255,y/=255,w/=255),e.gammaSpace&&(d=Math.pow((0,r.Clamp)(d),o.ToLinearSpace),y=Math.pow((0,r.Clamp)(y),o.ToLinearSpace),w=Math.pow((0,r.Clamp)(w),o.ToLinearSpace));let C=this.MAX_HDRI_VALUE;if(this.PRESERVE_CLAMPED_COLORS){let e=Math.max(d,y,w);if(e>C){let t=C/e;d*=t,y*=t,w*=t}}else d=(0,r.Clamp)(d,0,C),y=(0,r.Clamp)(y,0,C),w=(0,r.Clamp)(w,0,C);let _=new l.Color3(d,y,w);n.addLight(A,_,F),s+=F,h+=f}p+=f}}let p=4*Math.PI*6/6/s;return n.scaleInPlace(p),n.convertIncidentRadianceToIrradiance(),n.convertIrradianceToLambertianRadiance(),a.SphericalPolynomial.FromHarmonics(n)}}n._FileFaces=[new i("right",new t.Vector3(1,0,0),new t.Vector3(0,0,-1),new t.Vector3(0,-1,0)),new i("left",new t.Vector3(-1,0,0),new t.Vector3(0,0,1),new t.Vector3(0,-1,0)),new i("up",new t.Vector3(0,1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,1)),new i("down",new t.Vector3(0,-1,0),new t.Vector3(1,0,0),new t.Vector3(0,0,-1)),new i("front",new t.Vector3(0,0,1),new t.Vector3(1,0,0),new t.Vector3(0,-1,0)),new i("back",new t.Vector3(0,0,-1),new t.Vector3(-1,0,0),new t.Vector3(0,-1,0))],n.MAX_HDRI_VALUE=4096,n.PRESERVE_CLAMPED_COLORS=!1,e.s(["CubeMapToSphericalPolynomialTools",0,n])},45389,e=>{"use strict";var t=e.i(76197),r=e.i(8697),a=e.i(99373),o=e.i(61654);function l(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}let i=l("DXT1"),n=l("DXT3"),s=l("DXT5"),f=l("DX10");class u{static GetDDSInfo(e){let t=new Int32Array(e.buffer,e.byteOffset,31),r=new Int32Array(e.buffer,e.byteOffset,35),a=1;131072&t[2]&&(a=Math.max(1,t[7]));let o=t[21],l=o===f?r[32]:0,u=0;switch(o){case 113:u=2;break;case 116:u=1;break;case f:if(10===l){u=2;break}2===l&&(u=1)}return{width:t[4],height:t[3],mipmapCount:a,isFourCC:(4&t[20])==4,isRGB:(64&t[20])==64,isLuminance:(131072&t[20])==131072,isCube:(512&t[28])==512,isCompressed:o===i||o===n||o===s,dxgiFormat:l,textureType:u}}static _GetHalfFloatAsFloatRGBAArrayBuffer(e,t,r,a,l,i){let n=new Float32Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[f]=(0,o.FromHalfFloat)(s[a]),n[f+1]=(0,o.FromHalfFloat)(s[a+1]),n[f+2]=(0,o.FromHalfFloat)(s[a+2]),u.StoreLODInAlphaChannel?n[f+3]=i:n[f+3]=(0,o.FromHalfFloat)(s[a+3]),f+=4}return n}static _GetHalfFloatRGBAArrayBuffer(e,t,r,a,l,i){if(u.StoreLODInAlphaChannel){let n=new Uint16Array(a),s=new Uint16Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;n[f]=s[a],n[f+1]=s[a+1],n[f+2]=s[a+2],n[f+3]=(0,o.ToHalfFloat)(i),f+=4}return n}return new Uint16Array(l,r,a)}static _GetFloatRGBAArrayBuffer(e,t,r,a,o,l){if(u.StoreLODInAlphaChannel){let i=new Float32Array(a),n=new Float32Array(o,r),s=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;i[s]=n[a],i[s+1]=n[a+1],i[s+2]=n[a+2],i[s+3]=l,s+=4}return i}return new Float32Array(o,r,a)}static _GetFloatAsHalfFloatRGBAArrayBuffer(e,t,r,a,l,i){let n=new Uint16Array(a),s=new Float32Array(l,r),f=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++)n[f]=(0,o.ToHalfFloat)(s[f]),n[f+1]=(0,o.ToHalfFloat)(s[f+1]),n[f+2]=(0,o.ToHalfFloat)(s[f+2]),u.StoreLODInAlphaChannel?n[f+3]=(0,o.ToHalfFloat)(i):n[f+3]=(0,o.ToHalfFloat)(s[f+3]),f+=4;return n}static _GetFloatAsUIntRGBAArrayBuffer(e,r,a,o,l,i){let n=new Uint8Array(o),s=new Float32Array(l,a),f=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let o=(r+a*e)*4;n[f]=255*(0,t.Clamp)(s[o]),n[f+1]=255*(0,t.Clamp)(s[o+1]),n[f+2]=255*(0,t.Clamp)(s[o+2]),u.StoreLODInAlphaChannel?n[f+3]=i:n[f+3]=255*(0,t.Clamp)(s[o+3]),f+=4}return n}static _GetHalfFloatAsUIntRGBAArrayBuffer(e,r,a,l,i,n){let s=new Uint8Array(l),f=new Uint16Array(i,a),c=0;for(let a=0;a<r;a++)for(let r=0;r<e;r++){let l=(r+a*e)*4;s[c]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l])),s[c+1]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+1])),s[c+2]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+2])),u.StoreLODInAlphaChannel?s[c+3]=n:s[c+3]=255*(0,t.Clamp)((0,o.FromHalfFloat)(f[l+3])),c+=4}return s}static _GetRGBAArrayBuffer(e,t,r,a,o,l,i,n,s){let f=new Uint8Array(a),u=new Uint8Array(o,r),c=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*4;f[c]=u[a+l],f[c+1]=u[a+i],f[c+2]=u[a+n],f[c+3]=u[a+s],c+=4}return f}static _ExtractLongWordOrder(e){return 0===e||255===e||-0x1000000===e?0:1+u._ExtractLongWordOrder(e>>8)}static _GetRGBArrayBuffer(e,t,r,a,o,l,i,n){let s=new Uint8Array(a),f=new Uint8Array(o,r),u=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=(t+r*e)*3;s[u]=f[a+l],s[u+1]=f[a+i],s[u+2]=f[a+n],u+=3}return s}static _GetLuminanceArrayBuffer(e,t,r,a,o){let l=new Uint8Array(a),i=new Uint8Array(o,r),n=0;for(let r=0;r<t;r++)for(let t=0;t<e;t++){let a=t+r*e;l[n]=i[a],n++}return l}static UploadDDSLevels(e,t,o,l,c,p,m=-1,h,A=!0){let F,d,y,w=null;l.sphericalPolynomial&&(w=[]);let C=!!e.getCaps().s3tc;t.generateMipMaps=c;let _=new Int32Array(o.buffer,o.byteOffset,31),b,D,G,g=0,B,M=0,S=1;if(0x20534444!==_[0])return void r.Logger.Error("Invalid magic number in DDS header");if(!l.isFourCC&&!l.isRGB&&!l.isLuminance)return void r.Logger.Error("Unsupported format, must contain a FourCC, RGB or LUMINANCE code");if(l.isCompressed&&!C)return void r.Logger.Error("Compressed textures are not supported on this platform.");let x=_[22];B=_[1]+4;let T=!1;if(l.isFourCC)switch(b=_[21]){case i:S=8,M=33777;break;case n:S=16,M=33778;break;case s:S=16,M=33779;break;case 113:T=!0,x=64;break;case 116:T=!0,x=128;break;case f:{B+=20;let e=!1;switch(l.dxgiFormat){case 10:T=!0,x=64,e=!0;break;case 2:T=!0,x=128,e=!0;break;case 88:l.isRGB=!0,l.isFourCC=!1,x=32,e=!0}if(e)break}default:r.Logger.Error(["Unsupported FourCC code:",String.fromCharCode(255&b,b>>8&255,b>>16&255,b>>24&255)]);return}let R=u._ExtractLongWordOrder(_[23]),L=u._ExtractLongWordOrder(_[24]),O=u._ExtractLongWordOrder(_[25]),P=u._ExtractLongWordOrder(_[26]);T&&(M=e._getRGBABufferInternalSizedFormat(l.textureType)),d=1,131072&_[2]&&!1!==c&&(d=Math.max(1,_[7]));let H=h||0,U=e.getCaps();for(let r=H;r<p;r++){for(D=_[4],G=_[3],y=0;y<d;++y){if(-1===m||m===y){let a=-1===m?y:0;if(!l.isCompressed&&l.isFourCC){t.format=5,g=D*G*4;let l=null;if(e._badOS||e._badDesktopOS||!U.textureHalfFloat&&!U.textureFloat)128===x?(l=u._GetFloatAsUIntRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(u._GetFloatRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a))):64===x&&(l=u._GetHalfFloatAsUIntRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(u._GetHalfFloatAsFloatRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,a))),t.type=0;else{let e,r=U.textureFloat&&(A&&U.textureFloatLinearFiltering||!A),i=U.textureHalfFloat&&(A&&U.textureHalfFloatLinearFiltering||!A),n=(128===x||64===x&&!i)&&r?1:(64===x||128===x&&!r)&&i?2:0,s=null;if(128===x)switch(n){case 1:e=u._GetFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetFloatAsHalfFloatRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer;break;case 0:e=u._GetFloatAsUIntRGBAArrayBuffer,s=u._GetFloatRGBAArrayBuffer}else switch(n){case 1:e=u._GetHalfFloatAsFloatRGBAArrayBuffer,s=null;break;case 2:e=u._GetHalfFloatRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer;break;case 0:e=u._GetHalfFloatAsUIntRGBAArrayBuffer,s=u._GetHalfFloatAsFloatRGBAArrayBuffer}t.type=n,l=e(D,G,o.byteOffset+B,g,o.buffer,a),w&&0==a&&w.push(s?s(D,G,o.byteOffset+B,g,o.buffer,a):l)}l&&e._uploadDataToTextureDirectly(t,l,r,a)}else if(l.isRGB)t.type=0,24===x?(t.format=4,g=D*G*3,F=u._GetRGBArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,R,L,O)):(t.format=5,g=D*G*4,F=u._GetRGBAArrayBuffer(D,G,o.byteOffset+B,g,o.buffer,R,L,O,P)),e._uploadDataToTextureDirectly(t,F,r,a);else if(l.isLuminance){let l=e._getUnpackAlignement(),i=D;g=Math.floor((D+l-1)/l)*l*(G-1)+i,F=u._GetLuminanceArrayBuffer(D,G,o.byteOffset+B,g,o.buffer),t.format=1,t.type=0,e._uploadDataToTextureDirectly(t,F,r,a)}else g=Math.max(4,D)/4*Math.max(4,G)/4*S,F=new Uint8Array(o.buffer,o.byteOffset+B,g),t.type=0,e._uploadCompressedDataToTextureDirectly(t,M,D,G,F,r,a)}B+=x?D*G*(x/8):g,D*=.5,G*=.5,D=Math.max(1,D),G=Math.max(1,G)}if(void 0!==h)break}w&&w.length>0?l.sphericalPolynomial=a.CubeMapToSphericalPolynomialTools.ConvertCubeMapToSphericalPolynomial({size:_[4],right:w[0],left:w[1],up:w[2],down:w[3],front:w[4],back:w[5],format:5,type:1,gammaSpace:!1}):l.sphericalPolynomial=void 0}}u.StoreLODInAlphaChannel=!1,e.s(["DDSTools",0,u])}]);
|
|
@@ -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,32758,e=>{"use strict";var i=e.i(25044),o=e.i(81402),r=e.i(80667),t=e.i(14230),a=e.i(51587);let n="openpbrFragmentDeclaration",s=`uniform float vBaseWeight;uniform vec4 vBaseColor;uniform float vBaseDiffuseRoughness;uniform vec4 vReflectanceInfo;uniform vec4 vSpecularColor;uniform vec3 vSpecularAnisotropy;uniform float vTransmissionWeight;uniform vec3 vTransmissionColor;uniform float vTransmissionDepth;uniform vec3 vTransmissionScatter;uniform float vTransmissionScatterAnisotropy;uniform float vTransmissionDispersionScale;uniform float vTransmissionDispersionAbbeNumber;uniform float vSubsurfaceWeight;uniform vec3 vSubsurfaceColor;uniform float vSubsurfaceRadius;uniform vec3 vSubsurfaceRadiusScale;uniform float vSubsurfaceScatterAnisotropy;uniform float vCoatWeight;uniform vec3 vCoatColor;uniform float vCoatRoughness;uniform float vCoatRoughnessAnisotropy;uniform float vCoatIor;uniform float vCoatDarkening;uniform float vFuzzWeight;uniform vec3 vFuzzColor;uniform float vFuzzRoughness;uniform vec2 vGeometryCoatTangent;uniform float vGeometryThickness;uniform vec3 vEmissionColor;uniform float vThinFilmWeight;uniform vec2 vThinFilmThickness;uniform float vThinFilmIor;uniform float vGeometryThinWalled;uniform vec4 vLightingIntensity;uniform float visibility;uniform vec2 renderTargetSize;
|
|
2
2
|
#ifdef BASE_COLOR
|
|
3
3
|
uniform vec2 vBaseColorInfos;
|
|
4
4
|
#endif
|
|
@@ -150,7 +150,7 @@ uniform mat4 backgroundRefractionMatrix;uniform vec3 vBackgroundRefractionInfos;
|
|
|
150
150
|
uniform vec4 vTextureRepetitionHexTilingParams;
|
|
151
151
|
#endif
|
|
152
152
|
#define ADDITIONAL_FRAGMENT_DECLARATION
|
|
153
|
-
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=s);var c=e.i(
|
|
153
|
+
`;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=s);var c=e.i(77074),l=e.i(4100),f=e.i(97757),_=e.i(49185),d=e.i(63807),m=e.i(88226),u=e.i(15260),g=e.i(95804),v=e.i(20675);let E="openpbrFragmentSamplersDeclaration",p=`#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_COLOR,_VARYINGNAME_,BaseColor,_SAMPLERNAME_,baseColor)
|
|
154
154
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_WEIGHT,_VARYINGNAME_,BaseWeight,_SAMPLERNAME_,baseWeight)
|
|
155
155
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_DIFFUSE_ROUGHNESS,_VARYINGNAME_,BaseDiffuseRoughness,_SAMPLERNAME_,baseDiffuseRoughness)
|
|
156
156
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BASE_METALNESS,_VARYINGNAME_,BaseMetalness,_SAMPLERNAME_,baseMetalness)
|
|
@@ -202,7 +202,7 @@ uniform sampler2D blueNoiseSampler;
|
|
|
202
202
|
#ifdef IBL_CDF_FILTERING
|
|
203
203
|
uniform sampler2D icdfSampler;
|
|
204
204
|
#endif
|
|
205
|
-
`;i.ShaderStore.IncludesShadersStore[E]||(i.ShaderStore.IncludesShadersStore[E]=p);var h=e.i(
|
|
205
|
+
`;i.ShaderStore.IncludesShadersStore[E]||(i.ShaderStore.IncludesShadersStore[E]=p);var h=e.i(15607),S=e.i(5721),R=e.i(10874),I=e.i(68767),T=e.i(62948),A=e.i(31660),N=e.i(25176),b=e.i(72317),L=e.i(7750),F=e.i(79573),O=e.i(75664),C=e.i(8823),D=e.i(31444),P=e.i(44239),M=e.i(34464),G=e.i(16300),x=e.i(32181),y=e.i(50154),z=e.i(18054);let U="openpbrNormalMapFragmentMainFunctions",X=`#if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ) || defined(DETAIL)
|
|
206
206
|
#if defined(TANGENT) && defined(NORMAL)
|
|
207
207
|
varying mat3 vTBN;
|
|
208
208
|
#endif
|
|
@@ -296,7 +296,7 @@ return -texCoordOffset;
|
|
|
296
296
|
#endif
|
|
297
297
|
}
|
|
298
298
|
#endif
|
|
299
|
-
`;i.ShaderStore.IncludesShadersStore[w]||(i.ShaderStore.IncludesShadersStore[w]=W);var H=e.i(
|
|
299
|
+
`;i.ShaderStore.IncludesShadersStore[w]||(i.ShaderStore.IncludesShadersStore[w]=W);var H=e.i(12075),B=e.i(28818);let V="openpbrConductorReflectance",k=`#define pbr_inline
|
|
300
300
|
ReflectanceParams conductorReflectance(in vec3 baseColor,in vec3 specularColor,in float specularWeight)
|
|
301
301
|
{ReflectanceParams outParams;
|
|
302
302
|
#if (CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR)
|
|
@@ -306,7 +306,7 @@ outParams.coloredF0=baseColor;outParams.coloredF90=vec3(1.0);
|
|
|
306
306
|
#endif
|
|
307
307
|
outParams.F0=1.0;outParams.F90=1.0;return outParams;}`;i.ShaderStore.IncludesShadersStore[V]||(i.ShaderStore.IncludesShadersStore[V]=k);let Y="openpbrAmbientOcclusionFunctions",Z=`float compute_specular_occlusion(const float n_dot_v,const float metallic,const float ambient_occlusion,const float roughness)
|
|
308
308
|
{float specular_occlusion=saturate(pow(n_dot_v+ambient_occlusion,exp2(-16.0*roughness-1.0))-1.0+ambient_occlusion);return mix(specular_occlusion,1.0,metallic*square(1.0-roughness));}
|
|
309
|
-
`;i.ShaderStore.IncludesShadersStore[Y]||(i.ShaderStore.IncludesShadersStore[Y]=Z);var j=e.i(
|
|
309
|
+
`;i.ShaderStore.IncludesShadersStore[Y]||(i.ShaderStore.IncludesShadersStore[Y]=Z);var j=e.i(49914),q=e.i(73772);let K="openpbrVolumeFunctions",Q=`struct OpenPBRHomogeneousVolume {vec3 extinction_coeff;
|
|
310
310
|
vec3 ss_albedo;
|
|
311
311
|
vec3 multi_scatter_color;
|
|
312
312
|
vec3 absorption_coeff;
|
|
@@ -362,7 +362,7 @@ float filter_samples_scale=samples_scale(pixels_to_projective(overscan_size_in_p
|
|
|
362
362
|
{vec3 weights=sss_irradiance.a/sss_samples_pdf(icdf,dz)*sss_pdf(dist,d.rgb);irradiance_sum+=weights*sss_irradiance.rgb;weight_sum+=weights;}}
|
|
363
363
|
return vec3(weight_sum.r<1e-5f ? unconvolved_irradiance.r : irradiance_sum.r/weight_sum.r,
|
|
364
364
|
weight_sum.g<1e-5f ? unconvolved_irradiance.g : irradiance_sum.g/weight_sum.g,
|
|
365
|
-
weight_sum.b<1e-5f ? unconvolved_irradiance.b : irradiance_sum.b/weight_sum.b);}`;i.ShaderStore.IncludesShadersStore[K]||(i.ShaderStore.IncludesShadersStore[K]=Q);var J=e.i(
|
|
365
|
+
weight_sum.b<1e-5f ? unconvolved_irradiance.b : irradiance_sum.b/weight_sum.b);}`;i.ShaderStore.IncludesShadersStore[K]||(i.ShaderStore.IncludesShadersStore[K]=Q);var J=e.i(47727),$=e.i(8734);let ee="openpbrNormalMapFragment",ei=`vec2 uvOffset=vec2(0.0,0.0);
|
|
366
366
|
#if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || defined(PARALLAX) || defined(DETAIL)
|
|
367
367
|
#ifdef NORMALXYSCALE
|
|
368
368
|
float normalScale=1.0;
|
|
@@ -558,7 +558,7 @@ float detailRoughness=mix(0.5,detailColor.b,vDetailInfos.w);float loLerp=mix(0.,
|
|
|
558
558
|
#ifdef USE_GLTF_STYLE_ANISOTROPY
|
|
559
559
|
float baseAlpha=specular_roughness*specular_roughness;float roughnessT=mix(baseAlpha,1.0,specular_roughness_anisotropy*specular_roughness_anisotropy);float roughnessB=baseAlpha;specular_roughness_anisotropy=1.0-roughnessB/max(roughnessT,0.00001);specular_roughness=sqrt(roughnessT/sqrt(2.0/(1.0+(1.0-specular_roughness_anisotropy)*(1.0-specular_roughness_anisotropy))));
|
|
560
560
|
#endif
|
|
561
|
-
`;i.ShaderStore.IncludesShadersStore[et]||(i.ShaderStore.IncludesShadersStore[et]=ea);var en=e.i(
|
|
561
|
+
`;i.ShaderStore.IncludesShadersStore[et]||(i.ShaderStore.IncludesShadersStore[et]=ea);var en=e.i(86781),es=e.i(74221);let ec="openpbrCoatLayerData",el=`float coat_weight=0.0;vec3 coat_color=vec3(1.0);float coat_roughness=0.0;float coat_roughness_anisotropy=0.0;float coat_ior=1.6;float coat_darkening=1.0;vec2 geometry_coat_tangent=vec2(1.0,0.0);
|
|
562
562
|
#ifdef COAT_WEIGHT
|
|
563
563
|
vec4 coatWeightFromTexture=TEXRD(coatWeightSampler,vCoatWeightUV+uvOffset);
|
|
564
564
|
#endif
|
|
@@ -660,7 +660,7 @@ fuzz_roughness*=fuzzRoughnessFromTexture.r;
|
|
|
660
660
|
#ifdef AMBIENT_OCCLUSION
|
|
661
661
|
vec3 ambientOcclusionFromTexture=TEXRD(ambientOcclusionSampler,vAmbientOcclusionUV+uvOffset).rgb;ambient_occlusion=vec3(ambientOcclusionFromTexture.r*vAmbientOcclusionInfos.y+(1.0-vAmbientOcclusionInfos.y));
|
|
662
662
|
#endif
|
|
663
|
-
`;i.ShaderStore.IncludesShadersStore[eu]||(i.ShaderStore.IncludesShadersStore[eu]=eg);var ev=e.i(
|
|
663
|
+
`;i.ShaderStore.IncludesShadersStore[eu]||(i.ShaderStore.IncludesShadersStore[eu]=eg);var ev=e.i(95530);let eE="openpbrBackgroundTransmission",ep=`vec4 slab_translucent_background=vec4(0.,0.,0.,1.);
|
|
664
664
|
#ifdef REFRACTED_BACKGROUND
|
|
665
665
|
{float refractionLOD=min(transmission_roughness,0.8)*vBackgroundRefractionInfos.x;float lodTexelSize=pow(2.0,refractionLOD-vBackgroundRefractionInfos.x);
|
|
666
666
|
#ifdef DISPERSION
|
|
@@ -1226,7 +1226,7 @@ total_direct_diffuse+=slab_diffuse;
|
|
|
1226
1226
|
#endif
|
|
1227
1227
|
vec3 material_dielectric_base=mix(slab_diffuse*base_color.rgb,slab_translucent,surface_translucency_weight);vec3 material_dielectric_gloss=material_dielectric_base*(1.0-specularFresnel)+slab_glossy*specularColoredFresnel;vec3 material_base_substrate=mix(material_dielectric_gloss,slab_metal,base_metalness);vec3 material_coated_base=layer(material_base_substrate,slab_coat,coatFresnel,coatAbsorption,vec3(1.0));material_surface_direct+=layer(material_coated_base,slab_fuzz,fuzzFresnel*fuzz_weight,vec3(1.0),fuzz_color);}
|
|
1228
1228
|
#endif
|
|
1229
|
-
`;i.ShaderStore.IncludesShadersStore[eT]||(i.ShaderStore.IncludesShadersStore[eT]=eA);var eN=e.i(
|
|
1229
|
+
`;i.ShaderStore.IncludesShadersStore[eT]||(i.ShaderStore.IncludesShadersStore[eT]=eA);var eN=e.i(28497),eb=e.i(78133),eL=e.i(46456);let eF="openpbrBlockPrePass",eO=`#if SCENE_MRT_COUNT>0
|
|
1230
1230
|
float writeGeometryInfo=finalColor.a>ALPHATESTVALUE ? 1.0 : 0.0;
|
|
1231
1231
|
#ifdef PREPASS_POSITION
|
|
1232
1232
|
gl_FragData[PREPASS_POSITION_INDEX]=vec4(vPositionW,writeGeometryInfo);
|
|
@@ -1292,7 +1292,7 @@ gl_FragData[PREPASS_REFLECTIVITY_INDEX]=vec4( 0.0,0.0,0.0,1.0 )*writeGeometryInf
|
|
|
1292
1292
|
#endif
|
|
1293
1293
|
#endif
|
|
1294
1294
|
#endif
|
|
1295
|
-
`;i.ShaderStore.IncludesShadersStore[eF]||(i.ShaderStore.IncludesShadersStore[eF]=eO);var eC=e.i(
|
|
1295
|
+
`;i.ShaderStore.IncludesShadersStore[eF]||(i.ShaderStore.IncludesShadersStore[eF]=eO);var eC=e.i(33152),eD=e.i(37897);let eP="openpbrPixelShader",eM=`#define OPENPBR_FRAGMENT_SHADER
|
|
1296
1296
|
#define CUSTOM_FRAGMENT_EXTENSION
|
|
1297
1297
|
#if defined(GEOMETRY_NORMAL) || defined(GEOMETRY_COAT_NORMAL) || !defined(NORMAL) || defined(FORCENORMALFORWARD) || defined(SPECULARAA)
|
|
1298
1298
|
#extension GL_OES_standard_derivatives : enable
|
|
@@ -1528,4 +1528,4 @@ if (fragDepth==nearestDepth) {frontColor.rgb+=finalColor.rgb*finalColor.a*alphaM
|
|
|
1528
1528
|
#include<pbrDebug>
|
|
1529
1529
|
#define CUSTOM_FRAGMENT_MAIN_END
|
|
1530
1530
|
}
|
|
1531
|
-
`;for(let e of(i.ShaderStore.ShadersStore[eP]||(i.ShaderStore.ShadersStore[eP]=eM),[o.prePassDeclaration,r.oitDeclaration,t.sceneFragmentDeclaration,a.decalFragmentDeclaration,{name:n,shader:s},c.sceneUboDeclaration,l.meshUboDeclaration,f.openpbrUboDeclaration,_.mainUVVaryingDeclaration,d.pbrFragmentExtraDeclaration,m.lightFragmentDeclaration,u.lightUboDeclaration,g.samplerFragmentDeclaration,v.pbrFragmentReflectionDeclaration,{name:E,shader:p},h.imageProcessingDeclaration,S.clipPlaneFragmentDeclaration,R.logDepthDeclaration,I.fogFragmentDeclaration,T.textureRepetitionFunctions,A.helperFunctions,N.subSurfaceScatteringFunctions,b.importanceSampling,L.pbrHelperFunctions,F.imageProcessingFunctions,O.shadowsFragmentFunctions,C.harmonicsFunctions,D.ltcHelperFunctions,P.pbrDirectLightingSetupFunctions,M.pbrDirectLightingFalloffFunctions,G.pbrBRDFFunctions,x.hdrFilteringFunctions,y.pbrDirectLightingFunctions,z.pbrIBLFunctions,{name:U,shader:X},{name:w,shader:W},H.reflectionFunction,B.openpbrDielectricReflectance,{name:V,shader:k},{name:Y,shader:Z},j.openpbrGeometryInfo,q.openpbrIblFunctions,{name:K,shader:Q},J.clipPlaneFragment,$.pbrBlockNormalGeometric,{name:ee,shader:ei},{name:eo,shader:er},{name:et,shader:ea},en.openpbrTransmissionLayerData,es.openpbrSubsurfaceLayerData,{name:ec,shader:el},{name:ef,shader:e_},{name:ed,shader:em},{name:eu,shader:eg},ev.depthPrePass,{name:eE,shader:ep},{name:eh,shader:eS},{name:eR,shader:eI},{name:eT,shader:eA},eN.logDepthFragment,eb.fogFragment,eL.pbrBlockImageProcessing,{name:eF,shader:eO},eC.oitFragment,eD.pbrDebug]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrPixelShader",0,{name:eP,shader:eM}],
|
|
1531
|
+
`;for(let e of(i.ShaderStore.ShadersStore[eP]||(i.ShaderStore.ShadersStore[eP]=eM),[o.prePassDeclaration,r.oitDeclaration,t.sceneFragmentDeclaration,a.decalFragmentDeclaration,{name:n,shader:s},c.sceneUboDeclaration,l.meshUboDeclaration,f.openpbrUboDeclaration,_.mainUVVaryingDeclaration,d.pbrFragmentExtraDeclaration,m.lightFragmentDeclaration,u.lightUboDeclaration,g.samplerFragmentDeclaration,v.pbrFragmentReflectionDeclaration,{name:E,shader:p},h.imageProcessingDeclaration,S.clipPlaneFragmentDeclaration,R.logDepthDeclaration,I.fogFragmentDeclaration,T.textureRepetitionFunctions,A.helperFunctions,N.subSurfaceScatteringFunctions,b.importanceSampling,L.pbrHelperFunctions,F.imageProcessingFunctions,O.shadowsFragmentFunctions,C.harmonicsFunctions,D.ltcHelperFunctions,P.pbrDirectLightingSetupFunctions,M.pbrDirectLightingFalloffFunctions,G.pbrBRDFFunctions,x.hdrFilteringFunctions,y.pbrDirectLightingFunctions,z.pbrIBLFunctions,{name:U,shader:X},{name:w,shader:W},H.reflectionFunction,B.openpbrDielectricReflectance,{name:V,shader:k},{name:Y,shader:Z},j.openpbrGeometryInfo,q.openpbrIblFunctions,{name:K,shader:Q},J.clipPlaneFragment,$.pbrBlockNormalGeometric,{name:ee,shader:ei},{name:eo,shader:er},{name:et,shader:ea},en.openpbrTransmissionLayerData,es.openpbrSubsurfaceLayerData,{name:ec,shader:el},{name:ef,shader:e_},{name:ed,shader:em},{name:eu,shader:eg},ev.depthPrePass,{name:eE,shader:ep},{name:eh,shader:eS},{name:eR,shader:eI},{name:eT,shader:eA},eN.logDepthFragment,eb.fogFragment,eL.pbrBlockImageProcessing,{name:eF,shader:eO},eC.oitFragment,eD.pbrDebug]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrPixelShader",0,{name:eP,shader:eM}],32758)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97279,11705,65699,61410,e=>{"use strict";let t,r,i,o,n,a,s,l,g,u,h,c,_,m,p,f,y,T,x,d,b,M;var j,P,v=e.i(28215),R=e.i(56173),C=e.i(15713),L=e.i(24617),N=e.i(73403),w=e.i(5207),A=e.i(22247),D=e.i(93663);let S=(n=A.Light,a=[],j=class extends n{constructor(){super(...arguments),this._position=(0,N.__runInitializers)(this,a),this._needProjectionMatrixCompute=!0,this._viewMatrix=R.Matrix.Identity(),this._projectionMatrix=R.Matrix.Identity()}_setPosition(e){this._position=e}get position(){return this._position}set position(e){this._setPosition(e)}_setDirection(e){this._direction=e}get direction(){return this._direction}set direction(e){this._setDirection(e)}get shadowMinZ(){return this._shadowMinZ}set shadowMinZ(e){this._shadowMinZ=e,this.forceProjectionMatrixCompute()}get shadowMaxZ(){return this._shadowMaxZ}set shadowMaxZ(e){this._shadowMaxZ=e,this.forceProjectionMatrixCompute()}computeTransformedInformation(){return!!this.parent&&!!this.parent.getWorldMatrix&&(this.transformedPosition||(this.transformedPosition=R.Vector3.Zero()),R.Vector3.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this.transformedPosition),this.direction&&(this.transformedDirection||(this.transformedDirection=R.Vector3.Zero()),R.Vector3.TransformNormalToRef(this.direction,this.parent.getWorldMatrix(),this.transformedDirection)),!0)}getDepthScale(){return 50}getShadowDirection(e){return this.transformedDirection?this.transformedDirection:this.direction}getAbsolutePosition(){return this.transformedPosition?this.transformedPosition:this.position}setDirectionToTarget(e){return this.direction=R.Vector3.Normalize(e.subtract(this.position)),this.direction}getRotation(){this.direction.normalize();let e=R.Vector3.Cross(this.direction,D.Axis.Y),t=R.Vector3.Cross(e,this.direction);return R.Vector3.RotationFromAxis(e,t,this.direction)}needCube(){return!1}needProjectionMatrixCompute(){return this._needProjectionMatrixCompute}forceProjectionMatrixCompute(){this._needProjectionMatrixCompute=!0}_initCache(){super._initCache(),this._cache.position=R.Vector3.Zero()}_isSynchronized(){return!!this._cache.position.equals(this.position)}computeWorldMatrix(e){return!e&&this.isSynchronized()?this._currentRenderId=this.getScene().getRenderId():(this._updateCache(),this._cache.position.copyFrom(this.position),this._worldMatrix||(this._worldMatrix=R.Matrix.Identity()),R.Matrix.TranslationToRef(this.position.x,this.position.y,this.position.z,this._worldMatrix),this.parent&&this.parent.getWorldMatrix&&(this._worldMatrix.multiplyToRef(this.parent.getWorldMatrix(),this._worldMatrix),this._markSyncedWithParent()),this._worldMatrixDeterminantIsDirty=!0),this._worldMatrix}getDepthMinZ(e){return void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ||0}getDepthMaxZ(e){return void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ||1e4}setShadowProjectionMatrix(e,t,r){return this.customProjectionMatrixBuilder?this.customProjectionMatrixBuilder(t,r,e):this._setDefaultShadowProjectionMatrix(e,t,r),this}_syncParentEnabledState(){super._syncParentEnabledState(),this.parent&&this.parent.getWorldMatrix||(this.transformedPosition=null,this.transformedDirection=null)}getViewMatrix(e){let t=R.TmpVectors.Vector3[0],r=this.position;this.computeTransformedInformation()&&(r=this.transformedPosition),R.Vector3.NormalizeToRef(this.getShadowDirection(e),t),1===Math.abs(R.Vector3.Dot(t,R.Vector3.Up()))&&(t.z=1e-13);let i=R.TmpVectors.Vector3[1];return r.addToRef(t,i),R.Matrix.LookAtLHToRef(r,i,R.Vector3.Up(),this._viewMatrix),this._viewMatrix}getProjectionMatrix(e,t){return this.setShadowProjectionMatrix(this._projectionMatrix,e??this._viewMatrix,t??[]),this._projectionMatrix}},s="function"==typeof Symbol&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0,t=[(0,w.serializeAsVector3)()],r=[(0,w.serializeAsVector3)()],i=[(0,w.serialize)()],o=[(0,w.serialize)()],(0,N.__esDecorate)(j,null,t,{kind:"getter",name:"position",static:!1,private:!1,access:{has:e=>"position"in e,get:e=>e.position},metadata:s},null,a),(0,N.__esDecorate)(j,null,r,{kind:"getter",name:"direction",static:!1,private:!1,access:{has:e=>"direction"in e,get:e=>e.direction},metadata:s},null,a),(0,N.__esDecorate)(j,null,i,{kind:"getter",name:"shadowMinZ",static:!1,private:!1,access:{has:e=>"shadowMinZ"in e,get:e=>e.shadowMinZ},metadata:s},null,a),(0,N.__esDecorate)(j,null,o,{kind:"getter",name:"shadowMaxZ",static:!1,private:!1,access:{has:e=>"shadowMaxZ"in e,get:e=>e.shadowMaxZ},metadata:s},null,a),s&&Object.defineProperty(j,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),j);e.s(["ShadowLight",0,S],11705);var V=e.i(80603),F=e.i(43384),I=e.i(68282);let O=(f=S,y=[],T=[],x=[],d=[],b=[],P=class extends f{get iesProfileTexture(){return this._iesProfileTexture}set iesProfileTexture(e){this._iesProfileTexture!==e&&(this._iesProfileTexture=e,this._iesProfileTexture&&P._IsTexture(this._iesProfileTexture)&&this._iesProfileTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()}))}get angle(){return this._angle}set angle(e){this._angle=e,this._cosHalfAngle=Math.cos(.5*e),this._projectionTextureProjectionLightDirty=!0,this.forceProjectionMatrixCompute(),this._computeAngleValues()}get innerAngle(){return this._innerAngle}set innerAngle(e){this._innerAngle=e,this._computeAngleValues()}get shadowAngleScale(){return this._shadowAngleScale}set shadowAngleScale(e){this._shadowAngleScale=e,this.forceProjectionMatrixCompute()}get projectionTextureMatrix(){return this._projectionTextureMatrix}get projectionTextureLightNear(){return this._projectionTextureLightNear}set projectionTextureLightNear(e){this._projectionTextureLightNear=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureLightFar(){return this._projectionTextureLightFar}set projectionTextureLightFar(e){this._projectionTextureLightFar=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureUpDirection(){return this._projectionTextureUpDirection}set projectionTextureUpDirection(e){this._projectionTextureUpDirection=e,this._projectionTextureViewLightDirty=!0}get projectionTexture(){return this._projectionTexture}set projectionTexture(e){this._projectionTexture!==e&&(this._projectionTexture=e,this._projectionTextureDirty=!0,this._projectionTexture&&!this._projectionTexture.isReady()&&(P._IsProceduralTexture(this._projectionTexture)?this._projectionTexture.getEffect().executeWhenCompiled(()=>{this._markMeshesAsLightDirty()}):P._IsTexture(this._projectionTexture)&&this._projectionTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()})))}static _IsProceduralTexture(e){return void 0!==e.onGeneratedObservable}static _IsTexture(e){return void 0!==e.onLoadObservable}get projectionTextureProjectionLightMatrix(){return this._projectionTextureProjectionLightMatrix}set projectionTextureProjectionLightMatrix(e){this._projectionTextureProjectionLightMatrix=e,this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0}constructor(e,t,r,i,o,n,a){super(e,n,a),this._angle=(0,N.__runInitializers)(this,y),this._innerAngle=0,this._iesProfileTexture=null,this.exponent=(0,N.__runInitializers)(this,T,void 0),this._projectionTextureMatrix=((0,N.__runInitializers)(this,x),R.Matrix.Zero()),this._projectionTextureLightNear=1e-6,this._projectionTextureLightFar=1e3,this._projectionTextureUpDirection=R.Vector3.Up(),this._projectionTexture=(0,N.__runInitializers)(this,d,void 0),this._projectionTextureViewLightDirty=((0,N.__runInitializers)(this,b),!0),this._projectionTextureProjectionLightDirty=!0,this._projectionTextureDirty=!0,this._projectionTextureViewTargetVector=R.Vector3.Zero(),this._projectionTextureViewLightMatrix=R.Matrix.Zero(),this._projectionTextureProjectionLightMatrix=R.Matrix.Zero(),this._projectionTextureScalingMatrix=R.Matrix.FromValues(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1),this.position=t,this.direction=r,this.angle=i,this.exponent=o}getClassName(){return"SpotLight"}getTypeID(){return A.Light.LIGHTTYPEID_SPOTLIGHT}_setDirection(e){super._setDirection(e),this._projectionTextureViewLightDirty=!0}_setPosition(e){super._setPosition(e),this._projectionTextureViewLightDirty=!0}_setDefaultShadowProjectionMatrix(e,t,r){let i=this.getScene().activeCamera;if(!i)return;this._shadowAngleScale=this._shadowAngleScale||1;let o=this._shadowAngleScale*this._angle,n=void 0!==this.shadowMinZ?this.shadowMinZ:i.minZ,a=void 0!==this.shadowMaxZ?this.shadowMaxZ:i.maxZ,s=this.getScene().getEngine().useReverseDepthBuffer;R.Matrix.PerspectiveFovLHToRef(o,1,s?a:n,s?n:a,e,!0,this._scene.getEngine().isNDCHalfZRange,void 0,s)}_computeProjectionTextureViewLightMatrix(){this._projectionTextureViewLightDirty=!1,this._projectionTextureDirty=!0,this.getAbsolutePosition().addToRef(this.getShadowDirection(),this._projectionTextureViewTargetVector),R.Matrix.LookAtLHToRef(this.getAbsolutePosition(),this._projectionTextureViewTargetVector,this._projectionTextureUpDirection,this._projectionTextureViewLightMatrix)}_computeProjectionTextureProjectionLightMatrix(){this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0;let e=this.projectionTextureLightFar,t=this.projectionTextureLightNear,r=e/(e-t),i=1/Math.tan(this._angle/2);R.Matrix.FromValuesToRef(i/1,0,0,0,0,i,0,0,0,0,r,1,0,0,-r*t,0,this._projectionTextureProjectionLightMatrix)}_computeProjectionTextureMatrix(){if(this._projectionTextureDirty=!1,this._projectionTextureViewLightMatrix.multiplyToRef(this._projectionTextureProjectionLightMatrix,this._projectionTextureMatrix),this._projectionTexture instanceof V.Texture){let e=this._projectionTexture.uScale/2,t=this._projectionTexture.vScale/2;R.Matrix.FromValuesToRef(e,0,0,0,0,t,0,0,0,0,.5,0,.5,.5,.5,1,this._projectionTextureScalingMatrix)}this._projectionTextureMatrix.multiplyToRef(this._projectionTextureScalingMatrix,this._projectionTextureMatrix)}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightDirection",3),this._uniformBuffer.addUniform("vLightFalloff",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeAngleValues(){this._lightAngleScale=1/Math.max(.001,Math.cos(.5*this._innerAngle)-this._cosHalfAngle),this._lightAngleOffset=-this._cosHalfAngle*this._lightAngleScale}transferTexturesToEffect(e,t){return this.projectionTexture&&this.projectionTexture.isReady()&&(this._projectionTextureViewLightDirty&&this._computeProjectionTextureViewLightMatrix(),this._projectionTextureProjectionLightDirty&&this._computeProjectionTextureProjectionLightMatrix(),this._projectionTextureDirty&&this._computeProjectionTextureMatrix(),e.setMatrix("textureProjectionMatrix"+t,this._projectionTextureMatrix),e.setTexture("projectionLightTexture"+t,this.projectionTexture)),this._iesProfileTexture&&this._iesProfileTexture.isReady()&&e.setTexture("iesLightTexture"+t,this._iesProfileTexture),this}transferToEffect(e,t){let r,i=this._scene.floatingOriginOffset;return this.computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this.transformedPosition.x-i.x,this.transformedPosition.y-i.y,this.transformedPosition.z-i.z,this.exponent,t),r=R.Vector3.Normalize(this.transformedDirection)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-i.x,this.position.y-i.y,this.position.z-i.z,this.exponent,t),r=R.Vector3.Normalize(this.direction)),this._uniformBuffer.updateFloat4("vLightDirection",r.x,r.y,r.z,this._cosHalfAngle,t),this._uniformBuffer.updateFloat4("vLightFalloff",this.range,this._inverseSquaredRange,this._lightAngleScale,this._lightAngleOffset,t),this}transferToNodeMaterialEffect(e,t){let r;return r=this.computeTransformedInformation()?R.Vector3.Normalize(this.transformedDirection):R.Vector3.Normalize(this.direction),this.getScene().useRightHandedSystem?e.setFloat3(t,-r.x,-r.y,-r.z):e.setFloat3(t,r.x,r.y,r.z),this}dispose(){super.dispose(),this._projectionTexture&&this._projectionTexture.dispose(),this._iesProfileTexture&&(this._iesProfileTexture.dispose(),this._iesProfileTexture=null)}getDepthMinZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ??0;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?r:this._scene.getEngine().isNDCHalfZRange?0:r}getDepthMaxZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ??1e4;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?0:r}areLightTexturesReady(){return(!this._projectionTexture||!!this._projectionTexture.isReadyOrNotBlocking())&&(!this._iesProfileTexture||!!this._iesProfileTexture.isReadyOrNotBlocking())}prepareLightSpecificDefines(e,t){e["SPOTLIGHT"+t]=!0,e["PROJECTEDLIGHTTEXTURE"+t]=!!(this.projectionTexture&&this.projectionTexture.isReady()),e["IESLIGHTTEXTURE"+t]=!!(this._iesProfileTexture&&this._iesProfileTexture.isReady())}},M="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0,l=[(0,w.serialize)()],g=[(0,w.serialize)()],u=[(0,w.serialize)()],h=[(0,w.serialize)()],c=[(0,w.serialize)()],_=[(0,w.serialize)()],m=[(0,w.serialize)()],p=[(0,w.serializeAsTexture)("projectedLightTexture")],(0,N.__esDecorate)(P,null,l,{kind:"getter",name:"angle",static:!1,private:!1,access:{has:e=>"angle"in e,get:e=>e.angle},metadata:M},null,y),(0,N.__esDecorate)(P,null,g,{kind:"getter",name:"innerAngle",static:!1,private:!1,access:{has:e=>"innerAngle"in e,get:e=>e.innerAngle},metadata:M},null,y),(0,N.__esDecorate)(P,null,u,{kind:"getter",name:"shadowAngleScale",static:!1,private:!1,access:{has:e=>"shadowAngleScale"in e,get:e=>e.shadowAngleScale},metadata:M},null,y),(0,N.__esDecorate)(P,null,c,{kind:"getter",name:"projectionTextureLightNear",static:!1,private:!1,access:{has:e=>"projectionTextureLightNear"in e,get:e=>e.projectionTextureLightNear},metadata:M},null,y),(0,N.__esDecorate)(P,null,_,{kind:"getter",name:"projectionTextureLightFar",static:!1,private:!1,access:{has:e=>"projectionTextureLightFar"in e,get:e=>e.projectionTextureLightFar},metadata:M},null,y),(0,N.__esDecorate)(P,null,m,{kind:"getter",name:"projectionTextureUpDirection",static:!1,private:!1,access:{has:e=>"projectionTextureUpDirection"in e,get:e=>e.projectionTextureUpDirection},metadata:M},null,y),(0,N.__esDecorate)(null,null,h,{kind:"field",name:"exponent",static:!1,private:!1,access:{has:e=>"exponent"in e,get:e=>e.exponent,set:(e,t)=>{e.exponent=t}},metadata:M},T,x),(0,N.__esDecorate)(null,null,p,{kind:"field",name:"_projectionTexture",static:!1,private:!1,access:{has:e=>"_projectionTexture"in e,get:e=>e._projectionTexture,set:(e,t)=>{e._projectionTexture=t}},metadata:M},d,b),M&&Object.defineProperty(P,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:M}),P),Z=!1;e.s(["RegisterSpotLight",0,function(){Z||(Z=!0,F.Node.AddNodeConstructor("Light_Type_2",(e,t)=>()=>new O(e,R.Vector3.Zero(),R.Vector3.Zero(),0,0,t)),(0,I.RegisterClass)("BABYLON.SpotLight",O))},"SpotLight",0,O],65699);var H=e.i(69194);let K=[{regex:RegExp("^/nodes/\\d+/extensions/")},{regex:RegExp("^/animations/\\d+/extensions/")},{regex:RegExp("^/nodes/\\d+/weights")},{regex:RegExp("^/meshes/\\d+/weights")},{regex:RegExp("/extensions/KHR_texture_transform/")}];class k{constructor(e,t){this._gltf=e,this._infoTree=t}convert(e){let t,r=this._gltf,i=this._infoTree;if(!e.startsWith("/"))throw Error("Path must start with a /");let o=e.split("/");if(o.shift(),o[o.length-1].includes(".length")){let e=o[o.length-1].split(".");o.pop(),o.push(...e)}let n=!1;for(let a of o){if("length"===a){if(i.length)i=i.length;else if(i.__array__)throw Error(`Path ${e} is invalid - no length accessor`);else throw Error(`Path ${e} is invalid`);void 0!==r&&(t=r);continue}if(i.__ignoreObjectTree__&&(n=!0),i.__array__)i=i.__array__;else if(!(i=i[a]))throw Error(`Path ${e} is invalid`);if(i.__passThroughTarget__)n=!0;else if(n){let e=/^\d+$/.test(a)?parseInt(a,10):NaN;if(!isNaN(e)&&"function"==typeof i.get){let t=i;(i={...t}).get=(r,i,...o)=>t.get(r,e,...o),"function"==typeof t.set&&(i.set=(r,i,o,...n)=>t.set(r,i,e,...n)),"function"==typeof t.getTarget&&(i.getTarget=(r,i,...o)=>t.getTarget(r,e,...o))}}else if(void 0===r){if(!K.find(t=>t.regex.test(e)))throw Error(`Path ${e} is invalid`)}else r=r?.[a];i.__target__&&void 0!==r&&(t=r)}return{object:t,info:i}}}function E(e,t){return{type:"FlowGraphInteger",get:t=>{let r=e(t);return void 0===r?void 0:H.FlowGraphInteger.FromValue(r)},getTarget:t,getPropertyName:[()=>"length"]}}let z={length:E(e=>e.length,e=>e.map(e=>e._babylonTransformNode)),__array__:{__target__:!0,translation:{type:"Vector3",get:e=>e._babylonTransformNode?.position,set:(e,t)=>t._babylonTransformNode?.position.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"position"]},rotation:{type:"Quaternion",get:e=>e._babylonTransformNode?.rotationQuaternion,set:(e,t)=>t._babylonTransformNode?.rotationQuaternion?.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"rotationQuaternion"]},scale:{type:"Vector3",get:e=>e._babylonTransformNode?.scaling,set:(e,t)=>t._babylonTransformNode?.scaling.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"scaling"]},weights:{__passThroughTarget__:!0,length:E(e=>{let t=Q(e);return t?t.mtm.numTargets:e?.mesh!==void 0?0:void 0},e=>e?._babylonTransformNode),__array__:{__target__:!0,type:"number",get:(e,t)=>{let r=Q(e);if(r&&void 0!==t&&t>=0&&t<r.mtm.numTargets)return G(r.mtm.getTarget(t).influence)},set:(e,t,r)=>{let i="number"==typeof e?e:"number"==typeof e?.value?e.value:e,o=Q(t);if(o&&void 0!==r&&!(r<0)&&!(r>=o.mtm.numTargets))for(let e of o.meshes){let t=e.morphTargetManager?.getTarget(r);t&&(t.influence=i)}},getTarget:(e,t)=>{let r=Q(e);return r&&void 0!==t&&t>=0&&t<r.mtm.numTargets?r.mtm.getTarget(t):e?._babylonTransformNode},getPropertyName:[()=>"influence"]},type:"number[]",get:e=>{let t=Q(e);if(!t)return[];let r=[];for(let e=0;e<t.mtm.numTargets;e++)r.push(G(t.mtm.getTarget(e).influence));return r},getTarget:e=>e?._babylonTransformNode,getPropertyName:[()=>"influence"]},matrix:{type:"Matrix",get:e=>R.Matrix.Compose(e._babylonTransformNode?.scaling,e._babylonTransformNode?.rotationQuaternion,e._babylonTransformNode?.position),getTarget:e=>e._babylonTransformNode,isReadOnly:!0},globalMatrix:{type:"Matrix",get:e=>{let t=R.Matrix.Identity(),r=e.parent;for(;r&&r.parent;)r=r.parent;let i=e._babylonTransformNode?.position._isDirty||e._babylonTransformNode?.rotationQuaternion?._isDirty||e._babylonTransformNode?.scaling._isDirty;if(r){let o=r._babylonTransformNode?.computeWorldMatrix(!0).invert();o&&e._babylonTransformNode?.computeWorldMatrix(i)?.multiplyToRef(o,t)}else e._babylonTransformNode&&t.copyFrom(e._babylonTransformNode.computeWorldMatrix(i));return t},getTarget:e=>e._babylonTransformNode,isReadOnly:!0},camera:{type:"string",get:e=>void 0!==e.camera?`/cameras/${e.camera}`:"",getTarget:e=>e,isReadOnly:!0},mesh:{type:"string",get:e=>void 0!==e.mesh?`/meshes/${e.mesh}`:"",getTarget:e=>e,isReadOnly:!0},skin:{type:"string",get:e=>void 0!==e.skin?`/skins/${e.skin}`:"",getTarget:e=>e,isReadOnly:!0},parent:{type:"string",get:e=>e.parent&&void 0!==e.parent.index?`/nodes/${e.parent.index}`:"",getTarget:e=>e,isReadOnly:!0},children:{length:E(e=>e?.length??0,e=>e??[]),__array__:{__target__:!0,type:"string",get:e=>"number"==typeof e?`/nodes/${e}`:"",getTarget:()=>({__nodeIndex:!0}),isReadOnly:!0}},extensions:{EXT_lights_ies:{multiplier:{type:"number",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof O,!0)[0]?.intensity,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof O,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof O,!0)[0];r&&(r.intensity=e)}}},color:{type:"Color3",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof O,!0)[0]?.diffuse,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof O,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof O,!0)[0];r&&(r.diffuse=e)}}}},KHR_node_visibility:{visible:{type:"boolean",get:e=>!!e._primitiveBabylonMeshes&&e._primitiveBabylonMeshes[0].isVisible,getTarget:()=>void 0,set:(e,t)=>{t._primitiveBabylonMeshes&&t._primitiveBabylonMeshes.forEach(t=>t.isVisible=e)}}}}}},B={length:E(e=>e.length,e=>e.map(e=>e._babylonAnimationGroup)),__array__:{__target__:!0,type:"string",get:e=>e&&"number"==typeof e.index?`/animations/${e.index}`:"",getTarget:e=>e._babylonAnimationGroup,isReadOnly:!0}},$={length:E(e=>e.length,e=>e.map(e=>e.primitives[0]._instanceData?.babylonSourceMesh)),__array__:{__target__:!0,primitives:{length:E(e=>e?.length??0,e=>e??[]),__array__:{__target__:!0,material:{type:"string",get:e=>void 0!==e.material?`/materials/${e.material}`:"",getTarget:e=>e,isReadOnly:!0}}},weights:{length:E(e=>e?.length??0,e=>e??[]),__array__:{__target__:!0,type:"number",get:e=>e,getTarget:()=>({__weightValue:!0}),isReadOnly:!0}}}};function U(e,t,r,i){let o=W(e,t);return i?o[r][i]:o[r]}function W(e,t,r){return e._data?.[r?.fillMode??C.Constants.MATERIAL_TriangleFillMode]?.babylonMaterial}function Q(e){let t=e?._babylonTransformNode;if(!t)return;let r=function(e){let t=e?._babylonTransformNode;if(!t)return;if(t.morphTargetManager)return t.morphTargetManager;let r=e._primitiveBabylonMeshes;if(r)for(let e of r){if(e?.morphTargetManager)return e.morphTargetManager;if(e?.sourceMesh?.morphTargetManager)return e.sourceMesh.morphTargetManager}}(e);if(r&&e._primitiveBabylonMeshes&&e._primitiveBabylonMeshes.length>0)return{mtm:r,meshes:e._primitiveBabylonMeshes};for(let e of t.getDescendants(!1)){let t=e.morphTargetManager??e.sourceMesh?.morphTargetManager;if(!t)continue;let r=[],i=e.parent;if(i)for(let e of i.getChildMeshes(!0))(e.morphTargetManager??e.sourceMesh?.morphTargetManager)===t&&r.push(e);return 0===r.length&&r.push(e),{mtm:t,meshes:r}}}function G(e){return Number.isFinite(e)?parseFloat(e.toPrecision(7)):e}function Y(e,t,r){if(!e)return;let i=e.extensions;if(!i){if(!r)return;e.extensions=i={}}let o=i[t.extensionKey];if(!o){if(!r)return;o={},i[t.extensionKey]=o}for(let e of t.texturePath){let t=o[e];if(!t){if(!r)return;t={},o[e]=t}o=t}if(!o.extensions){if(!r)return;o.extensions={}}let n=o.extensions.KHR_texture_transform;if(!n){if(!r)return;n={},o.extensions.KHR_texture_transform=n}return n}function X(e,t,r){return{offset:{componentsCount:2,type:"Vector2",get:(i,o,n)=>{let a=U(i,n,e,t);if(a)return new R.Vector2(a.uOffset,a.vOffset);if(r){let e=Y(i,r,!1),t=e?.offset;return new R.Vector2(t?.[0]??0,t?.[1]??0)}return new R.Vector2(0,0)},getTarget:W,set:(i,o,n,a)=>{let s=U(o,a,e,t);if(s&&(s.uOffset=i.x,s.vOffset=i.y),r){let e=Y(o,r,!0);e&&(e.offset=[i.x,i.y])}},getPropertyName:[()=>`${e}${t?"."+t:""}.uOffset`,()=>`${e}${t?"."+t:""}.vOffset`]},rotation:{type:"number",get:(i,o,n)=>{let a=U(i,n,e,t);if(a)return a.wAng;if(r){let e=Y(i,r,!1);return e?.rotation??0}return 0},getTarget:W,set:(i,o,n,a)=>{let s=U(o,a,e,t);if(s&&(s.wAng=i),r){let e=Y(o,r,!0);e&&(e.rotation=i)}},getPropertyName:[()=>`${e}${t?"."+t:""}.wAng`]},scale:{componentsCount:2,type:"Vector2",get:(i,o,n)=>{let a=U(i,n,e,t);if(a)return new R.Vector2(a.uScale,a.vScale);if(r){let e=Y(i,r,!1),t=e?.scale;return new R.Vector2(t?.[0]??1,t?.[1]??1)}return new R.Vector2(1,1)},getTarget:W,set:(i,o,n,a)=>{let s=U(o,a,e,t);if(s&&(s.uScale=i.x,s.vScale=i.y),r){let e=Y(o,r,!0);e&&(e.scale=[i.x,i.y])}},getPropertyName:[()=>`${e}${t?"."+t:""}.uScale`,()=>`${e}${t?"."+t:""}.vScale`]}}}let q={scene:{__target__:!0,type:"number",get:e=>e??0,getTarget:()=>({__gltfRoot:!0}),isReadOnly:!0,getPropertyName:[()=>"scene"]},cameras:{length:E(e=>e.length,e=>e.map(e=>e._babylonCamera)),__array__:{__target__:!0,orthographic:{xmag:{componentsCount:2,type:"Vector2",get:e=>new R.Vector2(e._babylonCamera?.orthoLeft??0,e._babylonCamera?.orthoRight??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoLeft=e.x,t._babylonCamera.orthoRight=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoLeft",()=>"orthoRight"]},ymag:{componentsCount:2,type:"Vector2",get:e=>new R.Vector2(e._babylonCamera?.orthoBottom??0,e._babylonCamera?.orthoTop??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoBottom=e.x,t._babylonCamera.orthoTop=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoBottom",()=>"orthoTop"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}},perspective:{aspectRatio:{type:"number",get:e=>e._babylonCamera?.getEngine().getAspectRatio(e._babylonCamera),getTarget:e=>e,getPropertyName:[()=>"aspectRatio"],isReadOnly:!0},yfov:{type:"number",get:e=>e._babylonCamera?.fov,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.fov=e)},getTarget:e=>e,getPropertyName:[()=>"fov"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}}}},nodes:z,materials:{length:E(e=>e.length,e=>e.map(e=>e._data?.[C.Constants.MATERIAL_TriangleFillMode]?.babylonMaterial)),__array__:{__target__:!0,doubleSided:{type:"boolean",get:(e,t,r)=>!W(e,t,r)?.backFaceCulling,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.backFaceCulling=!e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"backFaceCulling"]},alphaCutoff:{type:"number",get:(e,t,r)=>W(e,t,r)?.alphaCutOff,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.alphaCutOff=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"alphaCutOff"]},emissiveFactor:{type:"Color3",get:(e,t,r)=>W(e,t,r).emissiveColor,set:(e,t,r,i)=>W(t,r,i).emissiveColor.copyFrom(e),getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"emissiveColor"]},emissiveTexture:{extensions:{KHR_texture_transform:X("emissiveTexture")}},normalTexture:{scale:{type:"number",get:(e,t,r)=>U(e,r,"bumpTexture")?.level,set:(e,t,r,i)=>{let o=U(t,i,"bumpTexture");o&&(o.level=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"level"]},extensions:{KHR_texture_transform:X("bumpTexture")}},occlusionTexture:{strength:{type:"number",get:(e,t,r)=>W(e,t,r).ambientTextureStrength,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.ambientTextureStrength=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"ambientTextureStrength"]},extensions:{KHR_texture_transform:X("ambientTexture")}},pbrMetallicRoughness:{baseColorFactor:{type:"Color4",get:(e,t,r)=>{let i=W(e,t,r);return L.Color4.FromColor3(i.albedoColor,i.alpha)},set:(e,t,r,i)=>{let o=W(t,r,i);o.albedoColor.set(e.r,e.g,e.b),o.alpha=e.a},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"albedoColor",()=>"alpha"]},baseColorTexture:{extensions:{KHR_texture_transform:X("albedoTexture")}},metallicFactor:{type:"number",get:(e,t,r)=>W(e,t,r).metallic,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.metallic=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"metallic"]},roughnessFactor:{type:"number",get:(e,t,r)=>W(e,t,r).roughness,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.roughness=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"roughness"]},metallicRoughnessTexture:{extensions:{KHR_texture_transform:X("metallicTexture")}}},extensions:{KHR_materials_anisotropy:{anisotropyStrength:{type:"number",get:(e,t,r)=>W(e,t,r)?.anisotropy?.intensity,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.anisotropy.intensity=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"anisotropy.intensity"]},anisotropyRotation:{type:"number",get:(e,t,r)=>W(e,t,r)?.anisotropy?.angle,set:(e,t,r,i)=>{let o=W(t,r,i);o&&(o.anisotropy.angle=e)},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"anisotropy.angle"]},anisotropyTexture:{extensions:{KHR_texture_transform:X("anisotropy","texture")}}},KHR_materials_clearcoat:{clearcoatFactor:{type:"number",get:(e,t,r)=>W(e,t,r).clearCoat.intensity,set:(e,t,r,i)=>{W(t,r,i).clearCoat.intensity=e},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"clearCoat.intensity"]},clearcoatRoughnessFactor:{type:"number",get:(e,t,r)=>W(e,t,r).clearCoat.roughness,set:(e,t,r,i)=>{W(t,r,i).clearCoat.roughness=e},getTarget:(e,t,r)=>W(e,t,r),getPropertyName:[()=>"clearCoat.roughness"]},clearcoatTexture:{extensions:{KHR_texture_transform:X("clearCoat","texture")}},clearcoatNormalTexture:{scale:{type:"number",get:(e,t,r)=>W(e,t,r).clearCoat.bumpTexture?.level,getTarget:W,set:(e,t,r,i)=>W(t,r,i).clearCoat.bumpTexture.level=e},extensions:{KHR_texture_transform:X("clearCoat","bumpTexture")}},clearcoatRoughnessTexture:{extensions:{KHR_texture_transform:X("clearCoat","textureRoughness")}}},KHR_materials_dispersion:{dispersion:{type:"number",get:(e,t,r)=>W(e,t,r).subSurface.dispersion,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.dispersion=e}},KHR_materials_emissive_strength:{emissiveStrength:{type:"number",get:(e,t,r)=>W(e,t,r).emissiveIntensity,getTarget:W,set:(e,t,r,i)=>W(t,r,i).emissiveIntensity=e}},KHR_materials_ior:{ior:{type:"number",get:(e,t,r)=>W(e,t,r).indexOfRefraction,getTarget:W,set:(e,t,r,i)=>W(t,r,i).indexOfRefraction=e}},KHR_materials_iridescence:{iridescenceFactor:{type:"number",get:(e,t,r)=>W(e,t,r).iridescence.intensity,getTarget:W,set:(e,t,r,i)=>W(t,r,i).iridescence.intensity=e},iridescenceIor:{type:"number",get:(e,t,r)=>W(e,t,r).iridescence.indexOfRefraction,getTarget:W,set:(e,t,r,i)=>W(t,r,i).iridescence.indexOfRefraction=e},iridescenceTexture:{extensions:{KHR_texture_transform:X("iridescence","texture")}},iridescenceThicknessMaximum:{type:"number",get:(e,t,r)=>W(e,t,r).iridescence.maximumThickness,getTarget:W,set:(e,t,r,i)=>W(t,r,i).iridescence.maximumThickness=e},iridescenceThicknessMinimum:{type:"number",get:(e,t,r)=>W(e,t,r).iridescence.minimumThickness,getTarget:W,set:(e,t,r,i)=>W(t,r,i).iridescence.minimumThickness=e},iridescenceThicknessTexture:{extensions:{KHR_texture_transform:X("iridescence","thicknessTexture")}}},KHR_materials_sheen:{sheenColorFactor:{type:"Color3",get:(e,t,r)=>W(e,t,r).sheen.color,getTarget:W,set:(e,t,r,i)=>W(t,r,i).sheen.color.copyFrom(e)},sheenColorTexture:{extensions:{KHR_texture_transform:X("sheen","texture")}},sheenRoughnessFactor:{type:"number",get:(e,t,r)=>W(e,t,r).sheen.intensity,getTarget:W,set:(e,t,r,i)=>W(t,r,i).sheen.intensity=e},sheenRoughnessTexture:{extensions:{KHR_texture_transform:X("sheen","textureRoughness")}}},KHR_materials_specular:{specularFactor:{type:"number",get:(e,t,r)=>W(e,t,r).metallicF0Factor,getTarget:W,set:(e,t,r,i)=>W(t,r,i).metallicF0Factor=e,getPropertyName:[()=>"metallicF0Factor"]},specularColorFactor:{type:"Color3",get:(e,t,r)=>W(e,t,r).metallicReflectanceColor,getTarget:W,set:(e,t,r,i)=>W(t,r,i).metallicReflectanceColor.copyFrom(e),getPropertyName:[()=>"metallicReflectanceColor"]},specularTexture:{extensions:{KHR_texture_transform:X("metallicReflectanceTexture")}},specularColorTexture:{extensions:{KHR_texture_transform:X("reflectanceTexture")}}},KHR_materials_transmission:{transmissionFactor:{type:"number",get:(e,t,r)=>W(e,t,r).subSurface.refractionIntensity,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.refractionIntensity=e,getPropertyName:[()=>"subSurface.refractionIntensity"]},transmissionTexture:{extensions:{KHR_texture_transform:X("subSurface","refractionIntensityTexture",{extensionKey:"KHR_materials_transmission",texturePath:["transmissionTexture"]})}}},KHR_materials_diffuse_transmission:{diffuseTransmissionFactor:{type:"number",get:(e,t,r)=>W(e,t,r).subSurface.translucencyIntensity,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.translucencyIntensity=e},diffuseTransmissionTexture:{extensions:{KHR_texture_transform:X("subSurface","translucencyIntensityTexture",{extensionKey:"KHR_materials_diffuse_transmission",texturePath:["diffuseTransmissionTexture"]})}},diffuseTransmissionColorFactor:{type:"Color3",get:(e,t,r)=>W(e,t,r).subSurface.translucencyColor,getTarget:W,set:(e,t,r,i)=>e&&W(t,r,i).subSurface.translucencyColor?.copyFrom(e)},diffuseTransmissionColorTexture:{extensions:{KHR_texture_transform:X("subSurface","translucencyColorTexture",{extensionKey:"KHR_materials_diffuse_transmission",texturePath:["diffuseTransmissionColorTexture"]})}}},KHR_materials_volume:{attenuationColor:{type:"Color3",get:(e,t,r)=>W(e,t,r).subSurface.tintColor,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.tintColor.copyFrom(e)},attenuationDistance:{type:"number",get:(e,t,r)=>W(e,t,r).subSurface.tintColorAtDistance,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.tintColorAtDistance=e},thicknessFactor:{type:"number",get:(e,t,r)=>W(e,t,r).subSurface.maximumThickness,getTarget:W,set:(e,t,r,i)=>W(t,r,i).subSurface.maximumThickness=e},thicknessTexture:{extensions:{KHR_texture_transform:X("subSurface","thicknessTexture",{extensionKey:"KHR_materials_volume",texturePath:["thicknessTexture"]})}}}}}},extensions:{KHR_lights_punctual:{lights:{length:E(e=>e.length,e=>e.map(e=>e._babylonLight)),__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},range:{type:"number",get:e=>e._babylonLight?.range,set:(e,t)=>t._babylonLight?t._babylonLight.range=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"range"]},spot:{innerConeAngle:{type:"number",get:e=>e._babylonLight?.innerAngle,set:(e,t)=>t._babylonLight?t._babylonLight.innerAngle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"innerConeAngle"]},outerConeAngle:{type:"number",get:e=>e._babylonLight?.angle,set:(e,t)=>t._babylonLight?t._babylonLight.angle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"outerConeAngle"]}}}}},EXT_lights_area:{lights:{length:E(e=>e.length,e=>e.map(e=>e._babylonLight)),__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},size:{type:"number",get:e=>e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.height=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"size"]},rect:{aspect:{type:"number",get:e=>e._babylonLight?.width/e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.width=e*t._babylonLight.height:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"aspect"]}}}}},EXT_lights_ies:{lights:{length:E(e=>e.length,e=>e.map(e=>e._babylonLight))}},EXT_lights_image_based:{lights:{length:E(e=>e.length,e=>e.map(e=>e._babylonTexture)),__array__:{__target__:!0,intensity:{type:"number",get:e=>e._babylonTexture?.level,set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.level=e)},getTarget:e=>e._babylonTexture},rotation:{type:"Quaternion",get:e=>e._babylonTexture&&R.Quaternion.FromRotationMatrix(e._babylonTexture?.getReflectionTextureMatrix()),set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.getScene()?.useRightHandedSystem||(e=R.Quaternion.Inverse(e)),R.Matrix.FromQuaternionToRef(e,t._babylonTexture.getReflectionTextureMatrix()))},getTarget:e=>e._babylonTexture}}}}},animations:B,meshes:$,scenes:{length:E(e=>e.length,e=>e),__array__:{__target__:!0,nodes:{length:E(e=>e?.length??0,e=>e??[]),__array__:{__target__:!0,type:"string",get:e=>"number"==typeof e?`/nodes/${e}`:"",getTarget:()=>({__nodeIndex:!0}),isReadOnly:!0}}}},skins:{length:E(e=>e.length,e=>e.map(e=>e._data?.babylonSkeleton)),__array__:{__target__:!0,joints:{length:E(e=>e?.length??0,e=>e??[]),__array__:{__target__:!0,type:"string",get:e=>"number"==typeof e?`/nodes/${e}`:"",getTarget:()=>({__nodeIndex:!0}),isReadOnly:!0}},skeleton:{type:"string",get:e=>{let t=e.skeleton;return"number"==typeof t?`/nodes/${t}`:""},getTarget:e=>e,isReadOnly:!0}}}};function J(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=q;for(let e of r)e&&(i=i[e]);i&&i.type&&i.get&&(i.interpolation=t)}function ee(e,t,r,i){return R.Vector3.FromArray(t,r).scaleInPlace(i)}function et(e,t,r,i){return R.Quaternion.FromArray(t,r).scaleInPlace(i)}function er(e,t,r,i){let o=Array(e._numMorphTargets);for(let e=0;e<o.length;e++)o[e]=t[r++]*i;return o}e.s(["AddObjectAccessorToKey",0,function(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=q;for(let e of r)if(e){if(!i[e]){if("?"===e){i.__ignoreObjectTree__=!0;continue}i[e]={},"__array__"===e&&(i[e].__target__=!0)}i=i[e]}Object.assign(i,t)},"GetMappingForKey",0,function(e){let t=e.split("/").map(e=>e.replace(/{}/g,"__array__")),r=q;for(let e of t)e&&(r=r[e]);if(r&&r.type&&r.get)return r},"GetPathToObjectConverter",0,function(e){return new k(e,q)},"SetInterpolationForKey",0,J],61410);class ei{constructor(e,t,r,i){this.type=e,this.name=t,this.getValue=r,this.getStride=i}_buildAnimation(e,t,r){let i=new v.Animation(e,this.name,t,this.type);return i.setKeys(r,!0),i}}class eo extends ei{buildAnimations(e,t,r,i){let o=[];return o.push({babylonAnimatable:e._babylonTransformNode,babylonAnimation:this._buildAnimation(t,r,i)}),o}}class en extends ei{buildAnimations(e,t,r,i){let o=[];if(e._numMorphTargets)for(let n=0;n<e._numMorphTargets;n++){let a=new v.Animation(`${t}_${n}`,this.name,r,this.type);if(a.setKeys(i.map(e=>({frame:e.frame,inTangent:e.inTangent?e.inTangent[n]:void 0,value:e.value[n],outTangent:e.outTangent?e.outTangent[n]:void 0,interpolation:e.interpolation})),!0),e._primitiveBabylonMeshes){for(let t of e._primitiveBabylonMeshes)if(t.morphTargetManager){let e=t.morphTargetManager.getTarget(n),r=a.clone();e.animations.push(r),o.push({babylonAnimatable:e,babylonAnimation:r})}}}return o}}let ea=!1;e.s(["AnimationPropertyInfo",0,ei,"RegisterGLTFLoaderAnimation",0,function(){ea||(ea=!0,J("/nodes/{}/translation",[new eo(v.Animation.ANIMATIONTYPE_VECTOR3,"position",ee,()=>3)]),J("/nodes/{}/rotation",[new eo(v.Animation.ANIMATIONTYPE_QUATERNION,"rotationQuaternion",et,()=>4)]),J("/nodes/{}/scale",[new eo(v.Animation.ANIMATIONTYPE_VECTOR3,"scaling",ee,()=>3)]),J("/nodes/{}/weights",[new en(v.Animation.ANIMATIONTYPE_FLOAT,"influence",er,e=>e._numMorphTargets)]))},"TransformNodeAnimationPropertyInfo",0,eo,"WeightAnimationPropertyInfo",0,en,"getQuaternion",0,et,"getVector3",0,ee,"getWeights",0,er],97279)}]);
|
|
@@ -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,92655,36435,78948,e=>{"use strict";var t=e.i(25044);let i="bumpFragmentMainFunctions",o=`#ifndef TEXRD_DEFINED
|
|
2
2
|
#define TEXRD(s,uv) texture2D(s,uv)
|
|
3
3
|
#define TEXRD_DEFINED
|
|
4
4
|
#endif
|
|
@@ -63,7 +63,7 @@ vec3 perturbNormal(mat3 cotangentFrame,vec3 textureSample,float scale)
|
|
|
63
63
|
mat3 cotangent_frame(vec3 normal,vec3 p,vec2 uv,vec2 tangentSpaceParams)
|
|
64
64
|
{vec3 dp1=dFdx(p);vec3 dp2=dFdy(p);vec2 duv1=dFdx(uv);vec2 duv2=dFdy(uv);vec3 dp2perp=cross(dp2,normal);vec3 dp1perp=cross(normal,dp1);vec3 tangent=dp2perp*duv1.x+dp1perp*duv2.x;vec3 bitangent=dp2perp*duv1.y+dp1perp*duv2.y;tangent*=tangentSpaceParams.x;bitangent*=tangentSpaceParams.y;float det=max(dot(tangent,tangent),dot(bitangent,bitangent));float invmax=det==0.0 ? 0.0 : inversesqrt(det);return mat3(tangent*invmax,bitangent*invmax,normal);}
|
|
65
65
|
#endif
|
|
66
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["bumpFragmentMainFunctions",0,{name:i,shader:o}],
|
|
66
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["bumpFragmentMainFunctions",0,{name:i,shader:o}],92655),e.i(95804);let a="bumpFragmentFunctions",r=`#if defined(BUMP)
|
|
67
67
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_SAMPLERNAME_,bump)
|
|
68
68
|
#endif
|
|
69
69
|
#if defined(DETAIL)
|
|
@@ -93,7 +93,7 @@ return -texCoordOffset;
|
|
|
93
93
|
#endif
|
|
94
94
|
}
|
|
95
95
|
#endif
|
|
96
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["bumpFragmentFunctions",0,{name:a,shader:r}],
|
|
96
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["bumpFragmentFunctions",0,{name:a,shader:r}],36435);let n="bumpFragment",l=`vec2 uvOffset=vec2(0.0,0.0);
|
|
97
97
|
#if defined(BUMP) || defined(PARALLAX) || defined(DETAIL)
|
|
98
98
|
#ifdef NORMALXYSCALE
|
|
99
99
|
float normalScale=1.0;
|
|
@@ -145,7 +145,7 @@ normalW=perturbNormalBase(TBN,blendedNormal,vBumpInfos.y);
|
|
|
145
145
|
#elif defined(DETAIL)
|
|
146
146
|
detailNormal.xy*=vDetailInfos.z;normalW=perturbNormalBase(TBN,detailNormal,vDetailInfos.z);
|
|
147
147
|
#endif
|
|
148
|
-
`;t.ShaderStore.IncludesShadersStore[n]||(t.ShaderStore.IncludesShadersStore[n]=l),e.s(["bumpFragment",0,{name:n,shader:l}],
|
|
148
|
+
`;t.ShaderStore.IncludesShadersStore[n]||(t.ShaderStore.IncludesShadersStore[n]=l),e.s(["bumpFragment",0,{name:n,shader:l}],78948)},7673,e=>{"use strict";var t=e.i(25044);let i="clusteredLightingFunctions",o=`struct ClusteredLight {vec4 vLightData;vec4 vLightDiffuse;vec4 vLightSpecular;vec4 vLightDirection;vec4 vLightFalloff;};
|
|
149
149
|
#define inline
|
|
150
150
|
ClusteredLight getClusteredLight(sampler2D lightDataTexture,int index) {return ClusteredLight(
|
|
151
151
|
texelFetch(lightDataTexture,ivec2(0,index),0),
|
|
@@ -155,7 +155,7 @@ texelFetch(lightDataTexture,ivec2(3,index),0),
|
|
|
155
155
|
texelFetch(lightDataTexture,ivec2(4,index),0)
|
|
156
156
|
);}
|
|
157
157
|
int getClusteredSliceIndex(vec2 sliceData,float viewDepth) {return int(log(viewDepth)*sliceData.x+sliceData.y);}
|
|
158
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["clusteredLightingFunctions",0,{name:i,shader:o}])},
|
|
158
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["clusteredLightingFunctions",0,{name:i,shader:o}])},90256,e=>{"use strict";var t=e.i(25044);let i="decalFragment",o=`#ifdef DECAL
|
|
159
159
|
#ifdef GAMMADECAL
|
|
160
160
|
decalColor.rgb=toLinearSpace(decalColor.rgb);
|
|
161
161
|
#endif
|
|
@@ -164,7 +164,7 @@ decalColor.a*=decalColor.a;
|
|
|
164
164
|
#endif
|
|
165
165
|
surfaceAlbedo.rgb=mix(surfaceAlbedo.rgb,decalColor.rgb,decalColor.a);
|
|
166
166
|
#endif
|
|
167
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["decalFragment",0,{name:i,shader:o}])},
|
|
167
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["decalFragment",0,{name:i,shader:o}])},8823,e=>{"use strict";var t=e.i(25044);let i="harmonicsFunctions",o=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
168
168
|
#ifdef SPHERICAL_HARMONICS
|
|
169
169
|
vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
170
170
|
+ vSphericalL1_1*(normal.y)
|
|
@@ -179,7 +179,7 @@ vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
|
|
|
179
179
|
vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
|
|
180
180
|
#endif
|
|
181
181
|
#endif
|
|
182
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["harmonicsFunctions",0,{name:i,shader:o}])},
|
|
182
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["harmonicsFunctions",0,{name:i,shader:o}])},31660,e=>{"use strict";var t=e.i(25044);let i="helperFunctions",o=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
|
|
183
183
|
const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
|
|
184
184
|
#define saturate(x) clamp(x,0.0,1.0)
|
|
185
185
|
#define absEps(x) abs(x)+Epsilon
|
|
@@ -297,7 +297,7 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
|
|
|
297
297
|
vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
|
|
298
298
|
uint2float(rstate*2447445414u));}
|
|
299
299
|
#endif
|
|
300
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["helperFunctions",0,{name:i,shader:o}])},
|
|
300
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["helperFunctions",0,{name:i,shader:o}])},27960,e=>{"use strict";var t=e.i(25044);let i="lightFragment",o=`#ifdef LIGHT{X}
|
|
301
301
|
#if defined(SHADOWONLY) || defined(LIGHTMAP) && defined(LIGHTMAPEXCLUDED{X}) && defined(LIGHTMAPNOSPECULAR{X})
|
|
302
302
|
#else
|
|
303
303
|
vec4 diffuse{X}=light{X}.vLightDiffuse;
|
|
@@ -675,20 +675,20 @@ sheenBase+=info.sheen.rgb*shadow;
|
|
|
675
675
|
#endif
|
|
676
676
|
#endif
|
|
677
677
|
#endif
|
|
678
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["lightFragment",0,{name:i,shader:o}])},
|
|
678
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["lightFragment",0,{name:i,shader:o}])},10874,e=>{"use strict";var t=e.i(25044);let i="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
|
|
679
679
|
uniform float logarithmicDepthConstant;varying float vFragmentDepth;
|
|
680
680
|
#endif
|
|
681
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["logDepthDeclaration",0,{name:i,shader:o}])},
|
|
681
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["logDepthDeclaration",0,{name:i,shader:o}])},49185,e=>{"use strict";var t=e.i(25044);let i="mainUVVaryingDeclaration",o=`#ifdef MAINUV{X}
|
|
682
682
|
varying vec2 vMainUV{X};
|
|
683
683
|
#endif
|
|
684
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["mainUVVaryingDeclaration",0,{name:i,shader:o}])},
|
|
684
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["mainUVVaryingDeclaration",0,{name:i,shader:o}])},4100,e=>{"use strict";var t=e.i(25044);let i="meshUboDeclaration",o=`#ifdef WEBGL2
|
|
685
685
|
uniform mat4 world;uniform float visibility;
|
|
686
686
|
#else
|
|
687
687
|
layout(std140,column_major) uniform;uniform Mesh
|
|
688
688
|
{mat4 world;float visibility;};
|
|
689
689
|
#endif
|
|
690
690
|
#define WORLD_UBO
|
|
691
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["meshUboDeclaration",0,{name:i,shader:o}])},
|
|
691
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["meshUboDeclaration",0,{name:i,shader:o}])},16300,e=>{"use strict";var t=e.i(25044);let i="pbrBRDFFunctions",o=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
|
|
692
692
|
#define BRDF_DIFFUSE_MODEL_EON 0
|
|
693
693
|
#define BRDF_DIFFUSE_MODEL_BURLEY 1
|
|
694
694
|
#define BRDF_DIFFUSE_MODEL_LAMBERT 2
|
|
@@ -861,7 +861,7 @@ vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,
|
|
|
861
861
|
float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
|
|
862
862
|
#endif
|
|
863
863
|
#endif
|
|
864
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrBRDFFunctions",0,{name:i,shader:o}])},
|
|
864
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrBRDFFunctions",0,{name:i,shader:o}])},63807,25176,72317,7750,44239,34464,32181,50154,8734,46456,37897,e=>{"use strict";var t=e.i(25044);e.i(49185);let i="pbrFragmentExtraDeclaration",o=`varying vec3 vPositionW;
|
|
865
865
|
#if DEBUGMODE>0
|
|
866
866
|
varying vec4 vClipSpacePosition;
|
|
867
867
|
#endif
|
|
@@ -878,15 +878,15 @@ varying vec4 vColor;
|
|
|
878
878
|
#if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
|
|
879
879
|
varying float vViewDepth;
|
|
880
880
|
#endif
|
|
881
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentExtraDeclaration",0,{name:i,shader:o}],
|
|
882
|
-
{return diffusionProfile<1.;}`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["subSurfaceScatteringFunctions",0,{name:a,shader:r}],
|
|
881
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentExtraDeclaration",0,{name:i,shader:o}],63807);let a="subSurfaceScatteringFunctions",r=`bool testLightingForSSS(float diffusionProfile)
|
|
882
|
+
{return diffusionProfile<1.;}`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["subSurfaceScatteringFunctions",0,{name:a,shader:r}],25176);let n="importanceSampling",l=`vec3 hemisphereCosSample(vec2 u) {float phi=2.*PI*u.x;float cosTheta2=1.-u.y;float cosTheta=sqrt(cosTheta2);float sinTheta=sqrt(1.-cosTheta2);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
|
|
883
883
|
vec3 hemisphereImportanceSampleDggx(vec2 u,float a) {float phi=2.*PI*u.x;float cosTheta2=(1.-u.y)/(1.+(a+1.)*((a-1.)*u.y));float cosTheta=sqrt(cosTheta2);float sinTheta=sqrt(1.-cosTheta2);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
|
|
884
884
|
vec3 hemisphereImportanceSampleDggxAnisotropic(vec2 Xi,float alphaTangent,float alphaBitangent)
|
|
885
885
|
{alphaTangent=max(alphaTangent,0.0001);alphaBitangent=max(alphaBitangent,0.0001);float phi=atan(alphaBitangent/alphaTangent*tan(2.0*3.14159265*Xi.x));if (Xi.x>0.5) phi+=3.14159265;
|
|
886
886
|
float cosPhi=cos(phi);float sinPhi=sin(phi);float alpha2=(cosPhi*cosPhi)/(alphaTangent*alphaTangent) +
|
|
887
887
|
(sinPhi*sinPhi)/(alphaBitangent*alphaBitangent);float tanTheta2=Xi.y/(1.0-Xi.y)/alpha2;float cosTheta=1.0/sqrt(1.0+tanTheta2);float sinTheta=sqrt(max(0.0,1.0-cosTheta*cosTheta));return vec3(sinTheta*cosPhi,sinTheta*sinPhi,cosTheta);}
|
|
888
888
|
vec3 hemisphereImportanceSampleDCharlie(vec2 u,float a) {
|
|
889
|
-
float phi=2.*PI*u.x;float sinTheta=pow(u.y,a/(2.*a+1.));float cosTheta=sqrt(1.-sinTheta*sinTheta);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;t.ShaderStore.IncludesShadersStore[n]||(t.ShaderStore.IncludesShadersStore[n]=l),e.s(["importanceSampling",0,{name:n,shader:l}],
|
|
889
|
+
float phi=2.*PI*u.x;float sinTheta=pow(u.y,a/(2.*a+1.));float cosTheta=sqrt(1.-sinTheta*sinTheta);return vec3(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;t.ShaderStore.IncludesShadersStore[n]||(t.ShaderStore.IncludesShadersStore[n]=l),e.s(["importanceSampling",0,{name:n,shader:l}],72317);let f="pbrHelperFunctions",c=`#define MINIMUMVARIANCE 0.0005
|
|
890
890
|
#ifndef TEXRD_DEFINED
|
|
891
891
|
#define TEXRD(s,uv) texture2D(s,uv)
|
|
892
892
|
#define TEXRD_DEFINED
|
|
@@ -925,7 +925,7 @@ clearCoatIntensity);return clearCoatAbsorption;}
|
|
|
925
925
|
float computeDefaultMicroSurface(float microSurface,vec3 reflectivityColor)
|
|
926
926
|
{const float kReflectivityNoAlphaWorkflow_SmoothnessMax=0.95;float reflectivityLuminance=getLuminance(reflectivityColor);float reflectivityLuma=sqrt(reflectivityLuminance);microSurface=reflectivityLuma*kReflectivityNoAlphaWorkflow_SmoothnessMax;return microSurface;}
|
|
927
927
|
#endif
|
|
928
|
-
`;t.ShaderStore.IncludesShadersStore[f]||(t.ShaderStore.IncludesShadersStore[f]=c),e.s(["pbrHelperFunctions",0,{name:f,shader:c}],
|
|
928
|
+
`;t.ShaderStore.IncludesShadersStore[f]||(t.ShaderStore.IncludesShadersStore[f]=c),e.s(["pbrHelperFunctions",0,{name:f,shader:c}],7750),e.i(31444);let s="pbrDirectLightingSetupFunctions",d=`struct preLightingInfo
|
|
929
929
|
{vec3 lightOffset;float lightDistanceSquared;float lightDistance;float attenuation;vec3 L;vec3 H;float NdotV;float NdotLUnclamped;float NdotL;float VdotH;float LdotV;float roughness;float diffuseRoughness;vec3 surfaceAlbedo;
|
|
930
930
|
#ifdef IRIDESCENCE
|
|
931
931
|
float iridescenceIntensity;
|
|
@@ -958,7 +958,7 @@ result.areaLightFresnel=data.Fresnel;result.areaLightSpecular=data.Specular;
|
|
|
958
958
|
#endif
|
|
959
959
|
result.areaLightDiffuse=data.Diffuse;result.LdotV=0.;result.roughness=0.;result.diffuseRoughness=0.;result.surfaceAlbedo=vec3(0.);return result;}
|
|
960
960
|
#endif
|
|
961
|
-
`;t.ShaderStore.IncludesShadersStore[s]||(t.ShaderStore.IncludesShadersStore[s]=d),e.s(["pbrDirectLightingSetupFunctions",0,{name:s,shader:d}],
|
|
961
|
+
`;t.ShaderStore.IncludesShadersStore[s]||(t.ShaderStore.IncludesShadersStore[s]=d),e.s(["pbrDirectLightingSetupFunctions",0,{name:s,shader:d}],44239);let u="pbrDirectLightingFalloffFunctions",h=`float computeDistanceLightFalloff_Standard(vec3 lightOffset,float range)
|
|
962
962
|
{return max(0.,1.0-length(lightOffset)/range);}
|
|
963
963
|
float computeDistanceLightFalloff_Physical(float lightDistanceSquared)
|
|
964
964
|
{return 1.0/maxEps(lightDistanceSquared);}
|
|
@@ -994,7 +994,7 @@ return computeDirectionalLightFalloff_GLTF(lightDirection,directionToLightCenter
|
|
|
994
994
|
#else
|
|
995
995
|
return computeDirectionalLightFalloff_Standard(lightDirection,directionToLightCenterW,cosHalfAngle,exponent);
|
|
996
996
|
#endif
|
|
997
|
-
}`;t.ShaderStore.IncludesShadersStore[u]||(t.ShaderStore.IncludesShadersStore[u]=h),e.s(["pbrDirectLightingFalloffFunctions",0,{name:u,shader:h}],
|
|
997
|
+
}`;t.ShaderStore.IncludesShadersStore[u]||(t.ShaderStore.IncludesShadersStore[u]=h),e.s(["pbrDirectLightingFalloffFunctions",0,{name:u,shader:h}],34464);let g="hdrFilteringFunctions",v=`#if NUM_SAMPLES
|
|
998
998
|
#if NUM_SAMPLES>0
|
|
999
999
|
#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
|
|
1000
1000
|
float radicalInverse_VdC(uint bits)
|
|
@@ -1139,7 +1139,7 @@ result=result/weight;return result;}
|
|
|
1139
1139
|
#endif
|
|
1140
1140
|
#endif
|
|
1141
1141
|
#endif
|
|
1142
|
-
`;t.ShaderStore.IncludesShadersStore[g]||(t.ShaderStore.IncludesShadersStore[g]=v),e.s(["hdrFilteringFunctions",0,{name:g,shader:v}],
|
|
1142
|
+
`;t.ShaderStore.IncludesShadersStore[g]||(t.ShaderStore.IncludesShadersStore[g]=v),e.s(["hdrFilteringFunctions",0,{name:g,shader:v}],32181);let m="pbrDirectLightingFunctions",p=`#define CLEARCOATREFLECTANCE90 1.0
|
|
1143
1143
|
struct lightingInfo
|
|
1144
1144
|
{vec3 diffuse;
|
|
1145
1145
|
#ifdef SS_TRANSLUCENCY
|
|
@@ -1245,7 +1245,7 @@ float visibility=visibility_CharlieSheen(info.NdotL,info.NdotV,alphaG);
|
|
|
1245
1245
|
float visibility=visibility_Ashikhmin(info.NdotL,info.NdotV);/* #endif */
|
|
1246
1246
|
float sheenTerm=fresnel*distribution*visibility;return sheenTerm*info.attenuation*info.NdotL*lightColor;}
|
|
1247
1247
|
#endif
|
|
1248
|
-
`;t.ShaderStore.IncludesShadersStore[m]||(t.ShaderStore.IncludesShadersStore[m]=p),e.s(["pbrDirectLightingFunctions",0,{name:m,shader:p}],
|
|
1248
|
+
`;t.ShaderStore.IncludesShadersStore[m]||(t.ShaderStore.IncludesShadersStore[m]=p),e.s(["pbrDirectLightingFunctions",0,{name:m,shader:p}],50154);let S="pbrBlockNormalGeometric",E=`vec3 viewDirectionW=normalize(vEyePosition.xyz-vPositionW);
|
|
1249
1249
|
#ifdef NORMAL
|
|
1250
1250
|
vec3 normalW=normalize(vNormalW);
|
|
1251
1251
|
#else
|
|
@@ -1255,7 +1255,7 @@ vec3 geometricNormalW=normalW;
|
|
|
1255
1255
|
#if defined(TWOSIDEDLIGHTING) && defined(NORMAL)
|
|
1256
1256
|
geometricNormalW=gl_FrontFacing ? geometricNormalW : -geometricNormalW;
|
|
1257
1257
|
#endif
|
|
1258
|
-
`;t.ShaderStore.IncludesShadersStore[S]||(t.ShaderStore.IncludesShadersStore[S]=E),e.s(["pbrBlockNormalGeometric",0,{name:S,shader:E}],
|
|
1258
|
+
`;t.ShaderStore.IncludesShadersStore[S]||(t.ShaderStore.IncludesShadersStore[S]=E),e.s(["pbrBlockNormalGeometric",0,{name:S,shader:E}],8734);let L="pbrBlockImageProcessing",I=`#if defined(IMAGEPROCESSINGPOSTPROCESS) || defined(SS_SCATTERING)
|
|
1259
1259
|
#if !defined(SKIPFINALCOLORCLAMP)
|
|
1260
1260
|
finalColor.rgb=clamp(finalColor.rgb,0.,30.0);
|
|
1261
1261
|
#endif
|
|
@@ -1266,7 +1266,7 @@ finalColor.a*=visibility;
|
|
|
1266
1266
|
#ifdef PREMULTIPLYALPHA
|
|
1267
1267
|
finalColor.rgb*=finalColor.a;
|
|
1268
1268
|
#endif
|
|
1269
|
-
`;t.ShaderStore.IncludesShadersStore[L]||(t.ShaderStore.IncludesShadersStore[L]=I),e.s(["pbrBlockImageProcessing",0,{name:L,shader:I}],
|
|
1269
|
+
`;t.ShaderStore.IncludesShadersStore[L]||(t.ShaderStore.IncludesShadersStore[L]=I),e.s(["pbrBlockImageProcessing",0,{name:L,shader:I}],46456);let D="pbrDebug",A=`#if DEBUGMODE>0
|
|
1270
1270
|
if (vClipSpacePosition.x/vClipSpacePosition.w>=vDebugMode.x) {
|
|
1271
1271
|
#if DEBUGMODE==1
|
|
1272
1272
|
gl_FragColor.rgb=vPositionW.rgb;
|
|
@@ -1450,7 +1450,7 @@ return;
|
|
|
1450
1450
|
#endif
|
|
1451
1451
|
}
|
|
1452
1452
|
#endif
|
|
1453
|
-
`;t.ShaderStore.IncludesShadersStore[D]||(t.ShaderStore.IncludesShadersStore[D]=A),e.s(["pbrDebug",0,{name:D,shader:A}],
|
|
1453
|
+
`;t.ShaderStore.IncludesShadersStore[D]||(t.ShaderStore.IncludesShadersStore[D]=A),e.s(["pbrDebug",0,{name:D,shader:A}],37897)},20675,18054,e=>{"use strict";var t=e.i(25044);let i="pbrFragmentReflectionDeclaration",o=`#ifdef REFLECTION
|
|
1454
1454
|
#ifdef REFLECTIONMAP_3D
|
|
1455
1455
|
#define sampleReflection(s,c) textureCube(s,c)
|
|
1456
1456
|
uniform samplerCube reflectionSampler;
|
|
@@ -1482,7 +1482,7 @@ varying vec3 vDirectionW;
|
|
|
1482
1482
|
#endif
|
|
1483
1483
|
#endif
|
|
1484
1484
|
#endif
|
|
1485
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentReflectionDeclaration",0,{name:i,shader:o}],
|
|
1485
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentReflectionDeclaration",0,{name:i,shader:o}],20675);let a="pbrIBLFunctions",r=`#if defined(REFLECTION) || defined(SS_REFRACTION)
|
|
1486
1486
|
float getLodFromAlphaG(float cubeMapDimensionPixels,float microsurfaceAverageSlope) {float microsurfaceAverageSlopeTexels=cubeMapDimensionPixels*microsurfaceAverageSlope;float lod=log2(microsurfaceAverageSlopeTexels);return lod;}
|
|
1487
1487
|
float getLinearLodFromRoughness(float cubeMapDimensionPixels,float roughness) {float lod=log2(cubeMapDimensionPixels)*roughness;return lod;}
|
|
1488
1488
|
#endif
|
|
@@ -1496,12 +1496,12 @@ float environmentHorizonOcclusion(vec3 view,vec3 normal,vec3 geometricNormal) {v
|
|
|
1496
1496
|
#define UNPACK_LOD(x) (1.0-x)*255.0
|
|
1497
1497
|
float getLodFromAlphaG(float cubeMapDimensionPixels,float alphaG,float NdotV) {float microsurfaceAverageSlope=alphaG;microsurfaceAverageSlope*=sqrt(abs(NdotV));return getLodFromAlphaG(cubeMapDimensionPixels,microsurfaceAverageSlope);}
|
|
1498
1498
|
#endif
|
|
1499
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["pbrIBLFunctions",0,{name:a,shader:r}],
|
|
1499
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["pbrIBLFunctions",0,{name:a,shader:r}],18054)},83089,e=>{"use strict";var t=e.i(25044);e.i(77074),e.i(4100);let i="pbrUboDeclaration",o=`layout(std140,column_major) uniform;uniform Material {vec2 vAlbedoInfos;vec2 vBaseWeightInfos;vec2 vBaseDiffuseRoughnessInfos;vec4 vAmbientInfos;vec2 vOpacityInfos;vec2 vEmissiveInfos;vec2 vLightmapInfos;vec3 vReflectivityInfos;vec2 vMicroSurfaceSamplerInfos;vec3 vBumpInfos;mat4 albedoMatrix;mat4 baseWeightMatrix;mat4 baseDiffuseRoughnessMatrix;mat4 ambientMatrix;mat4 opacityMatrix;mat4 emissiveMatrix;mat4 lightmapMatrix;mat4 reflectivityMatrix;mat4 microSurfaceSamplerMatrix;mat4 bumpMatrix;vec2 vTangentSpaceParams;vec4 vAlbedoColor;float baseWeight;float baseDiffuseRoughness;vec4 vLightingIntensity;float pointSize;vec4 vReflectivityColor;vec3 vEmissiveColor;vec3 vAmbientColor;vec2 vDebugMode;vec4 vMetallicReflectanceFactors;vec2 vMetallicReflectanceInfos;mat4 metallicReflectanceMatrix;vec2 vReflectanceInfos;mat4 reflectanceMatrix;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;
|
|
1500
1500
|
#define ADDITIONAL_UBO_DECLARATION
|
|
1501
1501
|
};
|
|
1502
1502
|
#include<sceneUboDeclaration>
|
|
1503
1503
|
#include<meshUboDeclaration>
|
|
1504
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrUboDeclaration",0,{name:i,shader:o}])},
|
|
1504
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrUboDeclaration",0,{name:i,shader:o}])},95804,12075,e=>{"use strict";var t=e.i(25044);let i="samplerFragmentDeclaration",o=`#ifdef _DEFINENAME_
|
|
1505
1505
|
#if _DEFINENAME_DIRECTUV==1
|
|
1506
1506
|
#define v_VARYINGNAME_UV vMainUV1
|
|
1507
1507
|
#elif _DEFINENAME_DIRECTUV==2
|
|
@@ -1519,7 +1519,7 @@ varying vec2 v_VARYINGNAME_UV;
|
|
|
1519
1519
|
#endif
|
|
1520
1520
|
uniform sampler2D _SAMPLERNAME_Sampler;
|
|
1521
1521
|
#endif
|
|
1522
|
-
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["samplerFragmentDeclaration",0,{name:i,shader:o}],
|
|
1522
|
+
`;t.ShaderStore.IncludesShadersStore[i]||(t.ShaderStore.IncludesShadersStore[i]=o),e.s(["samplerFragmentDeclaration",0,{name:i,shader:o}],95804);let a="reflectionFunction",r=`vec3 computeFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
|
|
1523
1523
|
{float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(s,t,0); }
|
|
1524
1524
|
vec3 computeMirroredFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
|
|
1525
1525
|
{float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(1.0-s,t,0); }
|
|
@@ -1581,7 +1581,7 @@ return vec3(0,0,0);
|
|
|
1581
1581
|
#endif
|
|
1582
1582
|
}
|
|
1583
1583
|
#endif
|
|
1584
|
-
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["reflectionFunction",0,{name:a,shader:r}],
|
|
1584
|
+
`;t.ShaderStore.IncludesShadersStore[a]||(t.ShaderStore.IncludesShadersStore[a]=r),e.s(["reflectionFunction",0,{name:a,shader:r}],12075)},77074,e=>{"use strict";var t=e.i(25044);let i="sceneUboDeclaration",o=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
|
|
1585
1585
|
#ifdef MULTIVIEW
|
|
1586
1586
|
mat4 viewProjectionR;
|
|
1587
1587
|
#endif
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21280,t=>{"use strict";var e=t.i(60699),i=t.i(65678),a=t.i(56173),s=t.i(48878),r=t.i(82600),o=t.i(28111),l=t.i(54668),n=t.i(68282);class u extends s.FlowGraphUnaryOperationBlock{constructor(t){super((0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),(0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),t=>t.transpose?t.transpose():a.Matrix.Transpose(t),"FlowGraphTransposeBlock",t)}}class c extends s.FlowGraphUnaryOperationBlock{constructor(t){super((0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),i.RichTypeNumber,t=>t.determinant(),"FlowGraphDeterminantBlock",t)}}class h extends r.FlowGraphCachedOperationBlock{constructor(t){super((0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),t),this._matrixType=t?.matrixType||"Matrix",this.a=this.registerDataInput("a",(0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"))}_doOperation(t){let e=this.a.getValue(t),i=e.determinant();if(0!==i&&Number.isFinite(i))return e.inverse?e.inverse():a.Matrix.Invert(e)}_getInvalidOutputValue(){var t;return"Matrix2D"===(t=this._matrixType)?new o.FlowGraphMatrix2D([0,0,0,0]):"Matrix3D"===t?new o.FlowGraphMatrix3D([0,0,0,0,0,0,0,0,0]):a.Matrix.FromArray(Array(16).fill(0))}getClassName(){return"FlowGraphInvertMatrixBlock"}}class p extends l.FlowGraphBinaryOperationBlock{constructor(t){super((0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),(0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),(0,i.getRichTypeByFlowGraphType)(t?.matrixType||"Matrix"),(t,e)=>e.multiply(t),"FlowGraphMatrixMultiplicationBlock",t)}}class x extends e.FlowGraphBlock{constructor(t){super(t),this.input=this.registerDataInput("input",i.RichTypeMatrix),this.position=this.registerDataOutput("position",i.RichTypeVector3),this.rotationQuaternion=this.registerDataOutput("rotationQuaternion",i.RichTypeQuaternion),this.scaling=this.registerDataOutput("scaling",i.RichTypeVector3),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean,!1)}_updateOutputs(t){let e,i=t._getExecutionVariable(this,"executionId",-1),s=t._getExecutionVariable(this,"cachedPosition",null),r=t._getExecutionVariable(this,"cachedRotation",null),o=t._getExecutionVariable(this,"cachedScaling",null),l=t._getExecutionVariable(this,"cachedIsValid",null);if(i===t.executionId&&s&&r&&o&&null!==l){this.isValid.setValue(l,t),this.position.setValue(s,t),this.rotationQuaternion.setValue(r,t),this.scaling.setValue(o,t);return}let n=this.input.getValue(t).m,u=!!this.config?.keepDegenerateComponents,c=new a.Vector3(n[12],n[13],n[14]),h=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]),p=Math.sqrt(n[4]*n[4]+n[5]*n[5]+n[6]*n[6]),x=Math.sqrt(n[8]*n[8]+n[9]*n[9]+n[10]*n[10]),d=t=>({isValid:!1,rotationQuaternion:a.Quaternion.Identity(),position:t?c:a.Vector3.Zero(),scaling:t?new a.Vector3(h,p,x):a.Vector3.One()}),V=Number.isFinite(h)&&Number.isFinite(p)&&Number.isFinite(x),g=Number.isFinite(n[12])&&Number.isFinite(n[13])&&Number.isFinite(n[14]);if(V&&(u||g))if(0===h||0===p||0===x)e=d(!0);else if(1e-6>Math.abs((n[0]*(n[5]*n[10]-n[6]*n[9])-n[4]*(n[1]*n[10]-n[2]*n[9])+n[8]*(n[1]*n[6]-n[2]*n[5]))/(h*p*x)))e=d(u);else{let t=a.Matrix.FromValues(n[0],n[1],n[2],0,n[4],n[5],n[6],0,n[8],n[9],n[10],0,n[12],n[13],n[14],1),i=new a.Vector3,s=new a.Quaternion,r=new a.Vector3;t.decompose(i,s,r),e={isValid:!0,position:r,rotationQuaternion:s,scaling:i}}else e=d(u);this.isValid.setValue(e.isValid,t),this.position.setValue(e.position,t),this.rotationQuaternion.setValue(e.rotationQuaternion,t),this.scaling.setValue(e.scaling,t),t._setExecutionVariable(this,"cachedIsValid",e.isValid),t._setExecutionVariable(this,"cachedPosition",e.position),t._setExecutionVariable(this,"cachedRotation",e.rotationQuaternion),t._setExecutionVariable(this,"cachedScaling",e.scaling),t._setExecutionVariable(this,"executionId",t.executionId)}getClassName(){return"FlowGraphMatrixDecompose"}}class d extends e.FlowGraphBlock{constructor(t){super(t),this.position=this.registerDataInput("position",i.RichTypeVector3),this.rotationQuaternion=this.registerDataInput("rotationQuaternion",i.RichTypeQuaternion),this.scaling=this.registerDataInput("scaling",i.RichTypeVector3),this.value=this.registerDataOutput("value",i.RichTypeMatrix)}_updateOutputs(t){let e=t._getExecutionVariable(this,"executionId",-1),i=t._getExecutionVariable(this,"cachedMatrix",null);if(e===t.executionId&&i)this.value.setValue(i,t);else{let e=a.Matrix.Compose(this.scaling.getValue(t),this.rotationQuaternion.getValue(t),this.position.getValue(t));this.value.setValue(e,t),t._setExecutionVariable(this,"cachedMatrix",e),t._setExecutionVariable(this,"executionId",t.executionId)}}getClassName(){return"FlowGraphMatrixCompose"}}let V=!1;t.s(["FlowGraphDeterminantBlock",0,c,"FlowGraphInvertMatrixBlock",0,h,"FlowGraphMatrixComposeBlock",0,d,"FlowGraphMatrixDecomposeBlock",0,x,"FlowGraphMatrixMultiplicationBlock",0,p,"FlowGraphTransposeBlock",0,u,"RegisterFlowGraphMatrixMathBlocks",0,function(){V||(V=!0,(0,n.RegisterClass)("FlowGraphTransposeBlock",u),(0,n.RegisterClass)("FlowGraphDeterminantBlock",c),(0,n.RegisterClass)("FlowGraphInvertMatrixBlock",h),(0,n.RegisterClass)("FlowGraphMatrixMultiplicationBlock",p),(0,n.RegisterClass)("FlowGraphMatrixDecompose",x),(0,n.RegisterClass)("FlowGraphMatrixCompose",d))}])},54668,t=>{"use strict";var e=t.i(82600);class i extends e.FlowGraphCachedOperationBlock{constructor(t,e,i,a,s,r){super(i,r),this._operation=a,this._className=s,this.a=this.registerDataInput("a",t),this.b=this.registerDataInput("b",e)}_doOperation(t){let e=this.a.getValue(t),i=this.b.getValue(t);return this._operation(e,i)}getClassName(){return this._className}}t.s(["FlowGraphBinaryOperationBlock",0,i])},82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let a="cachedOperationValue",s="cachedExecutionId";class r extends e.FlowGraphBlock{constructor(t,e){super(e),this._outputRichType=t,this.value=this.registerDataOutput("value",t),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(t){let e=this._outputRichType.defaultValue,i=e?.clone;return"function"==typeof i?i.call(e):e}_updateOutputs(t){let e=t._getExecutionVariable(this,s,-1),i=t._getExecutionVariable(this,a,null);if(null!=i&&e===t.executionId)this.isValid.setValue(!0,t),this.value.setValue(i,t);else try{let e=this._doOperation(t);if(null==e)return void this._setInvalid(t);t._setExecutionVariable(this,a,e),t._setExecutionVariable(this,s,t.executionId),this.value.setValue(e,t),this.isValid.setValue(!0,t)}catch(e){this._setInvalid(t)}}_setInvalid(t){this.isValid.setValue(!1,t),this.value.setValue(this._getInvalidOutputValue(t),t)}}t.s(["FlowGraphCachedOperationBlock",0,r])},48878,t=>{"use strict";var e=t.i(82600);class i extends e.FlowGraphCachedOperationBlock{constructor(t,e,i,a,s){super(e,s),this._operation=i,this._className=a,this.a=this.registerDataInput("a",t)}_doOperation(t){return this._operation(this.a.getValue(t))}getClassName(){return this._className}}t.s(["FlowGraphUnaryOperationBlock",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,31660,e=>{"use strict";var r=e.i(25044);let o="helperFunctions",a=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
|
|
2
2
|
const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
|
|
3
3
|
#define saturate(x) clamp(x,0.0,1.0)
|
|
4
4
|
#define absEps(x) abs(x)+Epsilon
|
|
@@ -116,7 +116,7 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
|
|
|
116
116
|
vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
|
|
117
117
|
uint2float(rstate*2447445414u));}
|
|
118
118
|
#endif
|
|
119
|
-
`;r.ShaderStore.IncludesShadersStore[o]||(r.ShaderStore.IncludesShadersStore[o]=a),e.s(["helperFunctions",0,{name:o,shader:a}])},
|
|
119
|
+
`;r.ShaderStore.IncludesShadersStore[o]||(r.ShaderStore.IncludesShadersStore[o]=a),e.s(["helperFunctions",0,{name:o,shader:a}])},91922,e=>{"use strict";var r=e.i(25044),o=e.i(31660);let a="rgbdEncodePixelShader",t=`varying vec2 vUV;uniform sampler2D textureSampler;
|
|
120
120
|
#include<helperFunctions>
|
|
121
121
|
#define CUSTOM_FRAGMENT_DEFINITIONS
|
|
122
122
|
void main(void)
|