@uptimizr/dashboard 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +19 -5
- package/out/__next._full.txt +11 -11
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/{3kalvwsf11-ss.js → 0-_j1khfoib6l.js} +119 -115
- package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 005bbq_px7lke.js} +2 -2
- package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
- package/out/_next/static/chunks/017pn-pen381_.js +1 -0
- package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
- package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 02qk_wmkf9at-.js} +211 -211
- package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
- package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
- package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
- package/out/_next/static/chunks/05ere0-228syf.js +1 -0
- package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 05h8u5lrypn5m.js} +1 -1
- package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
- package/out/_next/static/chunks/{3go-mst7n3udd.js → 05v-nubi896jg.js} +1 -1
- package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
- package/out/_next/static/chunks/{1t2exh89lnazc.js → 060iult6f68_e.js} +504 -571
- package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
- package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
- package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
- package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
- package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 0btmk0wmekl02.js} +2 -2
- package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
- package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
- package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
- package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
- package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
- package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 0fd-0i1yt23kz.js} +1 -1
- package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
- package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
- package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
- package/out/_next/static/chunks/{380ivzcfb4o_3.js → 0grasqqf5dw7r.js} +2 -2
- package/out/_next/static/chunks/{0okbyggxe6mx5.js → 0hajwk2yd-rwr.js} +1 -1
- package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
- package/out/_next/static/chunks/{1vmpltnr0cyos.js → 0j74ipw4fps-n.js} +1 -1
- package/out/_next/static/chunks/{03zip1uidm6x9.js → 0kj-vckdn7t5p.js} +1 -1
- package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
- package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
- package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
- package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
- package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
- package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
- package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
- package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
- package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 0rracz73p38mo.js} +26 -23
- package/out/_next/static/chunks/{3z4suna4kq4j5.js → 0sw-8gxbg4x0l.js} +568 -569
- package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
- package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
- package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
- package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
- package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
- package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
- package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
- package/out/_next/static/chunks/{35aagg46wp139.js → 0ybs1u66q26su.js} +1 -1
- package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
- package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0z004fn14pbcu.js} +1 -1
- package/out/_next/static/chunks/{2z9mdtudj8crz.js → 0z9erbl3llr_b.js} +226 -224
- package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
- package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
- package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
- package/out/_next/static/chunks/{1ng-fqh2_n984.js → 10_5p5-xf2aoo.js} +1 -1
- package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
- package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
- package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
- package/out/_next/static/chunks/{1ho02fc091nj2.js → 129m5i93ltoym.js} +1 -1
- package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
- package/out/_next/static/chunks/{3n-7bcmfbh299.js → 13zcn4lv0qj76.js} +11 -11
- package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
- package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 15o4_2t-l3rj5.js} +1 -1
- package/out/_next/static/chunks/{00o9hr_3hd0r8.js → 175st2ogkg_1o.js} +1 -1
- package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
- package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
- package/out/_next/static/chunks/{1solqr18og2ot.js → 1by60_b14x-3o.js} +1 -1
- package/out/_next/static/chunks/1cyq7i39885sl.js +1 -0
- package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
- package/out/_next/static/chunks/1dp1s1t-y7gal.js +1 -0
- package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
- package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1dt30s_sp8415.js} +1 -1
- package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 1e8_jl2cxd3rp.js} +576 -576
- package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
- package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
- package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
- package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
- package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 1gttu-n9am66k.js} +255 -253
- package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
- package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
- package/out/_next/static/chunks/{17aahvhpls1l7.js → 1l_3oidssbhns.js} +298 -231
- package/out/_next/static/chunks/1m9zc5gm-327d.js +112 -0
- package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
- package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
- package/out/_next/static/chunks/1nix_lulkpklo.js +1 -0
- package/out/_next/static/chunks/{141tngxsk32hq.js → 1ntqovuz2c217.js} +1 -1
- package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
- package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
- package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1q4lkgxfnqnew.js} +1 -1
- package/out/_next/static/chunks/{2khh_pmm224k5.js → 1qg1l7t00nyib.js} +97 -300
- package/out/_next/static/chunks/{1qxhgauuomthl.js → 1rcdimhu0qhlu.js} +407 -407
- package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
- package/out/_next/static/chunks/1ses023uud001.js +1 -0
- package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
- package/out/_next/static/chunks/{25gf6xn9u1c57.js → 1t9i20i5-f8ze.js} +1 -1
- package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 1tgj55b305g4h.js} +1 -1
- package/out/_next/static/chunks/{255knovck7pv2.js → 1u8snlm6a7uhi.js} +4 -4
- package/out/_next/static/chunks/{04_3ri5emyfcu.js → 1ug4k-1zhr63a.js} +1 -1
- package/out/_next/static/chunks/{3-_08i4_7yhno.js → 1uh9zgsy69g92.js} +1 -1
- package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
- package/out/_next/static/chunks/1vurgl6oz2qey.js +17 -0
- package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
- package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
- package/out/_next/static/chunks/{2zyjw8g4tiu51.js → 1zj4307ugq0qz.js} +1 -1
- package/out/_next/static/chunks/{425epvuw3yy-n.js → 1zkd8v-qka--j.js} +169 -174
- package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
- package/out/_next/static/chunks/{267q_eg-c6f6m.js → 1zm6eo861i3c8.js} +1 -1
- package/out/_next/static/chunks/{1e_-_7biavwmb.js → 1zp9363yfhpom.js} +1 -1
- package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
- package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
- package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
- package/out/_next/static/chunks/209sxygecny37.js +1 -0
- package/out/_next/static/chunks/{1ccn725by19i1.js → 216uiih3_vdfd.js} +1 -1
- package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
- package/out/_next/static/chunks/22yqh0zlo_vwr.js +1 -0
- package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
- package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
- package/out/_next/static/chunks/{0zf26k6juhlzo.js → 267prao6fyt22.js} +23 -20
- package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
- package/out/_next/static/chunks/26y9sv8_-ykxf.js +1 -0
- package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
- package/out/_next/static/chunks/{1x99m91nt1m3b.js → 271333m8y3k0e.js} +1 -1
- package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
- package/out/_next/static/chunks/{077eo-0dhbxz-.js → 2a07so920b6aa.js} +1 -1
- package/out/_next/static/chunks/2a2oy8ryz2tsk.js +1 -0
- package/out/_next/static/chunks/2ao-3jzz7yw3p.js +532 -0
- package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
- package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
- package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
- package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
- package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 2c721vfva711t.js} +1 -1
- package/out/_next/static/chunks/{442e2l3jzxd-_.js → 2d2kl_m64j9cb.js} +1 -1
- package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
- package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
- package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
- package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
- package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
- package/out/_next/static/chunks/2h249uvhh2sij.js +114 -0
- package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2izok2otbk8-2.js} +505 -505
- package/out/_next/static/chunks/{0yvevihll7sz-.js → 2j120dkh7q3uf.js} +1 -1
- package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
- package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
- package/out/_next/static/chunks/{2-p206i_ihx09.js → 2kok6zedeeltw.js} +1 -1
- package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
- package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 2lsvk7xcfkarc.js} +1 -1
- package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
- package/out/_next/static/chunks/{00xc-0pj7on2s.js → 2n3xu_wbvtj7h.js} +29 -29
- package/out/_next/static/chunks/{1oljzgz5jistn.js → 2of8q0kaeqpf0.js} +1 -1
- package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
- package/out/_next/static/chunks/2phl5ta4iim7l.js +12 -0
- package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
- package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
- package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
- package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
- package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 2r96kyeehsji9.js} +1 -1
- package/out/_next/static/chunks/{3gyyjsot8mdav.js → 2rmc6ru7mc-kg.js} +1 -1
- package/out/_next/static/chunks/{1ephzzweysylq.js → 2s6kpclh6ie7o.js} +901 -973
- package/out/_next/static/chunks/{0vso09vdz38sr.js → 2sys9nj8lo3uk.js} +1 -1
- package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 2tc3e-iqv71y_.js} +1 -1
- package/out/_next/static/chunks/2uo6vm7mfgrbf.js +1 -0
- package/out/_next/static/chunks/2urx6fow8c8c9.js +505 -0
- package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
- package/out/_next/static/chunks/{22rl_arnzs-ve.js → 2w99knknr5i8c.js} +1 -1
- package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
- package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
- package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
- package/out/_next/static/chunks/{2e46-2ubc90do.js → 2y8i7_nxm4r05.js} +5 -5
- package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
- package/out/_next/static/chunks/{309f81l5ucsb_.js → 2z_iab7ozohhq.js} +60 -60
- package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
- package/out/_next/static/chunks/{0t89-lfct-7m6.js → 302qk2fjdrthp.js} +5 -5
- package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
- package/out/_next/static/chunks/{0tn-9w46cwydp.js → 30n4y_uu8chbh.js} +515 -514
- package/out/_next/static/chunks/{2-hdejef-mpka.js → 32_c4mbb6j1l6.js} +372 -169
- package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
- package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 33i36o_l69sm5.js} +1 -1
- package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
- package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
- package/out/_next/static/chunks/{11p92pnn5el0v.js → 35ntbr_c-yx44.js} +1 -1
- package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 35sne1llxnc-m.js} +57 -57
- package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
- package/out/_next/static/chunks/{3-x7522okdy-7.js → 3772oce1n3t_g.js} +1 -1
- package/out/_next/static/chunks/{1rb8wewjbdisv.js → 37cnbm5ft1mqf.js} +1 -1
- package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
- package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 3_dgblylldcgb.js} +1 -1
- package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
- package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
- package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
- package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
- package/out/_next/static/chunks/{43hwl25uke0l_.js → 3eve5y7fpzx2h.js} +1 -1
- package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
- package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
- package/out/_next/static/chunks/{1n_gxvu31aofy.js → 3f8qelpscqfym.js} +2 -2
- package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
- package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 3h6akt2uu05ku.js} +29 -29
- package/out/_next/static/chunks/{3w4qettzp7khe.js → 3huu0tqmxwowu.js} +523 -522
- package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
- package/out/_next/static/chunks/{1qsut_e3msg0l.js → 3ipx7xbxchsq9.js} +1 -1
- package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3j9xvdz55bi4p.js} +345 -345
- package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
- package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
- package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3njwfothmmg7u.js} +3 -3
- package/out/_next/static/chunks/{0bj_310rugcn1.js → 3oqxl46ukaojj.js} +11 -11
- package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 3qn6r8-0u6dij.js} +352 -352
- package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
- package/out/_next/static/chunks/3rlp9yr75liz7.js +1 -0
- package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3sa_hlx3konc7.js} +1 -1
- package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
- package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
- package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 3utpc-fc6_y0f.js} +1 -1
- package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
- package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
- package/out/_next/static/chunks/{1og49_atcksim.js → 3vbamaoiuk9yj.js} +1 -1
- package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
- package/out/_next/static/chunks/{1nqojcig-0m3c.js → 3w59kt5ztyvoq.js} +1 -1
- package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
- package/out/_next/static/chunks/3xl-op0hwxytg.js +272 -0
- package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
- package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
- package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 3zdtteq-r2fs5.js} +3 -3
- package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
- package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3zs7l4362msjd.js} +1 -1
- package/out/_next/static/chunks/40etabvml_71y.js +1 -0
- package/out/_next/static/chunks/417jkzz0slv9m.js +1 -0
- package/out/_next/static/chunks/41b5gpyqbj58m.js +338 -0
- package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
- package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
- package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 42ymanq326mo7.js} +1 -1
- package/out/_next/static/chunks/{3w_umk1xtj6to.js → 43fp64xnfy646.js} +1 -1
- package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
- package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
- package/out/_next/static/chunks/{1ozi46t8jajqh.js → 44zi0gl0a6a8w.js} +1 -1
- package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
- package/out/_not-found/__next._full.txt +12 -12
- package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +12 -12
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +15 -15
- package/out/__next._head.txt +0 -6
- package/out/__next._index.txt +0 -5
- package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
- package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
- package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
- package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
- package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
- package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
- package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
- package/out/_next/static/chunks/04j9pexbmysdy.js +0 -1
- package/out/_next/static/chunks/055baac5e-c2o.js +0 -1
- package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
- package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
- package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
- package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
- package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
- package/out/_next/static/chunks/099ilz3dmm1jw.js +0 -1
- package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
- package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
- package/out/_next/static/chunks/0c5d3qn2mb3ew.js +0 -1
- package/out/_next/static/chunks/0dck67in84de0.js +0 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
- package/out/_next/static/chunks/0dva036n8ab62.js +0 -1
- package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
- package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
- package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
- package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
- package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
- package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
- package/out/_next/static/chunks/0n-zml1gn0o1u.js +0 -1
- package/out/_next/static/chunks/0n92hec_jb_-_.js +0 -1
- package/out/_next/static/chunks/0pv2wirx45e1m.js +0 -1
- package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
- package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
- package/out/_next/static/chunks/0s84ekz_f9ngx.js +0 -1
- package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
- package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
- package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
- package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
- package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
- package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
- package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
- package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
- package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
- package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
- package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
- package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
- package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
- package/out/_next/static/chunks/18wa83g0qfh-b.js +0 -1
- package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
- package/out/_next/static/chunks/1__nujzr9e352.js +0 -3
- package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
- package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
- package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
- package/out/_next/static/chunks/1di5enkavl9vx.js +0 -4
- package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
- package/out/_next/static/chunks/1gnggc6370ji-.js +0 -1
- package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
- package/out/_next/static/chunks/1hsvckd0sgdgr.js +0 -1
- package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
- package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
- package/out/_next/static/chunks/1mrvp94tietcv.js +0 -1
- package/out/_next/static/chunks/1mvadj46owrck.js +0 -1
- package/out/_next/static/chunks/1nasz7q3tvb53.js +0 -1
- package/out/_next/static/chunks/1o3ggu95lfu6i.js +0 -1
- package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
- package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
- package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
- package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
- package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
- package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
- package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
- package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
- package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
- package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
- package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
- package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
- package/out/_next/static/chunks/2bm95r0011asw.js +0 -1
- package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
- package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
- package/out/_next/static/chunks/2c2dspoukng-5.js +0 -1
- package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
- package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
- package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
- package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
- package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
- package/out/_next/static/chunks/2ies66gmou203.js +0 -1
- package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
- package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
- package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
- package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
- package/out/_next/static/chunks/2o8k8x5zcepfy.js +0 -1
- package/out/_next/static/chunks/2pcdnd4nzcw4c.js +0 -1
- package/out/_next/static/chunks/2q0rz76kj6h5z.js +0 -1
- package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
- package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
- package/out/_next/static/chunks/2wi7y3sfqyqdo.js +0 -3
- package/out/_next/static/chunks/2ymtumj-hfrjo.js +0 -1
- package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
- package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
- package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
- package/out/_next/static/chunks/31ei992g8gqz9.js +0 -1
- package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
- package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
- package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
- package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
- package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
- package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
- package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
- package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
- package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
- package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
- package/out/_next/static/chunks/3k-gz8qf-mj-p.js +0 -1
- package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
- package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
- package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
- package/out/_next/static/chunks/3mvaub8qjdyuc.js +0 -1
- package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
- package/out/_next/static/chunks/3tdzweqszru4y.js +0 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
- package/out/_next/static/chunks/3y_51bmdnc0ey.js +0 -1
- package/out/_next/static/chunks/3yr66ufoli71t.js +0 -1
- package/out/_next/static/chunks/41qxc142snm22.js +0 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
- package/out/_next/static/chunks/turbopack-3r8yn0j92tqw_.js +0 -1
- package/out/_not-found/__next._head.txt +0 -6
- package/out/_not-found/__next._index.txt +0 -5
- package/out/_not-found/__next._not-found.txt +0 -5
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,239 @@
|
|
|
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,87691,45961,47485,89701,62921,49405,e=>{"use strict";var t=e.i(2342);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
|
|
2
|
+
#ifndef USE_VERTEX_PULLING
|
|
3
|
+
attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
|
|
4
|
+
#if NUM_BONE_INFLUENCERS>4
|
|
5
|
+
attribute matricesIndicesExtra : vec4f;attribute matricesWeightsExtra : vec4f;
|
|
6
|
+
#endif
|
|
7
|
+
#endif
|
|
8
|
+
#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
9
|
+
#ifdef BONETEXTURE
|
|
10
|
+
var boneSampler : texture_2d<f32>;uniform boneTextureInfo : vec2f;
|
|
11
|
+
#else
|
|
12
|
+
uniform mBones : array<mat4x4f,BonesPerMesh>;
|
|
13
|
+
#endif
|
|
14
|
+
#ifdef BONES_VELOCITY_ENABLED
|
|
15
|
+
uniform mPreviousBones : array<mat4x4f,BonesPerMesh>;
|
|
16
|
+
#endif
|
|
17
|
+
#ifdef BONETEXTURE
|
|
18
|
+
fn readMatrixFromRawSampler(smp : texture_2d<f32>,index : f32)->mat4x4f
|
|
19
|
+
{let offset=i32(index)*4;
|
|
20
|
+
let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x=offset % textureWidth;let m0=textureLoad(smp,vec2<i32>(x+0,y),0);let m1=textureLoad(smp,vec2<i32>(x+1,y),0);let m2=textureLoad(smp,vec2<i32>(x+2,y),0);let m3=textureLoad(smp,vec2<i32>(x+3,y),0);return mat4x4f(m0,m1,m2,m3);}
|
|
21
|
+
#endif
|
|
22
|
+
#endif
|
|
23
|
+
#endif
|
|
24
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],87691);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
25
|
+
uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
|
|
26
|
+
#ifdef INSTANCES
|
|
27
|
+
attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
28
|
+
#endif
|
|
29
|
+
fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
|
|
30
|
+
{let offset=i32(index)*4;let frameUV=i32(frame);let m0=textureLoad(smp,vec2<i32>(offset+0,frameUV),0);let m1=textureLoad(smp,vec2<i32>(offset+1,frameUV),0);let m2=textureLoad(smp,vec2<i32>(offset+2,frameUV),0);let m3=textureLoad(smp,vec2<i32>(offset+3,frameUV),0);return mat4x4<f32>(m0,m1,m2,m3);}
|
|
31
|
+
#endif
|
|
32
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],45961);let f="instancesDeclaration",o=`#ifdef INSTANCES
|
|
33
|
+
attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
|
|
34
|
+
#ifdef INSTANCESCOLOR
|
|
35
|
+
attribute instanceColor : vec4<f32>;
|
|
36
|
+
#endif
|
|
37
|
+
#if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
|
|
38
|
+
uniform world : mat4x4<f32>;
|
|
39
|
+
#endif
|
|
40
|
+
#if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
41
|
+
attribute previousWorld0 : vec4<f32>;attribute previousWorld1 : vec4<f32>;attribute previousWorld2 : vec4<f32>;attribute previousWorld3 : vec4<f32>;
|
|
42
|
+
#ifdef THIN_INSTANCES
|
|
43
|
+
uniform previousWorld : mat4x4<f32>;
|
|
44
|
+
#endif
|
|
45
|
+
#endif
|
|
46
|
+
#else
|
|
47
|
+
#if !defined(WORLD_UBO)
|
|
48
|
+
uniform world : mat4x4<f32>;
|
|
49
|
+
#endif
|
|
50
|
+
#if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
51
|
+
uniform previousWorld : mat4x4<f32>;
|
|
52
|
+
#endif
|
|
53
|
+
#endif
|
|
54
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["instancesDeclarationWGSL",0,{name:f,shader:o}],47485);let d="instancesVertex",s=`#ifdef INSTANCES
|
|
55
|
+
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
|
|
56
|
+
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
57
|
+
var finalPreviousWorld=mat4x4<f32>(
|
|
58
|
+
vertexInputs.previousWorld0,vertexInputs.previousWorld1,
|
|
59
|
+
vertexInputs.previousWorld2,vertexInputs.previousWorld3);
|
|
60
|
+
#endif
|
|
61
|
+
#ifdef THIN_INSTANCES
|
|
62
|
+
#if !defined(WORLD_UBO)
|
|
63
|
+
finalWorld=uniforms.world*finalWorld;
|
|
64
|
+
#else
|
|
65
|
+
finalWorld=mesh.world*finalWorld;
|
|
66
|
+
#endif
|
|
67
|
+
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
68
|
+
finalPreviousWorld=uniforms.previousWorld*finalPreviousWorld;
|
|
69
|
+
#endif
|
|
70
|
+
#endif
|
|
71
|
+
#else
|
|
72
|
+
#if !defined(WORLD_UBO)
|
|
73
|
+
var finalWorld=uniforms.world;
|
|
74
|
+
#else
|
|
75
|
+
var finalWorld=mesh.world;
|
|
76
|
+
#endif
|
|
77
|
+
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
78
|
+
var finalPreviousWorld=uniforms.previousWorld;
|
|
79
|
+
#endif
|
|
80
|
+
#endif
|
|
81
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[d]||(t.ShaderStore.IncludesShadersStoreWGSL[d]=s),e.s(["instancesVertexWGSL",0,{name:d,shader:s}],89701);let c="bonesVertex",l=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
82
|
+
#if NUM_BONE_INFLUENCERS>0
|
|
83
|
+
var influence : mat4x4<f32>;
|
|
84
|
+
#ifdef BONETEXTURE
|
|
85
|
+
influence=readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[0])*vertexInputs.matricesWeights[0];
|
|
86
|
+
#if NUM_BONE_INFLUENCERS>1
|
|
87
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[1])*vertexInputs.matricesWeights[1];
|
|
88
|
+
#endif
|
|
89
|
+
#if NUM_BONE_INFLUENCERS>2
|
|
90
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[2])*vertexInputs.matricesWeights[2];
|
|
91
|
+
#endif
|
|
92
|
+
#if NUM_BONE_INFLUENCERS>3
|
|
93
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[3])*vertexInputs.matricesWeights[3];
|
|
94
|
+
#endif
|
|
95
|
+
#if NUM_BONE_INFLUENCERS>4
|
|
96
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[0])*vertexInputs.matricesWeightsExtra[0];
|
|
97
|
+
#endif
|
|
98
|
+
#if NUM_BONE_INFLUENCERS>5
|
|
99
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[1])*vertexInputs.matricesWeightsExtra[1];
|
|
100
|
+
#endif
|
|
101
|
+
#if NUM_BONE_INFLUENCERS>6
|
|
102
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[2])*vertexInputs.matricesWeightsExtra[2];
|
|
103
|
+
#endif
|
|
104
|
+
#if NUM_BONE_INFLUENCERS>7
|
|
105
|
+
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[3])*vertexInputs.matricesWeightsExtra[3];
|
|
106
|
+
#endif
|
|
107
|
+
#else
|
|
108
|
+
influence=uniforms.mBones[i32(vertexInputs.matricesIndices[0])]*vertexInputs.matricesWeights[0];
|
|
109
|
+
#if NUM_BONE_INFLUENCERS>1
|
|
110
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[1])]*vertexInputs.matricesWeights[1];
|
|
111
|
+
#endif
|
|
112
|
+
#if NUM_BONE_INFLUENCERS>2
|
|
113
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[2])]*vertexInputs.matricesWeights[2];
|
|
114
|
+
#endif
|
|
115
|
+
#if NUM_BONE_INFLUENCERS>3
|
|
116
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[3])]*vertexInputs.matricesWeights[3];
|
|
117
|
+
#endif
|
|
118
|
+
#if NUM_BONE_INFLUENCERS>4
|
|
119
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[0])]*vertexInputs.matricesWeightsExtra[0];
|
|
120
|
+
#endif
|
|
121
|
+
#if NUM_BONE_INFLUENCERS>5
|
|
122
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[1])]*vertexInputs.matricesWeightsExtra[1];
|
|
123
|
+
#endif
|
|
124
|
+
#if NUM_BONE_INFLUENCERS>6
|
|
125
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[2])]*vertexInputs.matricesWeightsExtra[2];
|
|
126
|
+
#endif
|
|
127
|
+
#if NUM_BONE_INFLUENCERS>7
|
|
128
|
+
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*vertexInputs.matricesWeightsExtra[3];
|
|
129
|
+
#endif
|
|
130
|
+
#endif
|
|
131
|
+
finalWorld=finalWorld*influence;
|
|
132
|
+
#endif
|
|
133
|
+
#endif
|
|
134
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[c]||(t.ShaderStore.IncludesShadersStoreWGSL[c]=l),e.s(["bonesVertexWGSL",0,{name:c,shader:l}],62921);let v="bakedVertexAnimation",u=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
135
|
+
{
|
|
136
|
+
#ifdef INSTANCES
|
|
137
|
+
let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
|
|
138
|
+
#else
|
|
139
|
+
let VATStartFrame: f32=uniforms.bakedVertexAnimationSettings.x;let VATEndFrame: f32=uniforms.bakedVertexAnimationSettings.y;let VATOffsetFrame: f32=uniforms.bakedVertexAnimationSettings.z;let VATSpeed: f32=uniforms.bakedVertexAnimationSettings.w;
|
|
140
|
+
#endif
|
|
141
|
+
let totalFrames: f32=VATEndFrame-VATStartFrame+1.0;let time: f32=uniforms.bakedVertexAnimationTime*VATSpeed/totalFrames;let frameCorrection: f32=select(1.0,0.0,time<1.0);let numOfFrames: f32=totalFrames-frameCorrection;var VATFrameNum: f32=fract(time)*numOfFrames;VATFrameNum=(VATFrameNum+VATOffsetFrame) % numOfFrames;VATFrameNum=floor(VATFrameNum);VATFrameNum=VATFrameNum+VATStartFrame+frameCorrection;var VATInfluence : mat4x4<f32>;VATInfluence=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[0],VATFrameNum)*vertexInputs.matricesWeights[0];
|
|
142
|
+
#if NUM_BONE_INFLUENCERS>1
|
|
143
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[1],VATFrameNum)*vertexInputs.matricesWeights[1];
|
|
144
|
+
#endif
|
|
145
|
+
#if NUM_BONE_INFLUENCERS>2
|
|
146
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[2],VATFrameNum)*vertexInputs.matricesWeights[2];
|
|
147
|
+
#endif
|
|
148
|
+
#if NUM_BONE_INFLUENCERS>3
|
|
149
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[3],VATFrameNum)*vertexInputs.matricesWeights[3];
|
|
150
|
+
#endif
|
|
151
|
+
#if NUM_BONE_INFLUENCERS>4
|
|
152
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[0],VATFrameNum)*vertexInputs.matricesWeightsExtra[0];
|
|
153
|
+
#endif
|
|
154
|
+
#if NUM_BONE_INFLUENCERS>5
|
|
155
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[1],VATFrameNum)*vertexInputs.matricesWeightsExtra[1];
|
|
156
|
+
#endif
|
|
157
|
+
#if NUM_BONE_INFLUENCERS>6
|
|
158
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[2],VATFrameNum)*vertexInputs.matricesWeightsExtra[2];
|
|
159
|
+
#endif
|
|
160
|
+
#if NUM_BONE_INFLUENCERS>7
|
|
161
|
+
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[3],VATFrameNum)*vertexInputs.matricesWeightsExtra[3];
|
|
162
|
+
#endif
|
|
163
|
+
finalWorld=finalWorld*VATInfluence;}
|
|
164
|
+
#endif
|
|
165
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[v]||(t.ShaderStore.IncludesShadersStoreWGSL[v]=u),e.s(["bakedVertexAnimationWGSL",0,{name:v,shader:u}],49405)},10997,e=>{"use strict";var t=e.i(2342);let r="bumpVertex",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
166
|
+
#if defined(TANGENT) && defined(NORMAL)
|
|
167
|
+
var tbnNormal: vec3f=normalize(normalUpdated);var tbnTangent: vec3f=normalize(tangentUpdated.xyz);var tbnBitangent: vec3f=cross(tbnNormal,tbnTangent)*tangentUpdated.w;var matTemp= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz)* mat3x3f(tbnTangent,tbnBitangent,tbnNormal);vertexOutputs.vTBN0=matTemp[0];vertexOutputs.vTBN1=matTemp[1];vertexOutputs.vTBN2=matTemp[2];
|
|
168
|
+
#endif
|
|
169
|
+
#endif
|
|
170
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bumpVertexWGSL",0,{name:r,shader:i}])},88074,e=>{"use strict";var t=e.i(2342);let r="bumpVertexDeclaration",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
171
|
+
#if defined(TANGENT) && defined(NORMAL)
|
|
172
|
+
varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
|
|
173
|
+
#endif
|
|
174
|
+
#endif
|
|
175
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bumpVertexDeclarationWGSL",0,{name:r,shader:i}])},83753,64767,e=>{"use strict";var t=e.i(2342);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
|
|
176
|
+
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
177
|
+
#endif
|
|
178
|
+
#ifdef CLIPPLANE2
|
|
179
|
+
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
|
|
180
|
+
#endif
|
|
181
|
+
#ifdef CLIPPLANE3
|
|
182
|
+
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
|
|
183
|
+
#endif
|
|
184
|
+
#ifdef CLIPPLANE4
|
|
185
|
+
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
|
|
186
|
+
#endif
|
|
187
|
+
#ifdef CLIPPLANE5
|
|
188
|
+
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
189
|
+
#endif
|
|
190
|
+
#ifdef CLIPPLANE6
|
|
191
|
+
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
192
|
+
#endif
|
|
193
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}],83753);let n="clipPlaneVertex",a=`#ifdef CLIPPLANE
|
|
194
|
+
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
195
|
+
#endif
|
|
196
|
+
#ifdef CLIPPLANE2
|
|
197
|
+
vertexOutputs.fClipDistance2=dot(worldPos,uniforms.vClipPlane2);
|
|
198
|
+
#endif
|
|
199
|
+
#ifdef CLIPPLANE3
|
|
200
|
+
vertexOutputs.fClipDistance3=dot(worldPos,uniforms.vClipPlane3);
|
|
201
|
+
#endif
|
|
202
|
+
#ifdef CLIPPLANE4
|
|
203
|
+
vertexOutputs.fClipDistance4=dot(worldPos,uniforms.vClipPlane4);
|
|
204
|
+
#endif
|
|
205
|
+
#ifdef CLIPPLANE5
|
|
206
|
+
vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
|
|
207
|
+
#endif
|
|
208
|
+
#ifdef CLIPPLANE6
|
|
209
|
+
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
|
|
210
|
+
#endif
|
|
211
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["clipPlaneVertexWGSL",0,{name:n,shader:a}],64767)},43402,25462,e=>{"use strict";var t=e.i(2342);let r="fogVertexDeclaration",i=`#ifdef FOG
|
|
212
|
+
varying vFogDistance: vec3f;
|
|
213
|
+
#endif
|
|
214
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],43402);let n="fogVertex",a=`#ifdef FOG
|
|
215
|
+
#ifdef SCENE_UBO
|
|
216
|
+
vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
|
|
217
|
+
#else
|
|
218
|
+
vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;
|
|
219
|
+
#endif
|
|
220
|
+
#endif
|
|
221
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexWGSL",0,{name:n,shader:a}],25462)},51760,e=>{"use strict";var t=e.i(2342);let r="harmonicsFunctions",i=`#ifdef USESPHERICALFROMREFLECTIONMAP
|
|
222
|
+
#ifdef SPHERICAL_HARMONICS
|
|
223
|
+
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSphericalL00
|
|
224
|
+
+ uniforms.vSphericalL1_1*(normal.y)
|
|
225
|
+
+ uniforms.vSphericalL10*(normal.z)
|
|
226
|
+
+ uniforms.vSphericalL11*(normal.x)
|
|
227
|
+
+ uniforms.vSphericalL2_2*(normal.y*normal.x)
|
|
228
|
+
+ uniforms.vSphericalL2_1*(normal.y*normal.z)
|
|
229
|
+
+ uniforms.vSphericalL20*((3.0*normal.z*normal.z)-1.0)
|
|
230
|
+
+ uniforms.vSphericalL21*(normal.z*normal.x)
|
|
231
|
+
+ uniforms.vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
|
|
232
|
+
#else
|
|
233
|
+
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {var Nx: f32=normal.x;var Ny: f32=normal.y;var Nz: f32=normal.z;var C1: vec3f=uniforms.vSphericalZZ.rgb;var Cx: vec3f=uniforms.vSphericalX.rgb;var Cy: vec3f=uniforms.vSphericalY.rgb;var Cz: vec3f=uniforms.vSphericalZ.rgb;var Cxx_zz: vec3f=uniforms.vSphericalXX_ZZ.rgb;var Cyy_zz: vec3f=uniforms.vSphericalYY_ZZ.rgb;var Cxy: vec3f=uniforms.vSphericalXY.rgb;var Cyz: vec3f=uniforms.vSphericalYZ.rgb;var Czx: vec3f=uniforms.vSphericalZX.rgb;var a1: vec3f=Cyy_zz*Ny+Cy;var a2: vec3f=Cyz*Nz+a1;var b1: vec3f=Czx*Nz+Cx;var b2: vec3f=Cxy*Ny+b1;var b3: vec3f=Cxx_zz*Nx+b2;var t1: vec3f=Cz *Nz+C1;var t2: vec3f=a2 *Ny+t1;var t3: vec3f=b3 *Nx+t2;return t3;}
|
|
234
|
+
#endif
|
|
235
|
+
#endif
|
|
236
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["harmonicsFunctionsWGSL",0,{name:r,shader:i}])},35551,e=>{"use strict";var t=e.i(2342);let r="helperFunctions",i=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
|
|
2
237
|
const LinearEncodePowerApprox: f32=2.2;const GammaEncodePowerApprox: f32=1.0/LinearEncodePowerApprox;const LuminanceEncodeApprox: vec3f=vec3f(0.2126,0.7152,0.0722);const Epsilon:f32=0.0000001;fn square(x: f32)->f32 {return x*x;}
|
|
3
238
|
fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
|
|
4
239
|
fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
|
|
@@ -84,48 +319,177 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
|
|
|
84
319
|
fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
|
|
85
320
|
fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
|
|
86
321
|
uint2float(rstate*2447445414u));}
|
|
87
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},
|
|
88
|
-
#ifdef MULTIVIEW
|
|
89
|
-
viewProjectionR : mat4x4<f32>,
|
|
90
|
-
#endif
|
|
91
|
-
view : mat4x4<f32>,
|
|
92
|
-
projection : mat4x4<f32>,
|
|
93
|
-
vEyePosition : vec4<f32>,
|
|
94
|
-
inverseProjection : mat4x4<f32>,};
|
|
95
|
-
#define SCENE_UBO
|
|
96
|
-
var<uniform> scene : Scene;
|
|
97
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}])},2586,30368,95676,e=>{"use strict";var t=e.i(37875);let r="meshUboDeclaration",i=`struct Mesh {world : mat4x4<f32>,
|
|
98
|
-
visibility : f32,};var<uniform> mesh : Mesh;
|
|
99
|
-
#define WORLD_UBO
|
|
100
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["meshUboDeclarationWGSL",0,{name:r,shader:i}],2586);let n="mainUVVaryingDeclaration",a=`#ifdef MAINUV{X}
|
|
101
|
-
varying vMainUV{X}: vec2f;
|
|
102
|
-
#endif
|
|
103
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["mainUVVaryingDeclarationWGSL",0,{name:n,shader:a}],30368);let f="logDepthDeclaration",o=`#ifdef LOGARITHMICDEPTH
|
|
322
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},67263,e=>{"use strict";var t=e.i(2342);let r="logDepthDeclaration",i=`#ifdef LOGARITHMICDEPTH
|
|
104
323
|
uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
|
|
105
324
|
#endif
|
|
106
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
107
|
-
|
|
108
|
-
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSphericalL00
|
|
109
|
-
+ uniforms.vSphericalL1_1*(normal.y)
|
|
110
|
-
+ uniforms.vSphericalL10*(normal.z)
|
|
111
|
-
+ uniforms.vSphericalL11*(normal.x)
|
|
112
|
-
+ uniforms.vSphericalL2_2*(normal.y*normal.x)
|
|
113
|
-
+ uniforms.vSphericalL2_1*(normal.y*normal.z)
|
|
114
|
-
+ uniforms.vSphericalL20*((3.0*normal.z*normal.z)-1.0)
|
|
115
|
-
+ uniforms.vSphericalL21*(normal.z*normal.x)
|
|
116
|
-
+ uniforms.vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
|
|
117
|
-
#else
|
|
118
|
-
fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {var Nx: f32=normal.x;var Ny: f32=normal.y;var Nz: f32=normal.z;var C1: vec3f=uniforms.vSphericalZZ.rgb;var Cx: vec3f=uniforms.vSphericalX.rgb;var Cy: vec3f=uniforms.vSphericalY.rgb;var Cz: vec3f=uniforms.vSphericalZ.rgb;var Cxx_zz: vec3f=uniforms.vSphericalXX_ZZ.rgb;var Cyy_zz: vec3f=uniforms.vSphericalYY_ZZ.rgb;var Cxy: vec3f=uniforms.vSphericalXY.rgb;var Cyz: vec3f=uniforms.vSphericalYZ.rgb;var Czx: vec3f=uniforms.vSphericalZX.rgb;var a1: vec3f=Cyy_zz*Ny+Cy;var a2: vec3f=Cyz*Nz+a1;var b1: vec3f=Czx*Nz+Cx;var b2: vec3f=Cxy*Ny+b1;var b3: vec3f=Cxx_zz*Nx+b2;var t1: vec3f=Cz *Nz+C1;var t2: vec3f=a2 *Ny+t1;var t3: vec3f=b3 *Nx+t2;return t3;}
|
|
325
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["logDepthDeclarationWGSL",0,{name:r,shader:i}])},42158,e=>{"use strict";var t=e.i(2342);let r="logDepthVertex",i=`#ifdef LOGARITHMICDEPTH
|
|
326
|
+
vertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant;
|
|
119
327
|
#endif
|
|
328
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["logDepthVertexWGSL",0,{name:r,shader:i}])},77918,e=>{"use strict";var t=e.i(2342);let r="mainUVVaryingDeclaration",i=`#ifdef MAINUV{X}
|
|
329
|
+
varying vMainUV{X}: vec2f;
|
|
120
330
|
#endif
|
|
121
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["
|
|
122
|
-
|
|
123
|
-
#define
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
#
|
|
127
|
-
|
|
128
|
-
|
|
331
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["mainUVVaryingDeclarationWGSL",0,{name:r,shader:i}])},25661,e=>{"use strict";var t=e.i(2342);let r="meshUboDeclaration",i=`struct Mesh {world : mat4x4<f32>,
|
|
332
|
+
visibility : f32,};var<uniform> mesh : Mesh;
|
|
333
|
+
#define WORLD_UBO
|
|
334
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["meshUboDeclarationWGSL",0,{name:r,shader:i}])},19579,44181,77316,43933,e=>{"use strict";var t=e.i(2342);let r="morphTargetsVertexGlobalDeclaration",i=`#ifdef MORPHTARGETS
|
|
335
|
+
uniform morphTargetInfluences : array<f32,NUM_MORPH_INFLUENCERS>;
|
|
336
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
337
|
+
uniform morphTargetTextureIndices : array<f32,NUM_MORPH_INFLUENCERS>;uniform morphTargetTextureInfo : vec3<f32>;var morphTargets : texture_2d_array<f32>;fn readVector3FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec3<f32>
|
|
338
|
+
{
|
|
339
|
+
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0).xyz;}
|
|
340
|
+
fn readVector4FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec4<f32>
|
|
341
|
+
{
|
|
342
|
+
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
|
|
343
|
+
let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
|
|
344
|
+
#endif
|
|
345
|
+
#endif
|
|
346
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:r,shader:i}],19579);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
|
|
347
|
+
#ifndef MORPHTARGETS_TEXTURE
|
|
348
|
+
#ifdef MORPHTARGETS_POSITION
|
|
349
|
+
attribute position{X} : vec3<f32>;
|
|
350
|
+
#endif
|
|
351
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
352
|
+
attribute normal{X} : vec3<f32>;
|
|
353
|
+
#endif
|
|
354
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
355
|
+
attribute tangent{X} : vec3<f32>;
|
|
356
|
+
#endif
|
|
357
|
+
#ifdef MORPHTARGETS_UV
|
|
358
|
+
attribute uv_{X} : vec2<f32>;
|
|
359
|
+
#endif
|
|
360
|
+
#ifdef MORPHTARGETS_UV2
|
|
361
|
+
attribute uv2_{X} : vec2<f32>;
|
|
362
|
+
#endif
|
|
363
|
+
#ifdef MORPHTARGETS_COLOR
|
|
364
|
+
attribute color{X} : vec4<f32>;
|
|
365
|
+
#endif
|
|
366
|
+
#elif {X}==0
|
|
367
|
+
uniform morphTargetCount: f32;
|
|
368
|
+
#endif
|
|
369
|
+
#endif
|
|
370
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],44181);let f="morphTargetsVertexGlobal",o=`#ifdef MORPHTARGETS
|
|
371
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
372
|
+
var vertexID : f32;
|
|
373
|
+
#endif
|
|
374
|
+
#endif
|
|
375
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:o}],77316);let d="morphTargetsVertex",s=`#ifdef MORPHTARGETS
|
|
376
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
377
|
+
#if {X}==0
|
|
378
|
+
for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
|
|
379
|
+
#ifdef USE_VERTEX_PULLING
|
|
380
|
+
vertexID=f32(vpVertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
381
|
+
#else
|
|
382
|
+
vertexID=f32(vertexInputs.vertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
383
|
+
#endif
|
|
384
|
+
#ifdef MORPHTARGETS_POSITION
|
|
385
|
+
#ifdef USE_VERTEX_PULLING
|
|
386
|
+
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vp_basePosition)*uniforms.morphTargetInfluences[i];
|
|
387
|
+
#else
|
|
388
|
+
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vertexInputs.position)*uniforms.morphTargetInfluences[i];
|
|
389
|
+
#endif
|
|
390
|
+
#endif
|
|
391
|
+
#ifdef MORPHTARGETTEXTURE_HASPOSITIONS
|
|
392
|
+
vertexID=vertexID+1.0;
|
|
393
|
+
#endif
|
|
394
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
395
|
+
#ifdef USE_VERTEX_PULLING
|
|
396
|
+
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vp_baseNormal)*uniforms.morphTargetInfluences[i];
|
|
397
|
+
#else
|
|
398
|
+
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vertexInputs.normal)*uniforms.morphTargetInfluences[i];
|
|
399
|
+
#endif
|
|
400
|
+
#endif
|
|
401
|
+
#ifdef MORPHTARGETTEXTURE_HASNORMALS
|
|
402
|
+
vertexID=vertexID+1.0;
|
|
403
|
+
#endif
|
|
404
|
+
#ifdef MORPHTARGETS_UV
|
|
405
|
+
#ifdef USE_VERTEX_PULLING
|
|
406
|
+
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV)*uniforms.morphTargetInfluences[i];
|
|
407
|
+
#else
|
|
408
|
+
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv)*uniforms.morphTargetInfluences[i];
|
|
409
|
+
#endif
|
|
410
|
+
#endif
|
|
411
|
+
#ifdef MORPHTARGETTEXTURE_HASUVS
|
|
412
|
+
vertexID=vertexID+1.0;
|
|
413
|
+
#endif
|
|
414
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
415
|
+
#ifdef USE_VERTEX_PULLING
|
|
416
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vp_baseTangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
417
|
+
#else
|
|
418
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
419
|
+
#endif
|
|
420
|
+
#endif
|
|
421
|
+
#ifdef MORPHTARGETTEXTURE_HASTANGENTS
|
|
422
|
+
vertexID=vertexID+1.0;
|
|
423
|
+
#endif
|
|
424
|
+
#ifdef MORPHTARGETS_UV2
|
|
425
|
+
#ifdef USE_VERTEX_PULLING
|
|
426
|
+
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV2)*uniforms.morphTargetInfluences[i];
|
|
427
|
+
#else
|
|
428
|
+
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv2)*uniforms.morphTargetInfluences[i];
|
|
429
|
+
#endif
|
|
430
|
+
#endif
|
|
431
|
+
#ifdef MORPHTARGETS_COLOR
|
|
432
|
+
#ifdef USE_VERTEX_PULLING
|
|
433
|
+
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vp_baseColor)*uniforms.morphTargetInfluences[i];
|
|
434
|
+
#else
|
|
435
|
+
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vertexInputs.color)*uniforms.morphTargetInfluences[i];
|
|
436
|
+
#endif
|
|
437
|
+
#endif
|
|
438
|
+
}
|
|
439
|
+
#endif
|
|
440
|
+
#else
|
|
441
|
+
#ifdef MORPHTARGETS_POSITION
|
|
442
|
+
#ifdef USE_VERTEX_PULLING
|
|
443
|
+
positionUpdated=positionUpdated+(vertexInputs.position{X}-vp_basePosition)*uniforms.morphTargetInfluences[{X}];
|
|
444
|
+
#else
|
|
445
|
+
positionUpdated=positionUpdated+(vertexInputs.position{X}-vertexInputs.position)*uniforms.morphTargetInfluences[{X}];
|
|
446
|
+
#endif
|
|
447
|
+
#endif
|
|
448
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
449
|
+
#ifdef USE_VERTEX_PULLING
|
|
450
|
+
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vp_baseNormal)*uniforms.morphTargetInfluences[{X}];
|
|
451
|
+
#else
|
|
452
|
+
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vertexInputs.normal)*uniforms.morphTargetInfluences[{X}];
|
|
453
|
+
#endif
|
|
454
|
+
#endif
|
|
455
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
456
|
+
#ifdef USE_VERTEX_PULLING
|
|
457
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vp_baseTangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
458
|
+
#else
|
|
459
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
460
|
+
#endif
|
|
461
|
+
#endif
|
|
462
|
+
#ifdef MORPHTARGETS_UV
|
|
463
|
+
#ifdef USE_VERTEX_PULLING
|
|
464
|
+
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vp_baseUV)*uniforms.morphTargetInfluences[{X}];
|
|
465
|
+
#else
|
|
466
|
+
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vertexInputs.uv)*uniforms.morphTargetInfluences[{X}];
|
|
467
|
+
#endif
|
|
468
|
+
#endif
|
|
469
|
+
#ifdef MORPHTARGETS_UV2
|
|
470
|
+
#ifdef USE_VERTEX_PULLING
|
|
471
|
+
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vp_baseUV2)*uniforms.morphTargetInfluences[{X}];
|
|
472
|
+
#else
|
|
473
|
+
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vertexInputs.uv2)*uniforms.morphTargetInfluences[{X}];
|
|
474
|
+
#endif
|
|
475
|
+
#endif
|
|
476
|
+
#ifdef MORPHTARGETS_COLOR
|
|
477
|
+
#ifdef USE_VERTEX_PULLING
|
|
478
|
+
colorUpdated=colorUpdated+(vertexInputs.color{X}-vp_baseColor)*uniforms.morphTargetInfluences[{X}];
|
|
479
|
+
#else
|
|
480
|
+
colorUpdated=colorUpdated+(vertexInputs.color{X}-vertexInputs.color)*uniforms.morphTargetInfluences[{X}];
|
|
481
|
+
#endif
|
|
482
|
+
#endif
|
|
483
|
+
#endif
|
|
484
|
+
#endif
|
|
485
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[d]||(t.ShaderStore.IncludesShadersStoreWGSL[d]=s),e.s(["morphTargetsVertexWGSL",0,{name:d,shader:s}],43933)},51052,e=>{"use strict";var t=e.i(2342);let r="pbrBRDFFunctions",i=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
|
|
486
|
+
#define BRDF_DIFFUSE_MODEL_EON 0
|
|
487
|
+
#define BRDF_DIFFUSE_MODEL_BURLEY 1
|
|
488
|
+
#define BRDF_DIFFUSE_MODEL_LAMBERT 2
|
|
489
|
+
#define BRDF_DIFFUSE_MODEL_LEGACY 3
|
|
490
|
+
#define DIELECTRIC_SPECULAR_MODEL_GLTF 0
|
|
491
|
+
#define DIELECTRIC_SPECULAR_MODEL_OPENPBR 1
|
|
492
|
+
#define CONDUCTOR_SPECULAR_MODEL_GLTF 0
|
|
129
493
|
#define CONDUCTOR_SPECULAR_MODEL_OPENPBR 1
|
|
130
494
|
#if !defined(PBR_VERTEX_SHADER) && !defined(OPENPBR_VERTEX_SHADER)
|
|
131
495
|
#ifdef MS_BRDF_ENERGY_CONSERVATION
|
|
@@ -210,317 +574,104 @@ var phi21: f32=PI-phi12;var baseIOR: vec3f=getIORTfromAirToSurfaceR0(clamp(baseF
|
|
|
210
574
|
var R1: vec3f=getR0fromIORsVec3(baseIOR,iridescenceIOR);let maxR1: f32=max(R1.r,max(R1.g,R1.b));if (maxR1<1e-6) {return max(vec3f(R12),vec3f(0.0));}
|
|
211
575
|
var R23: vec3f=fresnelSchlickGGXVec3(cosTheta2,R1,vec3f(1.));var phi23: vec3f=vec3f(0.0);if (baseIOR[0]<iridescenceIOR) {phi23[0]=PI;}
|
|
212
576
|
if (baseIOR[1]<iridescenceIOR) {phi23[1]=PI;}
|
|
213
|
-
if (baseIOR[2]<iridescenceIOR) {phi23[2]=PI;}
|
|
214
|
-
var opd: f32=2.0*iridescenceIOR*thinFilmThickness*cosTheta2;var phi: vec3f=vec3f(phi21)+phi23;var R123: vec3f=clamp(R12*R23,vec3f(1e-5),vec3f(0.9999));var r123: vec3f=sqrt(R123);var Rs: vec3f=(T121*T121)*R23/(vec3f(1.0)-R123);var C0: vec3f=R12+Rs;I=C0;var Cm: vec3f=Rs-T121;for (var m: i32=1; m<=2; m++)
|
|
215
|
-
{Cm*=r123;var Sm: vec3f=2.0*evalSensitivity(f32(m)*opd,f32(m)*phi);I+=Cm*Sm;}
|
|
216
|
-
return max(I,vec3f(0.0));}
|
|
217
|
-
#endif
|
|
218
|
-
fn normalDistributionFunction_TrowbridgeReitzGGX(NdotH: f32,alphaG: f32)->f32
|
|
219
|
-
{var a2: f32=alphaG*alphaG;var d: f32=NdotH*NdotH*(a2-1.0)+1.0;return a2/(PI*d*d);}
|
|
220
|
-
#ifdef SHEEN
|
|
221
|
-
fn normalDistributionFunction_CharlieSheen(NdotH: f32,alphaG: f32)->f32
|
|
222
|
-
{var invR: f32=1./alphaG;var cos2h: f32=NdotH*NdotH;var sin2h: f32=1.-cos2h;return (2.+invR)*pow(sin2h,invR*.5)/(2.*PI);}
|
|
223
|
-
#endif
|
|
224
|
-
#ifdef ANISOTROPIC
|
|
225
|
-
fn normalDistributionFunction_BurleyGGX_Anisotropic(NdotH: f32,TdotH: f32,BdotH: f32,alphaTB: vec2f)->f32 {var a2: f32=alphaTB.x*alphaTB.y;var v: vec3f= vec3f(alphaTB.y*TdotH,alphaTB.x *BdotH,a2*NdotH);var v2: f32=dot(v,v);var w2: f32=a2/v2;return a2*w2*w2*RECIPROCAL_PI;}
|
|
226
|
-
#endif
|
|
227
|
-
#ifdef BRDF_V_HEIGHT_CORRELATED
|
|
228
|
-
fn smithVisibility_GGXCorrelated(NdotL: f32,NdotV: f32,alphaG: f32)->f32 {
|
|
229
|
-
#ifdef MOBILE
|
|
230
|
-
var GGXV: f32=NdotL*(NdotV*(1.0-alphaG)+alphaG);var GGXL: f32=NdotV*(NdotL*(1.0-alphaG)+alphaG);return 0.5/(GGXV+GGXL);
|
|
231
|
-
#else
|
|
232
|
-
var a2: f32=alphaG*alphaG;var GGXV: f32=NdotL*sqrt(NdotV*(NdotV-a2*NdotV)+a2);var GGXL: f32=NdotV*sqrt(NdotL*(NdotL-a2*NdotL)+a2);return 0.5/(GGXV+GGXL);
|
|
233
|
-
#endif
|
|
234
|
-
}
|
|
235
|
-
#else
|
|
236
|
-
fn smithVisibilityG1_TrowbridgeReitzGGXFast(dot: f32,alphaG: f32)->f32
|
|
237
|
-
{
|
|
238
|
-
#ifdef MOBILE
|
|
239
|
-
return 1.0/(dot+alphaG+(1.0-alphaG)*dot ));
|
|
240
|
-
#else
|
|
241
|
-
var alphaSquared: f32=alphaG*alphaG;return 1.0/(dot+sqrt(alphaSquared+(1.0-alphaSquared)*dot*dot));
|
|
242
|
-
#endif
|
|
243
|
-
}
|
|
244
|
-
fn smithVisibility_TrowbridgeReitzGGXFast(NdotL: f32,NdotV: f32,alphaG: f32)->f32
|
|
245
|
-
{var visibility: f32=smithVisibilityG1_TrowbridgeReitzGGXFast(NdotL,alphaG)*smithVisibilityG1_TrowbridgeReitzGGXFast(NdotV,alphaG);return visibility;}
|
|
246
|
-
#endif
|
|
247
|
-
#ifdef ANISOTROPIC
|
|
248
|
-
fn smithVisibility_GGXCorrelated_Anisotropic(NdotL: f32,NdotV: f32,TdotV: f32,BdotV: f32,TdotL: f32,BdotL: f32,alphaTB: vec2f)->f32 {var lambdaV: f32=NdotL*length( vec3f(alphaTB.x*TdotV,alphaTB.y*BdotV,NdotV));var lambdaL: f32=NdotV*length( vec3f(alphaTB.x*TdotL,alphaTB.y*BdotL,NdotL));var v: f32=0.5/(lambdaV+lambdaL);return v;}
|
|
249
|
-
#endif
|
|
250
|
-
#ifdef CLEARCOAT
|
|
251
|
-
fn visibility_Kelemen(VdotH: f32)->f32 {return 0.25/(VdotH*VdotH); }
|
|
252
|
-
#endif
|
|
253
|
-
#ifdef SHEEN
|
|
254
|
-
fn visibility_Ashikhmin(NdotL: f32,NdotV: f32)->f32
|
|
255
|
-
{return 1./(4.*(NdotL+NdotV-NdotL*NdotV));}
|
|
256
|
-
/* NOT USED
|
|
257
|
-
#ifdef SHEEN_SOFTER
|
|
258
|
-
fn l(x: f32,alphaG: f32)->f32
|
|
259
|
-
{var oneMinusAlphaSq: f32=(1.0-alphaG)*(1.0-alphaG);var a: f32=mix(21.5473,25.3245,oneMinusAlphaSq);var b: f32=mix(3.82987,3.32435,oneMinusAlphaSq);var c: f32=mix(0.19823,0.16801,oneMinusAlphaSq);var d: f32=mix(-1.97760,-1.27393,oneMinusAlphaSq);var e: f32=mix(-4.32054,-4.85967,oneMinusAlphaSq);return a/(1.0+b*pow(x,c))+d*x+e;}
|
|
260
|
-
fn lambdaSheen(cosTheta: f32,alphaG: f32)->f32
|
|
261
|
-
{return abs(cosTheta)<0.5 ? exp(l(cosTheta,alphaG)) : exp(2.0*l(0.5,alphaG)-l(1.0-cosTheta,alphaG));}
|
|
262
|
-
fn visibility_CharlieSheen(NdotL: f32,NdotV: f32,alphaG: f32)->f32
|
|
263
|
-
{var G: f32=1.0/(1.0+lambdaSheen(NdotV,alphaG)+lambdaSheen(NdotL,alphaG));return G/(4.0*NdotV*NdotL);}
|
|
264
|
-
#endif
|
|
265
|
-
*/
|
|
266
|
-
#endif
|
|
267
|
-
const constant1_FON: f32=0.5f-2.0f/(3.0f*PI);const constant2_FON: f32=2.0f/3.0f-28.0f/(15.0f*PI);fn E_FON_approx(mu: f32,roughness: f32)->f32
|
|
268
|
-
{var sigma: f32=roughness;
|
|
269
|
-
var mucomp: f32=1.0f-mu;var mucomp2: f32=mucomp*mucomp;const Gcoeffs: mat2x2f=mat2x2f(0.0571085289f,-0.332181442f,
|
|
270
|
-
0.491881867f,0.0714429953f);var GoverPi: f32=dot(Gcoeffs*vec2f(mucomp,mucomp2),vec2f(1.0f,mucomp2));return (1.0f+sigma*GoverPi)/(1.0f+constant1_FON*sigma);}
|
|
271
|
-
fn diffuseBRDF_EON(albedo: vec3f,roughness: f32,NdotL: f32,NdotV: f32,LdotV: f32)->vec3f
|
|
272
|
-
{var rho: vec3f=albedo;var sigma: f32=roughness;
|
|
273
|
-
var mu_i: f32=NdotL;
|
|
274
|
-
var mu_o: f32=NdotV;
|
|
275
|
-
var s: f32=LdotV-mu_i*mu_o;
|
|
276
|
-
var sovertF: f32=select(s,s/max(mu_i,mu_o),s>0.0f);
|
|
277
|
-
var AF: f32=1.0f/(1.0f+constant1_FON*sigma);
|
|
278
|
-
var f_ss: vec3f=(rho*RECIPROCAL_PI)*AF*(1.0f+sigma*sovertF);
|
|
279
|
-
var EFo: f32=E_FON_approx(mu_o,sigma);
|
|
280
|
-
var EFi: f32=E_FON_approx(mu_i,sigma);
|
|
281
|
-
var avgEF: f32=AF*(1.0f+constant2_FON*sigma);
|
|
282
|
-
var rho_ms: vec3f=(rho*rho)*avgEF/(vec3f(1.0f)-rho*(1.0f-avgEF));const eps: f32=1.0e-7f;var f_ms: vec3f=(rho_ms*RECIPROCAL_PI)*max(eps,1.0f-EFo)
|
|
283
|
-
* max(eps,1.0f-EFi)
|
|
284
|
-
/ max(eps,1.0f-avgEF);return (f_ss+f_ms);}
|
|
285
|
-
fn diffuseBRDF_Burley(NdotL: f32,NdotV: f32,VdotH: f32,roughness: f32)->f32 {var diffuseFresnelNV: f32=pow5(saturateEps(1.0-NdotL));var diffuseFresnelNL: f32=pow5(saturateEps(1.0-NdotV));var diffuseFresnel90: f32=0.5+2.0*VdotH*VdotH*roughness;var fresnel: f32 =
|
|
286
|
-
(1.0+(diffuseFresnel90-1.0)*diffuseFresnelNL) *
|
|
287
|
-
(1.0+(diffuseFresnel90-1.0)*diffuseFresnelNV);return fresnel/PI;}
|
|
288
|
-
#ifdef SS_TRANSLUCENCY
|
|
289
|
-
fn transmittanceBRDF_Burley(tintColor: vec3f,diffusionDistance: vec3f,thickness: f32)->vec3f {var S: vec3f=1./maxEpsVec3(diffusionDistance);var temp: vec3f=exp((-0.333333333*thickness)*S);return tintColor.rgb*0.25*(temp*temp*temp+3.0*temp);}
|
|
290
|
-
fn computeWrappedDiffuseNdotL(NdotL: f32,w: f32)->f32 {var t: f32=1.0+w;var invt2: f32=1.0/(t*t);return saturate((NdotL+w)*invt2);}
|
|
291
|
-
#endif
|
|
292
|
-
#endif
|
|
293
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:r,shader:i}])},11868,e=>{"use strict";var t=e.i(37875);e.i(84327),e.i(2586);let r="pbrUboDeclaration",i=`uniform vAlbedoInfos: vec2f;uniform vBaseWeightInfos: vec2f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform vAmbientInfos: vec4f;uniform vOpacityInfos: vec2f;uniform vEmissiveInfos: vec2f;uniform vLightmapInfos: vec2f;uniform vReflectivityInfos: vec3f;uniform vMicroSurfaceSamplerInfos: vec2f;uniform vBumpInfos: vec3f;uniform albedoMatrix: mat4x4f;uniform baseWeightMatrix: mat4x4f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform ambientMatrix: mat4x4f;uniform opacityMatrix: mat4x4f;uniform emissiveMatrix: mat4x4f;uniform lightmapMatrix: mat4x4f;uniform reflectivityMatrix: mat4x4f;uniform microSurfaceSamplerMatrix: mat4x4f;uniform bumpMatrix: mat4x4f;uniform vTangentSpaceParams: vec2f;uniform vAlbedoColor: vec4f;uniform baseWeight: f32;uniform baseDiffuseRoughness: f32;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vReflectivityColor: vec4f;uniform vEmissiveColor: vec3f;uniform vAmbientColor: vec3f;uniform vDebugMode: vec2f;uniform vMetallicReflectanceFactors: vec4f;uniform vMetallicReflectanceInfos: vec2f;uniform metallicReflectanceMatrix: mat4x4f;uniform vReflectanceInfos: vec2f;uniform reflectanceMatrix: mat4x4f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;
|
|
294
|
-
#define ADDITIONAL_UBO_DECLARATION
|
|
295
|
-
#include<sceneUboDeclaration>
|
|
296
|
-
#include<meshUboDeclaration>
|
|
297
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrUboDeclarationWGSL",0,{name:r,shader:i}])},50641,93879,e=>{"use strict";var t=e.i(37875);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
|
|
298
|
-
#ifndef USE_VERTEX_PULLING
|
|
299
|
-
attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
|
|
300
|
-
#if NUM_BONE_INFLUENCERS>4
|
|
301
|
-
attribute matricesIndicesExtra : vec4f;attribute matricesWeightsExtra : vec4f;
|
|
302
|
-
#endif
|
|
303
|
-
#endif
|
|
304
|
-
#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
305
|
-
#ifdef BONETEXTURE
|
|
306
|
-
var boneSampler : texture_2d<f32>;uniform boneTextureInfo : vec2f;
|
|
307
|
-
#else
|
|
308
|
-
uniform mBones : array<mat4x4f,BonesPerMesh>;
|
|
309
|
-
#endif
|
|
310
|
-
#ifdef BONES_VELOCITY_ENABLED
|
|
311
|
-
uniform mPreviousBones : array<mat4x4f,BonesPerMesh>;
|
|
312
|
-
#endif
|
|
313
|
-
#ifdef BONETEXTURE
|
|
314
|
-
fn readMatrixFromRawSampler(smp : texture_2d<f32>,index : f32)->mat4x4f
|
|
315
|
-
{let offset=i32(index)*4;
|
|
316
|
-
let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x=offset % textureWidth;let m0=textureLoad(smp,vec2<i32>(x+0,y),0);let m1=textureLoad(smp,vec2<i32>(x+1,y),0);let m2=textureLoad(smp,vec2<i32>(x+2,y),0);let m3=textureLoad(smp,vec2<i32>(x+3,y),0);return mat4x4f(m0,m1,m2,m3);}
|
|
317
|
-
#endif
|
|
318
|
-
#endif
|
|
319
|
-
#endif
|
|
320
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],50641);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
321
|
-
uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
|
|
322
|
-
#ifdef INSTANCES
|
|
323
|
-
attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
324
|
-
#endif
|
|
325
|
-
fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
|
|
326
|
-
{let offset=i32(index)*4;let frameUV=i32(frame);let m0=textureLoad(smp,vec2<i32>(offset+0,frameUV),0);let m1=textureLoad(smp,vec2<i32>(offset+1,frameUV),0);let m2=textureLoad(smp,vec2<i32>(offset+2,frameUV),0);let m3=textureLoad(smp,vec2<i32>(offset+3,frameUV),0);return mat4x4<f32>(m0,m1,m2,m3);}
|
|
327
|
-
#endif
|
|
328
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],93879)},63547,e=>{"use strict";var t=e.i(37875);let r="instancesDeclaration",i=`#ifdef INSTANCES
|
|
329
|
-
attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
|
|
330
|
-
#ifdef INSTANCESCOLOR
|
|
331
|
-
attribute instanceColor : vec4<f32>;
|
|
332
|
-
#endif
|
|
333
|
-
#if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
|
|
334
|
-
uniform world : mat4x4<f32>;
|
|
335
|
-
#endif
|
|
336
|
-
#if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
337
|
-
attribute previousWorld0 : vec4<f32>;attribute previousWorld1 : vec4<f32>;attribute previousWorld2 : vec4<f32>;attribute previousWorld3 : vec4<f32>;
|
|
338
|
-
#ifdef THIN_INSTANCES
|
|
339
|
-
uniform previousWorld : mat4x4<f32>;
|
|
340
|
-
#endif
|
|
341
|
-
#endif
|
|
342
|
-
#else
|
|
343
|
-
#if !defined(WORLD_UBO)
|
|
344
|
-
uniform world : mat4x4<f32>;
|
|
345
|
-
#endif
|
|
346
|
-
#if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
347
|
-
uniform previousWorld : mat4x4<f32>;
|
|
348
|
-
#endif
|
|
349
|
-
#endif
|
|
350
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesDeclarationWGSL",0,{name:r,shader:i}])},63608,e=>{"use strict";var t=e.i(37875);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
|
|
351
|
-
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
352
|
-
#endif
|
|
353
|
-
#ifdef CLIPPLANE2
|
|
354
|
-
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
|
|
355
|
-
#endif
|
|
356
|
-
#ifdef CLIPPLANE3
|
|
357
|
-
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
|
|
358
|
-
#endif
|
|
359
|
-
#ifdef CLIPPLANE4
|
|
360
|
-
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
|
|
361
|
-
#endif
|
|
362
|
-
#ifdef CLIPPLANE5
|
|
363
|
-
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
364
|
-
#endif
|
|
365
|
-
#ifdef CLIPPLANE6
|
|
366
|
-
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
367
|
-
#endif
|
|
368
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}])},98046,99804,58220,4312,e=>{"use strict";var t=e.i(37875);let r="instancesVertex",i=`#ifdef INSTANCES
|
|
369
|
-
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
|
|
370
|
-
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
371
|
-
var finalPreviousWorld=mat4x4<f32>(
|
|
372
|
-
vertexInputs.previousWorld0,vertexInputs.previousWorld1,
|
|
373
|
-
vertexInputs.previousWorld2,vertexInputs.previousWorld3);
|
|
374
|
-
#endif
|
|
375
|
-
#ifdef THIN_INSTANCES
|
|
376
|
-
#if !defined(WORLD_UBO)
|
|
377
|
-
finalWorld=uniforms.world*finalWorld;
|
|
378
|
-
#else
|
|
379
|
-
finalWorld=mesh.world*finalWorld;
|
|
380
|
-
#endif
|
|
381
|
-
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
382
|
-
finalPreviousWorld=uniforms.previousWorld*finalPreviousWorld;
|
|
383
|
-
#endif
|
|
384
|
-
#endif
|
|
385
|
-
#else
|
|
386
|
-
#if !defined(WORLD_UBO)
|
|
387
|
-
var finalWorld=uniforms.world;
|
|
388
|
-
#else
|
|
389
|
-
var finalWorld=mesh.world;
|
|
390
|
-
#endif
|
|
391
|
-
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
392
|
-
var finalPreviousWorld=uniforms.previousWorld;
|
|
393
|
-
#endif
|
|
394
|
-
#endif
|
|
395
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesVertexWGSL",0,{name:r,shader:i}],98046);let n="bonesVertex",a=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
396
|
-
#if NUM_BONE_INFLUENCERS>0
|
|
397
|
-
var influence : mat4x4<f32>;
|
|
398
|
-
#ifdef BONETEXTURE
|
|
399
|
-
influence=readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[0])*vertexInputs.matricesWeights[0];
|
|
400
|
-
#if NUM_BONE_INFLUENCERS>1
|
|
401
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[1])*vertexInputs.matricesWeights[1];
|
|
402
|
-
#endif
|
|
403
|
-
#if NUM_BONE_INFLUENCERS>2
|
|
404
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[2])*vertexInputs.matricesWeights[2];
|
|
405
|
-
#endif
|
|
406
|
-
#if NUM_BONE_INFLUENCERS>3
|
|
407
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndices[3])*vertexInputs.matricesWeights[3];
|
|
408
|
-
#endif
|
|
409
|
-
#if NUM_BONE_INFLUENCERS>4
|
|
410
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[0])*vertexInputs.matricesWeightsExtra[0];
|
|
411
|
-
#endif
|
|
412
|
-
#if NUM_BONE_INFLUENCERS>5
|
|
413
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[1])*vertexInputs.matricesWeightsExtra[1];
|
|
414
|
-
#endif
|
|
415
|
-
#if NUM_BONE_INFLUENCERS>6
|
|
416
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[2])*vertexInputs.matricesWeightsExtra[2];
|
|
417
|
-
#endif
|
|
418
|
-
#if NUM_BONE_INFLUENCERS>7
|
|
419
|
-
influence=influence+readMatrixFromRawSampler(boneSampler,vertexInputs.matricesIndicesExtra[3])*vertexInputs.matricesWeightsExtra[3];
|
|
420
|
-
#endif
|
|
421
|
-
#else
|
|
422
|
-
influence=uniforms.mBones[i32(vertexInputs.matricesIndices[0])]*vertexInputs.matricesWeights[0];
|
|
423
|
-
#if NUM_BONE_INFLUENCERS>1
|
|
424
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[1])]*vertexInputs.matricesWeights[1];
|
|
425
|
-
#endif
|
|
426
|
-
#if NUM_BONE_INFLUENCERS>2
|
|
427
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[2])]*vertexInputs.matricesWeights[2];
|
|
428
|
-
#endif
|
|
429
|
-
#if NUM_BONE_INFLUENCERS>3
|
|
430
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndices[3])]*vertexInputs.matricesWeights[3];
|
|
431
|
-
#endif
|
|
432
|
-
#if NUM_BONE_INFLUENCERS>4
|
|
433
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[0])]*vertexInputs.matricesWeightsExtra[0];
|
|
434
|
-
#endif
|
|
435
|
-
#if NUM_BONE_INFLUENCERS>5
|
|
436
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[1])]*vertexInputs.matricesWeightsExtra[1];
|
|
437
|
-
#endif
|
|
438
|
-
#if NUM_BONE_INFLUENCERS>6
|
|
439
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[2])]*vertexInputs.matricesWeightsExtra[2];
|
|
440
|
-
#endif
|
|
441
|
-
#if NUM_BONE_INFLUENCERS>7
|
|
442
|
-
influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*vertexInputs.matricesWeightsExtra[3];
|
|
443
|
-
#endif
|
|
444
|
-
#endif
|
|
445
|
-
finalWorld=finalWorld*influence;
|
|
446
|
-
#endif
|
|
447
|
-
#endif
|
|
448
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bonesVertexWGSL",0,{name:n,shader:a}],99804);let f="bakedVertexAnimation",o=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
449
|
-
{
|
|
450
|
-
#ifdef INSTANCES
|
|
451
|
-
let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
|
|
452
|
-
#else
|
|
453
|
-
let VATStartFrame: f32=uniforms.bakedVertexAnimationSettings.x;let VATEndFrame: f32=uniforms.bakedVertexAnimationSettings.y;let VATOffsetFrame: f32=uniforms.bakedVertexAnimationSettings.z;let VATSpeed: f32=uniforms.bakedVertexAnimationSettings.w;
|
|
454
|
-
#endif
|
|
455
|
-
let totalFrames: f32=VATEndFrame-VATStartFrame+1.0;let time: f32=uniforms.bakedVertexAnimationTime*VATSpeed/totalFrames;let frameCorrection: f32=select(1.0,0.0,time<1.0);let numOfFrames: f32=totalFrames-frameCorrection;var VATFrameNum: f32=fract(time)*numOfFrames;VATFrameNum=(VATFrameNum+VATOffsetFrame) % numOfFrames;VATFrameNum=floor(VATFrameNum);VATFrameNum=VATFrameNum+VATStartFrame+frameCorrection;var VATInfluence : mat4x4<f32>;VATInfluence=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[0],VATFrameNum)*vertexInputs.matricesWeights[0];
|
|
456
|
-
#if NUM_BONE_INFLUENCERS>1
|
|
457
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[1],VATFrameNum)*vertexInputs.matricesWeights[1];
|
|
458
|
-
#endif
|
|
459
|
-
#if NUM_BONE_INFLUENCERS>2
|
|
460
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[2],VATFrameNum)*vertexInputs.matricesWeights[2];
|
|
461
|
-
#endif
|
|
462
|
-
#if NUM_BONE_INFLUENCERS>3
|
|
463
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndices[3],VATFrameNum)*vertexInputs.matricesWeights[3];
|
|
464
|
-
#endif
|
|
465
|
-
#if NUM_BONE_INFLUENCERS>4
|
|
466
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[0],VATFrameNum)*vertexInputs.matricesWeightsExtra[0];
|
|
467
|
-
#endif
|
|
468
|
-
#if NUM_BONE_INFLUENCERS>5
|
|
469
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[1],VATFrameNum)*vertexInputs.matricesWeightsExtra[1];
|
|
470
|
-
#endif
|
|
471
|
-
#if NUM_BONE_INFLUENCERS>6
|
|
472
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[2],VATFrameNum)*vertexInputs.matricesWeightsExtra[2];
|
|
473
|
-
#endif
|
|
474
|
-
#if NUM_BONE_INFLUENCERS>7
|
|
475
|
-
VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,vertexInputs.matricesIndicesExtra[3],VATFrameNum)*vertexInputs.matricesWeightsExtra[3];
|
|
476
|
-
#endif
|
|
477
|
-
finalWorld=finalWorld*VATInfluence;}
|
|
478
|
-
#endif
|
|
479
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:o}],58220);let d="clipPlaneVertex",s=`#ifdef CLIPPLANE
|
|
480
|
-
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
481
|
-
#endif
|
|
482
|
-
#ifdef CLIPPLANE2
|
|
483
|
-
vertexOutputs.fClipDistance2=dot(worldPos,uniforms.vClipPlane2);
|
|
484
|
-
#endif
|
|
485
|
-
#ifdef CLIPPLANE3
|
|
486
|
-
vertexOutputs.fClipDistance3=dot(worldPos,uniforms.vClipPlane3);
|
|
487
|
-
#endif
|
|
488
|
-
#ifdef CLIPPLANE4
|
|
489
|
-
vertexOutputs.fClipDistance4=dot(worldPos,uniforms.vClipPlane4);
|
|
577
|
+
if (baseIOR[2]<iridescenceIOR) {phi23[2]=PI;}
|
|
578
|
+
var opd: f32=2.0*iridescenceIOR*thinFilmThickness*cosTheta2;var phi: vec3f=vec3f(phi21)+phi23;var R123: vec3f=clamp(R12*R23,vec3f(1e-5),vec3f(0.9999));var r123: vec3f=sqrt(R123);var Rs: vec3f=(T121*T121)*R23/(vec3f(1.0)-R123);var C0: vec3f=R12+Rs;I=C0;var Cm: vec3f=Rs-T121;for (var m: i32=1; m<=2; m++)
|
|
579
|
+
{Cm*=r123;var Sm: vec3f=2.0*evalSensitivity(f32(m)*opd,f32(m)*phi);I+=Cm*Sm;}
|
|
580
|
+
return max(I,vec3f(0.0));}
|
|
490
581
|
#endif
|
|
491
|
-
|
|
492
|
-
|
|
582
|
+
fn normalDistributionFunction_TrowbridgeReitzGGX(NdotH: f32,alphaG: f32)->f32
|
|
583
|
+
{var a2: f32=alphaG*alphaG;var d: f32=NdotH*NdotH*(a2-1.0)+1.0;return a2/(PI*d*d);}
|
|
584
|
+
#ifdef SHEEN
|
|
585
|
+
fn normalDistributionFunction_CharlieSheen(NdotH: f32,alphaG: f32)->f32
|
|
586
|
+
{var invR: f32=1./alphaG;var cos2h: f32=NdotH*NdotH;var sin2h: f32=1.-cos2h;return (2.+invR)*pow(sin2h,invR*.5)/(2.*PI);}
|
|
493
587
|
#endif
|
|
494
|
-
#ifdef
|
|
495
|
-
|
|
588
|
+
#ifdef ANISOTROPIC
|
|
589
|
+
fn normalDistributionFunction_BurleyGGX_Anisotropic(NdotH: f32,TdotH: f32,BdotH: f32,alphaTB: vec2f)->f32 {var a2: f32=alphaTB.x*alphaTB.y;var v: vec3f= vec3f(alphaTB.y*TdotH,alphaTB.x *BdotH,a2*NdotH);var v2: f32=dot(v,v);var w2: f32=a2/v2;return a2*w2*w2*RECIPROCAL_PI;}
|
|
496
590
|
#endif
|
|
497
|
-
|
|
498
|
-
|
|
591
|
+
#ifdef BRDF_V_HEIGHT_CORRELATED
|
|
592
|
+
fn smithVisibility_GGXCorrelated(NdotL: f32,NdotV: f32,alphaG: f32)->f32 {
|
|
593
|
+
#ifdef MOBILE
|
|
594
|
+
var GGXV: f32=NdotL*(NdotV*(1.0-alphaG)+alphaG);var GGXL: f32=NdotV*(NdotL*(1.0-alphaG)+alphaG);return 0.5/(GGXV+GGXL);
|
|
595
|
+
#else
|
|
596
|
+
var a2: f32=alphaG*alphaG;var GGXV: f32=NdotL*sqrt(NdotV*(NdotV-a2*NdotV)+a2);var GGXL: f32=NdotV*sqrt(NdotL*(NdotL-a2*NdotL)+a2);return 0.5/(GGXV+GGXL);
|
|
499
597
|
#endif
|
|
500
|
-
|
|
501
|
-
#ifdef SCENE_UBO
|
|
502
|
-
vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
|
|
598
|
+
}
|
|
503
599
|
#else
|
|
504
|
-
|
|
600
|
+
fn smithVisibilityG1_TrowbridgeReitzGGXFast(dot: f32,alphaG: f32)->f32
|
|
601
|
+
{
|
|
602
|
+
#ifdef MOBILE
|
|
603
|
+
return 1.0/(dot+alphaG+(1.0-alphaG)*dot ));
|
|
604
|
+
#else
|
|
605
|
+
var alphaSquared: f32=alphaG*alphaG;return 1.0/(dot+sqrt(alphaSquared+(1.0-alphaSquared)*dot*dot));
|
|
505
606
|
#endif
|
|
607
|
+
}
|
|
608
|
+
fn smithVisibility_TrowbridgeReitzGGXFast(NdotL: f32,NdotV: f32,alphaG: f32)->f32
|
|
609
|
+
{var visibility: f32=smithVisibilityG1_TrowbridgeReitzGGXFast(NdotL,alphaG)*smithVisibilityG1_TrowbridgeReitzGGXFast(NdotV,alphaG);return visibility;}
|
|
506
610
|
#endif
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
#ifdef VERTEXCOLOR
|
|
510
|
-
#ifdef VERTEXALPHA
|
|
511
|
-
vertexOutputs.vColor*=colorUpdated;
|
|
512
|
-
#else
|
|
513
|
-
vertexOutputs.vColor=vec4f(vertexOutputs.vColor.rgb*colorUpdated.rgb,vertexOutputs.vColor.a);
|
|
611
|
+
#ifdef ANISOTROPIC
|
|
612
|
+
fn smithVisibility_GGXCorrelated_Anisotropic(NdotL: f32,NdotV: f32,TdotV: f32,BdotV: f32,TdotL: f32,BdotL: f32,alphaTB: vec2f)->f32 {var lambdaV: f32=NdotL*length( vec3f(alphaTB.x*TdotV,alphaTB.y*BdotV,NdotV));var lambdaL: f32=NdotV*length( vec3f(alphaTB.x*TdotL,alphaTB.y*BdotL,NdotL));var v: f32=0.5/(lambdaV+lambdaL);return v;}
|
|
514
613
|
#endif
|
|
614
|
+
#ifdef CLEARCOAT
|
|
615
|
+
fn visibility_Kelemen(VdotH: f32)->f32 {return 0.25/(VdotH*VdotH); }
|
|
515
616
|
#endif
|
|
516
|
-
#ifdef
|
|
517
|
-
|
|
617
|
+
#ifdef SHEEN
|
|
618
|
+
fn visibility_Ashikhmin(NdotL: f32,NdotV: f32)->f32
|
|
619
|
+
{return 1./(4.*(NdotL+NdotV-NdotL*NdotV));}
|
|
620
|
+
/* NOT USED
|
|
621
|
+
#ifdef SHEEN_SOFTER
|
|
622
|
+
fn l(x: f32,alphaG: f32)->f32
|
|
623
|
+
{var oneMinusAlphaSq: f32=(1.0-alphaG)*(1.0-alphaG);var a: f32=mix(21.5473,25.3245,oneMinusAlphaSq);var b: f32=mix(3.82987,3.32435,oneMinusAlphaSq);var c: f32=mix(0.19823,0.16801,oneMinusAlphaSq);var d: f32=mix(-1.97760,-1.27393,oneMinusAlphaSq);var e: f32=mix(-4.32054,-4.85967,oneMinusAlphaSq);return a/(1.0+b*pow(x,c))+d*x+e;}
|
|
624
|
+
fn lambdaSheen(cosTheta: f32,alphaG: f32)->f32
|
|
625
|
+
{return abs(cosTheta)<0.5 ? exp(l(cosTheta,alphaG)) : exp(2.0*l(0.5,alphaG)-l(1.0-cosTheta,alphaG));}
|
|
626
|
+
fn visibility_CharlieSheen(NdotL: f32,NdotV: f32,alphaG: f32)->f32
|
|
627
|
+
{var G: f32=1.0/(1.0+lambdaSheen(NdotV,alphaG)+lambdaSheen(NdotL,alphaG));return G/(4.0*NdotV*NdotL);}
|
|
628
|
+
#endif
|
|
629
|
+
*/
|
|
518
630
|
#endif
|
|
631
|
+
const constant1_FON: f32=0.5f-2.0f/(3.0f*PI);const constant2_FON: f32=2.0f/3.0f-28.0f/(15.0f*PI);fn E_FON_approx(mu: f32,roughness: f32)->f32
|
|
632
|
+
{var sigma: f32=roughness;
|
|
633
|
+
var mucomp: f32=1.0f-mu;var mucomp2: f32=mucomp*mucomp;const Gcoeffs: mat2x2f=mat2x2f(0.0571085289f,-0.332181442f,
|
|
634
|
+
0.491881867f,0.0714429953f);var GoverPi: f32=dot(Gcoeffs*vec2f(mucomp,mucomp2),vec2f(1.0f,mucomp2));return (1.0f+sigma*GoverPi)/(1.0f+constant1_FON*sigma);}
|
|
635
|
+
fn diffuseBRDF_EON(albedo: vec3f,roughness: f32,NdotL: f32,NdotV: f32,LdotV: f32)->vec3f
|
|
636
|
+
{var rho: vec3f=albedo;var sigma: f32=roughness;
|
|
637
|
+
var mu_i: f32=NdotL;
|
|
638
|
+
var mu_o: f32=NdotV;
|
|
639
|
+
var s: f32=LdotV-mu_i*mu_o;
|
|
640
|
+
var sovertF: f32=select(s,s/max(mu_i,mu_o),s>0.0f);
|
|
641
|
+
var AF: f32=1.0f/(1.0f+constant1_FON*sigma);
|
|
642
|
+
var f_ss: vec3f=(rho*RECIPROCAL_PI)*AF*(1.0f+sigma*sovertF);
|
|
643
|
+
var EFo: f32=E_FON_approx(mu_o,sigma);
|
|
644
|
+
var EFi: f32=E_FON_approx(mu_i,sigma);
|
|
645
|
+
var avgEF: f32=AF*(1.0f+constant2_FON*sigma);
|
|
646
|
+
var rho_ms: vec3f=(rho*rho)*avgEF/(vec3f(1.0f)-rho*(1.0f-avgEF));const eps: f32=1.0e-7f;var f_ms: vec3f=(rho_ms*RECIPROCAL_PI)*max(eps,1.0f-EFo)
|
|
647
|
+
* max(eps,1.0f-EFi)
|
|
648
|
+
/ max(eps,1.0f-avgEF);return (f_ss+f_ms);}
|
|
649
|
+
fn diffuseBRDF_Burley(NdotL: f32,NdotV: f32,VdotH: f32,roughness: f32)->f32 {var diffuseFresnelNV: f32=pow5(saturateEps(1.0-NdotL));var diffuseFresnelNL: f32=pow5(saturateEps(1.0-NdotV));var diffuseFresnel90: f32=0.5+2.0*VdotH*VdotH*roughness;var fresnel: f32 =
|
|
650
|
+
(1.0+(diffuseFresnel90-1.0)*diffuseFresnelNL) *
|
|
651
|
+
(1.0+(diffuseFresnel90-1.0)*diffuseFresnelNV);return fresnel/PI;}
|
|
652
|
+
#ifdef SS_TRANSLUCENCY
|
|
653
|
+
fn transmittanceBRDF_Burley(tintColor: vec3f,diffusionDistance: vec3f,thickness: f32)->vec3f {var S: vec3f=1./maxEpsVec3(diffusionDistance);var temp: vec3f=exp((-0.333333333*thickness)*S);return tintColor.rgb*0.25*(temp*temp*temp+3.0*temp);}
|
|
654
|
+
fn computeWrappedDiffuseNdotL(NdotL: f32,w: f32)->f32 {var t: f32=1.0+w;var invt2: f32=1.0/(t*t);return saturate((NdotL+w)*invt2);}
|
|
519
655
|
#endif
|
|
520
|
-
|
|
656
|
+
#endif
|
|
657
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrBRDFFunctionsWGSL",0,{name:r,shader:i}])},50326,e=>{"use strict";var t=e.i(2342);e.i(34218),e.i(25661);let r="pbrUboDeclaration",i=`uniform vAlbedoInfos: vec2f;uniform vBaseWeightInfos: vec2f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform vAmbientInfos: vec4f;uniform vOpacityInfos: vec2f;uniform vEmissiveInfos: vec2f;uniform vLightmapInfos: vec2f;uniform vReflectivityInfos: vec3f;uniform vMicroSurfaceSamplerInfos: vec2f;uniform vBumpInfos: vec3f;uniform albedoMatrix: mat4x4f;uniform baseWeightMatrix: mat4x4f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform ambientMatrix: mat4x4f;uniform opacityMatrix: mat4x4f;uniform emissiveMatrix: mat4x4f;uniform lightmapMatrix: mat4x4f;uniform reflectivityMatrix: mat4x4f;uniform microSurfaceSamplerMatrix: mat4x4f;uniform bumpMatrix: mat4x4f;uniform vTangentSpaceParams: vec2f;uniform vAlbedoColor: vec4f;uniform baseWeight: f32;uniform baseDiffuseRoughness: f32;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vReflectivityColor: vec4f;uniform vEmissiveColor: vec3f;uniform vAmbientColor: vec3f;uniform vDebugMode: vec2f;uniform vMetallicReflectanceFactors: vec4f;uniform vMetallicReflectanceInfos: vec2f;uniform metallicReflectanceMatrix: mat4x4f;uniform vReflectanceInfos: vec2f;uniform reflectanceMatrix: mat4x4f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;
|
|
658
|
+
#define ADDITIONAL_UBO_DECLARATION
|
|
659
|
+
#include<sceneUboDeclaration>
|
|
660
|
+
#include<meshUboDeclaration>
|
|
661
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["pbrUboDeclarationWGSL",0,{name:r,shader:i}])},34218,e=>{"use strict";var t=e.i(2342);let r="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
|
|
662
|
+
#ifdef MULTIVIEW
|
|
663
|
+
viewProjectionR : mat4x4<f32>,
|
|
664
|
+
#endif
|
|
665
|
+
view : mat4x4<f32>,
|
|
666
|
+
projection : mat4x4<f32>,
|
|
667
|
+
vEyePosition : vec4<f32>,
|
|
668
|
+
inverseProjection : mat4x4<f32>,};
|
|
669
|
+
#define SCENE_UBO
|
|
670
|
+
var<uniform> scene : Scene;
|
|
671
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}])},73818,13076,5284,72997,43006,49965,40449,52828,55085,25818,e=>{"use strict";var t=e.i(2342);let r="uvAttributeDeclaration",i=`#if defined(UV{X}) && !defined(USE_VERTEX_PULLING)
|
|
521
672
|
attribute uv{X}: vec2f;
|
|
522
673
|
#endif
|
|
523
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["uvAttributeDeclarationWGSL",0,{name:r,shader:i}],
|
|
674
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["uvAttributeDeclarationWGSL",0,{name:r,shader:i}],73818);let n="prePassVertexDeclaration",a=`#ifdef PREPASS
|
|
524
675
|
#ifdef PREPASS_LOCAL_POSITION
|
|
525
676
|
varying vPosition : vec3f;
|
|
526
677
|
#endif
|
|
@@ -534,10 +685,10 @@ varying vNormViewDepth: f32;
|
|
|
534
685
|
uniform previousViewProjection: mat4x4f;varying vCurrentPosition: vec4f;varying vPreviousPosition: vec4f;
|
|
535
686
|
#endif
|
|
536
687
|
#endif
|
|
537
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["prePassVertexDeclarationWGSL",0,{name:n,shader:a}],
|
|
688
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["prePassVertexDeclarationWGSL",0,{name:n,shader:a}],13076);let f="samplerVertexDeclaration",o=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
|
|
538
689
|
varying v_VARYINGNAME_UV: vec2f;
|
|
539
690
|
#endif
|
|
540
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["samplerVertexDeclarationWGSL",0,{name:f,shader:o}],
|
|
691
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["samplerVertexDeclarationWGSL",0,{name:f,shader:o}],5284);let d="lightVxUboDeclaration",s=`#ifdef LIGHT{X}
|
|
541
692
|
struct Light{X}
|
|
542
693
|
{vLightData: vec4f,
|
|
543
694
|
vLightDiffuse: vec4f,
|
|
@@ -568,7 +719,7 @@ varying vPositionFromLight{X}: vec4f;varying vDepthMetric{X}: f32;uniform lightM
|
|
|
568
719
|
#endif
|
|
569
720
|
#endif
|
|
570
721
|
#endif
|
|
571
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[d]||(t.ShaderStore.IncludesShadersStoreWGSL[d]=s),e.s(["lightVxUboDeclarationWGSL",0,{name:d,shader:s}],
|
|
722
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[d]||(t.ShaderStore.IncludesShadersStoreWGSL[d]=s),e.s(["lightVxUboDeclarationWGSL",0,{name:d,shader:s}],72997);let c="vertexPullingDeclaration",l=`#ifdef USE_VERTEX_PULLING
|
|
572
723
|
#ifdef VERTEX_PULLING_USE_INDEX_BUFFER
|
|
573
724
|
var<storage,read> indices : array<u32>;
|
|
574
725
|
#endif
|
|
@@ -746,7 +897,7 @@ vp_readMatrixWeightExtraValue(offset+cs*3u,dataType,normalized)
|
|
|
746
897
|
#endif
|
|
747
898
|
#endif
|
|
748
899
|
#endif
|
|
749
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[c]||(t.ShaderStore.IncludesShadersStoreWGSL[c]=l),e.s(["vertexPullingDeclarationWGSL",0,{name:c,shader:l}],
|
|
900
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[c]||(t.ShaderStore.IncludesShadersStoreWGSL[c]=l),e.s(["vertexPullingDeclarationWGSL",0,{name:c,shader:l}],43006);let v="vertexPullingVertex",u=`#ifdef USE_VERTEX_PULLING
|
|
750
901
|
let vpVertexIndex: u32=vp_readVertexIndex(vertexInputs.vertexIndex);positionUpdated=vp_readPosition(uniforms.vp_position_info,vpVertexIndex);
|
|
751
902
|
#ifdef NORMAL
|
|
752
903
|
normalUpdated=vp_readNormal(uniforms.vp_normal_info,vpVertexIndex);
|
|
@@ -800,7 +951,7 @@ var vp_matricesIndicesExtra: vec4f=vp_readBoneIndicesExtra(uniforms.vp_matricesI
|
|
|
800
951
|
#endif
|
|
801
952
|
#endif
|
|
802
953
|
#endif
|
|
803
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[v]||(t.ShaderStore.IncludesShadersStoreWGSL[v]=u),e.s(["vertexPullingVertexWGSL",0,{name:v,shader:u}],
|
|
954
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[v]||(t.ShaderStore.IncludesShadersStoreWGSL[v]=u),e.s(["vertexPullingVertexWGSL",0,{name:v,shader:u}],49965);let m="prePassVertex",p=`#ifdef PREPASS_DEPTH
|
|
804
955
|
vertexOutputs.vViewPos=(scene.view*worldPos).rgb;
|
|
805
956
|
#endif
|
|
806
957
|
#ifdef PREPASS_NORMALIZED_VIEW_DEPTH
|
|
@@ -839,7 +990,7 @@ vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWor
|
|
|
839
990
|
vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);
|
|
840
991
|
#endif
|
|
841
992
|
#endif
|
|
842
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[m]||(t.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["prePassVertexWGSL",0,{name:m,shader:p}],
|
|
993
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[m]||(t.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["prePassVertexWGSL",0,{name:m,shader:p}],40449);let E="uvVariableDeclaration",_=`#ifdef MAINUV{X}
|
|
843
994
|
#if !defined(UV{X})
|
|
844
995
|
var uv{X}: vec2f=vec2f(0.,0.);
|
|
845
996
|
#elif defined(USE_VERTEX_PULLING)
|
|
@@ -849,7 +1000,7 @@ var uv{X}: vec2f=vertexInputs.uv{X};
|
|
|
849
1000
|
#endif
|
|
850
1001
|
vertexOutputs.vMainUV{X}=uv{X};
|
|
851
1002
|
#endif
|
|
852
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[E]||(t.ShaderStore.IncludesShadersStoreWGSL[E]=_),e.s(["uvVariableDeclarationWGSL",0,{name:E,shader:_}],
|
|
1003
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[E]||(t.ShaderStore.IncludesShadersStoreWGSL[E]=_),e.s(["uvVariableDeclarationWGSL",0,{name:E,shader:_}],52828);let I="samplerVertexImplementation",S=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
|
|
853
1004
|
if (uniforms.v_INFONAME_==0.)
|
|
854
1005
|
{vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(uvUpdated,1.0,0.0)).xy;}
|
|
855
1006
|
#ifdef UV2
|
|
@@ -873,7 +1024,7 @@ else if (uniforms.v_INFONAME_==5.)
|
|
|
873
1024
|
{vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(vertexInputs.uv6,1.0,0.0)).xy;}
|
|
874
1025
|
#endif
|
|
875
1026
|
#endif
|
|
876
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[I]||(t.ShaderStore.IncludesShadersStoreWGSL[I]=S),e.s(["samplerVertexImplementationWGSL",0,{name:I,shader:S}],
|
|
1027
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[I]||(t.ShaderStore.IncludesShadersStoreWGSL[I]=S),e.s(["samplerVertexImplementationWGSL",0,{name:I,shader:S}],55085);let x="shadowsVertex",N=`#ifdef SHADOWS
|
|
877
1028
|
#if defined(SHADOWCSM{X})
|
|
878
1029
|
#ifdef SCENE_UBO
|
|
879
1030
|
vertexOutputs.vPositionFromCamera{X}=scene.view*worldPos;
|
|
@@ -921,171 +1072,20 @@ vertexOutputs.vDepthMetric{X}=(vertexOutputs.vPositionFromLight{X}.z+light{X}.de
|
|
|
921
1072
|
#endif
|
|
922
1073
|
#endif
|
|
923
1074
|
#endif
|
|
924
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=N),e.s(["shadowsVertexWGSL",0,{name:x,shader:N}],
|
|
925
|
-
vertexOutputs.
|
|
926
|
-
#
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
930
|
-
uniform morphTargetTextureIndices : array<f32,NUM_MORPH_INFLUENCERS>;uniform morphTargetTextureInfo : vec3<f32>;var morphTargets : texture_2d_array<f32>;fn readVector3FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec3<f32>
|
|
931
|
-
{
|
|
932
|
-
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0).xyz;}
|
|
933
|
-
fn readVector4FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec4<f32>
|
|
934
|
-
{
|
|
935
|
-
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
|
|
936
|
-
let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
|
|
937
|
-
#endif
|
|
938
|
-
#endif
|
|
939
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:r,shader:i}],13407);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
|
|
940
|
-
#ifndef MORPHTARGETS_TEXTURE
|
|
941
|
-
#ifdef MORPHTARGETS_POSITION
|
|
942
|
-
attribute position{X} : vec3<f32>;
|
|
943
|
-
#endif
|
|
944
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
945
|
-
attribute normal{X} : vec3<f32>;
|
|
946
|
-
#endif
|
|
947
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
948
|
-
attribute tangent{X} : vec3<f32>;
|
|
949
|
-
#endif
|
|
950
|
-
#ifdef MORPHTARGETS_UV
|
|
951
|
-
attribute uv_{X} : vec2<f32>;
|
|
952
|
-
#endif
|
|
953
|
-
#ifdef MORPHTARGETS_UV2
|
|
954
|
-
attribute uv2_{X} : vec2<f32>;
|
|
955
|
-
#endif
|
|
956
|
-
#ifdef MORPHTARGETS_COLOR
|
|
957
|
-
attribute color{X} : vec4<f32>;
|
|
958
|
-
#endif
|
|
959
|
-
#elif {X}==0
|
|
960
|
-
uniform morphTargetCount: f32;
|
|
961
|
-
#endif
|
|
962
|
-
#endif
|
|
963
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:n,shader:a}],16247);let f="morphTargetsVertexGlobal",o=`#ifdef MORPHTARGETS
|
|
964
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
965
|
-
var vertexID : f32;
|
|
966
|
-
#endif
|
|
967
|
-
#endif
|
|
968
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:o}],78326);let d="morphTargetsVertex",s=`#ifdef MORPHTARGETS
|
|
969
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
970
|
-
#if {X}==0
|
|
971
|
-
for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
|
|
972
|
-
#ifdef USE_VERTEX_PULLING
|
|
973
|
-
vertexID=f32(vpVertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
974
|
-
#else
|
|
975
|
-
vertexID=f32(vertexInputs.vertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
976
|
-
#endif
|
|
977
|
-
#ifdef MORPHTARGETS_POSITION
|
|
978
|
-
#ifdef USE_VERTEX_PULLING
|
|
979
|
-
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vp_basePosition)*uniforms.morphTargetInfluences[i];
|
|
980
|
-
#else
|
|
981
|
-
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vertexInputs.position)*uniforms.morphTargetInfluences[i];
|
|
982
|
-
#endif
|
|
983
|
-
#endif
|
|
984
|
-
#ifdef MORPHTARGETTEXTURE_HASPOSITIONS
|
|
985
|
-
vertexID=vertexID+1.0;
|
|
986
|
-
#endif
|
|
987
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
988
|
-
#ifdef USE_VERTEX_PULLING
|
|
989
|
-
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vp_baseNormal)*uniforms.morphTargetInfluences[i];
|
|
990
|
-
#else
|
|
991
|
-
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vertexInputs.normal)*uniforms.morphTargetInfluences[i];
|
|
992
|
-
#endif
|
|
993
|
-
#endif
|
|
994
|
-
#ifdef MORPHTARGETTEXTURE_HASNORMALS
|
|
995
|
-
vertexID=vertexID+1.0;
|
|
996
|
-
#endif
|
|
997
|
-
#ifdef MORPHTARGETS_UV
|
|
998
|
-
#ifdef USE_VERTEX_PULLING
|
|
999
|
-
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV)*uniforms.morphTargetInfluences[i];
|
|
1000
|
-
#else
|
|
1001
|
-
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv)*uniforms.morphTargetInfluences[i];
|
|
1002
|
-
#endif
|
|
1003
|
-
#endif
|
|
1004
|
-
#ifdef MORPHTARGETTEXTURE_HASUVS
|
|
1005
|
-
vertexID=vertexID+1.0;
|
|
1006
|
-
#endif
|
|
1007
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
1008
|
-
#ifdef USE_VERTEX_PULLING
|
|
1009
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vp_baseTangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
1010
|
-
#else
|
|
1011
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
1012
|
-
#endif
|
|
1013
|
-
#endif
|
|
1014
|
-
#ifdef MORPHTARGETTEXTURE_HASTANGENTS
|
|
1015
|
-
vertexID=vertexID+1.0;
|
|
1016
|
-
#endif
|
|
1017
|
-
#ifdef MORPHTARGETS_UV2
|
|
1018
|
-
#ifdef USE_VERTEX_PULLING
|
|
1019
|
-
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV2)*uniforms.morphTargetInfluences[i];
|
|
1020
|
-
#else
|
|
1021
|
-
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv2)*uniforms.morphTargetInfluences[i];
|
|
1022
|
-
#endif
|
|
1023
|
-
#endif
|
|
1024
|
-
#ifdef MORPHTARGETS_COLOR
|
|
1025
|
-
#ifdef USE_VERTEX_PULLING
|
|
1026
|
-
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vp_baseColor)*uniforms.morphTargetInfluences[i];
|
|
1027
|
-
#else
|
|
1028
|
-
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vertexInputs.color)*uniforms.morphTargetInfluences[i];
|
|
1029
|
-
#endif
|
|
1030
|
-
#endif
|
|
1031
|
-
}
|
|
1032
|
-
#endif
|
|
1033
|
-
#else
|
|
1034
|
-
#ifdef MORPHTARGETS_POSITION
|
|
1035
|
-
#ifdef USE_VERTEX_PULLING
|
|
1036
|
-
positionUpdated=positionUpdated+(vertexInputs.position{X}-vp_basePosition)*uniforms.morphTargetInfluences[{X}];
|
|
1037
|
-
#else
|
|
1038
|
-
positionUpdated=positionUpdated+(vertexInputs.position{X}-vertexInputs.position)*uniforms.morphTargetInfluences[{X}];
|
|
1039
|
-
#endif
|
|
1040
|
-
#endif
|
|
1041
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
1042
|
-
#ifdef USE_VERTEX_PULLING
|
|
1043
|
-
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vp_baseNormal)*uniforms.morphTargetInfluences[{X}];
|
|
1044
|
-
#else
|
|
1045
|
-
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vertexInputs.normal)*uniforms.morphTargetInfluences[{X}];
|
|
1046
|
-
#endif
|
|
1047
|
-
#endif
|
|
1048
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
1049
|
-
#ifdef USE_VERTEX_PULLING
|
|
1050
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vp_baseTangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
1051
|
-
#else
|
|
1052
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
1053
|
-
#endif
|
|
1054
|
-
#endif
|
|
1055
|
-
#ifdef MORPHTARGETS_UV
|
|
1056
|
-
#ifdef USE_VERTEX_PULLING
|
|
1057
|
-
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vp_baseUV)*uniforms.morphTargetInfluences[{X}];
|
|
1058
|
-
#else
|
|
1059
|
-
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vertexInputs.uv)*uniforms.morphTargetInfluences[{X}];
|
|
1060
|
-
#endif
|
|
1061
|
-
#endif
|
|
1062
|
-
#ifdef MORPHTARGETS_UV2
|
|
1063
|
-
#ifdef USE_VERTEX_PULLING
|
|
1064
|
-
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vp_baseUV2)*uniforms.morphTargetInfluences[{X}];
|
|
1065
|
-
#else
|
|
1066
|
-
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vertexInputs.uv2)*uniforms.morphTargetInfluences[{X}];
|
|
1067
|
-
#endif
|
|
1068
|
-
#endif
|
|
1069
|
-
#ifdef MORPHTARGETS_COLOR
|
|
1070
|
-
#ifdef USE_VERTEX_PULLING
|
|
1071
|
-
colorUpdated=colorUpdated+(vertexInputs.color{X}-vp_baseColor)*uniforms.morphTargetInfluences[{X}];
|
|
1075
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=N),e.s(["shadowsVertexWGSL",0,{name:x,shader:N}],25818)},68600,e=>{"use strict";var t=e.i(2342);let r="vertexColorMixing",i=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
1076
|
+
vertexOutputs.vColor=vec4f(1.0);
|
|
1077
|
+
#ifdef VERTEXCOLOR
|
|
1078
|
+
#ifdef VERTEXALPHA
|
|
1079
|
+
vertexOutputs.vColor*=colorUpdated;
|
|
1072
1080
|
#else
|
|
1073
|
-
|
|
1074
|
-
#endif
|
|
1075
|
-
#endif
|
|
1076
|
-
#endif
|
|
1077
|
-
#endif
|
|
1078
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[d]||(t.ShaderStore.IncludesShadersStoreWGSL[d]=s),e.s(["morphTargetsVertexWGSL",0,{name:d,shader:s}],9975)},90305,e=>{"use strict";var t=e.i(37875);let r="bumpVertex",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
1079
|
-
#if defined(TANGENT) && defined(NORMAL)
|
|
1080
|
-
var tbnNormal: vec3f=normalize(normalUpdated);var tbnTangent: vec3f=normalize(tangentUpdated.xyz);var tbnBitangent: vec3f=cross(tbnNormal,tbnTangent)*tangentUpdated.w;var matTemp= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz)* mat3x3f(tbnTangent,tbnBitangent,tbnNormal);vertexOutputs.vTBN0=matTemp[0];vertexOutputs.vTBN1=matTemp[1];vertexOutputs.vTBN2=matTemp[2];
|
|
1081
|
+
vertexOutputs.vColor=vec4f(vertexOutputs.vColor.rgb*colorUpdated.rgb,vertexOutputs.vColor.a);
|
|
1081
1082
|
#endif
|
|
1082
1083
|
#endif
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
|
|
1084
|
+
#ifdef INSTANCESCOLOR
|
|
1085
|
+
vertexOutputs.vColor*=vertexInputs.instanceColor;
|
|
1086
1086
|
#endif
|
|
1087
1087
|
#endif
|
|
1088
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["
|
|
1088
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["vertexColorMixingWGSL",0,{name:r,shader:i}])},33178,e=>{"use strict";var t=e.i(2342),r=e.i(34218),i=e.i(25661),n=e.i(50326),a=e.i(73818),f=e.i(77918),o=e.i(35551),d=e.i(51052),s=e.i(87691),c=e.i(45961),l=e.i(47485),v=e.i(13076),u=e.i(5284),m=e.i(51760),p=e.i(88074),E=e.i(83753),_=e.i(43402),I=e.i(72997),S=e.i(19579),x=e.i(44181),N=e.i(67263),T=e.i(43006),R=e.i(49965),A=e.i(77316),V=e.i(43933),h=e.i(89701),L=e.i(62921),O=e.i(49405),M=e.i(40449),U=e.i(52828),g=e.i(55085),F=e.i(10997),C=e.i(64767),P=e.i(25462),D=e.i(25818),G=e.i(68600),b=e.i(42158);let y="pbrVertexShader",W=`#define PBR_VERTEX_SHADER
|
|
1089
1089
|
#include<pbrUboDeclaration>
|
|
1090
1090
|
#define CUSTOM_VERTEX_BEGIN
|
|
1091
1091
|
#ifndef USE_VERTEX_PULLING
|