@uptimizr/dashboard 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +19 -5
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._tree.txt +2 -2
  5. package/out/_next/static/chunks/{3kalvwsf11-ss.js → 0-_j1khfoib6l.js} +119 -115
  6. package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 005bbq_px7lke.js} +2 -2
  7. package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
  8. package/out/_next/static/chunks/017pn-pen381_.js +1 -0
  9. package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
  10. package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 02qk_wmkf9at-.js} +211 -211
  11. package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
  12. package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
  13. package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
  14. package/out/_next/static/chunks/05ere0-228syf.js +1 -0
  15. package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 05h8u5lrypn5m.js} +1 -1
  16. package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
  17. package/out/_next/static/chunks/{3go-mst7n3udd.js → 05v-nubi896jg.js} +1 -1
  18. package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
  19. package/out/_next/static/chunks/{1t2exh89lnazc.js → 060iult6f68_e.js} +504 -571
  20. package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
  21. package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
  22. package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
  23. package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
  24. package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 0btmk0wmekl02.js} +2 -2
  25. package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
  26. package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
  27. package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
  28. package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
  29. package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
  30. package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 0fd-0i1yt23kz.js} +1 -1
  31. package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
  32. package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
  33. package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
  34. package/out/_next/static/chunks/{380ivzcfb4o_3.js → 0grasqqf5dw7r.js} +2 -2
  35. package/out/_next/static/chunks/{0okbyggxe6mx5.js → 0hajwk2yd-rwr.js} +1 -1
  36. package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
  37. package/out/_next/static/chunks/{1vmpltnr0cyos.js → 0j74ipw4fps-n.js} +1 -1
  38. package/out/_next/static/chunks/{03zip1uidm6x9.js → 0kj-vckdn7t5p.js} +1 -1
  39. package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
  40. package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
  41. package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
  42. package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
  43. package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
  44. package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
  45. package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
  46. package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
  47. package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 0rracz73p38mo.js} +26 -23
  48. package/out/_next/static/chunks/{3z4suna4kq4j5.js → 0sw-8gxbg4x0l.js} +568 -569
  49. package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
  50. package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
  51. package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
  52. package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
  53. package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
  54. package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
  55. package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
  56. package/out/_next/static/chunks/{35aagg46wp139.js → 0ybs1u66q26su.js} +1 -1
  57. package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
  58. package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0z004fn14pbcu.js} +1 -1
  59. package/out/_next/static/chunks/{2z9mdtudj8crz.js → 0z9erbl3llr_b.js} +226 -224
  60. package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
  61. package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
  62. package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
  63. package/out/_next/static/chunks/{1ng-fqh2_n984.js → 10_5p5-xf2aoo.js} +1 -1
  64. package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
  65. package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
  66. package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
  67. package/out/_next/static/chunks/{1ho02fc091nj2.js → 129m5i93ltoym.js} +1 -1
  68. package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
  69. package/out/_next/static/chunks/{3n-7bcmfbh299.js → 13zcn4lv0qj76.js} +11 -11
  70. package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
  71. package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 15o4_2t-l3rj5.js} +1 -1
  72. package/out/_next/static/chunks/{00o9hr_3hd0r8.js → 175st2ogkg_1o.js} +1 -1
  73. package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
  74. package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
  75. package/out/_next/static/chunks/{1solqr18og2ot.js → 1by60_b14x-3o.js} +1 -1
  76. package/out/_next/static/chunks/1cyq7i39885sl.js +1 -0
  77. package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
  78. package/out/_next/static/chunks/1dp1s1t-y7gal.js +1 -0
  79. package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
  80. package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1dt30s_sp8415.js} +1 -1
  81. package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 1e8_jl2cxd3rp.js} +576 -576
  82. package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
  83. package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
  84. package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
  85. package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
  86. package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 1gttu-n9am66k.js} +255 -253
  87. package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
  88. package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
  89. package/out/_next/static/chunks/{17aahvhpls1l7.js → 1l_3oidssbhns.js} +298 -231
  90. package/out/_next/static/chunks/1m9zc5gm-327d.js +112 -0
  91. package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
  92. package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
  93. package/out/_next/static/chunks/1nix_lulkpklo.js +1 -0
  94. package/out/_next/static/chunks/{141tngxsk32hq.js → 1ntqovuz2c217.js} +1 -1
  95. package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
  96. package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
  97. package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1q4lkgxfnqnew.js} +1 -1
  98. package/out/_next/static/chunks/{2khh_pmm224k5.js → 1qg1l7t00nyib.js} +97 -300
  99. package/out/_next/static/chunks/{1qxhgauuomthl.js → 1rcdimhu0qhlu.js} +407 -407
  100. package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
  101. package/out/_next/static/chunks/1ses023uud001.js +1 -0
  102. package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
  103. package/out/_next/static/chunks/{25gf6xn9u1c57.js → 1t9i20i5-f8ze.js} +1 -1
  104. package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 1tgj55b305g4h.js} +1 -1
  105. package/out/_next/static/chunks/{255knovck7pv2.js → 1u8snlm6a7uhi.js} +4 -4
  106. package/out/_next/static/chunks/{04_3ri5emyfcu.js → 1ug4k-1zhr63a.js} +1 -1
  107. package/out/_next/static/chunks/{3-_08i4_7yhno.js → 1uh9zgsy69g92.js} +1 -1
  108. package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
  109. package/out/_next/static/chunks/1vurgl6oz2qey.js +17 -0
  110. package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
  111. package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
  112. package/out/_next/static/chunks/{2zyjw8g4tiu51.js → 1zj4307ugq0qz.js} +1 -1
  113. package/out/_next/static/chunks/{425epvuw3yy-n.js → 1zkd8v-qka--j.js} +169 -174
  114. package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
  115. package/out/_next/static/chunks/{267q_eg-c6f6m.js → 1zm6eo861i3c8.js} +1 -1
  116. package/out/_next/static/chunks/{1e_-_7biavwmb.js → 1zp9363yfhpom.js} +1 -1
  117. package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
  118. package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
  119. package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
  120. package/out/_next/static/chunks/209sxygecny37.js +1 -0
  121. package/out/_next/static/chunks/{1ccn725by19i1.js → 216uiih3_vdfd.js} +1 -1
  122. package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
  123. package/out/_next/static/chunks/22yqh0zlo_vwr.js +1 -0
  124. package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
  125. package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
  126. package/out/_next/static/chunks/{0zf26k6juhlzo.js → 267prao6fyt22.js} +23 -20
  127. package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
  128. package/out/_next/static/chunks/26y9sv8_-ykxf.js +1 -0
  129. package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
  130. package/out/_next/static/chunks/{1x99m91nt1m3b.js → 271333m8y3k0e.js} +1 -1
  131. package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
  132. package/out/_next/static/chunks/{077eo-0dhbxz-.js → 2a07so920b6aa.js} +1 -1
  133. package/out/_next/static/chunks/2a2oy8ryz2tsk.js +1 -0
  134. package/out/_next/static/chunks/2ao-3jzz7yw3p.js +532 -0
  135. package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
  136. package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
  137. package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
  138. package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
  139. package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 2c721vfva711t.js} +1 -1
  140. package/out/_next/static/chunks/{442e2l3jzxd-_.js → 2d2kl_m64j9cb.js} +1 -1
  141. package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
  142. package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
  143. package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
  144. package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
  145. package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
  146. package/out/_next/static/chunks/2h249uvhh2sij.js +114 -0
  147. package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2izok2otbk8-2.js} +505 -505
  148. package/out/_next/static/chunks/{0yvevihll7sz-.js → 2j120dkh7q3uf.js} +1 -1
  149. package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
  150. package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
  151. package/out/_next/static/chunks/{2-p206i_ihx09.js → 2kok6zedeeltw.js} +1 -1
  152. package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
  153. package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 2lsvk7xcfkarc.js} +1 -1
  154. package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
  155. package/out/_next/static/chunks/{00xc-0pj7on2s.js → 2n3xu_wbvtj7h.js} +29 -29
  156. package/out/_next/static/chunks/{1oljzgz5jistn.js → 2of8q0kaeqpf0.js} +1 -1
  157. package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
  158. package/out/_next/static/chunks/2phl5ta4iim7l.js +12 -0
  159. package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
  160. package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
  161. package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
  162. package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
  163. package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 2r96kyeehsji9.js} +1 -1
  164. package/out/_next/static/chunks/{3gyyjsot8mdav.js → 2rmc6ru7mc-kg.js} +1 -1
  165. package/out/_next/static/chunks/{1ephzzweysylq.js → 2s6kpclh6ie7o.js} +901 -973
  166. package/out/_next/static/chunks/{0vso09vdz38sr.js → 2sys9nj8lo3uk.js} +1 -1
  167. package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 2tc3e-iqv71y_.js} +1 -1
  168. package/out/_next/static/chunks/2uo6vm7mfgrbf.js +1 -0
  169. package/out/_next/static/chunks/2urx6fow8c8c9.js +505 -0
  170. package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
  171. package/out/_next/static/chunks/{22rl_arnzs-ve.js → 2w99knknr5i8c.js} +1 -1
  172. package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
  173. package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
  174. package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
  175. package/out/_next/static/chunks/{2e46-2ubc90do.js → 2y8i7_nxm4r05.js} +5 -5
  176. package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
  177. package/out/_next/static/chunks/{309f81l5ucsb_.js → 2z_iab7ozohhq.js} +60 -60
  178. package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
  179. package/out/_next/static/chunks/{0t89-lfct-7m6.js → 302qk2fjdrthp.js} +5 -5
  180. package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
  181. package/out/_next/static/chunks/{0tn-9w46cwydp.js → 30n4y_uu8chbh.js} +515 -514
  182. package/out/_next/static/chunks/{2-hdejef-mpka.js → 32_c4mbb6j1l6.js} +372 -169
  183. package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
  184. package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 33i36o_l69sm5.js} +1 -1
  185. package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
  186. package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
  187. package/out/_next/static/chunks/{11p92pnn5el0v.js → 35ntbr_c-yx44.js} +1 -1
  188. package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 35sne1llxnc-m.js} +57 -57
  189. package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
  190. package/out/_next/static/chunks/{3-x7522okdy-7.js → 3772oce1n3t_g.js} +1 -1
  191. package/out/_next/static/chunks/{1rb8wewjbdisv.js → 37cnbm5ft1mqf.js} +1 -1
  192. package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
  193. package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 3_dgblylldcgb.js} +1 -1
  194. package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
  195. package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
  196. package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
  197. package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
  198. package/out/_next/static/chunks/{43hwl25uke0l_.js → 3eve5y7fpzx2h.js} +1 -1
  199. package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
  200. package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
  201. package/out/_next/static/chunks/{1n_gxvu31aofy.js → 3f8qelpscqfym.js} +2 -2
  202. package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
  203. package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 3h6akt2uu05ku.js} +29 -29
  204. package/out/_next/static/chunks/{3w4qettzp7khe.js → 3huu0tqmxwowu.js} +523 -522
  205. package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
  206. package/out/_next/static/chunks/{1qsut_e3msg0l.js → 3ipx7xbxchsq9.js} +1 -1
  207. package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3j9xvdz55bi4p.js} +345 -345
  208. package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
  209. package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
  210. package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3njwfothmmg7u.js} +3 -3
  211. package/out/_next/static/chunks/{0bj_310rugcn1.js → 3oqxl46ukaojj.js} +11 -11
  212. package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 3qn6r8-0u6dij.js} +352 -352
  213. package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
  214. package/out/_next/static/chunks/3rlp9yr75liz7.js +1 -0
  215. package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3sa_hlx3konc7.js} +1 -1
  216. package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
  217. package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
  218. package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 3utpc-fc6_y0f.js} +1 -1
  219. package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
  220. package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
  221. package/out/_next/static/chunks/{1og49_atcksim.js → 3vbamaoiuk9yj.js} +1 -1
  222. package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
  223. package/out/_next/static/chunks/{1nqojcig-0m3c.js → 3w59kt5ztyvoq.js} +1 -1
  224. package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
  225. package/out/_next/static/chunks/3xl-op0hwxytg.js +272 -0
  226. package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
  227. package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
  228. package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 3zdtteq-r2fs5.js} +3 -3
  229. package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
  230. package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3zs7l4362msjd.js} +1 -1
  231. package/out/_next/static/chunks/40etabvml_71y.js +1 -0
  232. package/out/_next/static/chunks/417jkzz0slv9m.js +1 -0
  233. package/out/_next/static/chunks/41b5gpyqbj58m.js +338 -0
  234. package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
  235. package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
  236. package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 42ymanq326mo7.js} +1 -1
  237. package/out/_next/static/chunks/{3w_umk1xtj6to.js → 43fp64xnfy646.js} +1 -1
  238. package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
  239. package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
  240. package/out/_next/static/chunks/{1ozi46t8jajqh.js → 44zi0gl0a6a8w.js} +1 -1
  241. package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
  242. package/out/_not-found/__next._full.txt +12 -12
  243. package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
  244. package/out/_not-found/__next._tree.txt +2 -2
  245. package/out/_not-found.html +1 -1
  246. package/out/_not-found.txt +12 -12
  247. package/out/index.html +1 -1
  248. package/out/index.txt +11 -11
  249. package/package.json +15 -15
  250. package/out/__next._head.txt +0 -6
  251. package/out/__next._index.txt +0 -5
  252. package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
  253. package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
  254. package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
  255. package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
  256. package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
  257. package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
  258. package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
  259. package/out/_next/static/chunks/04j9pexbmysdy.js +0 -1
  260. package/out/_next/static/chunks/055baac5e-c2o.js +0 -1
  261. package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
  262. package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
  263. package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
  264. package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
  265. package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
  266. package/out/_next/static/chunks/099ilz3dmm1jw.js +0 -1
  267. package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
  268. package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
  269. package/out/_next/static/chunks/0c5d3qn2mb3ew.js +0 -1
  270. package/out/_next/static/chunks/0dck67in84de0.js +0 -1
  271. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
  272. package/out/_next/static/chunks/0dva036n8ab62.js +0 -1
  273. package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
  274. package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
  275. package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
  276. package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
  277. package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
  278. package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
  279. package/out/_next/static/chunks/0n-zml1gn0o1u.js +0 -1
  280. package/out/_next/static/chunks/0n92hec_jb_-_.js +0 -1
  281. package/out/_next/static/chunks/0pv2wirx45e1m.js +0 -1
  282. package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
  283. package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
  284. package/out/_next/static/chunks/0s84ekz_f9ngx.js +0 -1
  285. package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
  286. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
  287. package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
  288. package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
  289. package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
  290. package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
  291. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
  292. package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
  293. package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
  294. package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
  295. package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
  296. package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
  297. package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
  298. package/out/_next/static/chunks/18wa83g0qfh-b.js +0 -1
  299. package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
  300. package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
  301. package/out/_next/static/chunks/1__nujzr9e352.js +0 -3
  302. package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
  303. package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
  304. package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
  305. package/out/_next/static/chunks/1di5enkavl9vx.js +0 -4
  306. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
  307. package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
  308. package/out/_next/static/chunks/1gnggc6370ji-.js +0 -1
  309. package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
  310. package/out/_next/static/chunks/1hsvckd0sgdgr.js +0 -1
  311. package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
  312. package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
  313. package/out/_next/static/chunks/1mrvp94tietcv.js +0 -1
  314. package/out/_next/static/chunks/1mvadj46owrck.js +0 -1
  315. package/out/_next/static/chunks/1nasz7q3tvb53.js +0 -1
  316. package/out/_next/static/chunks/1o3ggu95lfu6i.js +0 -1
  317. package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
  318. package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
  319. package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
  320. package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
  321. package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
  322. package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
  323. package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
  324. package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
  325. package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
  326. package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
  327. package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
  328. package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
  329. package/out/_next/static/chunks/2bm95r0011asw.js +0 -1
  330. package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
  331. package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
  332. package/out/_next/static/chunks/2c2dspoukng-5.js +0 -1
  333. package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
  334. package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
  335. package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
  336. package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
  337. package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
  338. package/out/_next/static/chunks/2ies66gmou203.js +0 -1
  339. package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
  340. package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
  341. package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
  342. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
  343. package/out/_next/static/chunks/2o8k8x5zcepfy.js +0 -1
  344. package/out/_next/static/chunks/2pcdnd4nzcw4c.js +0 -1
  345. package/out/_next/static/chunks/2q0rz76kj6h5z.js +0 -1
  346. package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
  347. package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
  348. package/out/_next/static/chunks/2wi7y3sfqyqdo.js +0 -3
  349. package/out/_next/static/chunks/2ymtumj-hfrjo.js +0 -1
  350. package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
  351. package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
  352. package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
  353. package/out/_next/static/chunks/31ei992g8gqz9.js +0 -1
  354. package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
  355. package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
  356. package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
  357. package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
  358. package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
  359. package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
  360. package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
  361. package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
  362. package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
  363. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
  364. package/out/_next/static/chunks/3k-gz8qf-mj-p.js +0 -1
  365. package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
  366. package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
  367. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
  368. package/out/_next/static/chunks/3mvaub8qjdyuc.js +0 -1
  369. package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
  370. package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
  371. package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
  372. package/out/_next/static/chunks/3tdzweqszru4y.js +0 -1
  373. package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
  374. package/out/_next/static/chunks/3y_51bmdnc0ey.js +0 -1
  375. package/out/_next/static/chunks/3yr66ufoli71t.js +0 -1
  376. package/out/_next/static/chunks/41qxc142snm22.js +0 -1
  377. package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
  378. package/out/_next/static/chunks/turbopack-3r8yn0j92tqw_.js +0 -1
  379. package/out/_not-found/__next._head.txt +0 -6
  380. package/out/_not-found/__next._index.txt +0 -5
  381. package/out/_not-found/__next._not-found.txt +0 -5
  382. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
  383. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
  384. /package/out/_next/static/{BvOGdrl2Cfw-jVV73WY6a → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
@@ -1,452 +1,110 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87027,e=>{"use strict";var i=e.i(37875);let t="helperFunctions",r=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
2
- const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
3
- #define saturate(x) clamp(x,0.0,1.0)
4
- #define absEps(x) abs(x)+Epsilon
5
- #define maxEps(x) max(x,Epsilon)
6
- #define saturateEps(x) clamp(x,Epsilon,1.0)
7
- mat3 transposeMat3(mat3 inMatrix) {vec3 i0=inMatrix[0];vec3 i1=inMatrix[1];vec3 i2=inMatrix[2];mat3 outMatrix=mat3(
8
- vec3(i0.x,i1.x,i2.x),
9
- vec3(i0.y,i1.y,i2.y),
10
- vec3(i0.z,i1.z,i2.z)
11
- );return outMatrix;}
12
- mat3 inverseMat3(mat3 inMatrix) {float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];float b01=a22*a11-a12*a21;float b11=-a22*a10+a12*a20;float b21=a21*a10-a11*a20;float det=a00*b01+a01*b11+a02*b21;return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
13
- b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
14
- b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;}
15
- #if USE_EXACT_SRGB_CONVERSIONS
16
- vec3 toLinearSpaceExact(vec3 color)
17
- {vec3 nearZeroSection=0.0773993808*color;vec3 remainingSection=pow(0.947867299*(color+vec3(0.055)),vec3(2.4));
18
- #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
19
- return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.04045)));
20
- #else
21
- return
22
- vec3(
23
- color.r<=0.04045 ? nearZeroSection.r : remainingSection.r,
24
- color.g<=0.04045 ? nearZeroSection.g : remainingSection.g,
25
- color.b<=0.04045 ? nearZeroSection.b : remainingSection.b);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59780,8005,69071,35966,65123,1440,e=>{"use strict";var i=e.i(2342);let t="bonesDeclaration",r=`#if NUM_BONE_INFLUENCERS>0
2
+ attribute vec4 matricesIndices;attribute vec4 matricesWeights;
3
+ #if NUM_BONE_INFLUENCERS>4
4
+ attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
26
5
  #endif
27
- }
28
- vec3 toGammaSpaceExact(vec3 color)
29
- {vec3 nearZeroSection=12.92*color;vec3 remainingSection=1.055*pow(color,vec3(0.41666))-vec3(0.055);
30
- #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
31
- return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.0031308)));
6
+ #ifndef BAKED_VERTEX_ANIMATION_TEXTURE
7
+ #ifdef BONETEXTURE
8
+ uniform highp sampler2D boneSampler;uniform vec2 boneTextureInfo;
32
9
  #else
33
- return
34
- vec3(
35
- color.r<=0.0031308 ? nearZeroSection.r : remainingSection.r,
36
- color.g<=0.0031308 ? nearZeroSection.g : remainingSection.g,
37
- color.b<=0.0031308 ? nearZeroSection.b : remainingSection.b);
10
+ uniform mat4 mBones[BonesPerMesh];
38
11
  #endif
39
- }
12
+ #ifdef BONES_VELOCITY_ENABLED
13
+ uniform mat4 mPreviousBones[BonesPerMesh];
40
14
  #endif
41
- float toLinearSpace(float color)
15
+ #ifdef BONETEXTURE
16
+ #define inline
17
+ mat4 readMatrixFromRawSampler(sampler2D smp,float index)
42
18
  {
43
- #if USE_EXACT_SRGB_CONVERSIONS
44
- float nearZeroSection=0.0773993808*color;float remainingSection=pow(0.947867299*(color+0.055),2.4);return color<=0.04045 ? nearZeroSection : remainingSection;
19
+ #if defined(WEBGL2) || defined(WEBGPU)
20
+ int offset=int(index)*4;
21
+ int textureWidth=int(boneTextureInfo.x);int y=int(offset)/textureWidth;int x=int(offset) % textureWidth;vec4 m0=texelFetch(smp,ivec2(x+0,y),0);vec4 m1=texelFetch(smp,ivec2(x+1,y),0);vec4 m2=texelFetch(smp,ivec2(x+2,y),0);vec4 m3=texelFetch(smp,ivec2(x+3,y),0);return mat4(m0,m1,m2,m3);
45
22
  #else
46
- return pow(color,LinearEncodePowerApprox);
23
+ float offset=index*4.0;float y=floor(offset/boneTextureInfo.x);float x=offset-y*boneTextureInfo.x;float dy=1.0/boneTextureInfo.y;float dx=1.0/boneTextureInfo.x;vec4 m0=texture2D(smp,vec2(dx*(x+0.5),dy*(y+0.5)));vec4 m1=texture2D(smp,vec2(dx*(x+1.5),dy*(y+0.5)));vec4 m2=texture2D(smp,vec2(dx*(x+2.5),dy*(y+0.5)));vec4 m3=texture2D(smp,vec2(dx*(x+3.5),dy*(y+0.5)));
24
+ return mat4(m0,m1,m2,m3);
47
25
  #endif
48
26
  }
49
- vec3 toLinearSpace(vec3 color)
50
- {
51
- #if USE_EXACT_SRGB_CONVERSIONS
52
- return toLinearSpaceExact(color);
53
- #else
54
- return pow(color,vec3(LinearEncodePowerApprox));
55
27
  #endif
56
- }
57
- vec4 toLinearSpace(vec4 color)
58
- {
59
- #if USE_EXACT_SRGB_CONVERSIONS
60
- return vec4(toLinearSpaceExact(color.rgb),color.a);
61
- #else
62
- return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
63
28
  #endif
64
- }
65
- float toGammaSpace(float color)
66
- {
67
- #if USE_EXACT_SRGB_CONVERSIONS
68
- float nearZeroSection=12.92*color;float remainingSection=1.055*pow(color,0.41666)-0.055;return color<=0.0031308 ? nearZeroSection : remainingSection;
69
- #else
70
- return pow(color,GammaEncodePowerApprox);
71
29
  #endif
72
- }
73
- vec3 toGammaSpace(vec3 color)
74
- {
75
- #if USE_EXACT_SRGB_CONVERSIONS
76
- return toGammaSpaceExact(color);
77
- #else
78
- return pow(color,vec3(GammaEncodePowerApprox));
30
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["bonesDeclaration",0,{name:t,shader:r}],59780);let a="bakedVertexAnimationDeclaration",n=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
31
+ uniform float bakedVertexAnimationTime;
32
+ #if !defined(WEBGL2) && !defined(WEBGPU)
33
+ uniform vec2 bakedVertexAnimationTextureSizeInverted;
79
34
  #endif
80
- }
81
- vec4 toGammaSpace(vec4 color)
35
+ uniform vec4 bakedVertexAnimationSettings;uniform sampler2D bakedVertexAnimationTexture;
36
+ #ifdef INSTANCES
37
+ attribute vec4 bakedVertexAnimationSettingsInstanced;
38
+ #endif
39
+ #define inline
40
+ mat4 readMatrixFromRawSamplerVAT(sampler2D smp,float index,float frame)
82
41
  {
83
- #if USE_EXACT_SRGB_CONVERSIONS
84
- return vec4(toGammaSpaceExact(color.rgb),color.a);
42
+ #if defined(WEBGL2) || defined(WEBGPU)
43
+ int offset=int(index)*4;int frameUV=int(frame);vec4 m0=texelFetch(smp,ivec2(offset+0,frameUV),0);vec4 m1=texelFetch(smp,ivec2(offset+1,frameUV),0);vec4 m2=texelFetch(smp,ivec2(offset+2,frameUV),0);vec4 m3=texelFetch(smp,ivec2(offset+3,frameUV),0);return mat4(m0,m1,m2,m3);
85
44
  #else
86
- return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
45
+ float offset=index*4.0;float frameUV=(frame+0.5)*bakedVertexAnimationTextureSizeInverted.y;float dx=bakedVertexAnimationTextureSizeInverted.x;vec4 m0=texture2D(smp,vec2(dx*(offset+0.5),frameUV));vec4 m1=texture2D(smp,vec2(dx*(offset+1.5),frameUV));vec4 m2=texture2D(smp,vec2(dx*(offset+2.5),frameUV));vec4 m3=texture2D(smp,vec2(dx*(offset+3.5),frameUV));return mat4(m0,m1,m2,m3);
87
46
  #endif
88
47
  }
89
- float square(float value)
90
- {return value*value;}
91
- vec3 square(vec3 value)
92
- {return value*value;}
93
- float pow5(float value) {float sq=value*value;return sq*sq*value;}
94
- vec3 double_refract(vec3 I,vec3 N,float eta) {vec3 Tfront=refract(I,N,1.0/eta);vec3 Nback=normalize(reflect(N,Tfront));return refract(Tfront,-Nback,eta);}
95
- float getLuminanceUnclamped(vec3 color)
96
- {return dot(color,LuminanceEncodeApprox);}
97
- float getLuminance(vec3 color)
98
- {return saturate(getLuminanceUnclamped(color));}
99
- float getRand(vec2 seed) {return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);}
100
- float dither(vec2 seed,float varianceAmount) {float rand=getRand(seed);float normVariance=varianceAmount/255.0;float dither=mix(-normVariance,normVariance,rand);return dither;}
101
- const float rgbdMaxRange=255.;vec4 toRGBD(vec3 color) {float maxRGB=maxEps(max(color.r,max(color.g,color.b)));float D =max(rgbdMaxRange/maxRGB,1.);D =saturate(floor(D)/255.);vec3 rgb=color.rgb*D;rgb=toGammaSpace(rgb);return vec4(saturate(rgb),D);}
102
- vec3 fromRGBD(vec4 rgbd) {rgbd.rgb=toLinearSpace(rgbd.rgb);return rgbd.rgb/rgbd.a;}
103
- vec3 parallaxCorrectNormal( vec3 vertexPos,vec3 origVec,vec3 cubeSize,vec3 cubePos ) {vec3 invOrigVec=vec3(1.)/origVec;vec3 halfSize=cubeSize*0.5;vec3 intersecAtMaxPlane=(cubePos+halfSize-vertexPos)*invOrigVec;vec3 intersecAtMinPlane=(cubePos-halfSize-vertexPos)*invOrigVec;vec3 largestIntersec=max(intersecAtMaxPlane,intersecAtMinPlane);float distance=min(min(largestIntersec.x,largestIntersec.y),largestIntersec.z);vec3 intersectPositionWS=vertexPos+origVec*distance;return intersectPositionWS-cubePos;}
104
- vec3 equirectangularToCubemapDirection(vec2 uv) {float longitude=uv.x*TWO_PI-PI;float latitude=HALF_PI-uv.y*PI;vec3 direction;direction.x=cos(latitude)*sin(longitude);direction.y=sin(latitude);direction.z=cos(latitude)*cos(longitude);return direction;}
105
- float sqrtClamped(float value) {return sqrt(max(value,0.));}
106
- float avg(vec3 value) {return dot(value,vec3(0.333333333));}
107
- #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
108
- uint extractBits(uint value,int offset,int width) {return (value>>offset) & ((1u<<width)-1u);}
109
- int onlyBitPosition(uint value) {return (floatBitsToInt(float(value))>>23)-0x7f;}
110
- vec3 singleScatterToMultiScatterAlbedo(vec3 rho_ss) {vec3 s=sqrt(max(vec3(1.0)-rho_ss,vec3(0.0)));return (vec3(1.0)-s)*(vec3(1.0)-vec3(0.139)*s)/(vec3(1.0)+vec3(1.17)*s);}
111
- vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return 1.0-s*s;}
112
- vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms,float aniso) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return (1.0-s*s)/maxEps(1.0-aniso*s*s);}
113
- float min3(vec3 v) {return min(v.x,min(v.y,v.z));}
114
- float max3(vec3 v) {return max(v.x,max(v.y,v.z));}
115
- float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
116
- vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
117
- uint2float(rstate*2447445414u));}
118
48
  #endif
119
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["helperFunctions",0,{name:t,shader:r}])},23044,e=>{"use strict";var i=e.i(37875);let t="sceneUboDeclaration",r=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
120
- #ifdef MULTIVIEW
121
- mat4 viewProjectionR;
122
- #endif
123
- mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
124
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["sceneUboDeclaration",0,{name:t,shader:r}])},64010,46349,85394,e=>{"use strict";var i=e.i(37875);let t="meshUboDeclaration",r=`#ifdef WEBGL2
125
- uniform mat4 world;uniform float visibility;
126
- #else
127
- layout(std140,column_major) uniform;uniform Mesh
128
- {mat4 world;float visibility;};
49
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bakedVertexAnimationDeclaration",0,{name:a,shader:n}],8005);let o="instancesDeclaration",s=`#ifdef INSTANCES
50
+ attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
51
+ #ifdef INSTANCESCOLOR
52
+ attribute vec4 instanceColor;
129
53
  #endif
130
- #define WORLD_UBO
131
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["meshUboDeclaration",0,{name:t,shader:r}],64010);let a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
132
- varying vec2 vMainUV{X};
54
+ #if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
55
+ uniform mat4 world;
56
+ #endif
57
+ #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
58
+ attribute vec4 previousWorld0;attribute vec4 previousWorld1;attribute vec4 previousWorld2;attribute vec4 previousWorld3;
59
+ #ifdef THIN_INSTANCES
60
+ uniform mat4 previousWorld;
133
61
  #endif
