@uptimizr/dashboard 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +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/002cjeoit6-up.js +1 -0
- package/out/_next/static/chunks/02n1uiltexy3w.js +1 -0
- package/out/_next/static/chunks/03ab2khhe8-x5.js +1 -0
- package/out/_next/static/chunks/04_yytpc2paxy.js +1 -0
- package/out/_next/static/chunks/06qot1qvlsqaz.js +1 -0
- package/out/_next/static/chunks/07eeopuufsqp-.js +1501 -0
- package/out/_next/static/chunks/08a5xek662n8n.js +1 -0
- package/out/_next/static/chunks/08wuc9--s8zn_.js +1 -0
- package/out/_next/static/chunks/0927l-ygd5c8d.js +1 -0
- package/out/_next/static/chunks/09510356f0lad.js +1 -0
- package/out/_next/static/chunks/0_eu72k69lxj7.js +1 -0
- package/out/_next/static/chunks/0beajlqy8p8b5.js +1 -0
- package/out/_next/static/chunks/0c83pe1mpx456.js +1 -0
- package/out/_next/static/chunks/0echnagbkyx79.js +1198 -0
- package/out/_next/static/chunks/0eh1ml86u8dh7.js +1 -0
- package/out/_next/static/chunks/0fh-9h9ylxskr.js +674 -0
- package/out/_next/static/chunks/0fzmc1up21g1i.js +1 -0
- package/out/_next/static/chunks/0g_v2zswo4l6f.js +1 -0
- package/out/_next/static/chunks/0grlb9lo8e502.js +1 -0
- package/out/_next/static/chunks/0h22pg-0xrxnm.js +1 -0
- package/out/_next/static/chunks/0j6p1pmc14t96.js +1 -0
- package/out/_next/static/chunks/0j_6dx-sttgsy.js +1 -0
- package/out/_next/static/chunks/0j__xaq_8_di1.js +1 -0
- package/out/_next/static/chunks/0kfd-cvj5fvtz.js +1 -0
- package/out/_next/static/chunks/0o_mp98xzqfyf.js +1 -0
- package/out/_next/static/chunks/0otsec99kdkt7.js +213 -0
- package/out/_next/static/chunks/0ql-s-tsmel_u.js +151 -0
- package/out/_next/static/chunks/0r47gs_e93cka.js +1 -0
- package/out/_next/static/chunks/0sqys6o2pbe1q.js +1328 -0
- package/out/_next/static/chunks/0titqrn1qmcsv.js +1 -0
- package/out/_next/static/chunks/0tnlbw78tgaxp.js +4 -0
- package/out/_next/static/chunks/0tw4dyl-cp-hd.js +1 -0
- package/out/_next/static/chunks/0vbce-8omgurc.js +1 -0
- package/out/_next/static/chunks/0vfsg5byzep_0.js +1 -0
- package/out/_next/static/chunks/{0gv7mblzv3dl3.js → 0w8_1yjvol1f0.js} +20 -20
- package/out/_next/static/chunks/0xh144a5fz58h.js +1 -0
- package/out/_next/static/chunks/0xjltg_pph0c8.js +1 -0
- package/out/_next/static/chunks/0yeqgh0dnas8d.js +1 -0
- package/out/_next/static/chunks/101-7e_7up7rk.js +1 -0
- package/out/_next/static/chunks/128e51hj_04r0.js +1 -0
- package/out/_next/static/chunks/{10fnxpln_5xfd.js → 12kv810lohbsx.js} +2 -2
- package/out/_next/static/chunks/137xbvd4nd41j.js +3 -0
- package/out/_next/static/chunks/14bws-suyy5zu.js +1 -0
- package/out/_next/static/chunks/14ggsmqwej_tt.js +1656 -0
- package/out/_next/static/chunks/17genz6pkmty_.js +1 -0
- package/out/_next/static/chunks/17xd8hnazzr0g.js +1454 -0
- package/out/_next/static/chunks/18dczy9ylt2s_.js +1 -0
- package/out/_next/static/chunks/18xs_kvsaolb0.js +1 -0
- package/out/_next/static/chunks/19016f8-ry0z6.js +1 -0
- package/out/_next/static/chunks/1_6oejyxj39li.js +1 -0
- package/out/_next/static/chunks/1_aon8nz9p1fr.js +1 -0
- package/out/_next/static/chunks/1_qzlkuxukhpq.js +779 -0
- package/out/_next/static/chunks/1akaj5rhgitn3.js +1 -0
- package/out/_next/static/chunks/1bvl1ws7b_3gn.js +1 -0
- package/out/_next/static/chunks/1cdbk6kxyr1c9.js +1 -0
- package/out/_next/static/chunks/1fbjkk55uu4_g.js +1 -0
- package/out/_next/static/chunks/1furcfsgrw_3g.js +1 -0
- package/out/_next/static/chunks/1g0-f1g3gn_rs.js +1 -0
- package/out/_next/static/chunks/1g7emwu85bifo.js +557 -0
- package/out/_next/static/chunks/{37vzwr3ciejf1.js → 1gs-5722l4u59.js} +1 -1
- package/out/_next/static/chunks/1gt4kh0_xmigy.js +1 -0
- package/out/_next/static/chunks/1h8xzuuhhglu9.js +1 -0
- package/out/_next/static/chunks/1hatz-jlztrn0.js +1 -0
- package/out/_next/static/chunks/1iioifo7i0t0_.js +1 -0
- package/out/_next/static/chunks/{0impkpmxx3ttp.js → 1iiz7jqgj20z0.js} +1 -1
- package/out/_next/static/chunks/1kujmd5n0j9nk.js +1 -0
- package/out/_next/static/chunks/{2kazjq29jeamx.js → 1ltux4lwz7muf.js} +160 -372
- package/out/_next/static/chunks/1m_buecgcq67j.js +740 -0
- package/out/_next/static/chunks/1n9sy0yt5d2vq.js +1 -0
- package/out/_next/static/chunks/1p1gz6dseck--.js +1 -0
- package/out/_next/static/chunks/1p1xtsfwvpuqo.js +1 -0
- package/out/_next/static/chunks/1p8f6okk2ewbz.js +1 -0
- package/out/_next/static/chunks/1qg_etglhvp9h.js +740 -0
- package/out/_next/static/chunks/1th_t5ujeqlkf.js +1 -0
- package/out/_next/static/chunks/1thr-mdzbu96v.js +1 -0
- package/out/_next/static/chunks/1tta1a064979p.js +1 -0
- package/out/_next/static/chunks/1u_riwm0nfww7.js +1 -0
- package/out/_next/static/chunks/1ua15kzid0_8p.js +2560 -0
- package/out/_next/static/chunks/1uu-rt_8p1edp.js +2712 -0
- package/out/_next/static/chunks/1uu93wuxigx4k.js +1 -0
- package/out/_next/static/chunks/{1flb8adpj6_2o.js → 1xpwp4m1tqugp.js} +1 -1
- package/out/_next/static/chunks/1ynju1jqfrcv0.js +1 -0
- package/out/_next/static/chunks/1zfojlgb15okk.js +1 -0
- package/out/_next/static/chunks/1zj8x5wbgnzz-.js +1 -0
- package/out/_next/static/chunks/1zl6t15gh34nn.js +1 -0
- package/out/_next/static/chunks/{1thjncpj7u6pq.js → 223vrr_4sfhsj.js} +1 -1
- package/out/_next/static/chunks/22cr2b04btguf.js +1 -0
- package/out/_next/static/chunks/242xhzxxetctz.js +1 -0
- package/out/_next/static/chunks/24essz5mmvx-6.js +1 -0
- package/out/_next/static/chunks/256k1jw1m--l7.js +146 -0
- package/out/_next/static/chunks/259obyrpxcv6r.js +1 -0
- package/out/_next/static/chunks/26v9yqicofqba.js +1 -0
- package/out/_next/static/chunks/290d93hmm_e8b.js +1 -0
- package/out/_next/static/chunks/2_2fk7iddrs43.js +1 -0
- package/out/_next/static/chunks/{00k_j_r7bv_eb.js → 2bjlls8-qe05r.js} +9 -9
- package/out/_next/static/chunks/2ckd7f1wbfod-.js +1 -0
- package/out/_next/static/chunks/{163fa70v4mgxj.js → 2d6hru4qo23tt.js} +1 -1
- package/out/_next/static/chunks/2ejvntxtvf5o9.js +1 -0
- package/out/_next/static/chunks/2f7_3tzf7xhps.js +1 -0
- package/out/_next/static/chunks/2gxd_o1g89_bv.js +1 -0
- package/out/_next/static/chunks/2hd2txb4-m9k1.js +1 -0
- package/out/_next/static/chunks/2hpxou_cnp4f_.js +1 -0
- package/out/_next/static/chunks/2izioctrfc0s5.js +1 -0
- package/out/_next/static/chunks/2jhnk4h4n0udv.js +1 -0
- package/out/_next/static/chunks/2jpkhkk9zi8-f.js +1 -0
- package/out/_next/static/chunks/2kpet_l1kq2sx.js +1 -0
- package/out/_next/static/chunks/2mdbvf1b5h00_.css +3 -0
- package/out/_next/static/chunks/2nck5w4c7leb7.js +1 -0
- package/out/_next/static/chunks/2our10fwtj87e.js +1 -0
- package/out/_next/static/chunks/2qq3uzsbiicw3.js +1194 -0
- package/out/_next/static/chunks/2qqqpu0ahfdda.js +1 -0
- package/out/_next/static/chunks/2u-f7mmxvk8wj.js +1 -0
- package/out/_next/static/chunks/2ue1wo4ryk87z.js +1 -0
- package/out/_next/static/chunks/2uk-vwlxe9-xr.js +1 -0
- package/out/_next/static/chunks/2ur5-lxdvv1jm.js +1 -0
- package/out/_next/static/chunks/2veqsohwfhfqc.js +1 -0
- package/out/_next/static/chunks/2vqlv9wnewhu9.js +1 -0
- package/out/_next/static/chunks/{1zvc1tv--w8nn.js → 2wzshintp5lf8.js} +1 -1
- package/out/_next/static/chunks/2x-00glogc485.js +1 -0
- package/out/_next/static/chunks/2yfxy0f5fqs4o.js +1 -0
- package/out/_next/static/chunks/2z88mt3ixktu3.js +1 -0
- package/out/_next/static/chunks/2z_jn9ud28fk7.js +1 -0
- package/out/_next/static/chunks/3-eswqjobiqk1.js +1 -0
- package/out/_next/static/chunks/30-tbi7pys6fp.js +4 -0
- package/out/_next/static/chunks/30c-nsedy_ce0.js +1 -0
- package/out/_next/static/chunks/31u5lbu1vxznh.js +1 -0
- package/out/_next/static/chunks/{2feca0xcipcyt.js → 32ahba5ezp467.js} +156 -156
- package/out/_next/static/chunks/337hn35kts7ud.js +1 -0
- package/out/_next/static/chunks/33dgpebv-tf73.js +1 -0
- package/out/_next/static/chunks/36jkdhq6kb-cf.js +1 -0
- package/out/_next/static/chunks/37epa8fz59vba.js +1166 -0
- package/out/_next/static/chunks/3833xfnz0a-ub.js +1 -0
- package/out/_next/static/chunks/38awrh_qxn22k.js +1 -0
- package/out/_next/static/chunks/{0wrm9jr-9bw0e.js → 38x3c1ra5slhe.js} +383 -913
- package/out/_next/static/chunks/39idqlqlcp5b9.js +1 -0
- package/out/_next/static/chunks/{2a3spdq-m8drh.js → 3_gku1pwluoo0.js} +1 -1
- package/out/_next/static/chunks/3_mu-4rdjajna.js +1450 -0
- package/out/_next/static/chunks/3coacc4-g-g5c.js +1 -0
- package/out/_next/static/chunks/3e00fzdfkclzq.js +1 -0
- package/out/_next/static/chunks/3e8fmlq0k5wkg.js +1 -0
- package/out/_next/static/chunks/3e9tzyrt4_98z.js +1 -0
- package/out/_next/static/chunks/3edelqkq92pil.js +1 -0
- package/out/_next/static/chunks/3figbil1t4ssj.js +593 -0
- package/out/_next/static/chunks/3gimb3z_mteou.js +1 -0
- package/out/_next/static/chunks/{2p2vv6cc9i-3q.js → 3idaz_s77e-j_.js} +9 -9
- package/out/_next/static/chunks/3j-4wuhs5weba.js +1 -0
- package/out/_next/static/chunks/3jjfnwvybayy7.js +1 -0
- package/out/_next/static/chunks/3jwm5dfk_78gc.js +1 -0
- package/out/_next/static/chunks/3k9d4ylc3li2t.js +1352 -0
- package/out/_next/static/chunks/3l3_0ack3gy4k.js +1 -0
- package/out/_next/static/chunks/3lwhs5ja7tun3.js +1 -0
- package/out/_next/static/chunks/3m6nmp2dca6un.js +1342 -0
- package/out/_next/static/chunks/3mbnfpufs2-7e.js +7 -0
- package/out/_next/static/chunks/3mcd08gmt038z.js +1 -0
- package/out/_next/static/chunks/3mt5th7b1i_u9.js +1 -0
- package/out/_next/static/chunks/3ne77mjdz2y7o.js +1 -0
- package/out/_next/static/chunks/3puhrqtujktyv.js +1 -0
- package/out/_next/static/chunks/3rdifucupcgkg.js +1 -0
- package/out/_next/static/chunks/3riekaxl3uxfb.js +1195 -0
- package/out/_next/static/chunks/3sdoskq_buttj.js +1 -0
- package/out/_next/static/chunks/3tg-ma9tv9xu4.js +1 -0
- package/out/_next/static/chunks/3tm-pqpmq_ppw.js +1 -0
- package/out/_next/static/chunks/3w9go565cjhq3.js +1636 -0
- package/out/_next/static/chunks/3wi9gzq2mtr_q.js +8 -0
- package/out/_next/static/chunks/3xagd_2_9zft2.js +1 -0
- package/out/_next/static/chunks/3xsq_anpad-fb.js +1 -0
- package/out/_next/static/chunks/3ycv2qq7vpbua.js +1 -0
- package/out/_next/static/chunks/3z84au-mitjjw.js +1 -0
- package/out/_next/static/chunks/4030dhur2h70-.js +1 -0
- package/out/_next/static/chunks/40ffffml4h_3r.js +4 -0
- package/out/_next/static/chunks/{3-shckrcpvbxu.js → 41wt50z9tx9cx.js} +108 -711
- package/out/_next/static/chunks/431slrqh0wa0g.js +1 -0
- package/out/_next/static/chunks/43s_lbd1i2krj.js +1 -0
- package/out/_next/static/chunks/{0-2y-_oomza2l.js → 44nxswtahaq4w.js} +18 -18
- package/out/_next/static/chunks/45bwefvdpztfs.js +1 -0
- package/out/_next/static/chunks/{turbopack-0sgd6pfbe1fy6.js → turbopack-19105pdhzxp1x.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 +5 -4
- package/out/_next/static/chunks/068j6934u8j16.js +0 -1
- package/out/_next/static/chunks/09e4adtr6w0xe.js +0 -1
- package/out/_next/static/chunks/0_rf76jneiwal.js +0 -176
- package/out/_next/static/chunks/0aznt7717miff.js +0 -1
- package/out/_next/static/chunks/0cu-q5q3a7uf3.js +0 -1
- package/out/_next/static/chunks/0fskcfh9vbhtv.js +0 -1
- package/out/_next/static/chunks/0gg-ii7i6d_p6.js +0 -1
- package/out/_next/static/chunks/0tx1j_ghpz7rc.css +0 -3
- package/out/_next/static/chunks/0ufbyo1x3qkmo.js +0 -1
- package/out/_next/static/chunks/0wwcfw8i3j_zx.js +0 -1
- package/out/_next/static/chunks/0wwkrsvxwi57d.js +0 -1
- package/out/_next/static/chunks/0ys9-ozuluawt.js +0 -1
- package/out/_next/static/chunks/1-61zh4waha61.js +0 -1
- package/out/_next/static/chunks/10r_824wzt8hj.js +0 -1
- package/out/_next/static/chunks/123xxske5c9na.js +0 -1
- package/out/_next/static/chunks/13isnf0--pmx1.js +0 -1
- package/out/_next/static/chunks/157d9euci08yu.js +0 -1
- package/out/_next/static/chunks/18u58lorfahxi.js +0 -4
- package/out/_next/static/chunks/1_aahautsz2v_.js +0 -1
- package/out/_next/static/chunks/1o1d0p-v1z8ty.js +0 -1
- package/out/_next/static/chunks/1vdjn0pkoyypn.js +0 -1
- package/out/_next/static/chunks/1yehxf-fmeicg.js +0 -1
- package/out/_next/static/chunks/1zx2q-r32thv1.js +0 -4
- package/out/_next/static/chunks/2-sjjedfr0kfq.js +0 -1
- package/out/_next/static/chunks/25b9x-li-tvk2.js +0 -1
- package/out/_next/static/chunks/2aelw3far6rii.js +0 -1
- package/out/_next/static/chunks/2aor7m-wbis85.js +0 -1
- package/out/_next/static/chunks/2clzipqap01hp.js +0 -1
- package/out/_next/static/chunks/2fh-_9b6tqhvb.js +0 -1
- package/out/_next/static/chunks/2g5gecypj0rqe.js +0 -1
- package/out/_next/static/chunks/2szdcpl41-kzv.js +0 -1
- package/out/_next/static/chunks/2u6shh3oeycm-.js +0 -1
- package/out/_next/static/chunks/2unhhuv0arlcv.js +0 -1
- package/out/_next/static/chunks/2z5eqx5do5std.js +0 -1
- package/out/_next/static/chunks/310uz81hnnzsu.js +0 -1
- package/out/_next/static/chunks/3aqbf_wkg2sih.js +0 -3
- package/out/_next/static/chunks/3i3gbhccmhu7j.js +0 -210
- package/out/_next/static/chunks/3mqy-84_ul3t2.js +0 -1
- package/out/_next/static/chunks/3nz-dh9d7cehk.js +0 -1
- package/out/_next/static/chunks/3pufs8g4ui943.js +0 -1
- package/out/_next/static/chunks/3t06schbtqonl.js +0 -1
- package/out/_next/static/chunks/3v3-7fio3nw_t.js +0 -1
- package/out/_next/static/chunks/3v5ha25nxo43j.js +0 -1
- package/out/_next/static/chunks/3zskk1hxu3-_o.js +0 -1
- /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_buildManifest.js +0 -0
- /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_ssgManifest.js +0 -0
|
@@ -84,7 +84,7 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
|
|
|
84
84
|
fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
|
|
85
85
|
fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
|
|
86
86
|
uint2float(rstate*2447445414u));}
|
|
87
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},60106,
|
|
87
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["helperFunctionsWGSL",0,{name:r,shader:i}])},60106,e=>{"use strict";var t=e.i(12423);let r="sceneUboDeclaration",i=`struct Scene {viewProjection : mat4x4<f32>,
|
|
88
88
|
#ifdef MULTIVIEW
|
|
89
89
|
viewProjectionR : mat4x4<f32>,
|
|
90
90
|
#endif
|
|
@@ -94,20 +94,16 @@ vEyePosition : vec4<f32>,
|
|
|
94
94
|
inverseProjection : mat4x4<f32>,};
|
|
95
95
|
#define SCENE_UBO
|
|
96
96
|
var<uniform> scene : Scene;
|
|
97
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}],
|
|
97
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["sceneUboDeclarationWGSL",0,{name:r,shader:i}])},50008,39780,54758,e=>{"use strict";var t=e.i(12423);let r="meshUboDeclaration",i=`struct Mesh {world : mat4x4<f32>,
|
|
98
98
|
visibility : f32,};var<uniform> mesh : Mesh;
|
|
99
99
|
#define WORLD_UBO
|
|
100
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
101
|
-
#define ADDITIONAL_UBO_DECLARATION
|
|
102
|
-
#include<sceneUboDeclaration>
|
|
103
|
-
#include<meshUboDeclaration>
|
|
104
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=o),e.s(["defaultUboDeclarationWGSL",0,{name:f,shader:o}],84933);let d="mainUVVaryingDeclaration",s=`#ifdef MAINUV{X}
|
|
100
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["meshUboDeclarationWGSL",0,{name:r,shader:i}],50008);let a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
|
|
105
101
|
varying vMainUV{X}: vec2f;
|
|
106
102
|
#endif
|
|
107
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
103
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["mainUVVaryingDeclarationWGSL",0,{name:a,shader:n}],39780);let f="logDepthDeclaration",d=`#ifdef LOGARITHMICDEPTH
|
|
108
104
|
uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
|
|
109
105
|
#endif
|
|
110
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
106
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["logDepthDeclarationWGSL",0,{name:f,shader:d}],54758)},45329,35011,e=>{"use strict";var t=e.i(12423);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
|
|
111
107
|
#ifndef USE_VERTEX_PULLING
|
|
112
108
|
attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
|
|
113
109
|
#if NUM_BONE_INFLUENCERS>4
|
|
@@ -130,7 +126,7 @@ let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x
|
|
|
130
126
|
#endif
|
|
131
127
|
#endif
|
|
132
128
|
#endif
|
|
133
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],45329);let
|
|
129
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],45329);let a="bakedVertexAnimationDeclaration",n=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
134
130
|
uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
|
|
135
131
|
#ifdef INSTANCES
|
|
136
132
|
attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
@@ -138,7 +134,7 @@ attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
|
138
134
|
fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
|
|
139
135
|
{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);}
|
|
140
136
|
#endif
|
|
141
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
137
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:a,shader:n}],35011)},18062,e=>{"use strict";var t=e.i(12423);let r="instancesDeclaration",i=`#ifdef INSTANCES
|
|
142
138
|
attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
|
|
143
139
|
#ifdef INSTANCESCOLOR
|
|
144
140
|
attribute instanceColor : vec4<f32>;
|
|
@@ -160,7 +156,7 @@ uniform world : mat4x4<f32>;
|
|
|
160
156
|
uniform previousWorld : mat4x4<f32>;
|
|
161
157
|
#endif
|
|
162
158
|
#endif
|
|
163
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesDeclarationWGSL",0,{name:r,shader:i}])},77785,
|
|
159
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesDeclarationWGSL",0,{name:r,shader:i}])},77785,e=>{"use strict";var t=e.i(12423);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
|
|
164
160
|
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
165
161
|
#endif
|
|
166
162
|
#ifdef CLIPPLANE2
|
|
@@ -178,10 +174,7 @@ uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
|
178
174
|
#ifdef CLIPPLANE6
|
|
179
175
|
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
180
176
|
#endif
|
|
181
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}],
|
|
182
|
-
varying vFogDistance: vec3f;
|
|
183
|
-
#endif
|
|
184
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexDeclarationWGSL",0,{name:n,shader:a}],75234)},50331,3350,35845,3878,42893,8154,e=>{"use strict";var t=e.i(12423);let r="instancesVertex",i=`#ifdef INSTANCES
|
|
177
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}])},50331,3350,35845,3878,e=>{"use strict";var t=e.i(12423);let r="instancesVertex",i=`#ifdef INSTANCES
|
|
185
178
|
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
|
|
186
179
|
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
187
180
|
var finalPreviousWorld=mat4x4<f32>(
|
|
@@ -208,7 +201,7 @@ var finalWorld=mesh.world;
|
|
|
208
201
|
var finalPreviousWorld=uniforms.previousWorld;
|
|
209
202
|
#endif
|
|
210
203
|
#endif
|
|
211
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesVertexWGSL",0,{name:r,shader:i}],50331);let
|
|
204
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["instancesVertexWGSL",0,{name:r,shader:i}],50331);let a="bonesVertex",n=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
212
205
|
#if NUM_BONE_INFLUENCERS>0
|
|
213
206
|
var influence : mat4x4<f32>;
|
|
214
207
|
#ifdef BONETEXTURE
|
|
@@ -261,7 +254,7 @@ influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*v
|
|
|
261
254
|
finalWorld=finalWorld*influence;
|
|
262
255
|
#endif
|
|
263
256
|
#endif
|
|
264
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
257
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["bonesVertexWGSL",0,{name:a,shader:n}],3350);let f="bakedVertexAnimation",d=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
265
258
|
{
|
|
266
259
|
#ifdef INSTANCES
|
|
267
260
|
let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
|
|
@@ -292,7 +285,7 @@ VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTextur
|
|
|
292
285
|
#endif
|
|
293
286
|
finalWorld=finalWorld*VATInfluence;}
|
|
294
287
|
#endif
|
|
295
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=
|
|
288
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["bakedVertexAnimationWGSL",0,{name:f,shader:d}],35845);let o="clipPlaneVertex",s=`#ifdef CLIPPLANE
|
|
296
289
|
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
297
290
|
#endif
|
|
298
291
|
#ifdef CLIPPLANE2
|
|
@@ -310,14 +303,17 @@ vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
|
|
|
310
303
|
#ifdef CLIPPLANE6
|
|
311
304
|
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
|
|
312
305
|
#endif
|
|
313
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
306
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[o]||(t.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["clipPlaneVertexWGSL",0,{name:o,shader:s}],3878)},75234,42893,8154,e=>{"use strict";var t=e.i(12423);let r="fogVertexDeclaration",i=`#ifdef FOG
|
|
307
|
+
varying vFogDistance: vec3f;
|
|
308
|
+
#endif
|
|
309
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],75234);let a="fogVertex",n=`#ifdef FOG
|
|
314
310
|
#ifdef SCENE_UBO
|
|
315
311
|
vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
|
|
316
312
|
#else
|
|
317
313
|
vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;
|
|
318
314
|
#endif
|
|
319
315
|
#endif
|
|
320
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
316
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["fogVertexWGSL",0,{name:a,shader:n}],42893);let f="vertexColorMixing",d=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
321
317
|
vertexOutputs.vColor=vec4f(1.0);
|
|
322
318
|
#ifdef VERTEXCOLOR
|
|
323
319
|
#ifdef VERTEXALPHA
|
|
@@ -330,10 +326,10 @@ vertexOutputs.vColor=vec4f(vertexOutputs.vColor.rgb*colorUpdated.rgb,vertexOutpu
|
|
|
330
326
|
vertexOutputs.vColor*=vertexInputs.instanceColor;
|
|
331
327
|
#endif
|
|
332
328
|
#endif
|
|
333
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
329
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["vertexColorMixingWGSL",0,{name:f,shader:d}],8154)},71822,39359,19376,90742,45012,20958,80255,25716,86752,6275,47167,e=>{"use strict";var t=e.i(12423);let r="uvAttributeDeclaration",i=`#if defined(UV{X}) && !defined(USE_VERTEX_PULLING)
|
|
334
330
|
attribute uv{X}: vec2f;
|
|
335
331
|
#endif
|
|
336
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
332
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["uvAttributeDeclarationWGSL",0,{name:r,shader:i}],71822);let a="prePassVertexDeclaration",n=`#ifdef PREPASS
|
|
337
333
|
#ifdef PREPASS_LOCAL_POSITION
|
|
338
334
|
varying vPosition : vec3f;
|
|
339
335
|
#endif
|
|
@@ -347,42 +343,10 @@ varying vNormViewDepth: f32;
|
|
|
347
343
|
uniform previousViewProjection: mat4x4f;varying vCurrentPosition: vec4f;varying vPreviousPosition: vec4f;
|
|
348
344
|
#endif
|
|
349
345
|
#endif
|
|
350
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
346
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["prePassVertexDeclarationWGSL",0,{name:a,shader:n}],39359);let f="samplerVertexDeclaration",d=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
|
|
351
347
|
varying v_VARYINGNAME_UV: vec2f;
|
|
352
348
|
#endif
|
|
353
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
354
|
-
#if defined(TANGENT) && defined(NORMAL)
|
|
355
|
-
varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
|
|
356
|
-
#endif
|
|
357
|
-
#endif
|
|
358
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=S);var E=e.i(77785),I=e.i(75234);let _="lightVxFragmentDeclaration",T=`#ifdef LIGHT{X}
|
|
359
|
-
uniform vLightData{X}: vec4f;uniform vLightDiffuse{X}: vec4f;
|
|
360
|
-
#ifdef SPECULARTERM
|
|
361
|
-
uniform vLightSpecular{X}: vec4f;
|
|
362
|
-
#else
|
|
363
|
-
var vLightSpecular{X}: vec4f= vec4f(0.);
|
|
364
|
-
#endif
|
|
365
|
-
#ifdef SHADOW{X}
|
|
366
|
-
#ifdef SHADOWCSM{X}
|
|
367
|
-
uniform lightMatrix{X}: mat4x4f[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromLight{X}: vec4f[SHADOWCSMNUM_CASCADES{X}];varying var vDepthMetric{X}: f32[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromCamera{X}: vec4f;
|
|
368
|
-
#elif defined(SHADOWCUBE{X})
|
|
369
|
-
#else
|
|
370
|
-
varying var vPositionFromLight{X}: vec4f;varying var vDepthMetric{X}: f32;uniform lightMatrix{X}: mat4x4f;
|
|
371
|
-
#endif
|
|
372
|
-
uniform shadowsInfo{X}: vec4f;uniform depthValues{X}: vec2f;
|
|
373
|
-
#endif
|
|
374
|
-
#ifdef SPOTLIGHT{X}
|
|
375
|
-
uniform vLightDirection{X}: vec4f;uniform vLightFalloff{X}: vec4f;
|
|
376
|
-
#elif defined(POINTLIGHT{X})
|
|
377
|
-
uniform vLightFalloff{X}: vec4f;
|
|
378
|
-
#elif defined(HEMILIGHT{X})
|
|
379
|
-
uniform vLightGround{X}: vec3f;
|
|
380
|
-
#endif
|
|
381
|
-
#if defined(AREALIGHT{X}) && defined(AREALIGHTUSED) && defined(AREALIGHTSUPPORTED)
|
|
382
|
-
uniform vLightWidth{X}: vec4f;uniform vLightHeight{X}: vec4f;
|
|
383
|
-
#endif
|
|
384
|
-
#endif
|
|
385
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[_]||(t.ShaderStore.IncludesShadersStoreWGSL[_]=T);let N="lightVxUboDeclaration",V=`#ifdef LIGHT{X}
|
|
349
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["samplerVertexDeclarationWGSL",0,{name:f,shader:d}],19376);let o="lightVxUboDeclaration",s=`#ifdef LIGHT{X}
|
|
386
350
|
struct Light{X}
|
|
387
351
|
{vLightData: vec4f,
|
|
388
352
|
vLightDiffuse: vec4f,
|
|
@@ -413,43 +377,7 @@ varying vPositionFromLight{X}: vec4f;varying vDepthMetric{X}: f32;uniform lightM
|
|
|
413
377
|
#endif
|
|
414
378
|
#endif
|
|
415
379
|
#endif
|
|
416
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
417
|
-
uniform morphTargetInfluences : array<f32,NUM_MORPH_INFLUENCERS>;
|
|
418
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
419
|
-
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>
|
|
420
|
-
{
|
|
421
|
-
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;}
|
|
422
|
-
fn readVector4FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec4<f32>
|
|
423
|
-
{
|
|
424
|
-
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
|
|
425
|
-
let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
|
|
426
|
-
#endif
|
|
427
|
-
#endif
|
|
428
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[h]||(t.ShaderStore.IncludesShadersStoreWGSL[h]=A);let U="morphTargetsVertexDeclaration",L=`#ifdef MORPHTARGETS
|
|
429
|
-
#ifndef MORPHTARGETS_TEXTURE
|
|
430
|
-
#ifdef MORPHTARGETS_POSITION
|
|
431
|
-
attribute position{X} : vec3<f32>;
|
|
432
|
-
#endif
|
|
433
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
434
|
-
attribute normal{X} : vec3<f32>;
|
|
435
|
-
#endif
|
|
436
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
437
|
-
attribute tangent{X} : vec3<f32>;
|
|
438
|
-
#endif
|
|
439
|
-
#ifdef MORPHTARGETS_UV
|
|
440
|
-
attribute uv_{X} : vec2<f32>;
|
|
441
|
-
#endif
|
|
442
|
-
#ifdef MORPHTARGETS_UV2
|
|
443
|
-
attribute uv2_{X} : vec2<f32>;
|
|
444
|
-
#endif
|
|
445
|
-
#ifdef MORPHTARGETS_COLOR
|
|
446
|
-
attribute color{X} : vec4<f32>;
|
|
447
|
-
#endif
|
|
448
|
-
#elif {X}==0
|
|
449
|
-
uniform morphTargetCount: f32;
|
|
450
|
-
#endif
|
|
451
|
-
#endif
|
|
452
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[U]||(t.ShaderStore.IncludesShadersStoreWGSL[U]=L);var O=e.i(54758);let R="vertexPullingDeclaration",g=`#ifdef USE_VERTEX_PULLING
|
|
380
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[o]||(t.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["lightVxUboDeclarationWGSL",0,{name:o,shader:s}],90742);let u="vertexPullingDeclaration",l=`#ifdef USE_VERTEX_PULLING
|
|
453
381
|
#ifdef VERTEX_PULLING_USE_INDEX_BUFFER
|
|
454
382
|
var<storage,read> indices : array<u32>;
|
|
455
383
|
#endif
|
|
@@ -627,7 +555,7 @@ vp_readMatrixWeightExtraValue(offset+cs*3u,dataType,normalized)
|
|
|
627
555
|
#endif
|
|
628
556
|
#endif
|
|
629
557
|
#endif
|
|
630
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
558
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[u]||(t.ShaderStore.IncludesShadersStoreWGSL[u]=l),e.s(["vertexPullingDeclarationWGSL",0,{name:u,shader:l}],45012);let v="vertexPullingVertex",c=`#ifdef USE_VERTEX_PULLING
|
|
631
559
|
let vpVertexIndex: u32=vp_readVertexIndex(vertexInputs.vertexIndex);positionUpdated=vp_readPosition(uniforms.vp_position_info,vpVertexIndex);
|
|
632
560
|
#ifdef NORMAL
|
|
633
561
|
normalUpdated=vp_readNormal(uniforms.vp_normal_info,vpVertexIndex);
|
|
@@ -681,122 +609,7 @@ var vp_matricesIndicesExtra: vec4f=vp_readBoneIndicesExtra(uniforms.vp_matricesI
|
|
|
681
609
|
#endif
|
|
682
610
|
#endif
|
|
683
611
|
#endif
|
|
684
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
685
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
686
|
-
var vertexID : f32;
|
|
687
|
-
#endif
|
|
688
|
-
#endif
|
|
689
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[y]||(t.ShaderStore.IncludesShadersStoreWGSL[y]=C);let b="morphTargetsVertex",W=`#ifdef MORPHTARGETS
|
|
690
|
-
#ifdef MORPHTARGETS_TEXTURE
|
|
691
|
-
#if {X}==0
|
|
692
|
-
for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
|
|
693
|
-
#ifdef USE_VERTEX_PULLING
|
|
694
|
-
vertexID=f32(vpVertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
695
|
-
#else
|
|
696
|
-
vertexID=f32(vertexInputs.vertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
697
|
-
#endif
|
|
698
|
-
#ifdef MORPHTARGETS_POSITION
|
|
699
|
-
#ifdef USE_VERTEX_PULLING
|
|
700
|
-
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vp_basePosition)*uniforms.morphTargetInfluences[i];
|
|
701
|
-
#else
|
|
702
|
-
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vertexInputs.position)*uniforms.morphTargetInfluences[i];
|
|
703
|
-
#endif
|
|
704
|
-
#endif
|
|
705
|
-
#ifdef MORPHTARGETTEXTURE_HASPOSITIONS
|
|
706
|
-
vertexID=vertexID+1.0;
|
|
707
|
-
#endif
|
|
708
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
709
|
-
#ifdef USE_VERTEX_PULLING
|
|
710
|
-
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vp_baseNormal)*uniforms.morphTargetInfluences[i];
|
|
711
|
-
#else
|
|
712
|
-
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vertexInputs.normal)*uniforms.morphTargetInfluences[i];
|
|
713
|
-
#endif
|
|
714
|
-
#endif
|
|
715
|
-
#ifdef MORPHTARGETTEXTURE_HASNORMALS
|
|
716
|
-
vertexID=vertexID+1.0;
|
|
717
|
-
#endif
|
|
718
|
-
#ifdef MORPHTARGETS_UV
|
|
719
|
-
#ifdef USE_VERTEX_PULLING
|
|
720
|
-
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV)*uniforms.morphTargetInfluences[i];
|
|
721
|
-
#else
|
|
722
|
-
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv)*uniforms.morphTargetInfluences[i];
|
|
723
|
-
#endif
|
|
724
|
-
#endif
|
|
725
|
-
#ifdef MORPHTARGETTEXTURE_HASUVS
|
|
726
|
-
vertexID=vertexID+1.0;
|
|
727
|
-
#endif
|
|
728
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
729
|
-
#ifdef USE_VERTEX_PULLING
|
|
730
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vp_baseTangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
731
|
-
#else
|
|
732
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
733
|
-
#endif
|
|
734
|
-
#endif
|
|
735
|
-
#ifdef MORPHTARGETTEXTURE_HASTANGENTS
|
|
736
|
-
vertexID=vertexID+1.0;
|
|
737
|
-
#endif
|
|
738
|
-
#ifdef MORPHTARGETS_UV2
|
|
739
|
-
#ifdef USE_VERTEX_PULLING
|
|
740
|
-
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV2)*uniforms.morphTargetInfluences[i];
|
|
741
|
-
#else
|
|
742
|
-
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv2)*uniforms.morphTargetInfluences[i];
|
|
743
|
-
#endif
|
|
744
|
-
#endif
|
|
745
|
-
#ifdef MORPHTARGETS_COLOR
|
|
746
|
-
#ifdef USE_VERTEX_PULLING
|
|
747
|
-
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vp_baseColor)*uniforms.morphTargetInfluences[i];
|
|
748
|
-
#else
|
|
749
|
-
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vertexInputs.color)*uniforms.morphTargetInfluences[i];
|
|
750
|
-
#endif
|
|
751
|
-
#endif
|
|
752
|
-
}
|
|
753
|
-
#endif
|
|
754
|
-
#else
|
|
755
|
-
#ifdef MORPHTARGETS_POSITION
|
|
756
|
-
#ifdef USE_VERTEX_PULLING
|
|
757
|
-
positionUpdated=positionUpdated+(vertexInputs.position{X}-vp_basePosition)*uniforms.morphTargetInfluences[{X}];
|
|
758
|
-
#else
|
|
759
|
-
positionUpdated=positionUpdated+(vertexInputs.position{X}-vertexInputs.position)*uniforms.morphTargetInfluences[{X}];
|
|
760
|
-
#endif
|
|
761
|
-
#endif
|
|
762
|
-
#ifdef MORPHTARGETS_NORMAL
|
|
763
|
-
#ifdef USE_VERTEX_PULLING
|
|
764
|
-
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vp_baseNormal)*uniforms.morphTargetInfluences[{X}];
|
|
765
|
-
#else
|
|
766
|
-
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vertexInputs.normal)*uniforms.morphTargetInfluences[{X}];
|
|
767
|
-
#endif
|
|
768
|
-
#endif
|
|
769
|
-
#ifdef MORPHTARGETS_TANGENT
|
|
770
|
-
#ifdef USE_VERTEX_PULLING
|
|
771
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vp_baseTangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
772
|
-
#else
|
|
773
|
-
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
774
|
-
#endif
|
|
775
|
-
#endif
|
|
776
|
-
#ifdef MORPHTARGETS_UV
|
|
777
|
-
#ifdef USE_VERTEX_PULLING
|
|
778
|
-
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vp_baseUV)*uniforms.morphTargetInfluences[{X}];
|
|
779
|
-
#else
|
|
780
|
-
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vertexInputs.uv)*uniforms.morphTargetInfluences[{X}];
|
|
781
|
-
#endif
|
|
782
|
-
#endif
|
|
783
|
-
#ifdef MORPHTARGETS_UV2
|
|
784
|
-
#ifdef USE_VERTEX_PULLING
|
|
785
|
-
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vp_baseUV2)*uniforms.morphTargetInfluences[{X}];
|
|
786
|
-
#else
|
|
787
|
-
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vertexInputs.uv2)*uniforms.morphTargetInfluences[{X}];
|
|
788
|
-
#endif
|
|
789
|
-
#endif
|
|
790
|
-
#ifdef MORPHTARGETS_COLOR
|
|
791
|
-
#ifdef USE_VERTEX_PULLING
|
|
792
|
-
colorUpdated=colorUpdated+(vertexInputs.color{X}-vp_baseColor)*uniforms.morphTargetInfluences[{X}];
|
|
793
|
-
#else
|
|
794
|
-
colorUpdated=colorUpdated+(vertexInputs.color{X}-vertexInputs.color)*uniforms.morphTargetInfluences[{X}];
|
|
795
|
-
#endif
|
|
796
|
-
#endif
|
|
797
|
-
#endif
|
|
798
|
-
#endif
|
|
799
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[b]||(t.ShaderStore.IncludesShadersStoreWGSL[b]=W);var D=e.i(50331),F=e.i(3350),G=e.i(35845);let X="prePassVertex",z=`#ifdef PREPASS_DEPTH
|
|
612
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[v]||(t.ShaderStore.IncludesShadersStoreWGSL[v]=c),e.s(["vertexPullingVertexWGSL",0,{name:v,shader:c}],20958);let p="prePassVertex",m=`#ifdef PREPASS_DEPTH
|
|
800
613
|
vertexOutputs.vViewPos=(scene.view*worldPos).rgb;
|
|
801
614
|
#endif
|
|
802
615
|
#ifdef PREPASS_NORMALIZED_VIEW_DEPTH
|
|
@@ -835,7 +648,7 @@ vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWor
|
|
|
835
648
|
vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld* vec4f(positionUpdated,1.0);
|
|
836
649
|
#endif
|
|
837
650
|
#endif
|
|
838
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
651
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[p]||(t.ShaderStore.IncludesShadersStoreWGSL[p]=m),e.s(["prePassVertexWGSL",0,{name:p,shader:m}],80255);let x="uvVariableDeclaration",S=`#ifdef MAINUV{X}
|
|
839
652
|
#if !defined(UV{X})
|
|
840
653
|
var uv{X}: vec2f=vec2f(0.,0.);
|
|
841
654
|
#elif defined(USE_VERTEX_PULLING)
|
|
@@ -845,7 +658,7 @@ var uv{X}: vec2f=vertexInputs.uv{X};
|
|
|
845
658
|
#endif
|
|
846
659
|
vertexOutputs.vMainUV{X}=uv{X};
|
|
847
660
|
#endif
|
|
848
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
661
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[x]||(t.ShaderStore.IncludesShadersStoreWGSL[x]=S),e.s(["uvVariableDeclarationWGSL",0,{name:x,shader:S}],25716);let I="samplerVertexImplementation",E=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
|
|
849
662
|
if (uniforms.v_INFONAME_==0.)
|
|
850
663
|
{vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(uvUpdated,1.0,0.0)).xy;}
|
|
851
664
|
#ifdef UV2
|
|
@@ -869,12 +682,7 @@ else if (uniforms.v_INFONAME_==5.)
|
|
|
869
682
|
{vertexOutputs.v_VARYINGNAME_UV= (uniforms._MATRIXNAME_Matrix* vec4f(vertexInputs.uv6,1.0,0.0)).xy;}
|
|
870
683
|
#endif
|
|
871
684
|
#endif
|
|
872
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
873
|
-
#if defined(TANGENT) && defined(NORMAL)
|
|
874
|
-
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];
|
|
875
|
-
#endif
|
|
876
|
-
#endif
|
|
877
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[k]||(t.ShaderStore.IncludesShadersStoreWGSL[k]=j);var q=e.i(3878),K=e.i(42893);let Z="shadowsVertex",Q=`#ifdef SHADOWS
|
|
685
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[I]||(t.ShaderStore.IncludesShadersStoreWGSL[I]=E),e.s(["samplerVertexImplementationWGSL",0,{name:I,shader:E}],86752);let _="shadowsVertex",T=`#ifdef SHADOWS
|
|
878
686
|
#if defined(SHADOWCSM{X})
|
|
879
687
|
#ifdef SCENE_UBO
|
|
880
688
|
vertexOutputs.vPositionFromCamera{X}=scene.view*worldPos;
|
|
@@ -922,188 +730,168 @@ vertexOutputs.vDepthMetric{X}=(vertexOutputs.vPositionFromLight{X}.z+light{X}.de
|
|
|
922
730
|
#endif
|
|
923
731
|
#endif
|
|
924
732
|
#endif
|
|
925
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
733
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[_]||(t.ShaderStore.IncludesShadersStoreWGSL[_]=T),e.s(["shadowsVertexWGSL",0,{name:_,shader:T}],6275);let V="logDepthVertex",h=`#ifdef LOGARITHMICDEPTH
|
|
926
734
|
vertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant;
|
|
927
735
|
#endif
|
|
928
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
929
|
-
|
|
930
|
-
#
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
736
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[V]||(t.ShaderStore.IncludesShadersStoreWGSL[V]=h),e.s(["logDepthVertexWGSL",0,{name:V,shader:h}],47167)},89340,5122,49853,62077,e=>{"use strict";var t=e.i(12423);let r="morphTargetsVertexGlobalDeclaration",i=`#ifdef MORPHTARGETS
|
|
737
|
+
uniform morphTargetInfluences : array<f32,NUM_MORPH_INFLUENCERS>;
|
|
738
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
739
|
+
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>
|
|
740
|
+
{
|
|
741
|
+
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;}
|
|
742
|
+
fn readVector4FromRawSampler(targetIndex : i32,vertexIndex : f32)->vec4<f32>
|
|
743
|
+
{
|
|
744
|
+
let textureWidth: i32=i32(uniforms.morphTargetTextureInfo.y);
|
|
745
|
+
let y: i32=i32(vertexIndex)/textureWidth;let x: i32=i32(vertexIndex) % textureWidth;return textureLoad(morphTargets,vec2i(x,y),i32(uniforms.morphTargetTextureIndices[targetIndex]),0);}
|
|
934
746
|
#endif
|
|
935
|
-
#ifdef TANGENT
|
|
936
|
-
attribute tangent: vec4f;
|
|
937
747
|
#endif
|
|
938
|
-
|
|
939
|
-
|
|
748
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["morphTargetsVertexGlobalDeclarationWGSL",0,{name:r,shader:i}],89340);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
|
|
749
|
+
#ifndef MORPHTARGETS_TEXTURE
|
|
750
|
+
#ifdef MORPHTARGETS_POSITION
|
|
751
|
+
attribute position{X} : vec3<f32>;
|
|
940
752
|
#endif
|
|
941
|
-
#
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
#
|
|
945
|
-
|
|
946
|
-
#
|
|
947
|
-
#
|
|
948
|
-
|
|
949
|
-
#
|
|
950
|
-
#
|
|
951
|
-
|
|
952
|
-
#
|
|
953
|
-
#
|
|
954
|
-
|
|
955
|
-
#
|
|
956
|
-
#
|
|
957
|
-
|
|
958
|
-
#
|
|
959
|
-
#
|
|
960
|
-
|
|
961
|
-
#
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
#
|
|
965
|
-
|
|
966
|
-
#
|
|
967
|
-
#if
|
|
968
|
-
|
|
969
|
-
#endif
|
|
970
|
-
#include<bumpVertexDeclaration>
|
|
971
|
-
#include<clipPlaneVertexDeclaration>
|
|
972
|
-
#include<fogVertexDeclaration>
|
|
973
|
-
#include<__decl__lightVxFragment>[0..maxSimultaneousLights]
|
|
974
|
-
#include<morphTargetsVertexGlobalDeclaration>
|
|
975
|
-
#include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
|
|
976
|
-
#ifdef REFLECTIONMAP_SKYBOX
|
|
977
|
-
varying vPositionUVW: vec3f;
|
|
978
|
-
#endif
|
|
979
|
-
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
980
|
-
varying vDirectionW: vec3f;
|
|
981
|
-
#endif
|
|
982
|
-
#if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
|
|
983
|
-
varying vViewDepth: f32;
|
|
984
|
-
#endif
|
|
985
|
-
#include<logDepthDeclaration>
|
|
986
|
-
#include<vertexPullingDeclaration>
|
|
987
|
-
#define CUSTOM_VERTEX_DEFINITIONS
|
|
988
|
-
@vertex
|
|
989
|
-
fn main(input : VertexInputs)->FragmentInputs {
|
|
990
|
-
#define CUSTOM_VERTEX_MAIN_BEGIN
|
|
753
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
754
|
+
attribute normal{X} : vec3<f32>;
|
|
755
|
+
#endif
|
|
756
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
757
|
+
attribute tangent{X} : vec3<f32>;
|
|
758
|
+
#endif
|
|
759
|
+
#ifdef MORPHTARGETS_UV
|
|
760
|
+
attribute uv_{X} : vec2<f32>;
|
|
761
|
+
#endif
|
|
762
|
+
#ifdef MORPHTARGETS_UV2
|
|
763
|
+
attribute uv2_{X} : vec2<f32>;
|
|
764
|
+
#endif
|
|
765
|
+
#ifdef MORPHTARGETS_COLOR
|
|
766
|
+
attribute color{X} : vec4<f32>;
|
|
767
|
+
#endif
|
|
768
|
+
#elif {X}==0
|
|
769
|
+
uniform morphTargetCount: f32;
|
|
770
|
+
#endif
|
|
771
|
+
#endif
|
|
772
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[a]||(t.ShaderStore.IncludesShadersStoreWGSL[a]=n),e.s(["morphTargetsVertexDeclarationWGSL",0,{name:a,shader:n}],5122);let f="morphTargetsVertexGlobal",d=`#ifdef MORPHTARGETS
|
|
773
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
774
|
+
var vertexID : f32;
|
|
775
|
+
#endif
|
|
776
|
+
#endif
|
|
777
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["morphTargetsVertexGlobalWGSL",0,{name:f,shader:d}],49853);let o="morphTargetsVertex",s=`#ifdef MORPHTARGETS
|
|
778
|
+
#ifdef MORPHTARGETS_TEXTURE
|
|
779
|
+
#if {X}==0
|
|
780
|
+
for (var i=0; i<NUM_MORPH_INFLUENCERS; i=i+1) {if (f32(i)>=uniforms.morphTargetCount) {break;}
|
|
991
781
|
#ifdef USE_VERTEX_PULLING
|
|
992
|
-
|
|
993
|
-
#
|
|
994
|
-
|
|
782
|
+
vertexID=f32(vpVertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
783
|
+
#else
|
|
784
|
+
vertexID=f32(vertexInputs.vertexIndex)*uniforms.morphTargetTextureInfo.x;
|
|
995
785
|
#endif
|
|
996
|
-
#ifdef
|
|
997
|
-
|
|
786
|
+
#ifdef MORPHTARGETS_POSITION
|
|
787
|
+
#ifdef USE_VERTEX_PULLING
|
|
788
|
+
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vp_basePosition)*uniforms.morphTargetInfluences[i];
|
|
789
|
+
#else
|
|
790
|
+
positionUpdated=positionUpdated+(readVector3FromRawSampler(i,vertexID)-vertexInputs.position)*uniforms.morphTargetInfluences[i];
|
|
998
791
|
#endif
|
|
999
|
-
#ifdef UV1
|
|
1000
|
-
var uvUpdated: vec2f=vec2f(0.0);
|
|
1001
792
|
#endif
|
|
1002
|
-
#ifdef
|
|
1003
|
-
|
|
793
|
+
#ifdef MORPHTARGETTEXTURE_HASPOSITIONS
|
|
794
|
+
vertexID=vertexID+1.0;
|
|
795
|
+
#endif
|
|
796
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
797
|
+
#ifdef USE_VERTEX_PULLING
|
|
798
|
+
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vp_baseNormal)*uniforms.morphTargetInfluences[i];
|
|
799
|
+
#else
|
|
800
|
+
normalUpdated=normalUpdated+(readVector3FromRawSampler(i,vertexID) -vertexInputs.normal)*uniforms.morphTargetInfluences[i];
|
|
1004
801
|
#endif
|
|
1005
|
-
#ifdef VERTEXCOLOR
|
|
1006
|
-
var colorUpdated: vec4f=vec4f(0.0);
|
|
1007
802
|
#endif
|
|
803
|
+
#ifdef MORPHTARGETTEXTURE_HASNORMALS
|
|
804
|
+
vertexID=vertexID+1.0;
|
|
805
|
+
#endif
|
|
806
|
+
#ifdef MORPHTARGETS_UV
|
|
807
|
+
#ifdef USE_VERTEX_PULLING
|
|
808
|
+
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV)*uniforms.morphTargetInfluences[i];
|
|
1008
809
|
#else
|
|
1009
|
-
|
|
1010
|
-
#ifdef NORMAL
|
|
1011
|
-
var normalUpdated: vec3f=vertexInputs.normal;
|
|
810
|
+
uvUpdated=uvUpdated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv)*uniforms.morphTargetInfluences[i];
|
|
1012
811
|
#endif
|
|
1013
|
-
#ifdef TANGENT
|
|
1014
|
-
var tangentUpdated: vec4f=vertexInputs.tangent;
|
|
1015
812
|
#endif
|
|
1016
|
-
#ifdef
|
|
1017
|
-
|
|
813
|
+
#ifdef MORPHTARGETTEXTURE_HASUVS
|
|
814
|
+
vertexID=vertexID+1.0;
|
|
1018
815
|
#endif
|
|
1019
|
-
#ifdef
|
|
1020
|
-
|
|
816
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
817
|
+
#ifdef USE_VERTEX_PULLING
|
|
818
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vp_baseTangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
819
|
+
#else
|
|
820
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(readVector3FromRawSampler(i,vertexID) -vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[i],tangentUpdated.a);
|
|
1021
821
|
#endif
|
|
1022
|
-
#ifdef VERTEXCOLOR
|
|
1023
|
-
var colorUpdated: vec4f=vertexInputs.color;
|
|
1024
822
|
#endif
|
|
823
|
+
#ifdef MORPHTARGETTEXTURE_HASTANGENTS
|
|
824
|
+
vertexID=vertexID+1.0;
|
|
1025
825
|
#endif
|
|
1026
|
-
#
|
|
1027
|
-
#
|
|
1028
|
-
|
|
1029
|
-
#
|
|
1030
|
-
|
|
826
|
+
#ifdef MORPHTARGETS_UV2
|
|
827
|
+
#ifdef USE_VERTEX_PULLING
|
|
828
|
+
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vp_baseUV2)*uniforms.morphTargetInfluences[i];
|
|
829
|
+
#else
|
|
830
|
+
uv2Updated=uv2Updated+(readVector3FromRawSampler(i,vertexID).xy-vertexInputs.uv2)*uniforms.morphTargetInfluences[i];
|
|
1031
831
|
#endif
|
|
1032
|
-
#define CUSTOM_VERTEX_UPDATE_POSITION
|
|
1033
|
-
#define CUSTOM_VERTEX_UPDATE_NORMAL
|
|
1034
|
-
#include<instancesVertex>
|
|
1035
|
-
#if defined(PREPASS) && ((defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && !defined(BONES_VELOCITY_ENABLED)
|
|
1036
|
-
vertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld*vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld*vec4f(positionUpdated,1.0);
|
|
1037
832
|
#endif
|
|
833
|
+
#ifdef MORPHTARGETS_COLOR
|
|
1038
834
|
#ifdef USE_VERTEX_PULLING
|
|
1039
|
-
|
|
1040
|
-
#include<bakedVertexAnimation>(vertexInputs.matricesIndices,vp_matricesIndices,vertexInputs.matricesWeights,vp_matricesWeights,vertexInputs.matricesIndicesExtra,vp_matricesIndicesExtra,vertexInputs.matricesWeightsExtra,vp_matricesWeightsExtra)
|
|
835
|
+
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vp_baseColor)*uniforms.morphTargetInfluences[i];
|
|
1041
836
|
#else
|
|
1042
|
-
|
|
1043
|
-
#include<bakedVertexAnimation>
|
|
837
|
+
colorUpdated=colorUpdated+(readVector4FromRawSampler(i,vertexID)-vertexInputs.color)*uniforms.morphTargetInfluences[i];
|
|
1044
838
|
#endif
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
#
|
|
1049
|
-
|
|
839
|
+
#endif
|
|
840
|
+
}
|
|
841
|
+
#endif
|
|
842
|
+
#else
|
|
843
|
+
#ifdef MORPHTARGETS_POSITION
|
|
844
|
+
#ifdef USE_VERTEX_PULLING
|
|
845
|
+
positionUpdated=positionUpdated+(vertexInputs.position{X}-vp_basePosition)*uniforms.morphTargetInfluences[{X}];
|
|
1050
846
|
#else
|
|
1051
|
-
|
|
1052
|
-
normalWorld=transposeMat3(inverseMat3(normalWorld));
|
|
847
|
+
positionUpdated=positionUpdated+(vertexInputs.position{X}-vertexInputs.position)*uniforms.morphTargetInfluences[{X}];
|
|
1053
848
|
#endif
|
|
1054
|
-
vertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);
|
|
1055
849
|
#endif
|
|
850
|
+
#ifdef MORPHTARGETS_NORMAL
|
|
851
|
+
#ifdef USE_VERTEX_PULLING
|
|
852
|
+
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vp_baseNormal)*uniforms.morphTargetInfluences[{X}];
|
|
853
|
+
#else
|
|
854
|
+
normalUpdated=normalUpdated+(vertexInputs.normal{X}-vertexInputs.normal)*uniforms.morphTargetInfluences[{X}];
|
|
1056
855
|
#endif
|
|
1057
|
-
#
|
|
1058
|
-
#ifdef
|
|
1059
|
-
|
|
856
|
+
#endif
|
|
857
|
+
#ifdef MORPHTARGETS_TANGENT
|
|
858
|
+
#ifdef USE_VERTEX_PULLING
|
|
859
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vp_baseTangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
1060
860
|
#else
|
|
1061
|
-
|
|
861
|
+
tangentUpdated=vec4f(tangentUpdated.xyz+(vertexInputs.tangent{X}-vertexInputs.tangent.xyz)*uniforms.morphTargetInfluences[{X}],tangentUpdated.a);
|
|
862
|
+
#endif
|
|
1062
863
|
#endif
|
|
1063
|
-
|
|
1064
|
-
#ifdef
|
|
1065
|
-
|
|
864
|
+
#ifdef MORPHTARGETS_UV
|
|
865
|
+
#ifdef USE_VERTEX_PULLING
|
|
866
|
+
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vp_baseUV)*uniforms.morphTargetInfluences[{X}];
|
|
867
|
+
#else
|
|
868
|
+
uvUpdated=uvUpdated+(vertexInputs.uv_{X}-vertexInputs.uv)*uniforms.morphTargetInfluences[{X}];
|
|
1066
869
|
#endif
|
|
1067
|
-
#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
|
|
1068
|
-
vertexOutputs.vDirectionW=normalize((finalWorld* vec4f(positionUpdated,0.0)).xyz);
|
|
1069
870
|
#endif
|
|
1070
|
-
#
|
|
1071
|
-
#ifdef
|
|
1072
|
-
|
|
871
|
+
#ifdef MORPHTARGETS_UV2
|
|
872
|
+
#ifdef USE_VERTEX_PULLING
|
|
873
|
+
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vp_baseUV2)*uniforms.morphTargetInfluences[{X}];
|
|
1073
874
|
#else
|
|
1074
|
-
|
|
1075
|
-
#endif
|
|
1076
|
-
#endif
|
|
1077
|
-
#
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
#
|
|
1081
|
-
|
|
1082
|
-
#endif
|
|
1083
|
-
#
|
|
1084
|
-
|
|
1085
|
-
#endif
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
#
|
|
1090
|
-
#
|
|
1091
|
-
|
|
1092
|
-
#
|
|
1093
|
-
|
|
1094
|
-
#
|
|
1095
|
-
#
|
|
1096
|
-
|
|
1097
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_MATRIXNAME_,specular,_INFONAME_,SpecularInfos.x)
|
|
1098
|
-
#endif
|
|
1099
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)
|
|
1100
|
-
#include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)
|
|
1101
|
-
#include<bumpVertex>
|
|
1102
|
-
#include<clipPlaneVertex>
|
|
1103
|
-
#include<fogVertex>
|
|
1104
|
-
#include<shadowsVertex>[0..maxSimultaneousLights]
|
|
1105
|
-
#include<vertexColorMixing>
|
|
1106
|
-
#include<logDepthVertex>
|
|
1107
|
-
#define CUSTOM_VERTEX_MAIN_END
|
|
1108
|
-
}
|
|
1109
|
-
`;for(let e of(t.ShaderStore.ShadersStoreWGSL[et]||(t.ShaderStore.ShadersStoreWGSL[et]=er),[r.sceneUboDeclarationWGSL,i.meshUboDeclarationWGSL,n.defaultUboDeclarationWGSL,{name:a,shader:f},o.helperFunctionsWGSL,d.bonesDeclarationWGSL,s.bakedVertexAnimationDeclarationWGSL,u.instancesDeclarationWGSL,{name:l,shader:v},c.mainUVVaryingDeclarationWGSL,{name:m,shader:p},{name:x,shader:S},E.clipPlaneVertexDeclarationWGSL,I.fogVertexDeclarationWGSL,{name:_,shader:T},{name:N,shader:V},{name:h,shader:A},{name:U,shader:L},O.logDepthDeclarationWGSL,{name:R,shader:g},{name:P,shader:M},{name:y,shader:C},{name:b,shader:W},D.instancesVertexWGSL,F.bonesVertexWGSL,G.bakedVertexAnimationWGSL,{name:X,shader:z},{name:w,shader:B},{name:H,shader:Y},{name:k,shader:j},q.clipPlaneVertexWGSL,K.fogVertexWGSL,{name:Z,shader:Q},J.vertexColorMixingWGSL,{name:$,shader:ee}]))t.ShaderStore.IncludesShadersStoreWGSL[e.name]||(t.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["defaultVertexShaderWGSL",0,{name:et,shader:er}],14610)}]);
|
|
875
|
+
uv2Updated=uv2Updated+(vertexInputs.uv2_{X}-vertexInputs.uv2)*uniforms.morphTargetInfluences[{X}];
|
|
876
|
+
#endif
|
|
877
|
+
#endif
|
|
878
|
+
#ifdef MORPHTARGETS_COLOR
|
|
879
|
+
#ifdef USE_VERTEX_PULLING
|
|
880
|
+
colorUpdated=colorUpdated+(vertexInputs.color{X}-vp_baseColor)*uniforms.morphTargetInfluences[{X}];
|
|
881
|
+
#else
|
|
882
|
+
colorUpdated=colorUpdated+(vertexInputs.color{X}-vertexInputs.color)*uniforms.morphTargetInfluences[{X}];
|
|
883
|
+
#endif
|
|
884
|
+
#endif
|
|
885
|
+
#endif
|
|
886
|
+
#endif
|
|
887
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[o]||(t.ShaderStore.IncludesShadersStoreWGSL[o]=s),e.s(["morphTargetsVertexWGSL",0,{name:o,shader:s}],62077)},78916,e=>{"use strict";var t=e.i(12423);let r="bumpVertex",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
888
|
+
#if defined(TANGENT) && defined(NORMAL)
|
|
889
|
+
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];
|
|
890
|
+
#endif
|
|
891
|
+
#endif
|
|
892
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bumpVertexWGSL",0,{name:r,shader:i}])},44925,e=>{"use strict";var t=e.i(12423);let r="bumpVertexDeclaration",i=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
|
|
893
|
+
#if defined(TANGENT) && defined(NORMAL)
|
|
894
|
+
varying vTBN0: vec3f;varying vTBN1: vec3f;varying vTBN2: vec3f;
|
|
895
|
+
#endif
|
|
896
|
+
#endif
|
|
897
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bumpVertexDeclarationWGSL",0,{name:r,shader:i}])}]);
|