@uptimizr/dashboard 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +4 -4
- package/out/__next._full.txt +11 -11
- package/out/__next._head.txt +4 -4
- package/out/__next._index.txt +4 -4
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
- package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
- package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
- package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
- package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
- package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
- package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
- package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
- package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
- package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
- package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
- package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
- package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
- package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
- package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
- package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
- package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
- package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
- package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
- package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
- package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
- package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
- package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
- package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
- package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
- package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
- package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
- package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
- package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
- package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
- package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
- package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
- package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
- package/out/_next/static/chunks/0vf3facit951s.js +1 -0
- package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
- package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
- package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
- package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
- package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
- package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
- package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
- package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
- package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
- package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
- package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
- package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
- package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
- package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
- package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
- package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
- package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
- package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
- package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
- package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
- package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
- package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
- package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
- package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
- package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
- package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
- package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
- package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
- package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
- package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
- package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
- package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
- package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
- package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
- package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
- package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
- package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
- package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
- package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
- package/out/_next/static/chunks/1my968s78he8g.js +272 -0
- package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
- package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
- package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
- package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
- package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
- package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
- package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
- package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
- package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
- package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
- package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
- package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
- package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
- package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
- package/out/_next/static/chunks/25gep78-izw79.js +4 -0
- package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
- package/out/_next/static/chunks/27hbplu797elx.js +1 -0
- package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
- package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
- package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
- package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
- package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
- package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
- package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
- package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
- package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
- package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
- package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
- package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
- package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
- package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
- package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
- package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
- package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
- package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
- package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
- package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
- package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
- package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
- package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
- package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
- package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
- package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
- package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
- package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
- package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
- package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
- package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
- package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
- package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
- package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
- package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
- package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
- package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
- package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
- package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
- package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
- package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
- package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
- package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
- package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
- package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
- package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
- package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
- package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
- package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
- package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
- package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
- package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
- package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
- package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
- package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
- package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
- package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
- package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
- package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
- package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
- package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
- package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
- package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
- package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
- package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
- package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
- package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
- package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
- package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
- package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
- package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
- package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
- package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
- package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
- package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
- package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
- package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
- package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
- package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
- package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
- package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
- package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
- package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
- package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
- package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
- package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.js} +1 -1
- package/out/_not-found/__next._full.txt +9 -9
- package/out/_not-found/__next._head.txt +4 -4
- package/out/_not-found/__next._index.txt +4 -4
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +9 -9
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +14 -14
- package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
- package/out/_next/static/chunks/00o9hr_3hd0r8.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/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/09ppu_k464q-n.js +0 -1
- package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.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/0qxd_8t3nca36.js +0 -1
- package/out/_next/static/chunks/0s1jghzw8jufz.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/0yvevihll7sz-.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/141tngxsk32hq.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/19dp8nr4uygg2.js +0 -5
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
- 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/1fwsjnd1y-lx_.js +0 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
- package/out/_next/static/chunks/1gtj_l5ame5mw.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/1qjsgebn9m-0l.js +0 -1
- package/out/_next/static/chunks/1rb8wewjbdisv.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/2btabnibkm0db.js +0 -1
- package/out/_next/static/chunks/2c--awgkdcikq.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/2si5cg3hl5dtf.js +0 -4
- package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
- package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
- package/out/_next/static/chunks/2zyjw8g4tiu51.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/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/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/3nw7u4bie0-g6.js +0 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
- package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
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,59952,e=>{"use strict";var i=e.i(47150);e.i(97793),e.i(36113);let r="defaultUboDeclaration",t=`uniform diffuseLeftColor: vec4f;uniform diffuseRightColor: vec4f;uniform opacityParts: vec4f;uniform reflectionLeftColor: vec4f;uniform reflectionRightColor: vec4f;uniform refractionLeftColor: vec4f;uniform refractionRightColor: vec4f;uniform emissiveLeftColor: vec4f;uniform emissiveRightColor: vec4f;uniform vDiffuseInfos: vec2f;uniform vAmbientInfos: vec2f;uniform vOpacityInfos: vec2f;uniform vEmissiveInfos: vec2f;uniform vLightmapInfos: vec2f;uniform vSpecularInfos: vec2f;uniform vBumpInfos: vec3f;uniform diffuseMatrix: mat4x4f;uniform ambientMatrix: mat4x4f;uniform opacityMatrix: mat4x4f;uniform emissiveMatrix: mat4x4f;uniform lightmapMatrix: mat4x4f;uniform specularMatrix: mat4x4f;uniform bumpMatrix: mat4x4f;uniform vTangentSpaceParams: vec2f;uniform pointSize: f32;uniform alphaCutOff: f32;uniform refractionMatrix: mat4x4f;uniform vRefractionInfos: vec4f;uniform vRefractionPosition: vec3f;uniform vRefractionSize: vec3f;uniform vSpecularColor: vec4f;uniform vEmissiveColor: vec3f;uniform vDiffuseColor: vec4f;uniform vAmbientColor: vec3f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;
|
|
2
2
|
#define ADDITIONAL_UBO_DECLARATION
|
|
3
3
|
#include<sceneUboDeclaration>
|
|
4
4
|
#include<meshUboDeclaration>
|
|
5
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["defaultUboDeclarationWGSL",0,{name:r,shader:t}])},
|
|
5
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["defaultUboDeclarationWGSL",0,{name:r,shader:t}])},9343,49852,e=>{"use strict";var i=e.i(47150);let r="samplerFragmentDeclaration",t=`#ifdef _DEFINENAME_
|
|
6
6
|
#if _DEFINENAME_DIRECTUV==1
|
|
7
7
|
#define v_VARYINGNAME_UV vMainUV1
|
|
8
8
|
#elif _DEFINENAME_DIRECTUV==2
|
|
@@ -20,7 +20,7 @@ varying v_VARYINGNAME_UV: vec2f;
|
|
|
20
20
|
#endif
|
|
21
21
|
var _SAMPLERNAME_SamplerSampler: sampler;var _SAMPLERNAME_Sampler: texture_2d<f32>;
|
|
22
22
|
#endif
|
|
23
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["samplerFragmentDeclarationWGSL",0,{name:r,shader:t}],
|
|
23
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["samplerFragmentDeclarationWGSL",0,{name:r,shader:t}],9343);let o="reflectionFunction",a=`fn computeFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
|
|
24
24
|
{var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(s,t,0); }
|
|
25
25
|
fn computeMirroredFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
|
|
26
26
|
{var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(1.0-s,t,0); }
|
|
@@ -84,7 +84,7 @@ return vec3f(0,0,0);
|
|
|
84
84
|
#endif
|
|
85
85
|
}
|
|
86
86
|
#endif
|
|
87
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["reflectionFunctionWGSL",0,{name:o,shader:a}],
|
|
87
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["reflectionFunctionWGSL",0,{name:o,shader:a}],49852)},42241,2886,92544,e=>{"use strict";var i=e.i(47150);let r="bumpFragmentMainFunctions",t=`#ifndef TEXRD_DEFINED
|
|
88
88
|
fn TEXRD(t: texture_2d<f32>,ts: sampler,uv: vec2f)->vec4f {return textureSample(t,ts,uv);}
|
|
89
89
|
#define TEXRD_DEFINED
|
|
90
90
|
#endif
|
|
@@ -128,7 +128,7 @@ fn perturbNormal(cotangentFrame: mat3x3f,textureSample: vec3f,scale: f32)->vec3f
|
|
|
128
128
|
fn cotangent_frame(normal: vec3f,p: vec3f,uv: vec2f,tangentSpaceParams: vec2f)->mat3x3f
|
|
129
129
|
{var dp1: vec3f=dpdx(p);var dp2: vec3f=dpdy(p);var duv1: vec2f=dpdx(uv);var duv2: vec2f=dpdy(uv);var dp2perp: vec3f=cross(dp2,normal);var dp1perp: vec3f=cross(normal,dp1);var tangent: vec3f=dp2perp*duv1.x+dp1perp*duv2.x;var bitangent: vec3f=dp2perp*duv1.y+dp1perp*duv2.y;tangent*=tangentSpaceParams.x;bitangent*=tangentSpaceParams.y;var det: f32=max(dot(tangent,tangent),dot(bitangent,bitangent));var invmax: f32=select(inverseSqrt(det),0.0,det==0.0);return mat3x3f(tangent*invmax,bitangent*invmax,normal);}
|
|
130
130
|
#endif
|
|
131
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["bumpFragmentMainFunctionsWGSL",0,{name:r,shader:t}],
|
|
131
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["bumpFragmentMainFunctionsWGSL",0,{name:r,shader:t}],42241),e.i(9343);let o="bumpFragmentFunctions",a=`#if defined(BUMP)
|
|
132
132
|
#include<samplerFragmentDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_SAMPLERNAME_,bump)
|
|
133
133
|
#endif
|
|
134
134
|
#if defined(DETAIL)
|
|
@@ -158,7 +158,7 @@ return -texCoordOffset;
|
|
|
158
158
|
#endif
|
|
159
159
|
}
|
|
160
160
|
#endif
|
|
161
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["bumpFragmentFunctionsWGSL",0,{name:o,shader:a}],
|
|
161
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["bumpFragmentFunctionsWGSL",0,{name:o,shader:a}],2886);let f="bumpFragment",n=`var uvOffset: vec2f= vec2f(0.0,0.0);
|
|
162
162
|
#if defined(BUMP) || defined(PARALLAX) || defined(DETAIL)
|
|
163
163
|
#ifdef NORMALXYSCALE
|
|
164
164
|
var normalScale: f32=1.0;
|
|
@@ -210,7 +210,7 @@ normalW=perturbNormalBase(TBN,blendedNormal,uniforms.vBumpInfos.y);
|
|
|
210
210
|
#elif defined(DETAIL)
|
|
211
211
|
detailNormal=vec3f(detailNormal.xy*uniforms.vDetailInfos.z,detailNormal.z);normalW=perturbNormalBase(TBN,detailNormal,uniforms.vDetailInfos.z);
|
|
212
212
|
#endif
|
|
213
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[f]||(i.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["bumpFragmentWGSL",0,{name:f,shader:n}],
|
|
213
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[f]||(i.ShaderStore.IncludesShadersStoreWGSL[f]=n),e.s(["bumpFragmentWGSL",0,{name:f,shader:n}],92544)},78595,32763,e=>{"use strict";var i=e.i(47150);let r="decalFragment",t=`#ifdef DECAL
|
|
214
214
|
var decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;
|
|
215
215
|
#ifdef GAMMADECAL
|
|
216
216
|
decalTempColor=toLinearSpaceVec3(decalColor.rgb);
|
|
@@ -220,7 +220,7 @@ decalTempAlpha=decalColor.a*decalColor.a;
|
|
|
220
220
|
#endif
|
|
221
221
|
surfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);
|
|
222
222
|
#endif
|
|
223
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["decalFragmentWGSL",0,{name:r,shader:t}],
|
|
223
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[r]||(i.ShaderStore.IncludesShadersStoreWGSL[r]=t),e.s(["decalFragmentWGSL",0,{name:r,shader:t}],78595);let o="lightFragment",a=`#ifdef LIGHT{X}
|
|
224
224
|
#if defined(SHADOWONLY) || defined(LIGHTMAP) && defined(LIGHTMAPEXCLUDED{X}) && defined(LIGHTMAPNOSPECULAR{X})
|
|
225
225
|
#else
|
|
226
226
|
var diffuse{X}: vec4f=light{X}.vLightDiffuse;
|
|
@@ -607,7 +607,7 @@ sheenBase+=info.sheen.rgb*shadow;
|
|
|
607
607
|
#endif
|
|
608
608
|
#endif
|
|
609
609
|
#endif
|
|
610
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["lightFragmentWGSL",0,{name:o,shader:a}],
|
|
610
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[o]||(i.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["lightFragmentWGSL",0,{name:o,shader:a}],32763)},96119,e=>{"use strict";var i=e.i(47150),r=e.i(97793),t=e.i(36113),o=e.i(59952),a=e.i(91010),f=e.i(44067),n=e.i(47569),l=e.i(55880),s=e.i(22524),d=e.i(61227),c=e.i(14340);let u="lightsFragmentFunctions",m=`struct lightingInfo
|
|
611
611
|
{diffuse: vec3f,
|
|
612
612
|
#ifdef SPECULARTERM
|
|
613
613
|
specular: vec3f,
|
|
@@ -704,11 +704,11 @@ result.specular+=info.specular;
|
|
|
704
704
|
batchOffset+=CLUSTLIGHT_BATCH;}
|
|
705
705
|
return result;}
|
|
706
706
|
#endif
|
|
707
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[u]||(i.ShaderStore.IncludesShadersStoreWGSL[u]=m);var v=e.i(
|
|
707
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[u]||(i.ShaderStore.IncludesShadersStoreWGSL[u]=m);var v=e.i(72202),g=e.i(9343);let h="fresnelFunction",p=`#ifdef FRESNEL
|
|
708
708
|
fn computeFresnelTerm(viewDirection: vec3f,worldNormal: vec3f,bias: f32,power: f32)->f32
|
|
709
709
|
{let fresnelTerm: f32=pow(bias+abs(dot(viewDirection,worldNormal)),power);return clamp(fresnelTerm,0.,1.);}
|
|
710
710
|
#endif
|
|
711
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[h]||(i.ShaderStore.IncludesShadersStoreWGSL[h]=p);var S=e.i(
|
|
711
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[h]||(i.ShaderStore.IncludesShadersStoreWGSL[h]=p);var S=e.i(49852),I=e.i(73328),L=e.i(70435),C=e.i(2242),E=e.i(42241),T=e.i(2886),A=e.i(29741),X=e.i(73317),D=e.i(79361),x=e.i(69809),R=e.i(92544),P=e.i(78595),N=e.i(56409),w=e.i(32763),O=e.i(70658),M=e.i(57636),_=e.i(43710);let F="defaultPixelShader",b=`#include<defaultUboDeclaration>
|
|
712
712
|
#include<prePassDeclaration>[SCENE_MRT_COUNT]
|
|
713
713
|
#include<oitDeclaration>
|
|
714
714
|
#define CUSTOM_FRAGMENT_BEGIN
|
|
@@ -797,7 +797,9 @@ baseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);
|
|
|
797
797
|
var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
|
|
798
798
|
#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
|
|
799
799
|
#endif
|
|
800
|
+
#define DEPTHPREPASS_SKIP_EARLY_RETURN
|
|
800
801
|
#include<depthPrePass>
|
|
802
|
+
#ifndef DEPTHPREPASS
|
|
801
803
|
#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
802
804
|
baseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);
|
|
803
805
|
#endif
|
|
@@ -1074,5 +1076,6 @@ fragmentOutputs.color=color;
|
|
|
1074
1076
|
if (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.frontColor.rgb+color.rgb*color.a*alphaMultiplier,1.0-alphaMultiplier*(1.0-color.a));} else {fragmentOutputs.backColor+=color;}
|
|
1075
1077
|
#endif
|
|
1076
1078
|
#define CUSTOM_FRAGMENT_MAIN_END
|
|
1079
|
+
#endif
|
|
1077
1080
|
}
|
|
1078
|
-
`;for(let e of(i.ShaderStore.ShadersStoreWGSL[F]||(i.ShaderStore.ShadersStoreWGSL[F]=b),[r.sceneUboDeclarationWGSL,t.meshUboDeclarationWGSL,o.defaultUboDeclarationWGSL,a.prePassDeclarationWGSL,f.oitDeclarationWGSL,n.mainUVVaryingDeclarationWGSL,l.helperFunctionsWGSL,s.lightUboDeclarationWGSL,d.ltcHelperFunctionsWGSL,c.clusteredLightingFunctionsWGSL,{name:u,shader:m},v.shadowsFragmentFunctionsWGSL,g.samplerFragmentDeclarationWGSL,{name:h,shader:p},S.reflectionFunctionWGSL,I.imageProcessingDeclarationWGSL,L.imageProcessingFunctionsWGSL,C.textureRepetitionFunctionsWGSL,E.bumpFragmentMainFunctionsWGSL,T.bumpFragmentFunctionsWGSL,A.clipPlaneFragmentDeclarationWGSL,X.logDepthDeclarationWGSL,D.fogFragmentDeclarationWGSL,x.clipPlaneFragmentWGSL,R.bumpFragmentWGSL,P.decalFragmentWGSL,N.depthPrePassWGSL,w.lightFragmentWGSL,O.logDepthFragmentWGSL,M.fogFragmentWGSL,_.oitFragmentWGSL]))i.ShaderStore.IncludesShadersStoreWGSL[e.name]||(i.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["defaultPixelShaderWGSL",0,{name:F,shader:b}],
|
|
1081
|
+
`;for(let e of(i.ShaderStore.ShadersStoreWGSL[F]||(i.ShaderStore.ShadersStoreWGSL[F]=b),[r.sceneUboDeclarationWGSL,t.meshUboDeclarationWGSL,o.defaultUboDeclarationWGSL,a.prePassDeclarationWGSL,f.oitDeclarationWGSL,n.mainUVVaryingDeclarationWGSL,l.helperFunctionsWGSL,s.lightUboDeclarationWGSL,d.ltcHelperFunctionsWGSL,c.clusteredLightingFunctionsWGSL,{name:u,shader:m},v.shadowsFragmentFunctionsWGSL,g.samplerFragmentDeclarationWGSL,{name:h,shader:p},S.reflectionFunctionWGSL,I.imageProcessingDeclarationWGSL,L.imageProcessingFunctionsWGSL,C.textureRepetitionFunctionsWGSL,E.bumpFragmentMainFunctionsWGSL,T.bumpFragmentFunctionsWGSL,A.clipPlaneFragmentDeclarationWGSL,X.logDepthDeclarationWGSL,D.fogFragmentDeclarationWGSL,x.clipPlaneFragmentWGSL,R.bumpFragmentWGSL,P.decalFragmentWGSL,N.depthPrePassWGSL,w.lightFragmentWGSL,O.logDepthFragmentWGSL,M.fogFragmentWGSL,_.oitFragmentWGSL]))i.ShaderStore.IncludesShadersStoreWGSL[e.name]||(i.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["defaultPixelShaderWGSL",0,{name:F,shader:b}],96119)}]);
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55880,e=>{"use strict";var t=e.i(47150);let a="helperFunctions",r=`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
|
+
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
|
+
fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
|
|
4
|
+
fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
|
|
5
|
+
fn saturateEps(x: f32)->f32 {return clamp(x,Epsilon,1.0);}
|
|
6
|
+
fn maxEps(x: f32)->f32 {return max(x,Epsilon);}
|
|
7
|
+
fn maxEpsVec3(x: vec3f)->vec3f {return max(x,vec3f(Epsilon));}
|
|
8
|
+
fn absEps(x: f32)->f32 {return abs(x)+Epsilon;}
|
|
9
|
+
fn transposeMat3(inMatrix: mat3x3f)->mat3x3f {let i0: vec3f=inMatrix[0];let i1: vec3f=inMatrix[1];let i2: vec3f=inMatrix[2];let outMatrix:mat3x3f=mat3x3f(
|
|
10
|
+
vec3(i0.x,i1.x,i2.x),
|
|
11
|
+
vec3(i0.y,i1.y,i2.y),
|
|
12
|
+
vec3(i0.z,i1.z,i2.z)
|
|
13
|
+
);return outMatrix;}
|
|
14
|
+
fn inverseMat3(inMatrix: mat3x3f)->mat3x3f {let a00: f32=inMatrix[0][0];let a01: f32=inMatrix[0][1];let a02: f32=inMatrix[0][2];let a10: f32=inMatrix[1][0];let a11: f32=inMatrix[1][1];let a12: f32=inMatrix[1][2];let a20: f32=inMatrix[2][0];let a21: f32=inMatrix[2][1];let a22: f32=inMatrix[2][2];let b01: f32=a22*a11-a12*a21;let b11: f32=-a22*a10+a12*a20;let b21: f32=a21*a10-a11*a20;let det: f32=a00*b01+a01*b11+a02*b21;return mat3x3f(b01/det,(-a22*a01+a02*a21)/det,(a12*a01-a02*a11)/det,
|
|
15
|
+
b11/det,(a22*a00-a02*a20)/det,(-a12*a00+a02*a10)/det,
|
|
16
|
+
b21/det,(-a21*a00+a01*a20)/det,(a11*a00-a01*a10)/det);}
|
|
17
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
18
|
+
fn toLinearSpaceExact(color: vec3f)->vec3f
|
|
19
|
+
{let nearZeroSection: vec3f=0.0773993808*color;let remainingSection: vec3f=pow(0.947867299*(color+vec3f(0.055)),vec3f(2.4));return select(remainingSection,nearZeroSection,color<=vec3f(0.04045));}
|
|
20
|
+
fn toGammaSpaceExact(color: vec3f)->vec3f
|
|
21
|
+
{let nearZeroSection: vec3f=12.92*color;let remainingSection: vec3f=1.055*pow(color,vec3f(0.41666))-vec3f(0.055);return select(remainingSection,nearZeroSection,color<=vec3f(0.0031308));}
|
|
22
|
+
#endif
|
|
23
|
+
fn toLinearSpace(color: f32)->f32
|
|
24
|
+
{
|
|
25
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
26
|
+
var nearZeroSection=0.0773993808*color;var remainingSection=pow(0.947867299*(color+0.055),2.4);return select(remainingSection,nearZeroSection,color<=0.04045);
|
|
27
|
+
#else
|
|
28
|
+
return pow(color,LinearEncodePowerApprox);
|
|
29
|
+
#endif
|
|
30
|
+
}
|
|
31
|
+
fn toLinearSpaceVec3(color: vec3f)->vec3f
|
|
32
|
+
{
|
|
33
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
34
|
+
return toLinearSpaceExact(color);
|
|
35
|
+
#else
|
|
36
|
+
return pow(color,vec3f(LinearEncodePowerApprox));
|
|
37
|
+
#endif
|
|
38
|
+
}
|
|
39
|
+
fn toLinearSpaceVec4(color: vec4<f32>)->vec4<f32>
|
|
40
|
+
{
|
|
41
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
42
|
+
return vec4f(toLinearSpaceExact(color.rgb),color.a);
|
|
43
|
+
#else
|
|
44
|
+
return vec4f(pow(color.rgb,vec3f(LinearEncodePowerApprox)),color.a);
|
|
45
|
+
#endif
|
|
46
|
+
}
|
|
47
|
+
fn toGammaSpace(color: vec4<f32>)->vec4<f32>
|
|
48
|
+
{
|
|
49
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
50
|
+
return vec4<f32>(toGammaSpaceExact(color.rgb),color.a);
|
|
51
|
+
#else
|
|
52
|
+
return vec4<f32>(pow(color.rgb,vec3f(GammaEncodePowerApprox)),color.a);
|
|
53
|
+
#endif
|
|
54
|
+
}
|
|
55
|
+
fn toGammaSpaceVec3(color: vec3f)->vec3f
|
|
56
|
+
{
|
|
57
|
+
#if USE_EXACT_SRGB_CONVERSIONS
|
|
58
|
+
return toGammaSpaceExact(color);
|
|
59
|
+
#else
|
|
60
|
+
return pow(color,vec3f(GammaEncodePowerApprox));
|
|
61
|
+
#endif
|
|
62
|
+
}
|
|
63
|
+
fn squareVec3(value: vec3f)->vec3f
|
|
64
|
+
{return value*value;}
|
|
65
|
+
fn pow5(value: f32)->f32 {let sq: f32=value*value;return sq*sq*value;}
|
|
66
|
+
fn double_refract(I: vec3f,N: vec3f,eta: f32)->vec3f {let Tfront: vec3f=refract(I,N,1.0/eta);let Nback: vec3f=normalize(reflect(N,Tfront));return refract(Tfront,-Nback,eta);}
|
|
67
|
+
fn getLuminanceUnclamped(color: vec3f)->f32
|
|
68
|
+
{return dot(color,LuminanceEncodeApprox);}
|
|
69
|
+
fn getLuminance(color: vec3f)->f32
|
|
70
|
+
{return saturate(getLuminanceUnclamped(color));}
|
|
71
|
+
fn getRand(seed: vec2<f32>)->f32 {return fract(sin(dot(seed.xy ,vec2<f32>(12.9898,78.233)))*43758.5453);}
|
|
72
|
+
fn dither(seed: vec2<f32>,varianceAmount: f32)->f32 {let rand: f32=getRand(seed);let normVariance: f32=varianceAmount/255.0;let dither: f32=mix(-normVariance,normVariance,rand);return dither;}
|
|
73
|
+
const rgbdMaxRange: f32=255.0;fn toRGBD(color: vec3f)->vec4<f32> {let maxRGB: f32=max(max(color.r,max(color.g,color.b)),Epsilon);var D: f32 =max(rgbdMaxRange/maxRGB,1.);D =clamp(floor(D)/255.0,0.,1.);var rgb: vec3f =color.rgb*D;rgb=toGammaSpaceVec3(rgb);return vec4<f32>(saturateVec3(rgb),D);}
|
|
74
|
+
fn fromRGBD(rgbd: vec4<f32>)->vec3f {let rgb=toLinearSpaceVec3(rgbd.rgb);return rgb/rgbd.a;}
|
|
75
|
+
fn parallaxCorrectNormal(vertexPos: vec3f,origVec: vec3f,cubeSize: vec3f,cubePos: vec3f)->vec3f {let invOrigVec: vec3f=vec3f(1.)/origVec;let halfSize: vec3f=cubeSize*0.5;let intersecAtMaxPlane: vec3f=(cubePos+halfSize-vertexPos)*invOrigVec;let intersecAtMinPlane: vec3f=(cubePos-halfSize-vertexPos)*invOrigVec;let largestIntersec: vec3f=max(intersecAtMaxPlane,intersecAtMinPlane);let distance: f32=min(min(largestIntersec.x,largestIntersec.y),largestIntersec.z);let intersectPositionWS: vec3f=vertexPos+origVec*distance;return intersectPositionWS-cubePos;}
|
|
76
|
+
fn equirectangularToCubemapDirection(uv : vec2f)->vec3f {var longitude : f32=uv.x*TWO_PI-PI;var latitude : f32=HALF_PI-uv.y*PI;var direction : vec3f;direction.x=cos(latitude)*sin(longitude);direction.y=sin(latitude);direction.z=cos(latitude)*cos(longitude);return direction;}
|
|
77
|
+
fn sqrtClamped(value: f32)->f32 {return sqrt(max(value,0.));}
|
|
78
|
+
fn avg(value: vec3f)->f32 {return dot(value,vec3f(0.333333333));}
|
|
79
|
+
fn singleScatterToMultiScatterAlbedo(rho_ss: vec3f)->vec3f {let s: vec3f=sqrt(max(vec3f(1.0)-rho_ss,vec3f(0.0)));return (vec3f(1.0)-s)*(vec3f(1.0)-vec3f(0.139)*s)/(vec3f(1.0)+vec3f(1.17)*s);}
|
|
80
|
+
fn multiScatterToSingleScatterAlbedo(rho_ms: vec3f)->vec3f {let s: vec3f=4.09712f+4.20863f*rho_ms-sqrt(9.59217f+41.6808f*rho_ms+17.7126f*rho_ms*rho_ms);return 1.0f-s*s;}
|
|
81
|
+
fn multiScatterToSingleScatterAlbedoWithAniso(rho_ms: vec3f,aniso: f32)->vec3f {let s: vec3f=4.09712+4.20863f*rho_ms-sqrt(9.59217f+41.6808f*rho_ms+17.7126f*rho_ms*rho_ms);return (vec3f(1.0f)-s*s)/maxEpsVec3(vec3f(1.0f)-vec3f(aniso)*s*s);}
|
|
82
|
+
fn min3(v: vec3f)->f32 {return min(v.x,min(v.y,v.z));}
|
|
83
|
+
fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
|
|
84
|
+
fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
|
|
85
|
+
fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
|
|
86
|
+
uint2float(rstate*2447445414u));}
|
|
87
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["helperFunctionsWGSL",0,{name:a,shader:r}])},73317,e=>{"use strict";var t=e.i(47150);let a="logDepthDeclaration",r=`#ifdef LOGARITHMICDEPTH
|
|
88
|
+
uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
|
|
89
|
+
#endif
|
|
90
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["logDepthDeclarationWGSL",0,{name:a,shader:r}])},97793,e=>{"use strict";var t=e.i(47150);let a="sceneUboDeclaration",r=`struct Scene {viewProjection : mat4x4<f32>,
|
|
91
|
+
#ifdef MULTIVIEW
|
|
92
|
+
viewProjectionR : mat4x4<f32>,
|
|
93
|
+
#endif
|
|
94
|
+
view : mat4x4<f32>,
|
|
95
|
+
projection : mat4x4<f32>,
|
|
96
|
+
vEyePosition : vec4<f32>,
|
|
97
|
+
inverseProjection : mat4x4<f32>,};
|
|
98
|
+
#define SCENE_UBO
|
|
99
|
+
var<uniform> scene : Scene;
|
|
100
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["sceneUboDeclarationWGSL",0,{name:a,shader:r}])},36113,e=>{"use strict";var t=e.i(47150);let a="meshUboDeclaration",r=`struct Mesh {world : mat4x4<f32>,
|
|
101
|
+
visibility : f32,};var<uniform> mesh : Mesh;
|
|
102
|
+
#define WORLD_UBO
|
|
103
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["meshUboDeclarationWGSL",0,{name:a,shader:r}])},63593,4534,e=>{"use strict";var t=e.i(47150);let a="clipPlaneVertexDeclaration",r=`#ifdef CLIPPLANE
|
|
104
|
+
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
105
|
+
#endif
|
|
106
|
+
#ifdef CLIPPLANE2
|
|
107
|
+
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
|
|
108
|
+
#endif
|
|
109
|
+
#ifdef CLIPPLANE3
|
|
110
|
+
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
|
|
111
|
+
#endif
|
|
112
|
+
#ifdef CLIPPLANE4
|
|
113
|
+
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
|
|
114
|
+
#endif
|
|
115
|
+
#ifdef CLIPPLANE5
|
|
116
|
+
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
117
|
+
#endif
|
|
118
|
+
#ifdef CLIPPLANE6
|
|
119
|
+
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
120
|
+
#endif
|
|
121
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:a,shader:r}],63593);let s="clipPlaneVertex",o=`#ifdef CLIPPLANE
|
|
122
|
+
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
123
|
+
#endif
|
|
124
|
+
#ifdef CLIPPLANE2
|
|
125
|
+
vertexOutputs.fClipDistance2=dot(worldPos,uniforms.vClipPlane2);
|
|
126
|
+
#endif
|
|
127
|
+
#ifdef CLIPPLANE3
|
|
128
|
+
vertexOutputs.fClipDistance3=dot(worldPos,uniforms.vClipPlane3);
|
|
129
|
+
#endif
|
|
130
|
+
#ifdef CLIPPLANE4
|
|
131
|
+
vertexOutputs.fClipDistance4=dot(worldPos,uniforms.vClipPlane4);
|
|
132
|
+
#endif
|
|
133
|
+
#ifdef CLIPPLANE5
|
|
134
|
+
vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
|
|
135
|
+
#endif
|
|
136
|
+
#ifdef CLIPPLANE6
|
|
137
|
+
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
|
|
138
|
+
#endif
|
|
139
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=o),e.s(["clipPlaneVertexWGSL",0,{name:s,shader:o}],4534)},53318,80849,e=>{"use strict";var t=e.i(47150);let a="fogVertexDeclaration",r=`#ifdef FOG
|
|
140
|
+
varying vFogDistance: vec3f;
|
|
141
|
+
#endif
|
|
142
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["fogVertexDeclarationWGSL",0,{name:a,shader:r}],53318);let s="fogVertex",o=`#ifdef FOG
|
|
143
|
+
#ifdef SCENE_UBO
|
|
144
|
+
vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
|
|
145
|
+
#else
|
|
146
|
+
vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;
|
|
147
|
+
#endif
|
|
148
|
+
#endif
|
|
149
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=o),e.s(["fogVertexWGSL",0,{name:s,shader:o}],80849)},52362,e=>{"use strict";var t=e.i(47150);let a="logDepthVertex",r=`#ifdef LOGARITHMICDEPTH
|
|
150
|
+
vertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant;
|
|
151
|
+
#endif
|
|
152
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["logDepthVertexWGSL",0,{name:a,shader:r}])},82450,e=>{"use strict";var t=e.i(47150);let a="gaussianSplatting",r=`fn getDataUV(index: f32,dataTextureSize: vec2f)->vec2<f32> {let y: f32=floor(index/dataTextureSize.x);let x: f32=index-y*dataTextureSize.x;return vec2f((x+0.5),(y+0.5));}
|
|
153
|
+
struct Splat {center: vec4f,
|
|
154
|
+
color: vec4f,
|
|
155
|
+
covA: vec4f,
|
|
156
|
+
covB: vec4f,
|
|
157
|
+
#if SH_DEGREE>0
|
|
158
|
+
sh0: vec4<u32>,
|
|
159
|
+
#endif
|
|
160
|
+
#if SH_DEGREE>1
|
|
161
|
+
sh1: vec4<u32>,
|
|
162
|
+
#endif
|
|
163
|
+
#if SH_DEGREE>2
|
|
164
|
+
sh2: vec4<u32>,
|
|
165
|
+
#endif
|
|
166
|
+
#if SH_DEGREE>3
|
|
167
|
+
sh3: vec4<u32>,
|
|
168
|
+
sh4: vec4<u32>,
|
|
169
|
+
#endif
|
|
170
|
+
#if IS_COMPOUND
|
|
171
|
+
partIndex: u32,
|
|
172
|
+
#endif
|
|
173
|
+
#if defined(IS_FOR_VOXELIZATION)
|
|
174
|
+
rotationA: vec4f,
|
|
175
|
+
rotationB: vec4f,
|
|
176
|
+
rotationScale: vec4f,
|
|
177
|
+
#endif
|
|
178
|
+
#ifdef USE_SOG
|
|
179
|
+
splatIndex: f32,
|
|
180
|
+
#endif
|
|
181
|
+
};fn getSplatIndex(localIndex: i32,splatIndex0: vec4f,splatIndex1: vec4f,splatIndex2: vec4f,splatIndex3: vec4f)->f32 {var splatIndex: f32;switch (localIndex)
|
|
182
|
+
{case 0:
|
|
183
|
+
{splatIndex=splatIndex0.x;break;}
|
|
184
|
+
case 1:
|
|
185
|
+
{splatIndex=splatIndex0.y;break;}
|
|
186
|
+
case 2:
|
|
187
|
+
{splatIndex=splatIndex0.z;break;}
|
|
188
|
+
case 3:
|
|
189
|
+
{splatIndex=splatIndex0.w;break;}
|
|
190
|
+
case 4:
|
|
191
|
+
{splatIndex=splatIndex1.x;break;}
|
|
192
|
+
case 5:
|
|
193
|
+
{splatIndex=splatIndex1.y;break;}
|
|
194
|
+
case 6:
|
|
195
|
+
{splatIndex=splatIndex1.z;break;}
|
|
196
|
+
case 7:
|
|
197
|
+
{splatIndex=splatIndex1.w;break;}
|
|
198
|
+
case 8:
|
|
199
|
+
{splatIndex=splatIndex2.x;break;}
|
|
200
|
+
case 9:
|
|
201
|
+
{splatIndex=splatIndex2.y;break;}
|
|
202
|
+
case 10:
|
|
203
|
+
{splatIndex=splatIndex2.z;break;}
|
|
204
|
+
case 11:
|
|
205
|
+
{splatIndex=splatIndex2.w;break;}
|
|
206
|
+
case 12:
|
|
207
|
+
{splatIndex=splatIndex3.x;break;}
|
|
208
|
+
case 13:
|
|
209
|
+
{splatIndex=splatIndex3.y;break;}
|
|
210
|
+
case 14:
|
|
211
|
+
{splatIndex=splatIndex3.z;break;}
|
|
212
|
+
default:
|
|
213
|
+
{splatIndex=splatIndex3.w;break;}}
|
|
214
|
+
return splatIndex;}
|
|
215
|
+
fn readSplat(splatIndex: f32,dataTextureSize: vec2f)->Splat {var splat: Splat;let splatUV=getDataUV(splatIndex,dataTextureSize);let splatUVi32=vec2<i32>(i32(splatUV.x),i32(splatUV.y));
|
|
216
|
+
#ifdef USE_SOG
|
|
217
|
+
let mL=textureLoad(centersTexture,splatUVi32,0);let mU=textureLoad(covariancesATexture,splatUVi32,0);let sRaw=textureLoad(covariancesBTexture,splatUVi32,0);let qRaw=textureLoad(sogQuatsTexture,splatUVi32,0);let c0=textureLoad(colorsTexture,splatUVi32,0);let q16=(mU.xyz*256.0+mL.xyz)*(255.0/65535.0);let nPos=mix(uniforms.sogMeansMin,uniforms.sogMeansMax,q16);let center3=sign(nPos)*(exp(abs(nPos))-vec3f(1.0));splat.center=vec4f(center3,1.0);
|
|
218
|
+
#ifdef USE_SOG_V2
|
|
219
|
+
let sIdx=floor(sRaw.xyz*255.0+0.5);var splatScale: vec3f;splatScale.x=exp(textureLoad(sogCodebookTexture,vec2<i32>(i32(sIdx.x),0),0).r);splatScale.y=exp(textureLoad(sogCodebookTexture,vec2<i32>(i32(sIdx.y),0),0).r);splatScale.z=exp(textureLoad(sogCodebookTexture,vec2<i32>(i32(sIdx.z),0),0).r);
|
|
220
|
+
#else
|
|
221
|
+
let splatScale=exp(mix(uniforms.sogScalesMin,uniforms.sogScalesMax,sRaw.xyz));
|
|
222
|
+
#endif
|
|
223
|
+
let invSqrt2: f32=0.70710678118;let qabc=(qRaw.xyz-vec3f(0.5))*2.0*invSqrt2;let qMode=i32(qRaw.w*255.0+0.5)-252;let qd=sqrt(max(0.0,1.0-dot(qabc,qabc)));var quat: vec4f;if (qMode==0) { quat=vec4f(qd,qabc.x,qabc.y,qabc.z); }
|
|
224
|
+
else if (qMode==1) { quat=vec4f(qabc.x,qd,qabc.y,qabc.z); }
|
|
225
|
+
else if (qMode==2) { quat=vec4f(qabc.x,qabc.y,qd,qabc.z); }
|
|
226
|
+
else { quat=vec4f(qabc.x,qabc.y,qabc.z,qd); }
|
|
227
|
+
let qw=quat.x; let qx=quat.y; let qy=quat.z; let qz=quat.w;let R=mat3x3<f32>(
|
|
228
|
+
1.0-2.0*(qy*qy+qz*qz),2.0*(qx*qy+qw*qz), 2.0*(qx*qz-qw*qy),
|
|
229
|
+
2.0*(qx*qy-qw*qz), 1.0-2.0*(qx*qx+qz*qz),2.0*(qy*qz+qw*qx),
|
|
230
|
+
2.0*(qx*qz+qw*qy), 2.0*(qy*qz-qw*qx), 1.0-2.0*(qx*qx+qy*qy)
|
|
231
|
+
);let S2=mat3x3<f32>(
|
|
232
|
+
4.0*splatScale.x*splatScale.x,0.0,0.0,
|
|
233
|
+
0.0,4.0*splatScale.y*splatScale.y,0.0,
|
|
234
|
+
0.0,0.0,4.0*splatScale.z*splatScale.z
|
|
235
|
+
);let Sigma=R*S2*transpose(R);splat.covA=vec4f(Sigma[0][0],Sigma[0][1],Sigma[0][2],Sigma[1][1]);splat.covB=vec4f(Sigma[1][2],Sigma[2][2],0.0,0.0);let SH_C0_SOG: f32=0.28209479177387814;
|
|
236
|
+
#ifdef USE_SOG_V2
|
|
237
|
+
var c3: vec3f;c3.x=textureLoad(sogCodebookTexture,vec2<i32>(256+i32(c0.x*255.0+0.5),0),0).r;c3.y=textureLoad(sogCodebookTexture,vec2<i32>(256+i32(c0.y*255.0+0.5),0),0).r;c3.z=textureLoad(sogCodebookTexture,vec2<i32>(256+i32(c0.z*255.0+0.5),0),0).r;let colRgb=vec3f(0.5)+c3*SH_C0_SOG;let colA=c0.w;
|
|
238
|
+
#else
|
|
239
|
+
let cLerp=mix(uniforms.sogSh0Min,uniforms.sogSh0Max,c0);let colRgb=vec3f(0.5)+cLerp.xyz*SH_C0_SOG;let colA=1.0/(1.0+exp(-cLerp.w));
|
|
240
|
+
#endif
|
|
241
|
+
splat.color=vec4f(colRgb,colA);splat.splatIndex=splatIndex;
|
|
242
|
+
#else
|
|
243
|
+
splat.center=textureLoad(centersTexture,splatUVi32,0);splat.color=textureLoad(colorsTexture,splatUVi32,0);
|
|
244
|
+
#if !defined(IS_FOR_VOXELIZATION)
|
|
245
|
+
splat.covA=textureLoad(covariancesATexture,splatUVi32,0)*splat.center.w;splat.covB=textureLoad(covariancesBTexture,splatUVi32,0)*splat.center.w;
|
|
246
|
+
#endif
|
|
247
|
+
#endif
|
|
248
|
+
#if SH_DEGREE>0 && !defined(USE_SOG)
|
|
249
|
+
splat.sh0=textureLoad(shTexture0,splatUVi32,0);
|
|
250
|
+
#endif
|
|
251
|
+
#if SH_DEGREE>1 && !defined(USE_SOG)
|
|
252
|
+
splat.sh1=textureLoad(shTexture1,splatUVi32,0);
|
|
253
|
+
#endif
|
|
254
|
+
#if SH_DEGREE>2 && !defined(USE_SOG)
|
|
255
|
+
splat.sh2=textureLoad(shTexture2,splatUVi32,0);
|
|
256
|
+
#endif
|
|
257
|
+
#if SH_DEGREE>3 && !defined(USE_SOG)
|
|
258
|
+
splat.sh3=textureLoad(shTexture3,splatUVi32,0);splat.sh4=textureLoad(shTexture4,splatUVi32,0);
|
|
259
|
+
#endif
|
|
260
|
+
#if IS_COMPOUND
|
|
261
|
+
splat.partIndex=u32(textureLoad(partIndicesTexture,splatUVi32,0).r*255.0+0.5);
|
|
262
|
+
#endif
|
|
263
|
+
#if defined(IS_FOR_VOXELIZATION)
|
|
264
|
+
splat.rotationA=textureLoad(rotationsATexture,splatUVi32,0);splat.rotationB=textureLoad(rotationsBTexture,splatUVi32,0);splat.rotationScale=textureLoad(rotationScaleTexture,splatUVi32,0);
|
|
265
|
+
#endif
|
|
266
|
+
return splat;}
|
|
267
|
+
fn computeColorFromSHDegree(dir: vec3f,sh: array<vec3<f32>,25>,_so1: f32,_so2: f32,_so3: f32,_so4: f32)->vec3f
|
|
268
|
+
{let SH_C0: f32=0.28209479;let SH_C1: f32=0.48860251;var SH_C2: array<f32,5>=array<f32,5>(
|
|
269
|
+
1.092548430,
|
|
270
|
+
-1.09254843,
|
|
271
|
+
0.315391565,
|
|
272
|
+
-1.09254843,
|
|
273
|
+
0.546274215
|
|
274
|
+
);var SH_C3: array<f32,7>=array<f32,7>(
|
|
275
|
+
-0.59004358,
|
|
276
|
+
2.890611442,
|
|
277
|
+
-0.45704579,
|
|
278
|
+
0.373176332,
|
|
279
|
+
-0.45704579,
|
|
280
|
+
1.445305721,
|
|
281
|
+
-0.59004358
|
|
282
|
+
);var SH_C4: array<f32,9>=array<f32,9>(
|
|
283
|
+
2.5033429418,
|
|
284
|
+
-1.7701307698,
|
|
285
|
+
0.9461746958,
|
|
286
|
+
-0.6690465436,
|
|
287
|
+
0.1057855469,
|
|
288
|
+
-0.6690465436,
|
|
289
|
+
0.4730873479,
|
|
290
|
+
-1.7701307698,
|
|
291
|
+
0.6258357354
|
|
292
|
+
);var result: vec3f=/*SH_C0**/sh[0];
|
|
293
|
+
#if SH_DEGREE>0
|
|
294
|
+
let x: f32=dir.x;let y: f32=dir.y;let z: f32=dir.z;result+=_so1*(-SH_C1*y*sh[1]+SH_C1*z*sh[2]-SH_C1*x*sh[3]);
|
|
295
|
+
#if SH_DEGREE>1
|
|
296
|
+
let xx: f32=x*x;let yy: f32=y*y;let zz: f32=z*z;let xy: f32=x*y;let yz: f32=y*z;let xz: f32=x*z;result+=_so2*(
|
|
297
|
+
SH_C2[0]*xy*sh[4] +
|
|
298
|
+
SH_C2[1]*yz*sh[5] +
|
|
299
|
+
SH_C2[2]*(2.0f*zz-xx-yy)*sh[6] +
|
|
300
|
+
SH_C2[3]*xz*sh[7] +
|
|
301
|
+
SH_C2[4]*(xx-yy)*sh[8]);
|
|
302
|
+
#if SH_DEGREE>2
|
|
303
|
+
result+=_so3*(
|
|
304
|
+
SH_C3[0]*y*(3.0f*xx-yy)*sh[9] +
|
|
305
|
+
SH_C3[1]*xy*z*sh[10] +
|
|
306
|
+
SH_C3[2]*y*(4.0f*zz-xx-yy)*sh[11] +
|
|
307
|
+
SH_C3[3]*z*(2.0f*zz-3.0f*xx-3.0f*yy)*sh[12] +
|
|
308
|
+
SH_C3[4]*x*(4.0f*zz-xx-yy)*sh[13] +
|
|
309
|
+
SH_C3[5]*z*(xx-yy)*sh[14] +
|
|
310
|
+
SH_C3[6]*x*(xx-3.0f*yy)*sh[15]);
|
|
311
|
+
#if SH_DEGREE>3
|
|
312
|
+
result+=_so4*(
|
|
313
|
+
SH_C4[0]*x*y*(xx-yy)*sh[16] +
|
|
314
|
+
SH_C4[1]*y*z*(3.0f*xx-yy)*sh[17] +
|
|
315
|
+
SH_C4[2]*x*y*(7.0f*zz-1.0f)*sh[18] +
|
|
316
|
+
SH_C4[3]*y*z*(7.0f*zz-3.0f)*sh[19] +
|
|
317
|
+
SH_C4[4]*(zz*(35.0f*zz-30.0f)+3.0f)*sh[20] +
|
|
318
|
+
SH_C4[5]*x*z*(7.0f*zz-3.0f)*sh[21] +
|
|
319
|
+
SH_C4[6]*(xx-yy)*(7.0f*zz-1.0f)*sh[22] +
|
|
320
|
+
SH_C4[7]*x*z*(xx-3.0f*yy)*sh[23] +
|
|
321
|
+
SH_C4[8]*(xx*(xx-3.0f*yy)-yy*(3.0f*xx-yy))*sh[24]);
|
|
322
|
+
#endif
|
|
323
|
+
#endif
|
|
324
|
+
#endif
|
|
325
|
+
#endif
|
|
326
|
+
return result;}
|
|
327
|
+
fn decompose(value: u32)->vec4f
|
|
328
|
+
{let components : vec4f=vec4f(
|
|
329
|
+
f32((value ) & 255u),
|
|
330
|
+
f32((value>>u32( 8)) & 255u),
|
|
331
|
+
f32((value>>u32(16)) & 255u),
|
|
332
|
+
f32((value>>u32(24)) & 255u));return components*vec4f(2./255.)-vec4f(1.);}
|
|
333
|
+
#ifdef USE_SOG
|
|
334
|
+
fn computeSH(splat: Splat,dir: vec3f)->vec3f
|
|
335
|
+
{
|
|
336
|
+
#if SH_DEGREE>0
|
|
337
|
+
var sh: array<vec3<f32>,25>;sh[0]=vec3f(0.,0.,0.);let labelSize=textureDimensions(sogShNLabelsTexture,0);let idx=i32(splat.splatIndex+0.5);let lw=i32(labelSize.x);let lx=idx-(idx/lw)*lw;let ly=idx/lw;let labelRaw=textureLoad(sogShNLabelsTexture,vec2<i32>(lx,ly),0);let n=i32(labelRaw.r*255.0+0.5)+i32(labelRaw.g*255.0+0.5)*256;let coeffs=i32(uniforms.sogShCoeffCount+0.5);let u=(n-(n/64)*64)*coeffs;let v=n/64;for (var k: i32=0; k<24; k=k+1) {if (k>=coeffs) { break; }
|
|
338
|
+
let centroidRaw=textureLoad(sogShNCentroidsTexture,vec2<i32>(u+k,v),0);var shCoeff: vec3f;
|
|
339
|
+
#ifdef USE_SOG_V2
|
|
340
|
+
let rIdx=i32(centroidRaw.r*255.0+0.5);let gIdx=i32(centroidRaw.g*255.0+0.5);let bIdx=i32(centroidRaw.b*255.0+0.5);shCoeff.r=textureLoad(sogCodebookTexture,vec2<i32>(512+rIdx,0),0).r;shCoeff.g=textureLoad(sogCodebookTexture,vec2<i32>(512+gIdx,0),0).r;shCoeff.b=textureLoad(sogCodebookTexture,vec2<i32>(512+bIdx,0),0).r;
|
|
341
|
+
#else
|
|
342
|
+
shCoeff=mix(vec3f(uniforms.sogShnMin),vec3f(uniforms.sogShnMax),centroidRaw.rgb);
|
|
343
|
+
#endif
|
|
344
|
+
sh[k+1]=shCoeff;}
|
|
345
|
+
return computeColorFromSHDegree(dir,sh,1.,1.,1.,1.);
|
|
346
|
+
#else
|
|
347
|
+
return vec3f(0.,0.,0.);
|
|
348
|
+
#endif
|
|
349
|
+
}
|
|
350
|
+
#else
|
|
351
|
+
fn computeSHWeighted(splat: Splat,dir: vec3f,_so1: f32,_so2: f32,_so3: f32,_so4: f32)->vec3f
|
|
352
|
+
{var sh: array<vec3<f32>,25>;sh[0]=vec3f(0.,0.,0.);
|
|
353
|
+
#if SH_DEGREE>0
|
|
354
|
+
let sh00: vec4f=decompose(splat.sh0.x);let sh01: vec4f=decompose(splat.sh0.y);let sh02: vec4f=decompose(splat.sh0.z);sh[1]=vec3f(sh00.x,sh00.y,sh00.z);sh[2]=vec3f(sh00.w,sh01.x,sh01.y);sh[3]=vec3f(sh01.z,sh01.w,sh02.x);
|
|
355
|
+
#endif
|
|
356
|
+
#if SH_DEGREE>1
|
|
357
|
+
let sh03: vec4f=decompose(splat.sh0.w);let sh04: vec4f=decompose(splat.sh1.x);let sh05: vec4f=decompose(splat.sh1.y);sh[4]=vec3f(sh02.y,sh02.z,sh02.w);sh[5]=vec3f(sh03.x,sh03.y,sh03.z);sh[6]=vec3f(sh03.w,sh04.x,sh04.y);sh[7]=vec3f(sh04.z,sh04.w,sh05.x);sh[8]=vec3f(sh05.y,sh05.z,sh05.w);
|
|
358
|
+
#endif
|
|
359
|
+
#if SH_DEGREE>2
|
|
360
|
+
let sh06: vec4f=decompose(splat.sh1.z);let sh07: vec4f=decompose(splat.sh1.w);let sh08: vec4f=decompose(splat.sh2.x);let sh09: vec4f=decompose(splat.sh2.y);let sh10: vec4f=decompose(splat.sh2.z);let sh11: vec4f=decompose(splat.sh2.w);sh[9]=vec3f(sh06.x,sh06.y,sh06.z);sh[10]=vec3f(sh06.w,sh07.x,sh07.y);sh[11]=vec3f(sh07.z,sh07.w,sh08.x);sh[12]=vec3f(sh08.y,sh08.z,sh08.w);sh[13]=vec3f(sh09.x,sh09.y,sh09.z);sh[14]=vec3f(sh09.w,sh10.x,sh10.y);sh[15]=vec3f(sh10.z,sh10.w,sh11.x);
|
|
361
|
+
#endif
|
|
362
|
+
#if SH_DEGREE>3
|
|
363
|
+
let sh12: vec4f=decompose(splat.sh3.x);let sh13: vec4f=decompose(splat.sh3.y);let sh14: vec4f=decompose(splat.sh3.z);let sh15: vec4f=decompose(splat.sh3.w);let sh16: vec4f=decompose(splat.sh4.x);let sh17: vec4f=decompose(splat.sh4.y);sh[16]=vec3f(sh11.y,sh11.z,sh11.w);sh[17]=vec3f(sh12.x,sh12.y,sh12.z);sh[18]=vec3f(sh12.w,sh13.x,sh13.y);sh[19]=vec3f(sh13.z,sh13.w,sh14.x);sh[20]=vec3f(sh14.y,sh14.z,sh14.w);sh[21]=vec3f(sh15.x,sh15.y,sh15.z);sh[22]=vec3f(sh15.w,sh16.x,sh16.y);sh[23]=vec3f(sh16.z,sh16.w,sh17.x);sh[24]=vec3f(sh17.y,sh17.z,sh17.w);
|
|
364
|
+
#endif
|
|
365
|
+
return computeColorFromSHDegree(dir,sh,_so1,_so2,_so3,_so4);}
|
|
366
|
+
fn computeSH(splat: Splat,dir: vec3f)->vec3f
|
|
367
|
+
{
|
|
368
|
+
#if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER1==1
|
|
369
|
+
let _w1: f32=1.0;
|
|
370
|
+
#else
|
|
371
|
+
let _w1: f32=0.0;
|
|
372
|
+
#endif
|
|
373
|
+
#if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER2==1
|
|
374
|
+
let _w2: f32=1.0;
|
|
375
|
+
#else
|
|
376
|
+
let _w2: f32=0.0;
|
|
377
|
+
#endif
|
|
378
|
+
#if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER3==1
|
|
379
|
+
let _w3: f32=1.0;
|
|
380
|
+
#else
|
|
381
|
+
let _w3: f32=0.0;
|
|
382
|
+
#endif
|
|
383
|
+
#if !defined(GS_DBG_ENABLED) || GS_DBG_SH_ORDER4==1
|
|
384
|
+
let _w4: f32=1.0;
|
|
385
|
+
#else
|
|
386
|
+
let _w4: f32=0.0;
|
|
387
|
+
#endif
|
|
388
|
+
return computeSHWeighted(splat,dir,_w1,_w2,_w3,_w4);}
|
|
389
|
+
#endif
|
|
390
|
+
fn gaussianSplatting(
|
|
391
|
+
meshPos: vec2<f32>,
|
|
392
|
+
worldPos: vec3<f32>,
|
|
393
|
+
scale: vec2<f32>,
|
|
394
|
+
covA: vec3<f32>,
|
|
395
|
+
covB: vec3<f32>,
|
|
396
|
+
worldMatrix: mat4x4<f32>,
|
|
397
|
+
viewMatrix: mat4x4<f32>,
|
|
398
|
+
projectionMatrix: mat4x4<f32>,
|
|
399
|
+
focal: vec2f,
|
|
400
|
+
invViewport: vec2f,
|
|
401
|
+
kernelSize: f32,
|
|
402
|
+
minPixelSize: f32
|
|
403
|
+
)->vec4f {let modelView=viewMatrix*worldMatrix;let camspace=viewMatrix*vec4f(worldPos,1.0);let pos2d=projectionMatrix*camspace;let bounds=1.2*pos2d.w;if (pos2d.z<0. || pos2d.x<-bounds || pos2d.x>bounds || pos2d.y<-bounds || pos2d.y>bounds) {return vec4f(0.0,0.0,2.0,1.0);}
|
|
404
|
+
let Vrk=mat3x3<f32>(
|
|
405
|
+
covA.x,covA.y,covA.z,
|
|
406
|
+
covA.y,covB.x,covB.y,
|
|
407
|
+
covA.z,covB.y,covB.z
|
|
408
|
+
);let isOrtho=abs(projectionMatrix[3][3]-1.0)<0.001;var J: mat3x3<f32>;if (isOrtho) {J=mat3x3<f32>(
|
|
409
|
+
focal.x,0.0,0.0,
|
|
410
|
+
0.0,focal.y,0.0,
|
|
411
|
+
0.0,0.0,0.0
|
|
412
|
+
);} else {J=mat3x3<f32>(
|
|
413
|
+
focal.x/camspace.z,0.0,-(focal.x*camspace.x)/(camspace.z*camspace.z),
|
|
414
|
+
0.0,focal.y/camspace.z,-(focal.y*camspace.y)/(camspace.z*camspace.z),
|
|
415
|
+
0.0,0.0,0.0
|
|
416
|
+
);}
|
|
417
|
+
let T=transpose(mat3x3<f32>(
|
|
418
|
+
modelView[0].xyz,
|
|
419
|
+
modelView[1].xyz,
|
|
420
|
+
modelView[2].xyz))*J;var cov2d=transpose(T)*Vrk*T;
|
|
421
|
+
#if COMPENSATION
|
|
422
|
+
let c00: f32=cov2d[0][0];let c11: f32=cov2d[1][1];let c01: f32=cov2d[0][1];let detOrig: f32=c00*c11-c01*c01;
|
|
423
|
+
#endif
|
|
424
|
+
cov2d[0][0]+=kernelSize;cov2d[1][1]+=kernelSize;
|
|
425
|
+
#if COMPENSATION
|
|
426
|
+
let c2d: vec3f=vec3f(cov2d[0][0],c01,cov2d[1][1]);let detBlur: f32=c2d.x*c2d.z-c2d.y*c2d.y;let compensation: f32=sqrt(max(0.,detOrig/detBlur));vertexOutputs.vColor.w*=compensation;
|
|
427
|
+
#endif
|
|
428
|
+
let mid=(cov2d[0][0]+cov2d[1][1])/2.0;let radius=length(vec2<f32>((cov2d[0][0]-cov2d[1][1])/2.0,cov2d[0][1]));let lambda1=mid+radius;let lambda2=mid-radius;if (lambda2<0.0) {return vec4f(0.0,0.0,2.0,1.0);}
|
|
429
|
+
if (minPixelSize>0.0) {let l1=2.0*min(sqrt(2.0*lambda1),1024.0);let l2=2.0*min(sqrt(2.0*lambda2),1024.0);if (max(l1,l2)<minPixelSize) {return vec4f(0.0,0.0,2.0,1.0);}}
|
|
430
|
+
let diagonalVector=normalize(vec2<f32>(cov2d[0][1],lambda1-cov2d[0][0]));let majorAxis=min(sqrt(2.0*lambda1),1024.0)*diagonalVector;let minorAxis=min(sqrt(2.0*lambda2),1024.0)*vec2<f32>(diagonalVector.y,-diagonalVector.x);let vCenter=vec2<f32>(pos2d.x,pos2d.y);let scaleFactor=select(pos2d.w,1.0,isOrtho);return vec4f(
|
|
431
|
+
vCenter+((meshPos.x*majorAxis+meshPos.y*minorAxis)*invViewport*scaleFactor)*scale,
|
|
432
|
+
pos2d.z,
|
|
433
|
+
pos2d.w
|
|
434
|
+
);}
|
|
435
|
+
#if IS_COMPOUND
|
|
436
|
+
fn getPartWorld(partIndex: u32)->mat4x4<f32> {return uniforms.partWorld[partIndex];}
|
|
437
|
+
#endif
|
|
438
|
+
#if defined(IS_FOR_VOXELIZATION)
|
|
439
|
+
fn computeVoxelSplatWorldPos(rotationA: vec4f,rotationB: vec4f,rotationScale: vec4f,center: vec3f,splatWorld: mat4x4f,viewMatrix: mat4x4f,invWorldScale: mat4x4f,quadPos: vec2f)->vec4f {let splatRotation=mat3x3f(
|
|
440
|
+
rotationA.xyz,
|
|
441
|
+
vec3f(rotationA.w,rotationB.x,rotationB.y),
|
|
442
|
+
vec3f(rotationB.z,rotationB.w,rotationScale.x)
|
|
443
|
+
);let splatScale=rotationScale.yzw;let view3x3=mat3x3f(viewMatrix[0].xyz,viewMatrix[1].xyz,viewMatrix[2].xyz);let invWorldScale3x3=mat3x3f(invWorldScale[0].xyz,invWorldScale[1].xyz,invWorldScale[2].xyz);let splatWorld3x3=mat3x3f(splatWorld[0].xyz,splatWorld[1].xyz,splatWorld[2].xyz);let rotToView=view3x3*invWorldScale3x3*splatWorld3x3*splatRotation;let axisLengthInViewZ=abs(vec3f(rotToView[0][2],rotToView[1][2],rotToView[2][2]));let gaussianSplatCutoffStddev: f32=0.7071067812;
|
|
444
|
+
var offsetSplatSpace: vec3f;if (axisLengthInViewZ.x>axisLengthInViewZ.y && axisLengthInViewZ.x>axisLengthInViewZ.z) {offsetSplatSpace=vec3f(0.0,quadPos.x,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else if (axisLengthInViewZ.y>axisLengthInViewZ.z) {offsetSplatSpace=vec3f(quadPos.x,0.0,quadPos.y)*splatScale*gaussianSplatCutoffStddev;} else {offsetSplatSpace=vec3f(quadPos.x,quadPos.y,0.0)*splatScale*gaussianSplatCutoffStddev;}
|
|
445
|
+
let vertexObjectSpace=center+splatRotation*offsetSplatSpace;return splatWorld*vec4f(vertexObjectSpace,1.0);}
|
|
446
|
+
#endif
|
|
447
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=r),e.s(["gaussianSplattingWGSL",0,{name:a,shader:r}])},1433,e=>{"use strict";var t=e.i(47150),a=e.i(97793),r=e.i(36113),s=e.i(55880),o=e.i(63593),f=e.i(53318),i=e.i(73317),l=e.i(82450),c=e.i(4534),n=e.i(80849),d=e.i(52362);let x="gaussianSplattingVertexShader",v=`#include<sceneUboDeclaration>
|
|
448
|
+
#include<meshUboDeclaration>
|
|
449
|
+
#include<helperFunctions>
|
|
450
|
+
#include<clipPlaneVertexDeclaration>
|
|
451
|
+
#include<fogVertexDeclaration>
|
|
452
|
+
#include<logDepthDeclaration>
|
|
453
|
+
attribute splatIndex0: vec4f;attribute splatIndex1: vec4f;attribute splatIndex2: vec4f;attribute splatIndex3: vec4f;attribute position: vec3f;uniform invViewport: vec2f;uniform dataTextureSize: vec2f;uniform focal: vec2f;uniform kernelSize: f32;uniform minPixelSize: f32;uniform eyePosition: vec3f;uniform alpha: f32;
|
|
454
|
+
#if IS_COMPOUND
|
|
455
|
+
uniform partWorld: array<mat4x4<f32>,MAX_PART_COUNT>;uniform partVisibility: array<f32,MAX_PART_COUNT>;
|
|
456
|
+
#endif
|
|
457
|
+
var covariancesATexture: texture_2d<f32>;var covariancesBTexture: texture_2d<f32>;var centersTexture: texture_2d<f32>;var colorsTexture: texture_2d<f32>;
|
|
458
|
+
#ifdef USE_SOG
|
|
459
|
+
var sogQuatsTexture: texture_2d<f32>;uniform sogMeansMin: vec3f;uniform sogMeansMax: vec3f;
|
|
460
|
+
#ifdef USE_SOG_V2
|
|
461
|
+
var sogCodebookTexture: texture_2d<f32>;
|
|
462
|
+
#else
|
|
463
|
+
uniform sogScalesMin: vec3f;uniform sogScalesMax: vec3f;uniform sogSh0Min: vec4f;uniform sogSh0Max: vec4f;uniform sogShnMin: f32;uniform sogShnMax: f32;
|
|
464
|
+
#endif
|
|
465
|
+
#if SH_DEGREE>0
|
|
466
|
+
var sogShNCentroidsTexture: texture_2d<f32>;var sogShNLabelsTexture: texture_2d<f32>;uniform sogShCoeffCount: f32;
|
|
467
|
+
#endif
|
|
468
|
+
#endif
|
|
469
|
+
#if SH_DEGREE>0 && !defined(USE_SOG)
|
|
470
|
+
var shTexture0: texture_2d<u32>;
|
|
471
|
+
#endif
|
|
472
|
+
#if SH_DEGREE>1 && !defined(USE_SOG)
|
|
473
|
+
var shTexture1: texture_2d<u32>;
|
|
474
|
+
#endif
|
|
475
|
+
#if SH_DEGREE>2 && !defined(USE_SOG)
|
|
476
|
+
var shTexture2: texture_2d<u32>;
|
|
477
|
+
#endif
|
|
478
|
+
#if SH_DEGREE>3 && !defined(USE_SOG)
|
|
479
|
+
var shTexture3: texture_2d<u32>;var shTexture4: texture_2d<u32>;
|
|
480
|
+
#endif
|
|
481
|
+
#if IS_COMPOUND
|
|
482
|
+
var partIndicesTexture: texture_2d<f32>;
|
|
483
|
+
#endif
|
|
484
|
+
varying vColor: vec4f;varying vPosition: vec2f;
|
|
485
|
+
#define CUSTOM_VERTEX_DEFINITIONS
|
|
486
|
+
#include<gaussianSplatting>
|
|
487
|
+
@vertex
|
|
488
|
+
fn main(input : VertexInputs)->FragmentInputs {
|
|
489
|
+
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
490
|
+
let splatIndex: f32=getSplatIndex(i32(vertexInputs.position.z+0.5),vertexInputs.splatIndex0,vertexInputs.splatIndex1,vertexInputs.splatIndex2,vertexInputs.splatIndex3);var splat: Splat=readSplat(splatIndex,uniforms.dataTextureSize);var covA: vec3f=splat.covA.xyz;var covB: vec3f=vec3f(splat.covA.w,splat.covB.xy);
|
|
491
|
+
#if IS_COMPOUND
|
|
492
|
+
let splatWorld: mat4x4f=getPartWorld(splat.partIndex);
|
|
493
|
+
#else
|
|
494
|
+
let splatWorld: mat4x4f=mesh.world;
|
|
495
|
+
#endif
|
|
496
|
+
let worldPos: vec4f=splatWorld*vec4f(splat.center.xyz,1.0);vertexOutputs.vPosition=vertexInputs.position.xy;
|
|
497
|
+
#if SH_DEGREE>0
|
|
498
|
+
let worldRot: mat3x3f= mat3x3f(splatWorld[0].xyz,splatWorld[1].xyz,splatWorld[2].xyz);let normWorldRot: mat3x3f=inverseMat3(worldRot);var eyeToSplatLocalSpace: vec3f=normalize(normWorldRot*(worldPos.xyz-uniforms.eyePosition.xyz));
|
|
499
|
+
#if defined(GS_DBG_ENABLED) && IS_COMPOUND
|
|
500
|
+
{let _row3=textureLoad(dbgPartData,vec2i(i32(splat.partIndex),3),0);
|
|
501
|
+
#if SH_DEGREE>3
|
|
502
|
+
let _so4=textureLoad(dbgPartData,vec2i(i32(splat.partIndex),4),0).x;
|
|
503
|
+
#else
|
|
504
|
+
let _so4: f32=1.0;
|
|
505
|
+
#endif
|
|
506
|
+
vertexOutputs.vColor=vec4f(_row3.x*splat.color.xyz+computeSHWeighted(splat,eyeToSplatLocalSpace,_row3.y,_row3.z,_row3.w,_so4),splat.color.w*uniforms.alpha);}
|
|
507
|
+
#elif defined(GS_DBG_ENABLED) && GS_DBG_SH_DC==0
|
|
508
|
+
vertexOutputs.vColor=vec4f(computeSH(splat,eyeToSplatLocalSpace),splat.color.w*uniforms.alpha);
|
|
509
|
+
#else
|
|
510
|
+
vertexOutputs.vColor=vec4f(splat.color.xyz+computeSH(splat,eyeToSplatLocalSpace),splat.color.w*uniforms.alpha);
|
|
511
|
+
#endif
|
|
512
|
+
#else
|
|
513
|
+
#if defined(GS_DBG_ENABLED) && IS_COMPOUND
|
|
514
|
+
{let _shDc=textureLoad(dbgPartData,vec2i(i32(splat.partIndex),3),0).x;vertexOutputs.vColor=vec4f(_shDc*splat.color.xyz,splat.color.w*uniforms.alpha);}
|
|
515
|
+
#elif defined(GS_DBG_ENABLED) && GS_DBG_SH_DC==0
|
|
516
|
+
vertexOutputs.vColor=vec4f(0.0,0.0,0.0,splat.color.w*uniforms.alpha);
|
|
517
|
+
#else
|
|
518
|
+
vertexOutputs.vColor=vec4f(splat.color.xyz,splat.color.w*uniforms.alpha);
|
|
519
|
+
#endif
|
|
520
|
+
#endif
|
|
521
|
+
#if IS_COMPOUND
|
|
522
|
+
vertexOutputs.vColor.w*=uniforms.partVisibility[splat.partIndex];
|
|
523
|
+
#endif
|
|
524
|
+
var scale: vec2f=vec2f(1.,1.);
|
|
525
|
+
#define CUSTOM_VERTEX_UPDATE
|
|
526
|
+
vertexOutputs.position=gaussianSplatting(vertexInputs.position.xy,worldPos.xyz,scale,covA,covB,splatWorld,scene.view,scene.projection,uniforms.focal,uniforms.invViewport,uniforms.kernelSize,uniforms.minPixelSize);
|
|
527
|
+
#include<clipPlaneVertex>
|
|
528
|
+
#include<fogVertex>
|
|
529
|
+
#include<logDepthVertex>
|
|
530
|
+
#define CUSTOM_VERTEX_MAIN_END
|
|
531
|
+
}
|
|
532
|
+
`;for(let e of(t.ShaderStore.ShadersStoreWGSL[x]||(t.ShaderStore.ShadersStoreWGSL[x]=v),[a.sceneUboDeclarationWGSL,r.meshUboDeclarationWGSL,s.helperFunctionsWGSL,o.clipPlaneVertexDeclarationWGSL,f.fogVertexDeclarationWGSL,i.logDepthDeclarationWGSL,l.gaussianSplattingWGSL,c.clipPlaneVertexWGSL,n.fogVertexWGSL,d.logDepthVertexWGSL]))t.ShaderStore.IncludesShadersStoreWGSL[e.name]||(t.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["gaussianSplattingVertexShaderWGSL",0,{name:x,shader:v}])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37145,e=>{"use strict";var o=e.i(47150);let t="postprocessVertexShader",i=`attribute vec2 position;uniform vec2 scale;varying vec2 vUV;const vec2 madd=vec2(0.5,0.5);
|
|
2
2
|
#define CUSTOM_VERTEX_DEFINITIONS
|
|
3
3
|
void main(void) {
|
|
4
4
|
#define CUSTOM_VERTEX_MAIN_BEGIN
|