134
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["mainUVVaryingDeclaration",0,{name:a,shader:n}],46349);let o="logDepthDeclaration",s=`#ifdef LOGARITHMICDEPTH
135
- uniform float logarithmicDepthConstant;varying float vFragmentDepth;
136
62
  #endif
137
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["logDepthDeclaration",0,{name:o,shader:s}],85394)},98932,e=>{"use strict";var i=e.i(37875);let t="harmonicsFunctions",r=`#ifdef USESPHERICALFROMREFLECTIONMAP
138
- #ifdef SPHERICAL_HARMONICS
139
- vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
140
- + vSphericalL1_1*(normal.y)
141
- + vSphericalL10*(normal.z)
142
- + vSphericalL11*(normal.x)
143
- + vSphericalL2_2*(normal.y*normal.x)
144
- + vSphericalL2_1*(normal.y*normal.z)
145
- + vSphericalL20*((3.0*normal.z*normal.z)-1.0)
146
- + vSphericalL21*(normal.z*normal.x)
147
- + vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
148
63
  #else
149
- vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
64
+ #if !defined(WORLD_UBO)
65
+ uniform mat4 world;
150
66
  #endif
67
+ #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
68
+ uniform mat4 previousWorld;
151
69
  #endif
152
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["harmonicsFunctions",0,{name:t,shader:r}])},85916,e=>{"use strict";var i=e.i(37875);let t="pbrBRDFFunctions",r=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
153
- #define BRDF_DIFFUSE_MODEL_EON 0
154
- #define BRDF_DIFFUSE_MODEL_BURLEY 1
155
- #define BRDF_DIFFUSE_MODEL_LAMBERT 2
156
- #define BRDF_DIFFUSE_MODEL_LEGACY 3
157
- #define DIELECTRIC_SPECULAR_MODEL_GLTF 0
158
- #define DIELECTRIC_SPECULAR_MODEL_OPENPBR 1
159
- #define CONDUCTOR_SPECULAR_MODEL_GLTF 0
160
- #define CONDUCTOR_SPECULAR_MODEL_OPENPBR 1
161
- #if !defined(PBR_VERTEX_SHADER) && !defined(OPENPBR_VERTEX_SHADER)
162
- #ifdef MS_BRDF_ENERGY_CONSERVATION
163
- vec3 getEnergyConservationFactor(const vec3 specularEnvironmentR0,const vec3 environmentBrdf) {return 1.0+specularEnvironmentR0*(1.0/environmentBrdf.y-1.0);}
164
70
  #endif
165
- #if CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR
166
- #define F82_COS_THETA_MAX 0.142857143
167
- #define F82_ONE_MINUS_CTM_POW5 0.462664366
168
- #define F82_ONE_MINUS_CTM_POW6 0.396569457
169
- #define F82_B_DENOMINATOR_RECIP 17.6512785
170
- #define BRDF_Z_SCALE 16.0
171
- vec3 getF82Specular(float NdotV,vec3 F0,vec3 edgeTint,float roughness) {vec3 white_minus_F0=vec3(1.0)-F0;vec3 b=(F0+white_minus_F0*F82_ONE_MINUS_CTM_POW5)*(vec3(1.0)-edgeTint)*F82_B_DENOMINATOR_RECIP;float cos_theta=max(roughness,NdotV);float one_minus_cos_theta=1.0-cos_theta;vec3 offset_from_F0=(white_minus_F0-b*cos_theta*one_minus_cos_theta)*pow(one_minus_cos_theta,5.0);return clamp(F0+offset_from_F0,0.0,1.0);}
172
- vec3 getF82B(vec3 F0,vec3 edgeTint) {return (F0+(vec3(1.0)-F0)*F82_ONE_MINUS_CTM_POW5)*(vec3(1.0)-edgeTint)*F82_B_DENOMINATOR_RECIP;}
173
- vec3 getF82DirectionalAlbedo(vec3 F0,vec3 F90,vec3 b,vec3 environmentBrdf) {return (F90-F0)*environmentBrdf.x+F0*environmentBrdf.y-b*environmentBrdf.z;}
174
- vec3 getF82AverageFresnel(vec3 F0,vec3 b) {return F0+(vec3(1.0)-F0)/21.0-b/126.0;}
71
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["instancesDeclaration",0,{name:o,shader:s}],69071);let f="instancesVertex",l=`#ifdef INSTANCES
72
+ mat4 finalWorld=mat4(world0,world1,world2,world3);
73
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
74
+ mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
75
+ previousWorld2,previousWorld3);
175
76
  #endif
176
- #ifdef FUZZENVIRONMENTBRDF
177
- vec3 getFuzzBRDFLookup(float NdotV,float perceptualRoughness) {vec2 UV=vec2(perceptualRoughness,NdotV);vec4 brdfLookup=texture2D(environmentFuzzBrdfSampler,UV);const vec2 RiRange=vec2(0.0,0.75);const vec2 ARange =vec2(0.005,0.88);const vec2 BRange =vec2(-0.18,0.002);brdfLookup.r=mix(ARange.x, ARange.y, brdfLookup.r);brdfLookup.g=mix(BRange.x, BRange.y, brdfLookup.g);brdfLookup.b=mix(RiRange.x,RiRange.y,brdfLookup.b);return brdfLookup.rgb;}
77
+ #ifdef THIN_INSTANCES
78
+ finalWorld=world*finalWorld;
79
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
80
+ finalPreviousWorld=previousWorld*finalPreviousWorld;
178
81
  #endif
179
- #ifdef ENVIRONMENTBRDF
180
- vec3 getBRDFLookup(float NdotV,float perceptualRoughness) {vec2 UV=vec2(NdotV,perceptualRoughness);vec4 brdfLookup=texture2D(environmentBrdfSampler,UV);
181
- #ifdef ENVIRONMENTBRDF_RGBD
182
- brdfLookup.rgb=fromRGBD(brdfLookup.rgba);
183
82
  #endif
184
- return brdfLookup.rgb;}
185
- vec3 getReflectanceFromBRDFLookup(const vec3 specularEnvironmentR0,const vec3 specularEnvironmentR90,const vec3 environmentBrdf) {
186
- #ifdef BRDF_V_HEIGHT_CORRELATED
187
- vec3 reflectance=(specularEnvironmentR90-specularEnvironmentR0)*environmentBrdf.x+specularEnvironmentR0*environmentBrdf.y;
188
83
  #else
189
- vec3 reflectance=specularEnvironmentR0*environmentBrdf.x+specularEnvironmentR90*environmentBrdf.y;
84
+ mat4 finalWorld=world;
85
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
86
+ mat4 finalPreviousWorld=previousWorld;
190
87
  #endif
191
- return reflectance;}
192
- vec3 getReflectanceFromBRDFLookup(const vec3 specularEnvironmentR0,const vec3 environmentBrdf) {
193
- #ifdef BRDF_V_HEIGHT_CORRELATED
194
- vec3 reflectance=mix(environmentBrdf.xxx,environmentBrdf.yyy,specularEnvironmentR0);
195
- #else
196
- vec3 reflectance=specularEnvironmentR0*environmentBrdf.x+environmentBrdf.y;
197
88
  #endif
198
- return reflectance;}
89
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["instancesVertex",0,{name:f,shader:l}],35966);let c="bonesVertex",d=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
90
+ #if NUM_BONE_INFLUENCERS>0
91
+ mat4 influence;
92
+ #ifdef BONETEXTURE
93
+ influence=readMatrixFromRawSampler(boneSampler,matricesIndices[0])*matricesWeights[0];
94
+ #if NUM_BONE_INFLUENCERS>1
95
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[1])*matricesWeights[1];
199
96
  #endif
200
- /* NOT USED
201
- #if defined(SHEEN) && defined(SHEEN_SOFTER)
202
- float getBRDFLookupCharlieSheen(float NdotV,float perceptualRoughness)
203
- {float c=1.0-NdotV;float c3=c*c*c;return 0.65584461*c3+1.0/(4.16526551+exp(-7.97291361*perceptualRoughness+6.33516894));}
97
+ #if NUM_BONE_INFLUENCERS>2
98
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[2])*matricesWeights[2];
204
99
  #endif
205
- */
206
- #if !defined(ENVIRONMENTBRDF) || defined(REFLECTIONMAP_SKYBOX) || defined(ALPHAFRESNEL)
207
- vec3 getReflectanceFromAnalyticalBRDFLookup_Jones(float VdotN,vec3 reflectance0,vec3 reflectance90,float smoothness)
208
- {float weight=mix(FRESNEL_MAXIMUM_ON_ROUGH,1.0,smoothness);return reflectance0+weight*(reflectance90-reflectance0)*pow5(saturate(1.0-VdotN));}
100
+ #if NUM_BONE_INFLUENCERS>3
101
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[3])*matricesWeights[3];
209
102
  #endif
210
- #if defined(SHEEN) && defined(ENVIRONMENTBRDF)
211
- /**
212
- * The sheen BRDF not containing F can be easily stored in the blue channel of the BRDF texture.
213
- * The blue channel contains DCharlie*VAshikhmin*NdotL as a lokkup table
214
- */
215
- vec3 getSheenReflectanceFromBRDFLookup(const vec3 reflectance0,const vec3 environmentBrdf) {vec3 sheenEnvironmentReflectance=reflectance0*environmentBrdf.b;return sheenEnvironmentReflectance;}
103
+ #if NUM_BONE_INFLUENCERS>4
104
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[0])*matricesWeightsExtra[0];
216
105
  #endif
217
- vec3 fresnelSchlickGGX(float VdotH,vec3 reflectance0,vec3 reflectance90)
218
- {return reflectance0+(reflectance90-reflectance0)*pow5(1.0-VdotH);}
219
- float fresnelSchlickGGX(float VdotH,float reflectance0,float reflectance90)
220
- {return reflectance0+(reflectance90-reflectance0)*pow5(1.0-VdotH);}
221
- #ifdef CLEARCOAT
222
- vec3 getR0RemappedForClearCoat(vec3 f0) {
223
- #ifdef CLEARCOAT_DEFAULTIOR
224
- #ifdef MOBILE
225
- return saturate(f0*(f0*0.526868+0.529324)-0.0482256);
226
- #else
227
- return saturate(f0*(f0*(0.941892-0.263008*f0)+0.346479)-0.0285998);
228
- #endif
229
- #else
230
- vec3 s=sqrt(f0);vec3 t=(vClearCoatRefractionParams.z+vClearCoatRefractionParams.w*s)/(vClearCoatRefractionParams.w+vClearCoatRefractionParams.z*s);return square(t);
231
- #endif
232
- }
233
- #endif
234
- #ifdef IRIDESCENCE
235
- const mat3 XYZ_TO_REC709=mat3(
236
- 3.2404542,-0.9692660, 0.0556434,
237
- -1.5371385, 1.8760108,-0.2040259,
238
- -0.4985314, 0.0415560, 1.0572252
239
- );vec3 getIORTfromAirToSurfaceR0(vec3 f0) {vec3 sqrtF0=sqrt(f0);return (1.+sqrtF0)/(1.-sqrtF0);}
240
- vec3 getR0fromIORs(vec3 iorT,float iorI) {return square((iorT-vec3(iorI))/(iorT+vec3(iorI)));}
241
- float getR0fromIORs(float iorT,float iorI) {return square((iorT-iorI)/(iorT+iorI));}
242
- vec3 evalSensitivity(float opd,vec3 shift) {float phase=2.0*PI*opd*1.0e-9;const vec3 val=vec3(5.4856e-13,4.4201e-13,5.2481e-13);const vec3 pos=vec3(1.6810e+06,1.7953e+06,2.2084e+06);const vec3 var=vec3(4.3278e+09,9.3046e+09,6.6121e+09);vec3 xyz=val*sqrt(2.0*PI*var)*cos(pos*phase+shift)*exp(-square(phase)*var);xyz.x+=9.7470e-14*sqrt(2.0*PI*4.5282e+09)*cos(2.2399e+06*phase+shift[0])*exp(-4.5282e+09*square(phase));xyz/=1.0685e-7;vec3 srgb=XYZ_TO_REC709*xyz;return srgb;}
243
- vec3 evalIridescence(float outsideIOR,float eta2,float cosTheta1,float thinFilmThickness,vec3 baseF0) {vec3 I=vec3(1.0);float iridescenceIOR=mix(outsideIOR,eta2,smoothstep(0.0,0.03,thinFilmThickness));float sinTheta2Sq=square(outsideIOR/iridescenceIOR)*(1.0-square(cosTheta1));float cosTheta2Sq=1.0-sinTheta2Sq;if (cosTheta2Sq<0.0) {return I;}
244
- float cosTheta2=sqrt(cosTheta2Sq);float R0=getR0fromIORs(iridescenceIOR,outsideIOR);float R12=fresnelSchlickGGX(cosTheta1,R0,1.);float R21=R12;float T121=1.0-R12;float phi12=0.0;if (iridescenceIOR<outsideIOR) phi12=PI;float phi21=PI-phi12;vec3 baseIOR=getIORTfromAirToSurfaceR0(clamp(baseF0,0.0,0.9999));
245
- vec3 R1=getR0fromIORs(baseIOR,iridescenceIOR);float maxR1=max(R1.r,max(R1.g,R1.b));if (maxR1<1e-6) {return max(vec3(R12),vec3(0.0));}
246
- vec3 R23=fresnelSchlickGGX(cosTheta2,R1,vec3(1.));vec3 phi23=vec3(0.0);if (baseIOR[0]<iridescenceIOR) phi23[0]=PI;if (baseIOR[1]<iridescenceIOR) phi23[1]=PI;if (baseIOR[2]<iridescenceIOR) phi23[2]=PI;float opd=2.0*iridescenceIOR*thinFilmThickness*cosTheta2;vec3 phi=vec3(phi21)+phi23;vec3 R123=clamp(R12*R23,1e-5,0.9999);vec3 r123=sqrt(R123);vec3 Rs=square(T121)*R23/(vec3(1.0)-R123);vec3 C0=R12+Rs;I=C0;vec3 Cm=Rs-T121;for (int m=1; m<=2; ++m)
247
- {Cm*=r123;vec3 Sm=2.0*evalSensitivity(float(m)*opd,float(m)*phi);I+=Cm*Sm;}
248
- return max(I,vec3(0.0));}
249
- #endif
250
- float normalDistributionFunction_TrowbridgeReitzGGX(float NdotH,float alphaG)
251
- {float a2=square(alphaG);float d=NdotH*NdotH*(a2-1.0)+1.0;return a2/(PI*d*d);}
252
- #ifdef SHEEN
253
- float normalDistributionFunction_CharlieSheen(float NdotH,float alphaG)
254
- {float invR=1./alphaG;float cos2h=NdotH*NdotH;float sin2h=1.-cos2h;return (2.+invR)*pow(sin2h,invR*.5)/(2.*PI);}
255
- #endif
256
- #ifdef ANISOTROPIC
257
- float normalDistributionFunction_BurleyGGX_Anisotropic(float NdotH,float TdotH,float BdotH,const vec2 alphaTB) {float a2=alphaTB.x*alphaTB.y;vec3 v=vec3(alphaTB.y*TdotH,alphaTB.x *BdotH,a2*NdotH);float v2=dot(v,v);float w2=a2/v2;return a2*w2*w2*RECIPROCAL_PI;}
258
- #endif
259
- #ifdef BRDF_V_HEIGHT_CORRELATED
260
- float smithVisibility_GGXCorrelated(float NdotL,float NdotV,float alphaG) {
261
- #ifdef MOBILE
262
- float GGXV=NdotL*(NdotV*(1.0-alphaG)+alphaG);float GGXL=NdotV*(NdotL*(1.0-alphaG)+alphaG);return 0.5/(GGXV+GGXL);
263
- #else
264
- float a2=alphaG*alphaG;float GGXV=NdotL*sqrt(NdotV*(NdotV-a2*NdotV)+a2);float GGXL=NdotV*sqrt(NdotL*(NdotL-a2*NdotL)+a2);return 0.5/(GGXV+GGXL);
265
- #endif
266
- }
267
- #else
268
- float smithVisibilityG1_TrowbridgeReitzGGXFast(float dot,float alphaG)
269
- {
270
- #ifdef MOBILE
271
- return 1.0/(dot+alphaG+(1.0-alphaG)*dot ));
272
- #else
273
- float alphaSquared=alphaG*alphaG;return 1.0/(dot+sqrt(alphaSquared+(1.0-alphaSquared)*dot*dot));
274
- #endif
275
- }
276
- float smithVisibility_TrowbridgeReitzGGXFast(float NdotL,float NdotV,float alphaG)
277
- {float visibility=smithVisibilityG1_TrowbridgeReitzGGXFast(NdotL,alphaG)*smithVisibilityG1_TrowbridgeReitzGGXFast(NdotV,alphaG);return visibility;}
278
- #endif
279
- #ifdef ANISOTROPIC
280
- float smithVisibility_GGXCorrelated_Anisotropic(float NdotL,float NdotV,float TdotV,float BdotV,float TdotL,float BdotL,const vec2 alphaTB) {float lambdaV=NdotL*length(vec3(alphaTB.x*TdotV,alphaTB.y*BdotV,NdotV));float lambdaL=NdotV*length(vec3(alphaTB.x*TdotL,alphaTB.y*BdotL,NdotL));float v=0.5/(lambdaV+lambdaL);return v;}
281
- #endif
282
- #ifdef CLEARCOAT
283
- float visibility_Kelemen(float VdotH) {return 0.25/(VdotH*VdotH); }
284
- #endif
285
- #ifdef SHEEN
286
- float visibility_Ashikhmin(float NdotL,float NdotV)
287
- {return 1./(4.*(NdotL+NdotV-NdotL*NdotV));}
288
- /* NOT USED
289
- #ifdef SHEEN_SOFTER
290
- float l(float x,float alphaG)
291
- {float oneMinusAlphaSq=(1.0-alphaG)*(1.0-alphaG);float a=mix(21.5473,25.3245,oneMinusAlphaSq);float b=mix(3.82987,3.32435,oneMinusAlphaSq);float c=mix(0.19823,0.16801,oneMinusAlphaSq);float d=mix(-1.97760,-1.27393,oneMinusAlphaSq);float e=mix(-4.32054,-4.85967,oneMinusAlphaSq);return a/(1.0+b*pow(x,c))+d*x+e;}
292
- float lambdaSheen(float cosTheta,float alphaG)
293
- {return abs(cosTheta)<0.5 ? exp(l(cosTheta,alphaG)) : exp(2.0*l(0.5,alphaG)-l(1.0-cosTheta,alphaG));}
294
- float visibility_CharlieSheen(float NdotL,float NdotV,float alphaG)
295
- {float G=1.0/(1.0+lambdaSheen(NdotV,alphaG)+lambdaSheen(NdotL,alphaG));return G/(4.0*NdotV*NdotL);}
296
- #endif
297
- */
298
- #endif
299
- float diffuseBRDF_Burley(float NdotL,float NdotV,float VdotH,float roughness) {float diffuseFresnelNV=pow5(saturateEps(1.0-NdotL));float diffuseFresnelNL=pow5(saturateEps(1.0-NdotV));float diffuseFresnel90=0.5+2.0*VdotH*VdotH*roughness;float fresnel =
300
- (1.0+(diffuseFresnel90-1.0)*diffuseFresnelNL) *
301
- (1.0+(diffuseFresnel90-1.0)*diffuseFresnelNV);return fresnel/PI;}
302
- const float constant1_FON=0.5-2.0/(3.0*PI);const float constant2_FON=2.0/3.0-28.0/(15.0*PI);float E_FON_approx(float mu,float roughness)
303
- {float sigma=roughness;
304
- float mucomp=1.0-mu;float mucomp2=mucomp*mucomp;const mat2 Gcoeffs=mat2(0.0571085289,-0.332181442,
305
- 0.491881867,0.0714429953);float GoverPi=dot(Gcoeffs*vec2(mucomp,mucomp2),vec2(1.0,mucomp2));return (1.0+sigma*GoverPi)/(1.0+constant1_FON*sigma);}
306
- vec3 diffuseBRDF_EON(vec3 albedo,float roughness,float NdotL,float NdotV,float LdotV)
307
- {vec3 rho=albedo;float sigma=roughness;
308
- float mu_i=NdotL;
309
- float mu_o=NdotV;
310
- float s=LdotV-mu_i*mu_o;
311
- float sovertF=s>0.0 ? s/max(mu_i,mu_o) : s;
312
- float AF=1.0/(1.0+constant1_FON*sigma);
313
- vec3 f_ss=(rho*RECIPROCAL_PI)*AF*(1.0+sigma*sovertF);
314
- float EFo=E_FON_approx(mu_o,sigma);
315
- float EFi=E_FON_approx(mu_i,sigma);
316
- float avgEF=AF*(1.0+constant2_FON*sigma);
317
- vec3 rho_ms=(rho*rho)*avgEF/(vec3(1.0)-rho*(1.0-avgEF));const float eps=1.0e-7;vec3 f_ms=(rho_ms*RECIPROCAL_PI)*max(eps,1.0-EFo)
318
- * max(eps,1.0-EFi)
319
- / max(eps,1.0-avgEF);return (f_ss+f_ms);}
320
- #ifdef SS_TRANSLUCENCY
321
- vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,float thickness) {vec3 S=1./maxEps(diffusionDistance);vec3 temp=exp((-0.333333333*thickness)*S);return tintColor.rgb*0.25*(temp*temp*temp+3.0*temp);}
322
- float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
323
- #endif
324
- #endif
325
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["pbrBRDFFunctions",0,{name:t,shader:r}])},40498,71372,e=>{"use strict";var i=e.i(37875);let t="bonesDeclaration",r=`#if NUM_BONE_INFLUENCERS>0
326
- attribute vec4 matricesIndices;attribute vec4 matricesWeights;
327
- #if NUM_BONE_INFLUENCERS>4
328
- attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
329
- #endif
330
- #ifndef BAKED_VERTEX_ANIMATION_TEXTURE
331
- #ifdef BONETEXTURE
332
- uniform highp sampler2D boneSampler;uniform vec2 boneTextureInfo;
333
- #else
334
- uniform mat4 mBones[BonesPerMesh];
335
- #endif
336
- #ifdef BONES_VELOCITY_ENABLED
337
- uniform mat4 mPreviousBones[BonesPerMesh];
338
- #endif
339
- #ifdef BONETEXTURE
340
- #define inline
341
- mat4 readMatrixFromRawSampler(sampler2D smp,float index)
342
- {
343
- #if defined(WEBGL2) || defined(WEBGPU)
344
- int offset=int(index)*4;
345
- int textureWidth=int(boneTextureInfo.x);int y=int(offset)/textureWidth;int x=int(offset) % textureWidth;vec4 m0=texelFetch(smp,ivec2(x+0,y),0);vec4 m1=texelFetch(smp,ivec2(x+1,y),0);vec4 m2=texelFetch(smp,ivec2(x+2,y),0);vec4 m3=texelFetch(smp,ivec2(x+3,y),0);return mat4(m0,m1,m2,m3);
346
- #else
347
- float offset=index*4.0;float y=floor(offset/boneTextureInfo.x);float x=offset-y*boneTextureInfo.x;float dy=1.0/boneTextureInfo.y;float dx=1.0/boneTextureInfo.x;vec4 m0=texture2D(smp,vec2(dx*(x+0.5),dy*(y+0.5)));vec4 m1=texture2D(smp,vec2(dx*(x+1.5),dy*(y+0.5)));vec4 m2=texture2D(smp,vec2(dx*(x+2.5),dy*(y+0.5)));vec4 m3=texture2D(smp,vec2(dx*(x+3.5),dy*(y+0.5)));
348
- return mat4(m0,m1,m2,m3);
349
- #endif
350
- }
351
- #endif
352
- #endif
353
- #endif
354
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["bonesDeclaration",0,{name:t,shader:r}],40498);let a="bakedVertexAnimationDeclaration",n=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
355
- uniform float bakedVertexAnimationTime;
356
- #if !defined(WEBGL2) && !defined(WEBGPU)
357
- uniform vec2 bakedVertexAnimationTextureSizeInverted;
358
- #endif
359
- uniform vec4 bakedVertexAnimationSettings;uniform sampler2D bakedVertexAnimationTexture;
360
- #ifdef INSTANCES
361
- attribute vec4 bakedVertexAnimationSettingsInstanced;
362
- #endif
363
- #define inline
364
- mat4 readMatrixFromRawSamplerVAT(sampler2D smp,float index,float frame)
365
- {
366
- #if defined(WEBGL2) || defined(WEBGPU)
367
- int offset=int(index)*4;int frameUV=int(frame);vec4 m0=texelFetch(smp,ivec2(offset+0,frameUV),0);vec4 m1=texelFetch(smp,ivec2(offset+1,frameUV),0);vec4 m2=texelFetch(smp,ivec2(offset+2,frameUV),0);vec4 m3=texelFetch(smp,ivec2(offset+3,frameUV),0);return mat4(m0,m1,m2,m3);
368
- #else
369
- float offset=index*4.0;float frameUV=(frame+0.5)*bakedVertexAnimationTextureSizeInverted.y;float dx=bakedVertexAnimationTextureSizeInverted.x;vec4 m0=texture2D(smp,vec2(dx*(offset+0.5),frameUV));vec4 m1=texture2D(smp,vec2(dx*(offset+1.5),frameUV));vec4 m2=texture2D(smp,vec2(dx*(offset+2.5),frameUV));vec4 m3=texture2D(smp,vec2(dx*(offset+3.5),frameUV));return mat4(m0,m1,m2,m3);
370
- #endif
371
- }
372
- #endif
373
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bakedVertexAnimationDeclaration",0,{name:a,shader:n}],71372)},41416,e=>{"use strict";var i=e.i(37875);let t="instancesDeclaration",r=`#ifdef INSTANCES
374
- attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
375
- #ifdef INSTANCESCOLOR
376
- attribute vec4 instanceColor;
377
- #endif
378
- #if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
379
- uniform mat4 world;
380
- #endif
381
- #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
382
- attribute vec4 previousWorld0;attribute vec4 previousWorld1;attribute vec4 previousWorld2;attribute vec4 previousWorld3;
383
- #ifdef THIN_INSTANCES
384
- uniform mat4 previousWorld;
385
- #endif
386
- #endif
387
- #else
388
- #if !defined(WORLD_UBO)
389
- uniform mat4 world;
390
- #endif
391
- #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
392
- uniform mat4 previousWorld;
393
- #endif
394
- #endif
395
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesDeclaration",0,{name:t,shader:r}])},76544,e=>{"use strict";var i=e.i(37875);let t="clipPlaneVertexDeclaration",r=`#ifdef CLIPPLANE
396
- uniform vec4 vClipPlane;varying float fClipDistance;
397
- #endif
398
- #ifdef CLIPPLANE2
399
- uniform vec4 vClipPlane2;varying float fClipDistance2;
400
- #endif
401
- #ifdef CLIPPLANE3
402
- uniform vec4 vClipPlane3;varying float fClipDistance3;
403
- #endif
404
- #ifdef CLIPPLANE4
405
- uniform vec4 vClipPlane4;varying float fClipDistance4;
406
- #endif
407
- #ifdef CLIPPLANE5
408
- uniform vec4 vClipPlane5;varying float fClipDistance5;
409
- #endif
410
- #ifdef CLIPPLANE6
411
- uniform vec4 vClipPlane6;varying float fClipDistance6;
412
- #endif
413
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["clipPlaneVertexDeclaration",0,{name:t,shader:r}])},66567,51390,80190,59452,e=>{"use strict";var i=e.i(37875);let t="instancesVertex",r=`#ifdef INSTANCES
414
- mat4 finalWorld=mat4(world0,world1,world2,world3);
415
- #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
416
- mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
417
- previousWorld2,previousWorld3);
418
- #endif
419
- #ifdef THIN_INSTANCES
420
- finalWorld=world*finalWorld;
421
- #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
422
- finalPreviousWorld=previousWorld*finalPreviousWorld;
423
- #endif
424
- #endif
425
- #else
426
- mat4 finalWorld=world;
427
- #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
428
- mat4 finalPreviousWorld=previousWorld;
429
- #endif
430
- #endif
431
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesVertex",0,{name:t,shader:r}],66567);let a="bonesVertex",n=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
432
- #if NUM_BONE_INFLUENCERS>0
433
- mat4 influence;
434
- #ifdef BONETEXTURE
435
- influence=readMatrixFromRawSampler(boneSampler,matricesIndices[0])*matricesWeights[0];
436
- #if NUM_BONE_INFLUENCERS>1
437
- influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[1])*matricesWeights[1];
438
- #endif
439
- #if NUM_BONE_INFLUENCERS>2
440
- influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[2])*matricesWeights[2];
441
- #endif
442
- #if NUM_BONE_INFLUENCERS>3
443
- influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[3])*matricesWeights[3];
444
- #endif
445
- #if NUM_BONE_INFLUENCERS>4
446
- influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[0])*matricesWeightsExtra[0];
447
- #endif
448
- #if NUM_BONE_INFLUENCERS>5
449
- influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[1])*matricesWeightsExtra[1];
106
+ #if NUM_BONE_INFLUENCERS>5
107
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[1])*matricesWeightsExtra[1];
450
108
  #endif
451
109
  #if NUM_BONE_INFLUENCERS>6
452
110
  influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[2])*matricesWeightsExtra[2];
@@ -481,7 +139,7 @@ influence+=mBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
481
139
  finalWorld=finalWorld*influence;
482
140
  #endif
483
141
  #endif
484
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bonesVertex",0,{name:a,shader:n}],51390);let o="bakedVertexAnimation",s=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
142
+ `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=d),e.s(["bonesVertex",0,{name:c,shader:d}],65123);let m="bakedVertexAnimation",E=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
485
143
  {
486
144
  #ifdef INSTANCES
487
145
  #define BVASNAME bakedVertexAnimationSettingsInstanced
@@ -512,7 +170,25 @@ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIn
512
170
  #endif
513
171
  finalWorld=finalWorld*VATInfluence;}
514
172
  #endif
515
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["bakedVertexAnimation",0,{name:o,shader:s}],80190);let f="clipPlaneVertex",l=`#ifdef CLIPPLANE
173
+ `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=E),e.s(["bakedVertexAnimation",0,{name:m,shader:E}],1440)},40566,56659,e=>{"use strict";var i=e.i(2342);let t="clipPlaneVertexDeclaration",r=`#ifdef CLIPPLANE
174
+ uniform vec4 vClipPlane;varying float fClipDistance;
175
+ #endif
176
+ #ifdef CLIPPLANE2
177
+ uniform vec4 vClipPlane2;varying float fClipDistance2;
178
+ #endif
179
+ #ifdef CLIPPLANE3
180
+ uniform vec4 vClipPlane3;varying float fClipDistance3;
181
+ #endif
182
+ #ifdef CLIPPLANE4
183
+ uniform vec4 vClipPlane4;varying float fClipDistance4;
184
+ #endif
185
+ #ifdef CLIPPLANE5
186
+ uniform vec4 vClipPlane5;varying float fClipDistance5;
187
+ #endif
188
+ #ifdef CLIPPLANE6
189
+ uniform vec4 vClipPlane6;varying float fClipDistance6;
190
+ #endif
191
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["clipPlaneVertexDeclaration",0,{name:t,shader:r}],40566);let a="clipPlaneVertex",n=`#ifdef CLIPPLANE
516
192
  fClipDistance=dot(worldPos,vClipPlane);
517
193
  #endif
518
194
  #ifdef CLIPPLANE2
@@ -530,159 +206,30 @@ fClipDistance5=dot(worldPos,vClipPlane5);
530
206
  #ifdef CLIPPLANE6
531
207
  fClipDistance6=dot(worldPos,vClipPlane6);
532
208
  #endif
533
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["clipPlaneVertex",0,{name:f,shader:l}],59452)},70638,82576,29839,e=>{"use strict";var i=e.i(37875);let t="fogVertexDeclaration",r=`#ifdef FOG
534
- varying vec3 vFogDistance;
209
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["clipPlaneVertex",0,{name:a,shader:n}],56659)},35118,28774,24373,85806,8517,93646,32191,73499,58649,59442,e=>{"use strict";var i=e.i(2342);let t="decalVertexDeclaration",r=`#ifdef DECAL
210
+ uniform vec4 vDecalInfos;uniform mat4 decalMatrix;
535
211
  #endif
536
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["fogVertexDeclaration",0,{name:t,shader:r}],70638);let a="fogVertex",n=`#ifdef FOG
537
- vFogDistance=(view*worldPos).xyz;
212
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["decalVertexDeclaration",0,{name:t,shader:r}],35118);let a="uvAttributeDeclaration",n=`#ifdef UV{X}
213
+ attribute vec2 uv{X};
538
214
  #endif
539
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertex",0,{name:a,shader:n}],82576);let o="vertexColorMixing",s=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
540
- vColor=vec4(1.0);
541
- #ifdef VERTEXCOLOR
542
- #ifdef VERTEXALPHA
543
- vColor*=colorUpdated;
544
- #else
545
- vColor.rgb*=colorUpdated.rgb;
215
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["uvAttributeDeclaration",0,{name:a,shader:n}],28774);let o="prePassVertexDeclaration",s=`#ifdef PREPASS
216
+ #ifdef PREPASS_LOCAL_POSITION
217
+ varying vec3 vPosition;
546
218
  #endif
219
+ #ifdef PREPASS_DEPTH
220
+ varying vec3 vViewPos;
547
221
  #endif
548
- #ifdef INSTANCESCOLOR
549
- vColor*=instanceColor;
222
+ #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
223
+ varying float vNormViewDepth;
550
224
  #endif
225
+ #if defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)
226
+ uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition;
551
227
  #endif
552
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["vertexColorMixing",0,{name:o,shader:s}],29839)},46389,29263,7203,80875,e=>{"use strict";var i=e.i(37875);let t="morphTargetsVertexGlobalDeclaration",r=`#ifdef MORPHTARGETS
553
- uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
554
- #ifdef MORPHTARGETS_TEXTURE
555
- uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
556
- {
557
- #if defined(WEBGL2) || defined(WEBGPU)
558
- int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0).xyz;
559
- #else
560
- float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV).xyz;
561
- #endif
562
- }
563
- vec4 readVector4FromRawSampler(int targetIndex,float vertexIndex)
564
- {
565
- #if defined(WEBGL2) || defined(WEBGPU)
566
- int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0);
567
- #else
568
- float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV);
569
- #endif
570
- }
571
- #endif
572
- #endif
573
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:t,shader:r}],46389);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
574
- #ifndef MORPHTARGETS_TEXTURE
575
- #ifdef MORPHTARGETS_POSITION
576
- attribute vec3 position{X};
577
- #endif
578
- #ifdef MORPHTARGETS_NORMAL
579
- attribute vec3 normal{X};
580
- #endif
581
- #ifdef MORPHTARGETS_TANGENT
582
- attribute vec3 tangent{X};
583
- #endif
584
- #ifdef MORPHTARGETS_UV
585
- attribute vec2 uv_{X};
586
- #endif
587
- #ifdef MORPHTARGETS_UV2
588
- attribute vec2 uv2_{X};
589
- #endif
590
- #ifdef MORPHTARGETS_COLOR
591
- attribute vec4 color{X};
592
- #endif
593
- #elif {X}==0
594
- uniform float morphTargetCount;
595
- #endif
596
- #endif
597
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["morphTargetsVertexDeclaration",0,{name:a,shader:n}],29263);let o="morphTargetsVertexGlobal",s=`#ifdef MORPHTARGETS
598
- #ifdef MORPHTARGETS_TEXTURE
599
- float vertexID;
600
- #endif
601
- #endif
602
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["morphTargetsVertexGlobal",0,{name:o,shader:s}],7203);let f="morphTargetsVertex",l=`#ifdef MORPHTARGETS
603
- #ifdef MORPHTARGETS_TEXTURE
604
- #if {X}==0
605
- for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
606
- #ifdef MORPHTARGETS_POSITION
607
- positionUpdated+=(readVector3FromRawSampler(i,vertexID)-position)*morphTargetInfluences[i];
608
- #endif
609
- #ifdef MORPHTARGETTEXTURE_HASPOSITIONS
610
- vertexID+=1.0;
611
- #endif
612
- #ifdef MORPHTARGETS_NORMAL
613
- normalUpdated+=(readVector3FromRawSampler(i,vertexID) -normal)*morphTargetInfluences[i];
614
- #endif
615
- #ifdef MORPHTARGETTEXTURE_HASNORMALS
616
- vertexID+=1.0;
617
- #endif
618
- #ifdef MORPHTARGETS_UV
619
- uvUpdated+=(readVector3FromRawSampler(i,vertexID).xy-uv)*morphTargetInfluences[i];
620
- #endif
621
- #ifdef MORPHTARGETTEXTURE_HASUVS
622
- vertexID+=1.0;
623
- #endif
624
- #ifdef MORPHTARGETS_TANGENT
625
- tangentUpdated.xyz+=(readVector3FromRawSampler(i,vertexID) -tangent.xyz)*morphTargetInfluences[i];
626
- #endif
627
- #ifdef MORPHTARGETTEXTURE_HASTANGENTS
628
- vertexID+=1.0;
629
- #endif
630
- #ifdef MORPHTARGETS_UV2
631
- uv2Updated+=(readVector3FromRawSampler(i,vertexID).xy-uv2)*morphTargetInfluences[i];
632
- #endif
633
- #ifdef MORPHTARGETTEXTURE_HASUV2S
634
- vertexID+=1.0;
635
- #endif
636
- #ifdef MORPHTARGETS_COLOR
637
- colorUpdated+=(readVector4FromRawSampler(i,vertexID)-color)*morphTargetInfluences[i];
638
- #endif
639
- }
640
- #endif
641
- #else
642
- #ifdef MORPHTARGETS_POSITION
643
- positionUpdated+=(position{X}-position)*morphTargetInfluences[{X}];
644
- #endif
645
- #ifdef MORPHTARGETS_NORMAL
646
- normalUpdated+=(normal{X}-normal)*morphTargetInfluences[{X}];
647
- #endif
648
- #ifdef MORPHTARGETS_TANGENT
649
- tangentUpdated.xyz+=(tangent{X}-tangent.xyz)*morphTargetInfluences[{X}];
650
- #endif
651
- #ifdef MORPHTARGETS_UV
652
- uvUpdated+=(uv_{X}-uv)*morphTargetInfluences[{X}];
653
- #endif
654
- #ifdef MORPHTARGETS_UV2
655
- uv2Updated+=(uv2_{X}-uv2)*morphTargetInfluences[{X}];
656
- #endif
657
- #ifdef MORPHTARGETS_COLOR
658
- colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
659
- #endif
660
- #endif
661
- #endif
662
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["morphTargetsVertex",0,{name:f,shader:l}],80875)},13222,97761,2599,80514,20738,52028,52308,78652,50048,99149,85804,e=>{"use strict";var i=e.i(37875);let t="decalVertexDeclaration",r=`#ifdef DECAL
663
- uniform vec4 vDecalInfos;uniform mat4 decalMatrix;
664
- #endif
665
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["decalVertexDeclaration",0,{name:t,shader:r}],13222);let a="uvAttributeDeclaration",n=`#ifdef UV{X}
666
- attribute vec2 uv{X};
667
- #endif
668
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["uvAttributeDeclaration",0,{name:a,shader:n}],97761);let o="prePassVertexDeclaration",s=`#ifdef PREPASS
669
- #ifdef PREPASS_LOCAL_POSITION
670
- varying vec3 vPosition;
671
- #endif
672
- #ifdef PREPASS_DEPTH
673
- varying vec3 vViewPos;
674
- #endif
675
- #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
676
- varying float vNormViewDepth;
677
- #endif
678
- #if defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)
679
- uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition;
680
228
  #endif
681
- #endif
682
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["prePassVertexDeclaration",0,{name:o,shader:s}],2599);let f="samplerVertexDeclaration",l=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
229
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["prePassVertexDeclaration",0,{name:o,shader:s}],24373);let f="samplerVertexDeclaration",l=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
683
230
  varying vec2 v_VARYINGNAME_UV;
684
231
  #endif
685
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["samplerVertexDeclaration",0,{name:f,shader:l}],80514);let c="lightVxFragmentDeclaration",d=`#ifdef LIGHT{X}
232
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["samplerVertexDeclaration",0,{name:f,shader:l}],85806);let c="lightVxFragmentDeclaration",d=`#ifdef LIGHT{X}
686
233
  uniform vec4 vLightData{X};uniform vec4 vLightDiffuse{X};
687
234
  #ifdef SPECULARTERM
688
235
  uniform vec4 vLightSpecular{X};
@@ -709,7 +256,7 @@ uniform vec3 vLightGround{X};
709
256
  uniform vec4 vLightWidth{X};uniform vec4 vLightHeight{X};
710
257
  #endif
711
258
  #endif
712
- `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=d),e.s(["lightVxFragmentDeclaration",0,{name:c,shader:d}],20738);let m="lightVxUboDeclaration",E=`#ifdef LIGHT{X}
259
+ `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=d),e.s(["lightVxFragmentDeclaration",0,{name:c,shader:d}],8517);let m="lightVxUboDeclaration",E=`#ifdef LIGHT{X}
713
260
  uniform Light{X}
714
261
  {vec4 vLightData;vec4 vLightDiffuse;vec4 vLightSpecular;
715
262
  #ifdef SPOTLIGHT{X}
@@ -734,7 +281,7 @@ varying vec4 vPositionFromLight{X};varying float vDepthMetric{X};uniform mat4 li
734
281
  #endif
735
282
  #endif
736
283
  #endif
737
- `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=E),e.s(["lightVxUboDeclaration",0,{name:m,shader:E}],52028);let u="prePassVertex",v=`#ifdef PREPASS_DEPTH
284
+ `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=E),e.s(["lightVxUboDeclaration",0,{name:m,shader:E}],93646);let u="prePassVertex",v=`#ifdef PREPASS_DEPTH
738
285
  vViewPos=(view*worldPos).rgb;
739
286
  #endif
740
287
  #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
@@ -773,13 +320,13 @@ vPreviousPosition=previousViewProjection*finalPreviousWorld*previousInfluence*ve
773
320
  vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
774
321
  #endif
775
322
  #endif
776
- `;i.ShaderStore.IncludesShadersStore[u]||(i.ShaderStore.IncludesShadersStore[u]=v),e.s(["prePassVertex",0,{name:u,shader:v}],52308);let S="uvVariableDeclaration",I=`#if !defined(UV{X}) && defined(MAINUV{X})
323
+ `;i.ShaderStore.IncludesShadersStore[u]||(i.ShaderStore.IncludesShadersStore[u]=v),e.s(["prePassVertex",0,{name:u,shader:v}],32191);let S="uvVariableDeclaration",I=`#if !defined(UV{X}) && defined(MAINUV{X})
777
324
  vec2 uv{X}=vec2(0.,0.);
778
325
  #endif
779
326
  #ifdef MAINUV{X}
780
327
  vMainUV{X}=uv{X};
781
328
  #endif
782
- `;i.ShaderStore.IncludesShadersStore[S]||(i.ShaderStore.IncludesShadersStore[S]=I),e.s(["uvVariableDeclaration",0,{name:S,shader:I}],78652);let N="samplerVertexImplementation",_=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
329
+ `;i.ShaderStore.IncludesShadersStore[S]||(i.ShaderStore.IncludesShadersStore[S]=I),e.s(["uvVariableDeclaration",0,{name:S,shader:I}],73499);let N="samplerVertexImplementation",_=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
783
330
  if (v_INFONAME_==0.)
784
331
  {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uvUpdated,1.0,0.0));}
785
332
  #ifdef UV2
@@ -803,7 +350,7 @@ else if (v_INFONAME_==5.)
803
350
  {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv6,1.0,0.0));}
804
351
  #endif
805
352
  #endif
806
- `;i.ShaderStore.IncludesShadersStore[N]||(i.ShaderStore.IncludesShadersStore[N]=_),e.s(["samplerVertexImplementation",0,{name:N,shader:_}],50048);let A="shadowsVertex",R=`#ifdef SHADOWS
353
+ `;i.ShaderStore.IncludesShadersStore[N]||(i.ShaderStore.IncludesShadersStore[N]=_),e.s(["samplerVertexImplementation",0,{name:N,shader:_}],58649);let A="shadowsVertex",R=`#ifdef SHADOWS
807
354
  #if defined(SHADOWCSM{X})
808
355
  vPositionFromCamera{X}=view*worldPos;for (int i=0; i<SHADOWCSMNUM_CASCADES{X}; i++) {vPositionFromLight{X}[i]=lightMatrix{X}[i]*worldPos;
809
356
  #ifdef USE_REVERSE_DEPTHBUFFER
@@ -821,20 +368,473 @@ vDepthMetric{X}=(vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthV
821
368
  #endif
822
369
  #endif
823
370
  #endif
824
- `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R),e.s(["shadowsVertex",0,{name:A,shader:R}],99149);let h="logDepthVertex",p=`#ifdef LOGARITHMICDEPTH
371
+ `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R),e.s(["shadowsVertex",0,{name:A,shader:R}],59442)},21659,33475,e=>{"use strict";var i=e.i(2342);let t="fogVertexDeclaration",r=`#ifdef FOG
372
+ varying vec3 vFogDistance;
373
+ #endif
374
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["fogVertexDeclaration",0,{name:t,shader:r}],21659);let a="fogVertex",n=`#ifdef FOG
375
+ vFogDistance=(view*worldPos).xyz;
376
+ #endif
377
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertex",0,{name:a,shader:n}],33475)},8500,e=>{"use strict";var i=e.i(2342);let t="harmonicsFunctions",r=`#ifdef USESPHERICALFROMREFLECTIONMAP
378
+ #ifdef SPHERICAL_HARMONICS
379
+ vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
380
+ + vSphericalL1_1*(normal.y)
381
+ + vSphericalL10*(normal.z)
382
+ + vSphericalL11*(normal.x)
383
+ + vSphericalL2_2*(normal.y*normal.x)
384
+ + vSphericalL2_1*(normal.y*normal.z)
385
+ + vSphericalL20*((3.0*normal.z*normal.z)-1.0)
386
+ + vSphericalL21*(normal.z*normal.x)
387
+ + vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
388
+ #else
389
+ vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
390
+ #endif
391
+ #endif
392
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["harmonicsFunctions",0,{name:t,shader:r}])},62308,e=>{"use strict";var i=e.i(2342);let t="helperFunctions",r=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
393
+ const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
394
+ #define saturate(x) clamp(x,0.0,1.0)
395
+ #define absEps(x) abs(x)+Epsilon
396
+ #define maxEps(x) max(x,Epsilon)
397
+ #define saturateEps(x) clamp(x,Epsilon,1.0)
398
+ mat3 transposeMat3(mat3 inMatrix) {vec3 i0=inMatrix[0];vec3 i1=inMatrix[1];vec3 i2=inMatrix[2];mat3 outMatrix=mat3(
399
+ vec3(i0.x,i1.x,i2.x),
400
+ vec3(i0.y,i1.y,i2.y),
401
+ vec3(i0.z,i1.z,i2.z)
402
+ );return outMatrix;}
403
+ mat3 inverseMat3(mat3 inMatrix) {float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];float b01=a22*a11-a12*a21;float b11=-a22*a10+a12*a20;float b21=a21*a10-a11*a20;float det=a00*b01+a01*b11+a02*b21;return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
404
+ b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
405
+ b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;}
406
+ #if USE_EXACT_SRGB_CONVERSIONS
407
+ vec3 toLinearSpaceExact(vec3 color)
408
+ {vec3 nearZeroSection=0.0773993808*color;vec3 remainingSection=pow(0.947867299*(color+vec3(0.055)),vec3(2.4));
409
+ #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
410
+ return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.04045)));
411
+ #else
412
+ return
413
+ vec3(
414
+ color.r<=0.04045 ? nearZeroSection.r : remainingSection.r,
415
+ color.g<=0.04045 ? nearZeroSection.g : remainingSection.g,
416
+ color.b<=0.04045 ? nearZeroSection.b : remainingSection.b);
417
+ #endif
418
+ }
419
+ vec3 toGammaSpaceExact(vec3 color)
420
+ {vec3 nearZeroSection=12.92*color;vec3 remainingSection=1.055*pow(color,vec3(0.41666))-vec3(0.055);
421
+ #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
422
+ return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3(0.0031308)));
423
+ #else
424
+ return
425
+ vec3(
426
+ color.r<=0.0031308 ? nearZeroSection.r : remainingSection.r,
427
+ color.g<=0.0031308 ? nearZeroSection.g : remainingSection.g,
428
+ color.b<=0.0031308 ? nearZeroSection.b : remainingSection.b);
429
+ #endif
430
+ }
431
+ #endif
432
+ float toLinearSpace(float color)
433
+ {
434
+ #if USE_EXACT_SRGB_CONVERSIONS
435
+ float nearZeroSection=0.0773993808*color;float remainingSection=pow(0.947867299*(color+0.055),2.4);return color<=0.04045 ? nearZeroSection : remainingSection;
436
+ #else
437
+ return pow(color,LinearEncodePowerApprox);
438
+ #endif
439
+ }
440
+ vec3 toLinearSpace(vec3 color)
441
+ {
442
+ #if USE_EXACT_SRGB_CONVERSIONS
443
+ return toLinearSpaceExact(color);
444
+ #else
445
+ return pow(color,vec3(LinearEncodePowerApprox));
446
+ #endif
447
+ }
448
+ vec4 toLinearSpace(vec4 color)
449
+ {
450
+ #if USE_EXACT_SRGB_CONVERSIONS
451
+ return vec4(toLinearSpaceExact(color.rgb),color.a);
452
+ #else
453
+ return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
454
+ #endif
455
+ }
456
+ float toGammaSpace(float color)
457
+ {
458
+ #if USE_EXACT_SRGB_CONVERSIONS
459
+ float nearZeroSection=12.92*color;float remainingSection=1.055*pow(color,0.41666)-0.055;return color<=0.0031308 ? nearZeroSection : remainingSection;
460
+ #else
461
+ return pow(color,GammaEncodePowerApprox);
462
+ #endif
463
+ }
464
+ vec3 toGammaSpace(vec3 color)
465
+ {
466
+ #if USE_EXACT_SRGB_CONVERSIONS
467
+ return toGammaSpaceExact(color);
468
+ #else
469
+ return pow(color,vec3(GammaEncodePowerApprox));
470
+ #endif
471
+ }
472
+ vec4 toGammaSpace(vec4 color)
473
+ {
474
+ #if USE_EXACT_SRGB_CONVERSIONS
475
+ return vec4(toGammaSpaceExact(color.rgb),color.a);
476
+ #else
477
+ return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
478
+ #endif
479
+ }
480
+ float square(float value)
481
+ {return value*value;}
482
+ vec3 square(vec3 value)
483
+ {return value*value;}
484
+ float pow5(float value) {float sq=value*value;return sq*sq*value;}
485
+ vec3 double_refract(vec3 I,vec3 N,float eta) {vec3 Tfront=refract(I,N,1.0/eta);vec3 Nback=normalize(reflect(N,Tfront));return refract(Tfront,-Nback,eta);}
486
+ float getLuminanceUnclamped(vec3 color)
487
+ {return dot(color,LuminanceEncodeApprox);}
488
+ float getLuminance(vec3 color)
489
+ {return saturate(getLuminanceUnclamped(color));}
490
+ float getRand(vec2 seed) {return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);}
491
+ float dither(vec2 seed,float varianceAmount) {float rand=getRand(seed);float normVariance=varianceAmount/255.0;float dither=mix(-normVariance,normVariance,rand);return dither;}
492
+ const float rgbdMaxRange=255.;vec4 toRGBD(vec3 color) {float maxRGB=maxEps(max(color.r,max(color.g,color.b)));float D =max(rgbdMaxRange/maxRGB,1.);D =saturate(floor(D)/255.);vec3 rgb=color.rgb*D;rgb=toGammaSpace(rgb);return vec4(saturate(rgb),D);}
493
+ vec3 fromRGBD(vec4 rgbd) {rgbd.rgb=toLinearSpace(rgbd.rgb);return rgbd.rgb/rgbd.a;}
494
+ vec3 parallaxCorrectNormal( vec3 vertexPos,vec3 origVec,vec3 cubeSize,vec3 cubePos ) {vec3 invOrigVec=vec3(1.)/origVec;vec3 halfSize=cubeSize*0.5;vec3 intersecAtMaxPlane=(cubePos+halfSize-vertexPos)*invOrigVec;vec3 intersecAtMinPlane=(cubePos-halfSize-vertexPos)*invOrigVec;vec3 largestIntersec=max(intersecAtMaxPlane,intersecAtMinPlane);float distance=min(min(largestIntersec.x,largestIntersec.y),largestIntersec.z);vec3 intersectPositionWS=vertexPos+origVec*distance;return intersectPositionWS-cubePos;}
495
+ vec3 equirectangularToCubemapDirection(vec2 uv) {float longitude=uv.x*TWO_PI-PI;float latitude=HALF_PI-uv.y*PI;vec3 direction;direction.x=cos(latitude)*sin(longitude);direction.y=sin(latitude);direction.z=cos(latitude)*cos(longitude);return direction;}
496
+ float sqrtClamped(float value) {return sqrt(max(value,0.));}
497
+ float avg(vec3 value) {return dot(value,vec3(0.333333333));}
498
+ #if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
499
+ uint extractBits(uint value,int offset,int width) {return (value>>offset) & ((1u<<width)-1u);}
500
+ int onlyBitPosition(uint value) {return (floatBitsToInt(float(value))>>23)-0x7f;}
501
+ vec3 singleScatterToMultiScatterAlbedo(vec3 rho_ss) {vec3 s=sqrt(max(vec3(1.0)-rho_ss,vec3(0.0)));return (vec3(1.0)-s)*(vec3(1.0)-vec3(0.139)*s)/(vec3(1.0)+vec3(1.17)*s);}
502
+ vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return 1.0-s*s;}
503
+ vec3 multiScatterToSingleScatterAlbedo(vec3 rho_ms,float aniso) {vec3 s=4.09712+4.20863*rho_ms-sqrt(9.59217+41.6808*rho_ms+17.7126*rho_ms*rho_ms);return (1.0-s*s)/maxEps(1.0-aniso*s*s);}
504
+ float min3(vec3 v) {return min(v.x,min(v.y,v.z));}
505
+ float max3(vec3 v) {return max(v.x,max(v.y,v.z));}
506
+ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
507
+ vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
508
+ uint2float(rstate*2447445414u));}
509
+ #endif
510
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["helperFunctions",0,{name:t,shader:r}])},80790,e=>{"use strict";var i=e.i(2342);let t="logDepthDeclaration",r=`#ifdef LOGARITHMICDEPTH
511
+ uniform float logarithmicDepthConstant;varying float vFragmentDepth;
512
+ #endif
513
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["logDepthDeclaration",0,{name:t,shader:r}])},16147,e=>{"use strict";var i=e.i(2342);let t="logDepthVertex",r=`#ifdef LOGARITHMICDEPTH
825
514
  vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
826
515
  #endif
827
- `;i.ShaderStore.IncludesShadersStore[h]||(i.ShaderStore.IncludesShadersStore[h]=p),e.s(["logDepthVertex",0,{name:h,shader:p}],85804)},9268,e=>{"use strict";var i=e.i(37875);e.i(23044),e.i(64010);let t="openpbrUboDeclaration",r=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
828
- #define ADDITIONAL_UBO_DECLARATION
829
- };
516
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["logDepthVertex",0,{name:t,shader:r}])},65225,e=>{"use strict";var i=e.i(2342);let t="mainUVVaryingDeclaration",r=`#ifdef MAINUV{X}
517
+ varying vec2 vMainUV{X};
518
+ #endif
519
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["mainUVVaryingDeclaration",0,{name:t,shader:r}])},49676,e=>{"use strict";var i=e.i(2342);let t="meshUboDeclaration",r=`#ifdef WEBGL2
520
+ uniform mat4 world;uniform float visibility;
521
+ #else
522
+ layout(std140,column_major) uniform;uniform Mesh
523
+ {mat4 world;float visibility;};
524
+ #endif
525
+ #define WORLD_UBO
526
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["meshUboDeclaration",0,{name:t,shader:r}])},32996,17199,61898,30505,e=>{"use strict";var i=e.i(2342);let t="morphTargetsVertexGlobalDeclaration",r=`#ifdef MORPHTARGETS
527
+ uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
528
+ #ifdef MORPHTARGETS_TEXTURE
529
+ uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
530
+ {
531
+ #if defined(WEBGL2) || defined(WEBGPU)
532
+ int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0).xyz;
533
+ #else
534
+ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV).xyz;
535
+ #endif
536
+ }
537
+ vec4 readVector4FromRawSampler(int targetIndex,float vertexIndex)
538
+ {
539
+ #if defined(WEBGL2) || defined(WEBGPU)
540
+ int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0);
541
+ #else
542
+ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV);
543
+ #endif
544
+ }
545
+ #endif
546
+ #endif
547
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:t,shader:r}],32996);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
548
+ #ifndef MORPHTARGETS_TEXTURE
549
+ #ifdef MORPHTARGETS_POSITION
550
+ attribute vec3 position{X};
551
+ #endif
552
+ #ifdef MORPHTARGETS_NORMAL
553
+ attribute vec3 normal{X};
554
+ #endif
555
+ #ifdef MORPHTARGETS_TANGENT
556
+ attribute vec3 tangent{X};
557
+ #endif
558
+ #ifdef MORPHTARGETS_UV
559
+ attribute vec2 uv_{X};
560
+ #endif
561
+ #ifdef MORPHTARGETS_UV2
562
+ attribute vec2 uv2_{X};
563
+ #endif
564
+ #ifdef MORPHTARGETS_COLOR
565
+ attribute vec4 color{X};
566
+ #endif
567
+ #elif {X}==0
568
+ uniform float morphTargetCount;
569
+ #endif
570
+ #endif
571
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["morphTargetsVertexDeclaration",0,{name:a,shader:n}],17199);let o="morphTargetsVertexGlobal",s=`#ifdef MORPHTARGETS
572
+ #ifdef MORPHTARGETS_TEXTURE
573
+ float vertexID;
574
+ #endif
575
+ #endif
576
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["morphTargetsVertexGlobal",0,{name:o,shader:s}],61898);let f="morphTargetsVertex",l=`#ifdef MORPHTARGETS
577
+ #ifdef MORPHTARGETS_TEXTURE
578
+ #if {X}==0
579
+ for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
580
+ #ifdef MORPHTARGETS_POSITION
581
+ positionUpdated+=(readVector3FromRawSampler(i,vertexID)-position)*morphTargetInfluences[i];
582
+ #endif
583
+ #ifdef MORPHTARGETTEXTURE_HASPOSITIONS
584
+ vertexID+=1.0;
585
+ #endif
586
+ #ifdef MORPHTARGETS_NORMAL
587
+ normalUpdated+=(readVector3FromRawSampler(i,vertexID) -normal)*morphTargetInfluences[i];
588
+ #endif
589
+ #ifdef MORPHTARGETTEXTURE_HASNORMALS
590
+ vertexID+=1.0;
591
+ #endif
592
+ #ifdef MORPHTARGETS_UV
593
+ uvUpdated+=(readVector3FromRawSampler(i,vertexID).xy-uv)*morphTargetInfluences[i];
594
+ #endif
595
+ #ifdef MORPHTARGETTEXTURE_HASUVS
596
+ vertexID+=1.0;
597
+ #endif
598
+ #ifdef MORPHTARGETS_TANGENT
599
+ tangentUpdated.xyz+=(readVector3FromRawSampler(i,vertexID) -tangent.xyz)*morphTargetInfluences[i];
600
+ #endif
601
+ #ifdef MORPHTARGETTEXTURE_HASTANGENTS
602
+ vertexID+=1.0;
603
+ #endif
604
+ #ifdef MORPHTARGETS_UV2
605
+ uv2Updated+=(readVector3FromRawSampler(i,vertexID).xy-uv2)*morphTargetInfluences[i];
606
+ #endif
607
+ #ifdef MORPHTARGETTEXTURE_HASUV2S
608
+ vertexID+=1.0;
609
+ #endif
610
+ #ifdef MORPHTARGETS_COLOR
611
+ colorUpdated+=(readVector4FromRawSampler(i,vertexID)-color)*morphTargetInfluences[i];
612
+ #endif
613
+ }
614
+ #endif
615
+ #else
616
+ #ifdef MORPHTARGETS_POSITION
617
+ positionUpdated+=(position{X}-position)*morphTargetInfluences[{X}];
618
+ #endif
619
+ #ifdef MORPHTARGETS_NORMAL
620
+ normalUpdated+=(normal{X}-normal)*morphTargetInfluences[{X}];
621
+ #endif
622
+ #ifdef MORPHTARGETS_TANGENT
623
+ tangentUpdated.xyz+=(tangent{X}-tangent.xyz)*morphTargetInfluences[{X}];
624
+ #endif
625
+ #ifdef MORPHTARGETS_UV
626
+ uvUpdated+=(uv_{X}-uv)*morphTargetInfluences[{X}];
627
+ #endif
628
+ #ifdef MORPHTARGETS_UV2
629
+ uv2Updated+=(uv2_{X}-uv2)*morphTargetInfluences[{X}];
630
+ #endif
631
+ #ifdef MORPHTARGETS_COLOR
632
+ colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
633
+ #endif
634
+ #endif
635
+ #endif
636
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["morphTargetsVertex",0,{name:f,shader:l}],30505)},91141,e=>{"use strict";var i=e.i(2342);e.i(19831),e.i(49676);let t="openpbrUboDeclaration",r=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
637
+ #define ADDITIONAL_UBO_DECLARATION
638
+ };
830
639
  #include<sceneUboDeclaration>
831
640
  #include<meshUboDeclaration>
832
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["openpbrUboDeclaration",0,{name:t,shader:r}])},38660,e=>{"use strict";var i=e.i(37875);let t="sceneVertexDeclaration",r=`uniform mat4 viewProjection;
641
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["openpbrUboDeclaration",0,{name:t,shader:r}])},74701,e=>{"use strict";var i=e.i(2342);let t="pbrBRDFFunctions",r=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
642
+ #define BRDF_DIFFUSE_MODEL_EON 0
643
+ #define BRDF_DIFFUSE_MODEL_BURLEY 1
644
+ #define BRDF_DIFFUSE_MODEL_LAMBERT 2
645
+ #define BRDF_DIFFUSE_MODEL_LEGACY 3
646
+ #define DIELECTRIC_SPECULAR_MODEL_GLTF 0
647
+ #define DIELECTRIC_SPECULAR_MODEL_OPENPBR 1
648
+ #define CONDUCTOR_SPECULAR_MODEL_GLTF 0
649
+ #define CONDUCTOR_SPECULAR_MODEL_OPENPBR 1
650
+ #if !defined(PBR_VERTEX_SHADER) && !defined(OPENPBR_VERTEX_SHADER)
651
+ #ifdef MS_BRDF_ENERGY_CONSERVATION
652
+ vec3 getEnergyConservationFactor(const vec3 specularEnvironmentR0,const vec3 environmentBrdf) {return 1.0+specularEnvironmentR0*(1.0/environmentBrdf.y-1.0);}
653
+ #endif
654
+ #if CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR
655
+ #define F82_COS_THETA_MAX 0.142857143
656
+ #define F82_ONE_MINUS_CTM_POW5 0.462664366
657
+ #define F82_ONE_MINUS_CTM_POW6 0.396569457
658
+ #define F82_B_DENOMINATOR_RECIP 17.6512785
659
+ #define BRDF_Z_SCALE 16.0
660
+ vec3 getF82Specular(float NdotV,vec3 F0,vec3 edgeTint,float roughness) {vec3 white_minus_F0=vec3(1.0)-F0;vec3 b=(F0+white_minus_F0*F82_ONE_MINUS_CTM_POW5)*(vec3(1.0)-edgeTint)*F82_B_DENOMINATOR_RECIP;float cos_theta=max(roughness,NdotV);float one_minus_cos_theta=1.0-cos_theta;vec3 offset_from_F0=(white_minus_F0-b*cos_theta*one_minus_cos_theta)*pow(one_minus_cos_theta,5.0);return clamp(F0+offset_from_F0,0.0,1.0);}
661
+ vec3 getF82B(vec3 F0,vec3 edgeTint) {return (F0+(vec3(1.0)-F0)*F82_ONE_MINUS_CTM_POW5)*(vec3(1.0)-edgeTint)*F82_B_DENOMINATOR_RECIP;}
662
+ vec3 getF82DirectionalAlbedo(vec3 F0,vec3 F90,vec3 b,vec3 environmentBrdf) {return (F90-F0)*environmentBrdf.x+F0*environmentBrdf.y-b*environmentBrdf.z;}
663
+ vec3 getF82AverageFresnel(vec3 F0,vec3 b) {return F0+(vec3(1.0)-F0)/21.0-b/126.0;}
664
+ #endif
665
+ #ifdef FUZZENVIRONMENTBRDF
666
+ vec3 getFuzzBRDFLookup(float NdotV,float perceptualRoughness) {vec2 UV=vec2(perceptualRoughness,NdotV);vec4 brdfLookup=texture2D(environmentFuzzBrdfSampler,UV);const vec2 RiRange=vec2(0.0,0.75);const vec2 ARange =vec2(0.005,0.88);const vec2 BRange =vec2(-0.18,0.002);brdfLookup.r=mix(ARange.x, ARange.y, brdfLookup.r);brdfLookup.g=mix(BRange.x, BRange.y, brdfLookup.g);brdfLookup.b=mix(RiRange.x,RiRange.y,brdfLookup.b);return brdfLookup.rgb;}
667
+ #endif
668
+ #ifdef ENVIRONMENTBRDF
669
+ vec3 getBRDFLookup(float NdotV,float perceptualRoughness) {vec2 UV=vec2(NdotV,perceptualRoughness);vec4 brdfLookup=texture2D(environmentBrdfSampler,UV);
670
+ #ifdef ENVIRONMENTBRDF_RGBD
671
+ brdfLookup.rgb=fromRGBD(brdfLookup.rgba);
672
+ #endif
673
+ return brdfLookup.rgb;}
674
+ vec3 getReflectanceFromBRDFLookup(const vec3 specularEnvironmentR0,const vec3 specularEnvironmentR90,const vec3 environmentBrdf) {
675
+ #ifdef BRDF_V_HEIGHT_CORRELATED
676
+ vec3 reflectance=(specularEnvironmentR90-specularEnvironmentR0)*environmentBrdf.x+specularEnvironmentR0*environmentBrdf.y;
677
+ #else
678
+ vec3 reflectance=specularEnvironmentR0*environmentBrdf.x+specularEnvironmentR90*environmentBrdf.y;
679
+ #endif
680
+ return reflectance;}
681
+ vec3 getReflectanceFromBRDFLookup(const vec3 specularEnvironmentR0,const vec3 environmentBrdf) {
682
+ #ifdef BRDF_V_HEIGHT_CORRELATED
683
+ vec3 reflectance=mix(environmentBrdf.xxx,environmentBrdf.yyy,specularEnvironmentR0);
684
+ #else
685
+ vec3 reflectance=specularEnvironmentR0*environmentBrdf.x+environmentBrdf.y;
686
+ #endif
687
+ return reflectance;}
688
+ #endif
689
+ /* NOT USED
690
+ #if defined(SHEEN) && defined(SHEEN_SOFTER)
691
+ float getBRDFLookupCharlieSheen(float NdotV,float perceptualRoughness)
692
+ {float c=1.0-NdotV;float c3=c*c*c;return 0.65584461*c3+1.0/(4.16526551+exp(-7.97291361*perceptualRoughness+6.33516894));}
693
+ #endif
694
+ */
695
+ #if !defined(ENVIRONMENTBRDF) || defined(REFLECTIONMAP_SKYBOX) || defined(ALPHAFRESNEL)
696
+ vec3 getReflectanceFromAnalyticalBRDFLookup_Jones(float VdotN,vec3 reflectance0,vec3 reflectance90,float smoothness)
697
+ {float weight=mix(FRESNEL_MAXIMUM_ON_ROUGH,1.0,smoothness);return reflectance0+weight*(reflectance90-reflectance0)*pow5(saturate(1.0-VdotN));}
698
+ #endif
699
+ #if defined(SHEEN) && defined(ENVIRONMENTBRDF)
700
+ /**
701
+ * The sheen BRDF not containing F can be easily stored in the blue channel of the BRDF texture.
702
+ * The blue channel contains DCharlie*VAshikhmin*NdotL as a lokkup table
703
+ */
704
+ vec3 getSheenReflectanceFromBRDFLookup(const vec3 reflectance0,const vec3 environmentBrdf) {vec3 sheenEnvironmentReflectance=reflectance0*environmentBrdf.b;return sheenEnvironmentReflectance;}
705
+ #endif
706
+ vec3 fresnelSchlickGGX(float VdotH,vec3 reflectance0,vec3 reflectance90)
707
+ {return reflectance0+(reflectance90-reflectance0)*pow5(1.0-VdotH);}
708
+ float fresnelSchlickGGX(float VdotH,float reflectance0,float reflectance90)
709
+ {return reflectance0+(reflectance90-reflectance0)*pow5(1.0-VdotH);}
710
+ #ifdef CLEARCOAT
711
+ vec3 getR0RemappedForClearCoat(vec3 f0) {
712
+ #ifdef CLEARCOAT_DEFAULTIOR
713
+ #ifdef MOBILE
714
+ return saturate(f0*(f0*0.526868+0.529324)-0.0482256);
715
+ #else
716
+ return saturate(f0*(f0*(0.941892-0.263008*f0)+0.346479)-0.0285998);
717
+ #endif
718
+ #else
719
+ vec3 s=sqrt(f0);vec3 t=(vClearCoatRefractionParams.z+vClearCoatRefractionParams.w*s)/(vClearCoatRefractionParams.w+vClearCoatRefractionParams.z*s);return square(t);
720
+ #endif
721
+ }
722
+ #endif
723
+ #ifdef IRIDESCENCE
724
+ const mat3 XYZ_TO_REC709=mat3(
725
+ 3.2404542,-0.9692660, 0.0556434,
726
+ -1.5371385, 1.8760108,-0.2040259,
727
+ -0.4985314, 0.0415560, 1.0572252
728
+ );vec3 getIORTfromAirToSurfaceR0(vec3 f0) {vec3 sqrtF0=sqrt(f0);return (1.+sqrtF0)/(1.-sqrtF0);}
729
+ vec3 getR0fromIORs(vec3 iorT,float iorI) {return square((iorT-vec3(iorI))/(iorT+vec3(iorI)));}
730
+ float getR0fromIORs(float iorT,float iorI) {return square((iorT-iorI)/(iorT+iorI));}
731
+ vec3 evalSensitivity(float opd,vec3 shift) {float phase=2.0*PI*opd*1.0e-9;const vec3 val=vec3(5.4856e-13,4.4201e-13,5.2481e-13);const vec3 pos=vec3(1.6810e+06,1.7953e+06,2.2084e+06);const vec3 var=vec3(4.3278e+09,9.3046e+09,6.6121e+09);vec3 xyz=val*sqrt(2.0*PI*var)*cos(pos*phase+shift)*exp(-square(phase)*var);xyz.x+=9.7470e-14*sqrt(2.0*PI*4.5282e+09)*cos(2.2399e+06*phase+shift[0])*exp(-4.5282e+09*square(phase));xyz/=1.0685e-7;vec3 srgb=XYZ_TO_REC709*xyz;return srgb;}
732
+ vec3 evalIridescence(float outsideIOR,float eta2,float cosTheta1,float thinFilmThickness,vec3 baseF0) {vec3 I=vec3(1.0);float iridescenceIOR=mix(outsideIOR,eta2,smoothstep(0.0,0.03,thinFilmThickness));float sinTheta2Sq=square(outsideIOR/iridescenceIOR)*(1.0-square(cosTheta1));float cosTheta2Sq=1.0-sinTheta2Sq;if (cosTheta2Sq<0.0) {return I;}
733
+ float cosTheta2=sqrt(cosTheta2Sq);float R0=getR0fromIORs(iridescenceIOR,outsideIOR);float R12=fresnelSchlickGGX(cosTheta1,R0,1.);float R21=R12;float T121=1.0-R12;float phi12=0.0;if (iridescenceIOR<outsideIOR) phi12=PI;float phi21=PI-phi12;vec3 baseIOR=getIORTfromAirToSurfaceR0(clamp(baseF0,0.0,0.9999));
734
+ vec3 R1=getR0fromIORs(baseIOR,iridescenceIOR);float maxR1=max(R1.r,max(R1.g,R1.b));if (maxR1<1e-6) {return max(vec3(R12),vec3(0.0));}
735
+ vec3 R23=fresnelSchlickGGX(cosTheta2,R1,vec3(1.));vec3 phi23=vec3(0.0);if (baseIOR[0]<iridescenceIOR) phi23[0]=PI;if (baseIOR[1]<iridescenceIOR) phi23[1]=PI;if (baseIOR[2]<iridescenceIOR) phi23[2]=PI;float opd=2.0*iridescenceIOR*thinFilmThickness*cosTheta2;vec3 phi=vec3(phi21)+phi23;vec3 R123=clamp(R12*R23,1e-5,0.9999);vec3 r123=sqrt(R123);vec3 Rs=square(T121)*R23/(vec3(1.0)-R123);vec3 C0=R12+Rs;I=C0;vec3 Cm=Rs-T121;for (int m=1; m<=2; ++m)
736
+ {Cm*=r123;vec3 Sm=2.0*evalSensitivity(float(m)*opd,float(m)*phi);I+=Cm*Sm;}
737
+ return max(I,vec3(0.0));}
738
+ #endif
739
+ float normalDistributionFunction_TrowbridgeReitzGGX(float NdotH,float alphaG)
740
+ {float a2=square(alphaG);float d=NdotH*NdotH*(a2-1.0)+1.0;return a2/(PI*d*d);}
741
+ #ifdef SHEEN
742
+ float normalDistributionFunction_CharlieSheen(float NdotH,float alphaG)
743
+ {float invR=1./alphaG;float cos2h=NdotH*NdotH;float sin2h=1.-cos2h;return (2.+invR)*pow(sin2h,invR*.5)/(2.*PI);}
744
+ #endif
745
+ #ifdef ANISOTROPIC
746
+ float normalDistributionFunction_BurleyGGX_Anisotropic(float NdotH,float TdotH,float BdotH,const vec2 alphaTB) {float a2=alphaTB.x*alphaTB.y;vec3 v=vec3(alphaTB.y*TdotH,alphaTB.x *BdotH,a2*NdotH);float v2=dot(v,v);float w2=a2/v2;return a2*w2*w2*RECIPROCAL_PI;}
747
+ #endif
748
+ #ifdef BRDF_V_HEIGHT_CORRELATED
749
+ float smithVisibility_GGXCorrelated(float NdotL,float NdotV,float alphaG) {
750
+ #ifdef MOBILE
751
+ float GGXV=NdotL*(NdotV*(1.0-alphaG)+alphaG);float GGXL=NdotV*(NdotL*(1.0-alphaG)+alphaG);return 0.5/(GGXV+GGXL);
752
+ #else
753
+ float a2=alphaG*alphaG;float GGXV=NdotL*sqrt(NdotV*(NdotV-a2*NdotV)+a2);float GGXL=NdotV*sqrt(NdotL*(NdotL-a2*NdotL)+a2);return 0.5/(GGXV+GGXL);
754
+ #endif
755
+ }
756
+ #else
757
+ float smithVisibilityG1_TrowbridgeReitzGGXFast(float dot,float alphaG)
758
+ {
759
+ #ifdef MOBILE
760
+ return 1.0/(dot+alphaG+(1.0-alphaG)*dot ));
761
+ #else
762
+ float alphaSquared=alphaG*alphaG;return 1.0/(dot+sqrt(alphaSquared+(1.0-alphaSquared)*dot*dot));
763
+ #endif
764
+ }
765
+ float smithVisibility_TrowbridgeReitzGGXFast(float NdotL,float NdotV,float alphaG)
766
+ {float visibility=smithVisibilityG1_TrowbridgeReitzGGXFast(NdotL,alphaG)*smithVisibilityG1_TrowbridgeReitzGGXFast(NdotV,alphaG);return visibility;}
767
+ #endif
768
+ #ifdef ANISOTROPIC
769
+ float smithVisibility_GGXCorrelated_Anisotropic(float NdotL,float NdotV,float TdotV,float BdotV,float TdotL,float BdotL,const vec2 alphaTB) {float lambdaV=NdotL*length(vec3(alphaTB.x*TdotV,alphaTB.y*BdotV,NdotV));float lambdaL=NdotV*length(vec3(alphaTB.x*TdotL,alphaTB.y*BdotL,NdotL));float v=0.5/(lambdaV+lambdaL);return v;}
770
+ #endif
771
+ #ifdef CLEARCOAT
772
+ float visibility_Kelemen(float VdotH) {return 0.25/(VdotH*VdotH); }
773
+ #endif
774
+ #ifdef SHEEN
775
+ float visibility_Ashikhmin(float NdotL,float NdotV)
776
+ {return 1./(4.*(NdotL+NdotV-NdotL*NdotV));}
777
+ /* NOT USED
778
+ #ifdef SHEEN_SOFTER
779
+ float l(float x,float alphaG)
780
+ {float oneMinusAlphaSq=(1.0-alphaG)*(1.0-alphaG);float a=mix(21.5473,25.3245,oneMinusAlphaSq);float b=mix(3.82987,3.32435,oneMinusAlphaSq);float c=mix(0.19823,0.16801,oneMinusAlphaSq);float d=mix(-1.97760,-1.27393,oneMinusAlphaSq);float e=mix(-4.32054,-4.85967,oneMinusAlphaSq);return a/(1.0+b*pow(x,c))+d*x+e;}
781
+ float lambdaSheen(float cosTheta,float alphaG)
782
+ {return abs(cosTheta)<0.5 ? exp(l(cosTheta,alphaG)) : exp(2.0*l(0.5,alphaG)-l(1.0-cosTheta,alphaG));}
783
+ float visibility_CharlieSheen(float NdotL,float NdotV,float alphaG)
784
+ {float G=1.0/(1.0+lambdaSheen(NdotV,alphaG)+lambdaSheen(NdotL,alphaG));return G/(4.0*NdotV*NdotL);}
785
+ #endif
786
+ */
787
+ #endif
788
+ float diffuseBRDF_Burley(float NdotL,float NdotV,float VdotH,float roughness) {float diffuseFresnelNV=pow5(saturateEps(1.0-NdotL));float diffuseFresnelNL=pow5(saturateEps(1.0-NdotV));float diffuseFresnel90=0.5+2.0*VdotH*VdotH*roughness;float fresnel =
789
+ (1.0+(diffuseFresnel90-1.0)*diffuseFresnelNL) *
790
+ (1.0+(diffuseFresnel90-1.0)*diffuseFresnelNV);return fresnel/PI;}
791
+ const float constant1_FON=0.5-2.0/(3.0*PI);const float constant2_FON=2.0/3.0-28.0/(15.0*PI);float E_FON_approx(float mu,float roughness)
792
+ {float sigma=roughness;
793
+ float mucomp=1.0-mu;float mucomp2=mucomp*mucomp;const mat2 Gcoeffs=mat2(0.0571085289,-0.332181442,
794
+ 0.491881867,0.0714429953);float GoverPi=dot(Gcoeffs*vec2(mucomp,mucomp2),vec2(1.0,mucomp2));return (1.0+sigma*GoverPi)/(1.0+constant1_FON*sigma);}
795
+ vec3 diffuseBRDF_EON(vec3 albedo,float roughness,float NdotL,float NdotV,float LdotV)
796
+ {vec3 rho=albedo;float sigma=roughness;
797
+ float mu_i=NdotL;
798
+ float mu_o=NdotV;
799
+ float s=LdotV-mu_i*mu_o;
800
+ float sovertF=s>0.0 ? s/max(mu_i,mu_o) : s;
801
+ float AF=1.0/(1.0+constant1_FON*sigma);
802
+ vec3 f_ss=(rho*RECIPROCAL_PI)*AF*(1.0+sigma*sovertF);
803
+ float EFo=E_FON_approx(mu_o,sigma);
804
+ float EFi=E_FON_approx(mu_i,sigma);
805
+ float avgEF=AF*(1.0+constant2_FON*sigma);
806
+ vec3 rho_ms=(rho*rho)*avgEF/(vec3(1.0)-rho*(1.0-avgEF));const float eps=1.0e-7;vec3 f_ms=(rho_ms*RECIPROCAL_PI)*max(eps,1.0-EFo)
807
+ * max(eps,1.0-EFi)
808
+ / max(eps,1.0-avgEF);return (f_ss+f_ms);}
809
+ #ifdef SS_TRANSLUCENCY
810
+ vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,float thickness) {vec3 S=1./maxEps(diffusionDistance);vec3 temp=exp((-0.333333333*thickness)*S);return tintColor.rgb*0.25*(temp*temp*temp+3.0*temp);}
811
+ float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
812
+ #endif
813
+ #endif
814
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["pbrBRDFFunctions",0,{name:t,shader:r}])},19831,e=>{"use strict";var i=e.i(2342);let t="sceneUboDeclaration",r=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
815
+ #ifdef MULTIVIEW
816
+ mat4 viewProjectionR;
817
+ #endif
818
+ mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
819
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["sceneUboDeclaration",0,{name:t,shader:r}])},64024,e=>{"use strict";var i=e.i(2342);let t="vertexColorMixing",r=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
820
+ vColor=vec4(1.0);
821
+ #ifdef VERTEXCOLOR
822
+ #ifdef VERTEXALPHA
823
+ vColor*=colorUpdated;
824
+ #else
825
+ vColor.rgb*=colorUpdated.rgb;
826
+ #endif
827
+ #endif
828
+ #ifdef INSTANCESCOLOR
829
+ vColor*=instanceColor;
830
+ #endif
831
+ #endif
832
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["vertexColorMixing",0,{name:t,shader:r}])},75363,e=>{"use strict";var i=e.i(2342);let t="sceneVertexDeclaration",r=`uniform mat4 viewProjection;
833
833
  #ifdef MULTIVIEW
834
834
  uniform mat4 viewProjectionR;
835
835
  #endif
836
836
  uniform mat4 view;uniform mat4 projection;uniform vec4 vEyePosition;
837
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r);var a=e.i(13222);let n="openpbrVertexDeclaration",o=`#include<sceneVertexDeclaration>
837
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r);var a=e.i(35118);let n="openpbrVertexDeclaration",o=`#include<sceneVertexDeclaration>
838
838
  #ifdef BASE_COLOR
839
839
  uniform vec2 vBaseColorInfos;uniform mat4 baseColorMatrix;
840
840
  #endif
@@ -961,17 +961,17 @@ uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
961
961
  #endif
962
962
  #include<decalVertexDeclaration>
963
963
  #define ADDITIONAL_VERTEX_DECLARATION
964
- `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=o);var s=e.i(23044),f=e.i(64010),l=e.i(9268),c=e.i(97761),d=e.i(46349),m=e.i(87027),E=e.i(85916),u=e.i(40498),v=e.i(71372),S=e.i(41416),I=e.i(2599),N=e.i(80514),_=e.i(98932);let A="openpbrNormalMapVertexDeclaration",R=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
964
+ `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=o);var s=e.i(19831),f=e.i(49676),l=e.i(91141),c=e.i(28774),d=e.i(65225),m=e.i(62308),E=e.i(74701),u=e.i(59780),v=e.i(8005),S=e.i(69071),I=e.i(24373),N=e.i(85806),_=e.i(8500);let A="openpbrNormalMapVertexDeclaration",R=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
965
965
  #if defined(TANGENT) && defined(NORMAL)
966
966
  varying mat3 vTBN;
967
967
  #endif
968
968
  #endif
969
- `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R);var h=e.i(76544),p=e.i(70638),T=e.i(20738),M=e.i(52028),x=e.i(46389),O=e.i(29263),g=e.i(85394),V=e.i(7203),C=e.i(80875),D=e.i(66567),F=e.i(51390),L=e.i(80190),P=e.i(52308),G=e.i(78652),U=e.i(50048);let b="openpbrNormalMapVertex",B=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
969
+ `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R);var h=e.i(40566),p=e.i(21659),T=e.i(8517),M=e.i(93646),x=e.i(32996),O=e.i(17199),g=e.i(80790),V=e.i(61898),C=e.i(30505),D=e.i(35966),F=e.i(65123),L=e.i(1440),P=e.i(32191),G=e.i(73499),U=e.i(58649);let b="openpbrNormalMapVertex",B=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
970
970
  #if defined(TANGENT) && defined(NORMAL)
971
971
  vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
972
972
  #endif
973
973
  #endif
974
- `;i.ShaderStore.IncludesShadersStore[b]||(i.ShaderStore.IncludesShadersStore[b]=B);var y=e.i(59452),X=e.i(82576),W=e.i(99149),H=e.i(29839),Y=e.i(85804);let z="openpbrVertexShader",w=`#define OPENPBR_VERTEX_SHADER
974
+ `;i.ShaderStore.IncludesShadersStore[b]||(i.ShaderStore.IncludesShadersStore[b]=B);var y=e.i(56659),X=e.i(33475),W=e.i(59442),H=e.i(64024),Y=e.i(16147);let z="openpbrVertexShader",w=`#define OPENPBR_VERTEX_SHADER
975
975
  #define CUSTOM_VERTEX_EXTENSION
976
976
  precision highp float;
977
977
  #include<__decl__openpbrVertex>
@@ -1192,4 +1192,4 @@ gl_PointSize=pointSize;
1192
1192
  #include<logDepthVertex>
1193
1193
  #define CUSTOM_VERTEX_MAIN_END
1194
1194
  }
1195
- `;for(let e of(i.ShaderStore.ShadersStore[z]||(i.ShaderStore.ShadersStore[z]=w),[{name:t,shader:r},a.decalVertexDeclaration,{name:n,shader:o},s.sceneUboDeclaration,f.meshUboDeclaration,l.openpbrUboDeclaration,c.uvAttributeDeclaration,d.mainUVVaryingDeclaration,m.helperFunctions,E.pbrBRDFFunctions,u.bonesDeclaration,v.bakedVertexAnimationDeclaration,S.instancesDeclaration,I.prePassVertexDeclaration,N.samplerVertexDeclaration,_.harmonicsFunctions,{name:A,shader:R},h.clipPlaneVertexDeclaration,p.fogVertexDeclaration,T.lightVxFragmentDeclaration,M.lightVxUboDeclaration,x.morphTargetsVertexGlobalDeclaration,O.morphTargetsVertexDeclaration,g.logDepthDeclaration,V.morphTargetsVertexGlobal,C.morphTargetsVertex,D.instancesVertex,F.bonesVertex,L.bakedVertexAnimation,P.prePassVertex,G.uvVariableDeclaration,U.samplerVertexImplementation,{name:b,shader:B},y.clipPlaneVertex,X.fogVertex,W.shadowsVertex,H.vertexColorMixing,Y.logDepthVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrVertexShader",0,{name:z,shader:w}],38660)}]);
1195
+ `;for(let e of(i.ShaderStore.ShadersStore[z]||(i.ShaderStore.ShadersStore[z]=w),[{name:t,shader:r},a.decalVertexDeclaration,{name:n,shader:o},s.sceneUboDeclaration,f.meshUboDeclaration,l.openpbrUboDeclaration,c.uvAttributeDeclaration,d.mainUVVaryingDeclaration,m.helperFunctions,E.pbrBRDFFunctions,u.bonesDeclaration,v.bakedVertexAnimationDeclaration,S.instancesDeclaration,I.prePassVertexDeclaration,N.samplerVertexDeclaration,_.harmonicsFunctions,{name:A,shader:R},h.clipPlaneVertexDeclaration,p.fogVertexDeclaration,T.lightVxFragmentDeclaration,M.lightVxUboDeclaration,x.morphTargetsVertexGlobalDeclaration,O.morphTargetsVertexDeclaration,g.logDepthDeclaration,V.morphTargetsVertexGlobal,C.morphTargetsVertex,D.instancesVertex,F.bonesVertex,L.bakedVertexAnimation,P.prePassVertex,G.uvVariableDeclaration,U.samplerVertexImplementation,{name:b,shader:B},y.clipPlaneVertex,X.fogVertex,W.shadowsVertex,H.vertexColorMixing,Y.logDepthVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrVertexShader",0,{name:z,shader:w}],75363)}]);