@babylonjs/viewer 7.37.1 → 7.37.2-alpha

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 (607) hide show
  1. package/assets/photoStudio.env +0 -0
  2. package/dist/babylon-viewer.esm.js +2 -0
  3. package/dist/babylon-viewer.esm.js.map +1 -0
  4. package/dist/babylon-viewer.esm.min.js +2 -0
  5. package/dist/babylon-viewer.esm.min.js.map +1 -0
  6. package/dist/chunks/EXT_lights_image_based-D45X9BPl.esm.js +171 -0
  7. package/dist/chunks/EXT_lights_image_based-D45X9BPl.esm.js.map +1 -0
  8. package/dist/chunks/EXT_lights_image_based-DvoqYcdP.esm.min.js +2 -0
  9. package/dist/chunks/EXT_lights_image_based-DvoqYcdP.esm.min.js.map +1 -0
  10. package/dist/chunks/EXT_mesh_gpu_instancing-DUn1RAdN.esm.min.js +2 -0
  11. package/dist/chunks/EXT_mesh_gpu_instancing-DUn1RAdN.esm.min.js.map +1 -0
  12. package/dist/chunks/EXT_mesh_gpu_instancing-Dp_omjlL.esm.js +86 -0
  13. package/dist/chunks/EXT_mesh_gpu_instancing-Dp_omjlL.esm.js.map +1 -0
  14. package/dist/chunks/EXT_meshopt_compression-BQC_7caz.esm.min.js +2 -0
  15. package/dist/chunks/EXT_meshopt_compression-BQC_7caz.esm.min.js.map +1 -0
  16. package/dist/chunks/EXT_meshopt_compression-FzRlF20_.esm.js +134 -0
  17. package/dist/chunks/EXT_meshopt_compression-FzRlF20_.esm.js.map +1 -0
  18. package/dist/chunks/EXT_texture_avif-NFJz66Ay.esm.js +44 -0
  19. package/dist/chunks/EXT_texture_avif-NFJz66Ay.esm.js.map +1 -0
  20. package/dist/chunks/EXT_texture_avif-yLvrskbZ.esm.min.js +2 -0
  21. package/dist/chunks/EXT_texture_avif-yLvrskbZ.esm.min.js.map +1 -0
  22. package/dist/chunks/EXT_texture_webp-CR7Z5YIQ.esm.js +43 -0
  23. package/dist/chunks/EXT_texture_webp-CR7Z5YIQ.esm.js.map +1 -0
  24. package/dist/chunks/EXT_texture_webp-Cu47KLsz.esm.min.js +2 -0
  25. package/dist/chunks/EXT_texture_webp-Cu47KLsz.esm.min.js.map +1 -0
  26. package/dist/chunks/ExtrasAsMetadata-BwakFlBM.esm.js +64 -0
  27. package/dist/chunks/ExtrasAsMetadata-BwakFlBM.esm.js.map +1 -0
  28. package/dist/chunks/ExtrasAsMetadata-u1k4kprs.esm.min.js +2 -0
  29. package/dist/chunks/ExtrasAsMetadata-u1k4kprs.esm.min.js.map +1 -0
  30. package/dist/chunks/KHR_animation_pointer-DPbRpQcN.esm.min.js +2 -0
  31. package/dist/chunks/KHR_animation_pointer-DPbRpQcN.esm.min.js.map +1 -0
  32. package/dist/chunks/KHR_animation_pointer-wjOBsM1d.esm.js +343 -0
  33. package/dist/chunks/KHR_animation_pointer-wjOBsM1d.esm.js.map +1 -0
  34. package/dist/chunks/KHR_draco_mesh_compression-BkgYMOOx.esm.min.js +2 -0
  35. package/dist/chunks/KHR_draco_mesh_compression-BkgYMOOx.esm.min.js.map +1 -0
  36. package/dist/chunks/KHR_draco_mesh_compression-CvnZzfX3.esm.js +617 -0
  37. package/dist/chunks/KHR_draco_mesh_compression-CvnZzfX3.esm.js.map +1 -0
  38. package/dist/chunks/KHR_interactivity-Bp7_TJm9.esm.min.js +2 -0
  39. package/dist/chunks/KHR_interactivity-Bp7_TJm9.esm.min.js.map +1 -0
  40. package/dist/chunks/KHR_interactivity-C_Z4RJhE.esm.js +4033 -0
  41. package/dist/chunks/KHR_interactivity-C_Z4RJhE.esm.js.map +1 -0
  42. package/dist/chunks/KHR_lights_punctual-BbuFDbKG.esm.min.js +2 -0
  43. package/dist/chunks/KHR_lights_punctual-BbuFDbKG.esm.min.js.map +1 -0
  44. package/dist/chunks/KHR_lights_punctual-GHjZ7VCq.esm.js +1253 -0
  45. package/dist/chunks/KHR_lights_punctual-GHjZ7VCq.esm.js.map +1 -0
  46. package/dist/chunks/KHR_materials_anisotropy-DHgmJTOh.esm.js +65 -0
  47. package/dist/chunks/KHR_materials_anisotropy-DHgmJTOh.esm.js.map +1 -0
  48. package/dist/chunks/KHR_materials_anisotropy-Dc4Evl1P.esm.min.js +2 -0
  49. package/dist/chunks/KHR_materials_anisotropy-Dc4Evl1P.esm.min.js.map +1 -0
  50. package/dist/chunks/KHR_materials_clearcoat-BOp_vaqd.esm.js +96 -0
  51. package/dist/chunks/KHR_materials_clearcoat-BOp_vaqd.esm.js.map +1 -0
  52. package/dist/chunks/KHR_materials_clearcoat-D2jlT4tq.esm.min.js +2 -0
  53. package/dist/chunks/KHR_materials_clearcoat-D2jlT4tq.esm.min.js.map +1 -0
  54. package/dist/chunks/KHR_materials_diffuse_transmission-YlZ556xa.esm.js +97 -0
  55. package/dist/chunks/KHR_materials_diffuse_transmission-YlZ556xa.esm.js.map +1 -0
  56. package/dist/chunks/KHR_materials_diffuse_transmission-uETEXjDc.esm.min.js +2 -0
  57. package/dist/chunks/KHR_materials_diffuse_transmission-uETEXjDc.esm.min.js.map +1 -0
  58. package/dist/chunks/KHR_materials_dispersion-CbThEQRc.esm.min.js +2 -0
  59. package/dist/chunks/KHR_materials_dispersion-CbThEQRc.esm.min.js.map +1 -0
  60. package/dist/chunks/KHR_materials_dispersion-CeAPqVnK.esm.js +62 -0
  61. package/dist/chunks/KHR_materials_dispersion-CeAPqVnK.esm.js.map +1 -0
  62. package/dist/chunks/KHR_materials_emissive_strength-C-T3BnvJ.esm.js +55 -0
  63. package/dist/chunks/KHR_materials_emissive_strength-C-T3BnvJ.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_emissive_strength-DpIZDJjV.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_emissive_strength-DpIZDJjV.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_ior-BPl8Q63c.esm.min.js +2 -0
  67. package/dist/chunks/KHR_materials_ior-BPl8Q63c.esm.min.js.map +1 -0
  68. package/dist/chunks/KHR_materials_ior-CMoT96u7.esm.js +64 -0
  69. package/dist/chunks/KHR_materials_ior-CMoT96u7.esm.js.map +1 -0
  70. package/dist/chunks/KHR_materials_iridescence-CbiG9QMp.esm.js +72 -0
  71. package/dist/chunks/KHR_materials_iridescence-CbiG9QMp.esm.js.map +1 -0
  72. package/dist/chunks/KHR_materials_iridescence-DazLBrvx.esm.min.js +2 -0
  73. package/dist/chunks/KHR_materials_iridescence-DazLBrvx.esm.min.js.map +1 -0
  74. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CJ_wCBPx.esm.min.js +2 -0
  75. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CJ_wCBPx.esm.min.js.map +1 -0
  76. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CYVtDKuH.esm.js +81 -0
  77. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CYVtDKuH.esm.js.map +1 -0
  78. package/dist/chunks/KHR_materials_sheen-DnGPeNaP.esm.min.js +2 -0
  79. package/dist/chunks/KHR_materials_sheen-DnGPeNaP.esm.min.js.map +1 -0
  80. package/dist/chunks/KHR_materials_sheen-DwVBW5RD.esm.js +85 -0
  81. package/dist/chunks/KHR_materials_sheen-DwVBW5RD.esm.js.map +1 -0
  82. package/dist/chunks/KHR_materials_specular-CAsu1BbY.esm.js +75 -0
  83. package/dist/chunks/KHR_materials_specular-CAsu1BbY.esm.js.map +1 -0
  84. package/dist/chunks/KHR_materials_specular-CChgOSyW.esm.min.js +2 -0
  85. package/dist/chunks/KHR_materials_specular-CChgOSyW.esm.min.js.map +1 -0
  86. package/dist/chunks/KHR_materials_transmission-BrFI5--W.esm.min.js +2 -0
  87. package/dist/chunks/KHR_materials_transmission-BrFI5--W.esm.min.js.map +1 -0
  88. package/dist/chunks/KHR_materials_transmission-CLJ21RLG.esm.js +307 -0
  89. package/dist/chunks/KHR_materials_transmission-CLJ21RLG.esm.js.map +1 -0
  90. package/dist/chunks/KHR_materials_unlit-ChwDkFrO.esm.min.js +2 -0
  91. package/dist/chunks/KHR_materials_unlit-ChwDkFrO.esm.min.js.map +1 -0
  92. package/dist/chunks/KHR_materials_unlit-D1jnRNyV.esm.js +74 -0
  93. package/dist/chunks/KHR_materials_unlit-D1jnRNyV.esm.js.map +1 -0
  94. package/dist/chunks/KHR_materials_variants-Ddre8Lod.esm.js +262 -0
  95. package/dist/chunks/KHR_materials_variants-Ddre8Lod.esm.js.map +1 -0
  96. package/dist/chunks/KHR_materials_variants-Dpc2HvWc.esm.min.js +2 -0
  97. package/dist/chunks/KHR_materials_variants-Dpc2HvWc.esm.min.js.map +1 -0
  98. package/dist/chunks/KHR_materials_volume-BDaeNwhf.esm.min.js +2 -0
  99. package/dist/chunks/KHR_materials_volume-BDaeNwhf.esm.min.js.map +1 -0
  100. package/dist/chunks/KHR_materials_volume-BZ-tXxF4.esm.js +87 -0
  101. package/dist/chunks/KHR_materials_volume-BZ-tXxF4.esm.js.map +1 -0
  102. package/dist/chunks/KHR_mesh_quantization-D4HKzP6W.esm.js +26 -0
  103. package/dist/chunks/KHR_mesh_quantization-D4HKzP6W.esm.js.map +1 -0
  104. package/dist/chunks/KHR_mesh_quantization-DWr7XBwO.esm.min.js +2 -0
  105. package/dist/chunks/KHR_mesh_quantization-DWr7XBwO.esm.min.js.map +1 -0
  106. package/dist/chunks/KHR_node_visibility-BM8WB-g8.esm.js +46 -0
  107. package/dist/chunks/KHR_node_visibility-BM8WB-g8.esm.js.map +1 -0
  108. package/dist/chunks/KHR_node_visibility-CMgS0dIb.esm.min.js +2 -0
  109. package/dist/chunks/KHR_node_visibility-CMgS0dIb.esm.min.js.map +1 -0
  110. package/dist/chunks/KHR_texture_basisu-CFiKlH_6.esm.min.js +2 -0
  111. package/dist/chunks/KHR_texture_basisu-CFiKlH_6.esm.min.js.map +1 -0
  112. package/dist/chunks/KHR_texture_basisu-wSj80uo8.esm.js +43 -0
  113. package/dist/chunks/KHR_texture_basisu-wSj80uo8.esm.js.map +1 -0
  114. package/dist/chunks/KHR_texture_transform-BHJQrws1.esm.min.js +2 -0
  115. package/dist/chunks/KHR_texture_transform-BHJQrws1.esm.min.js.map +1 -0
  116. package/dist/chunks/KHR_texture_transform-DfIfyEiA.esm.js +63 -0
  117. package/dist/chunks/KHR_texture_transform-DfIfyEiA.esm.js.map +1 -0
  118. package/dist/chunks/KHR_xmp_json_ld-DAafq-bI.esm.min.js +2 -0
  119. package/dist/chunks/KHR_xmp_json_ld-DAafq-bI.esm.min.js.map +1 -0
  120. package/dist/chunks/KHR_xmp_json_ld-RfffrpV5.esm.js +51 -0
  121. package/dist/chunks/KHR_xmp_json_ld-RfffrpV5.esm.js.map +1 -0
  122. package/dist/chunks/MSFT_audio_emitter-CKrMwXYI.esm.min.js +2 -0
  123. package/dist/chunks/MSFT_audio_emitter-CKrMwXYI.esm.min.js.map +1 -0
  124. package/dist/chunks/MSFT_audio_emitter-DDYuCTGi.esm.js +2207 -0
  125. package/dist/chunks/MSFT_audio_emitter-DDYuCTGi.esm.js.map +1 -0
  126. package/dist/chunks/MSFT_lod-Cfc1EV9L.esm.min.js +2 -0
  127. package/dist/chunks/MSFT_lod-Cfc1EV9L.esm.min.js.map +1 -0
  128. package/dist/chunks/MSFT_lod-RVQcBMWp.esm.js +337 -0
  129. package/dist/chunks/MSFT_lod-RVQcBMWp.esm.js.map +1 -0
  130. package/dist/chunks/MSFT_minecraftMesh-Dm5jAW21.esm.js +46 -0
  131. package/dist/chunks/MSFT_minecraftMesh-Dm5jAW21.esm.js.map +1 -0
  132. package/dist/chunks/MSFT_minecraftMesh-yuZO0qjN.esm.min.js +2 -0
  133. package/dist/chunks/MSFT_minecraftMesh-yuZO0qjN.esm.min.js.map +1 -0
  134. package/dist/chunks/MSFT_sRGBFactors-C7KWVh91.esm.min.js +2 -0
  135. package/dist/chunks/MSFT_sRGBFactors-C7KWVh91.esm.min.js.map +1 -0
  136. package/dist/chunks/MSFT_sRGBFactors-CNCFUZ1u.esm.js +47 -0
  137. package/dist/chunks/MSFT_sRGBFactors-CNCFUZ1u.esm.js.map +1 -0
  138. package/dist/chunks/animationGroup-BIh9TTLl.esm.min.js +2 -0
  139. package/dist/chunks/animationGroup-BIh9TTLl.esm.min.js.map +1 -0
  140. package/dist/chunks/animationGroup-QFeHaJ5n.esm.js +2482 -0
  141. package/dist/chunks/animationGroup-QFeHaJ5n.esm.js.map +1 -0
  142. package/dist/chunks/assetContainer-Cp4IJx4o.esm.min.js +2 -0
  143. package/dist/chunks/assetContainer-Cp4IJx4o.esm.min.js.map +1 -0
  144. package/dist/chunks/assetContainer-GrtWSUiK.esm.js +1720 -0
  145. package/dist/chunks/assetContainer-GrtWSUiK.esm.js.map +1 -0
  146. package/dist/chunks/audioEngine-QQVA159S.esm.min.js +2 -0
  147. package/dist/chunks/audioEngine-QQVA159S.esm.min.js.map +1 -0
  148. package/dist/chunks/audioEngine-oSZiqHGi.esm.js +305 -0
  149. package/dist/chunks/audioEngine-oSZiqHGi.esm.js.map +1 -0
  150. package/dist/chunks/bakedVertexAnimation-2pyORBI7.esm.min.js +2 -0
  151. package/dist/chunks/bakedVertexAnimation-2pyORBI7.esm.min.js.map +1 -0
  152. package/dist/chunks/bakedVertexAnimation-DOpeNPuF.esm.js +114 -0
  153. package/dist/chunks/bakedVertexAnimation-DOpeNPuF.esm.js.map +1 -0
  154. package/dist/chunks/basisTextureLoader-ComLMdtf.esm.js +600 -0
  155. package/dist/chunks/basisTextureLoader-ComLMdtf.esm.js.map +1 -0
  156. package/dist/chunks/basisTextureLoader-ryrt7c0b.esm.min.js +2 -0
  157. package/dist/chunks/basisTextureLoader-ryrt7c0b.esm.min.js.map +1 -0
  158. package/dist/chunks/dds-CCuknht7.esm.min.js +2 -0
  159. package/dist/chunks/dds-CCuknht7.esm.min.js.map +1 -0
  160. package/dist/chunks/dds-D2pCV6Dq.esm.js +540 -0
  161. package/dist/chunks/dds-D2pCV6Dq.esm.js.map +1 -0
  162. package/dist/chunks/ddsTextureLoader-HN5kNxqf.esm.js +88 -0
  163. package/dist/chunks/ddsTextureLoader-HN5kNxqf.esm.js.map +1 -0
  164. package/dist/chunks/ddsTextureLoader-cmTmJqr6.esm.min.js +2 -0
  165. package/dist/chunks/ddsTextureLoader-cmTmJqr6.esm.min.js.map +1 -0
  166. package/dist/chunks/decalFragment-CaoV_r5e.esm.min.js +2 -0
  167. package/dist/chunks/decalFragment-CaoV_r5e.esm.min.js.map +1 -0
  168. package/dist/chunks/decalFragment-CmM9_XL6.esm.js +18 -0
  169. package/dist/chunks/decalFragment-CmM9_XL6.esm.js.map +1 -0
  170. package/dist/chunks/default.fragment-CIxCcBci.esm.js +497 -0
  171. package/dist/chunks/default.fragment-CIxCcBci.esm.js.map +1 -0
  172. package/dist/chunks/default.fragment-CvpwsFNV.esm.min.js +2 -0
  173. package/dist/chunks/default.fragment-CvpwsFNV.esm.min.js.map +1 -0
  174. package/dist/chunks/default.fragment-DvQjHRFZ.esm.min.js +2 -0
  175. package/dist/chunks/default.fragment-DvQjHRFZ.esm.min.js.map +1 -0
  176. package/dist/chunks/default.fragment-FNsxMRYc.esm.js +433 -0
  177. package/dist/chunks/default.fragment-FNsxMRYc.esm.js.map +1 -0
  178. package/dist/chunks/default.vertex-D5X4nYce.esm.js +181 -0
  179. package/dist/chunks/default.vertex-D5X4nYce.esm.js.map +1 -0
  180. package/dist/chunks/default.vertex-DBu79v_q.esm.js +201 -0
  181. package/dist/chunks/default.vertex-DBu79v_q.esm.js.map +1 -0
  182. package/dist/chunks/default.vertex-Ds-nhawD.esm.min.js +2 -0
  183. package/dist/chunks/default.vertex-Ds-nhawD.esm.min.js.map +1 -0
  184. package/dist/chunks/default.vertex-ygxHkYqf.esm.min.js +2 -0
  185. package/dist/chunks/default.vertex-ygxHkYqf.esm.min.js.map +1 -0
  186. package/dist/chunks/defaultUboDeclaration-5ubIZhWI.esm.min.js +2 -0
  187. package/dist/chunks/defaultUboDeclaration-5ubIZhWI.esm.min.js.map +1 -0
  188. package/dist/chunks/defaultUboDeclaration-C_kmc54_.esm.min.js +2 -0
  189. package/dist/chunks/defaultUboDeclaration-C_kmc54_.esm.min.js.map +1 -0
  190. package/dist/chunks/defaultUboDeclaration-CudfJrM7.esm.js +13 -0
  191. package/dist/chunks/defaultUboDeclaration-CudfJrM7.esm.js.map +1 -0
  192. package/dist/chunks/defaultUboDeclaration-PoxtscR6.esm.js +15 -0
  193. package/dist/chunks/defaultUboDeclaration-PoxtscR6.esm.js.map +1 -0
  194. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  195. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  196. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  197. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  198. package/dist/chunks/dumpTools-BSmwAfi2.esm.js +200 -0
  199. package/dist/chunks/dumpTools-BSmwAfi2.esm.js.map +1 -0
  200. package/dist/chunks/dumpTools-CqXIdkU-.esm.min.js +2 -0
  201. package/dist/chunks/dumpTools-CqXIdkU-.esm.min.js.map +1 -0
  202. package/dist/chunks/engine-BUErRw8z.esm.js +2216 -0
  203. package/dist/chunks/engine-BUErRw8z.esm.js.map +1 -0
  204. package/dist/chunks/engine-DcXDbWe5.esm.min.js +2 -0
  205. package/dist/chunks/engine-DcXDbWe5.esm.min.js.map +1 -0
  206. package/dist/chunks/engine.common-BCrfrLRA.esm.js +1162 -0
  207. package/dist/chunks/engine.common-BCrfrLRA.esm.js.map +1 -0
  208. package/dist/chunks/engine.common-DbmFdD7r.esm.min.js +2 -0
  209. package/dist/chunks/engine.common-DbmFdD7r.esm.min.js.map +1 -0
  210. package/dist/chunks/envTextureLoader-DhLFo68T.esm.js +64 -0
  211. package/dist/chunks/envTextureLoader-DhLFo68T.esm.js.map +1 -0
  212. package/dist/chunks/envTextureLoader-xWQSOdW2.esm.min.js +2 -0
  213. package/dist/chunks/envTextureLoader-xWQSOdW2.esm.min.js.map +1 -0
  214. package/dist/chunks/environmentTextureTools-BPxq8YFx.esm.js +382 -0
  215. package/dist/chunks/environmentTextureTools-BPxq8YFx.esm.js.map +1 -0
  216. package/dist/chunks/environmentTextureTools-CRklR_jR.esm.min.js +2 -0
  217. package/dist/chunks/environmentTextureTools-CRklR_jR.esm.min.js.map +1 -0
  218. package/dist/chunks/exrTextureLoader-CyfB-RNW.esm.min.js +2 -0
  219. package/dist/chunks/exrTextureLoader-CyfB-RNW.esm.min.js.map +1 -0
  220. package/dist/chunks/exrTextureLoader-DZBdy7B_.esm.js +1682 -0
  221. package/dist/chunks/exrTextureLoader-DZBdy7B_.esm.js.map +1 -0
  222. package/dist/chunks/fogFragment-C49gmIGZ.esm.js +101 -0
  223. package/dist/chunks/fogFragment-C49gmIGZ.esm.js.map +1 -0
  224. package/dist/chunks/fogFragment-Csq7eneI.esm.min.js +2 -0
  225. package/dist/chunks/fogFragment-Csq7eneI.esm.min.js.map +1 -0
  226. package/dist/chunks/fogFragment-D-sKHdDf.esm.js +102 -0
  227. package/dist/chunks/fogFragment-D-sKHdDf.esm.js.map +1 -0
  228. package/dist/chunks/fogFragment-alFkMSt9.esm.min.js +2 -0
  229. package/dist/chunks/fogFragment-alFkMSt9.esm.min.js.map +1 -0
  230. package/dist/chunks/fresnelFunction-DU40wmqQ.esm.min.js +2 -0
  231. package/dist/chunks/fresnelFunction-DU40wmqQ.esm.min.js.map +1 -0
  232. package/dist/chunks/fresnelFunction-FeK3vqPy.esm.js +12 -0
  233. package/dist/chunks/fresnelFunction-FeK3vqPy.esm.js.map +1 -0
  234. package/dist/chunks/glTFLoader-BWXrbzqs.esm.js +7586 -0
  235. package/dist/chunks/glTFLoader-BWXrbzqs.esm.js.map +1 -0
  236. package/dist/chunks/glTFLoader-D5p5qYp8.esm.min.js +2 -0
  237. package/dist/chunks/glTFLoader-D5p5qYp8.esm.min.js.map +1 -0
  238. package/dist/chunks/glTFLoaderAnimation-BrCiuknj.esm.js +77 -0
  239. package/dist/chunks/glTFLoaderAnimation-BrCiuknj.esm.js.map +1 -0
  240. package/dist/chunks/glTFLoaderAnimation-DNByJ6HG.esm.min.js +2 -0
  241. package/dist/chunks/glTFLoaderAnimation-DNByJ6HG.esm.min.js.map +1 -0
  242. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  243. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  244. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  245. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  246. package/dist/chunks/harmonicsFunctions-B_19mESZ.esm.js +34 -0
  247. package/dist/chunks/harmonicsFunctions-B_19mESZ.esm.js.map +1 -0
  248. package/dist/chunks/harmonicsFunctions-C6ei29IM.esm.min.js +2 -0
  249. package/dist/chunks/harmonicsFunctions-C6ei29IM.esm.min.js.map +1 -0
  250. package/dist/chunks/harmonicsFunctions-D8MhBUfH.esm.min.js +2 -0
  251. package/dist/chunks/harmonicsFunctions-D8MhBUfH.esm.min.js.map +1 -0
  252. package/dist/chunks/harmonicsFunctions-NlQ7ssUT.esm.js +35 -0
  253. package/dist/chunks/harmonicsFunctions-NlQ7ssUT.esm.js.map +1 -0
  254. package/dist/chunks/hdrTextureLoader-CJeDP7zV.esm.min.js +2 -0
  255. package/dist/chunks/hdrTextureLoader-CJeDP7zV.esm.min.js.map +1 -0
  256. package/dist/chunks/hdrTextureLoader-DknF3R6J.esm.js +252 -0
  257. package/dist/chunks/hdrTextureLoader-DknF3R6J.esm.js.map +1 -0
  258. package/dist/chunks/helperFunctions-BLuUx2nq.esm.js +80 -0
  259. package/dist/chunks/helperFunctions-BLuUx2nq.esm.js.map +1 -0
  260. package/dist/chunks/helperFunctions-BqcsL6kO.esm.min.js +2 -0
  261. package/dist/chunks/helperFunctions-BqcsL6kO.esm.min.js.map +1 -0
  262. package/dist/chunks/helperFunctions-BskUYxag.esm.min.js +2 -0
  263. package/dist/chunks/helperFunctions-BskUYxag.esm.min.js.map +1 -0
  264. package/dist/chunks/helperFunctions-C7bDmqf5.esm.js +108 -0
  265. package/dist/chunks/helperFunctions-C7bDmqf5.esm.js.map +1 -0
  266. package/dist/chunks/iesTextureLoader-BGpmR-Zu.esm.js +189 -0
  267. package/dist/chunks/iesTextureLoader-BGpmR-Zu.esm.js.map +1 -0
  268. package/dist/chunks/iesTextureLoader-CMHpguQr.esm.min.js +2 -0
  269. package/dist/chunks/iesTextureLoader-CMHpguQr.esm.min.js.map +1 -0
  270. package/dist/chunks/index-BeKEIRka.esm.js +74617 -0
  271. package/dist/chunks/index-BeKEIRka.esm.js.map +1 -0
  272. package/dist/chunks/index-DprAUBKz.esm.min.js +57 -0
  273. package/dist/chunks/index-DprAUBKz.esm.min.js.map +1 -0
  274. package/dist/chunks/ktxTextureLoader-C19SUsox.esm.js +814 -0
  275. package/dist/chunks/ktxTextureLoader-C19SUsox.esm.js.map +1 -0
  276. package/dist/chunks/ktxTextureLoader-C6_J2kq9.esm.min.js +2 -0
  277. package/dist/chunks/ktxTextureLoader-C6_J2kq9.esm.min.js.map +1 -0
  278. package/dist/chunks/logDepthDeclaration-BpynUx1A.esm.js +35 -0
  279. package/dist/chunks/logDepthDeclaration-BpynUx1A.esm.js.map +1 -0
  280. package/dist/chunks/logDepthDeclaration-CGzm1tYf.esm.min.js +2 -0
  281. package/dist/chunks/logDepthDeclaration-CGzm1tYf.esm.min.js.map +1 -0
  282. package/dist/chunks/logDepthDeclaration-CyTQagov.esm.js +11 -0
  283. package/dist/chunks/logDepthDeclaration-CyTQagov.esm.js.map +1 -0
  284. package/dist/chunks/logDepthDeclaration-Dut4SmA8.esm.min.js +2 -0
  285. package/dist/chunks/logDepthDeclaration-Dut4SmA8.esm.min.js.map +1 -0
  286. package/dist/chunks/logDepthVertex-Bc0blXM8.esm.min.js +2 -0
  287. package/dist/chunks/logDepthVertex-Bc0blXM8.esm.min.js.map +1 -0
  288. package/dist/chunks/logDepthVertex-C-kcsA2L.esm.js +77 -0
  289. package/dist/chunks/logDepthVertex-C-kcsA2L.esm.js.map +1 -0
  290. package/dist/chunks/logDepthVertex-COozVPxI.esm.js +77 -0
  291. package/dist/chunks/logDepthVertex-COozVPxI.esm.js.map +1 -0
  292. package/dist/chunks/logDepthVertex-CfOVhbNj.esm.min.js +2 -0
  293. package/dist/chunks/logDepthVertex-CfOVhbNj.esm.min.js.map +1 -0
  294. package/dist/chunks/mainUVVaryingDeclaration-BKPNmc9Q.esm.js +11 -0
  295. package/dist/chunks/mainUVVaryingDeclaration-BKPNmc9Q.esm.js.map +1 -0
  296. package/dist/chunks/mainUVVaryingDeclaration-Cu9Tv4Kw.esm.min.js +2 -0
  297. package/dist/chunks/mainUVVaryingDeclaration-Cu9Tv4Kw.esm.min.js.map +1 -0
  298. package/dist/chunks/mainUVVaryingDeclaration-DYf1yJUX.esm.js +11 -0
  299. package/dist/chunks/mainUVVaryingDeclaration-DYf1yJUX.esm.js.map +1 -0
  300. package/dist/chunks/mainUVVaryingDeclaration-DpLnjXfZ.esm.min.js +2 -0
  301. package/dist/chunks/mainUVVaryingDeclaration-DpLnjXfZ.esm.min.js.map +1 -0
  302. package/dist/chunks/meshUboDeclaration-BJYErIa3.esm.min.js +2 -0
  303. package/dist/chunks/meshUboDeclaration-BJYErIa3.esm.min.js.map +1 -0
  304. package/dist/chunks/meshUboDeclaration-BiUwws9z.esm.js +24 -0
  305. package/dist/chunks/meshUboDeclaration-BiUwws9z.esm.js.map +1 -0
  306. package/dist/chunks/objFileLoader-BE_E9yJf.esm.js +1338 -0
  307. package/dist/chunks/objFileLoader-BE_E9yJf.esm.js.map +1 -0
  308. package/dist/chunks/objFileLoader-MOi7ZG3R.esm.min.js +2 -0
  309. package/dist/chunks/objFileLoader-MOi7ZG3R.esm.min.js.map +1 -0
  310. package/dist/chunks/oitFragment-CAIIewpS.esm.js +1210 -0
  311. package/dist/chunks/oitFragment-CAIIewpS.esm.js.map +1 -0
  312. package/dist/chunks/oitFragment-DDp3gQTd.esm.min.js +2 -0
  313. package/dist/chunks/oitFragment-DDp3gQTd.esm.min.js.map +1 -0
  314. package/dist/chunks/oitFragment-SgLz27Xb.esm.js +1051 -0
  315. package/dist/chunks/oitFragment-SgLz27Xb.esm.js.map +1 -0
  316. package/dist/chunks/oitFragment-oiPVwqmm.esm.min.js +2 -0
  317. package/dist/chunks/oitFragment-oiPVwqmm.esm.min.js.map +1 -0
  318. package/dist/chunks/pass.fragment-Au3QTn6B.esm.js +15 -0
  319. package/dist/chunks/pass.fragment-Au3QTn6B.esm.js.map +1 -0
  320. package/dist/chunks/pass.fragment-CWxLTOY2.esm.js +15 -0
  321. package/dist/chunks/pass.fragment-CWxLTOY2.esm.js.map +1 -0
  322. package/dist/chunks/pass.fragment-Dv_aTu4L.esm.min.js +2 -0
  323. package/dist/chunks/pass.fragment-Dv_aTu4L.esm.min.js.map +1 -0
  324. package/dist/chunks/pass.fragment-Ke_m_FfE.esm.min.js +2 -0
  325. package/dist/chunks/pass.fragment-Ke_m_FfE.esm.min.js.map +1 -0
  326. package/dist/chunks/pbr.fragment-BBn9zhoH.esm.min.js +2 -0
  327. package/dist/chunks/pbr.fragment-BBn9zhoH.esm.min.js.map +1 -0
  328. package/dist/chunks/pbr.fragment-C109MBuS.esm.js +3230 -0
  329. package/dist/chunks/pbr.fragment-C109MBuS.esm.js.map +1 -0
  330. package/dist/chunks/pbr.fragment-CTmhpwgS.esm.min.js +2 -0
  331. package/dist/chunks/pbr.fragment-CTmhpwgS.esm.min.js.map +1 -0
  332. package/dist/chunks/pbr.fragment-PiPyhFG1.esm.js +3270 -0
  333. package/dist/chunks/pbr.fragment-PiPyhFG1.esm.js.map +1 -0
  334. package/dist/chunks/pbr.vertex-3Vrjv1Zy.esm.min.js +2 -0
  335. package/dist/chunks/pbr.vertex-3Vrjv1Zy.esm.min.js.map +1 -0
  336. package/dist/chunks/pbr.vertex-BiMD8ykF.esm.js +338 -0
  337. package/dist/chunks/pbr.vertex-BiMD8ykF.esm.js.map +1 -0
  338. package/dist/chunks/pbr.vertex-C2mqbEjQ.esm.js +214 -0
  339. package/dist/chunks/pbr.vertex-C2mqbEjQ.esm.js.map +1 -0
  340. package/dist/chunks/pbr.vertex-CfuqNHe_.esm.min.js +2 -0
  341. package/dist/chunks/pbr.vertex-CfuqNHe_.esm.min.js.map +1 -0
  342. package/dist/chunks/postprocess.vertex-BtpQ106t.esm.js +20 -0
  343. package/dist/chunks/postprocess.vertex-BtpQ106t.esm.js.map +1 -0
  344. package/dist/chunks/postprocess.vertex-y8C6e1Vg.esm.min.js +2 -0
  345. package/dist/chunks/postprocess.vertex-y8C6e1Vg.esm.min.js.map +1 -0
  346. package/dist/chunks/rawTexture-DWVljNAA.esm.js +191 -0
  347. package/dist/chunks/rawTexture-DWVljNAA.esm.js.map +1 -0
  348. package/dist/chunks/rawTexture-hwvFuG11.esm.min.js +2 -0
  349. package/dist/chunks/rawTexture-hwvFuG11.esm.min.js.map +1 -0
  350. package/dist/chunks/ray-CK8RMihf.esm.js +946 -0
  351. package/dist/chunks/ray-CK8RMihf.esm.js.map +1 -0
  352. package/dist/chunks/ray-DsHByFt_.esm.min.js +2 -0
  353. package/dist/chunks/ray-DsHByFt_.esm.min.js.map +1 -0
  354. package/dist/chunks/rgbdDecode.fragment-BJZU7xWj.esm.js +17 -0
  355. package/dist/chunks/rgbdDecode.fragment-BJZU7xWj.esm.js.map +1 -0
  356. package/dist/chunks/rgbdDecode.fragment-Bihg7c2V.esm.min.js +2 -0
  357. package/dist/chunks/rgbdDecode.fragment-Bihg7c2V.esm.min.js.map +1 -0
  358. package/dist/chunks/rgbdDecode.fragment-DL0b7M1l.esm.min.js +2 -0
  359. package/dist/chunks/rgbdDecode.fragment-DL0b7M1l.esm.min.js.map +1 -0
  360. package/dist/chunks/rgbdDecode.fragment-Dy9zwXIU.esm.js +17 -0
  361. package/dist/chunks/rgbdDecode.fragment-Dy9zwXIU.esm.js.map +1 -0
  362. package/dist/chunks/rgbdEncode.fragment-7kMkvRwb.esm.js +17 -0
  363. package/dist/chunks/rgbdEncode.fragment-7kMkvRwb.esm.js.map +1 -0
  364. package/dist/chunks/rgbdEncode.fragment-DBRJSber.esm.min.js +2 -0
  365. package/dist/chunks/rgbdEncode.fragment-DBRJSber.esm.min.js.map +1 -0
  366. package/dist/chunks/rgbdEncode.fragment-EHDS-v9B.esm.js +17 -0
  367. package/dist/chunks/rgbdEncode.fragment-EHDS-v9B.esm.js.map +1 -0
  368. package/dist/chunks/rgbdEncode.fragment-GVps7HU4.esm.min.js +2 -0
  369. package/dist/chunks/rgbdEncode.fragment-GVps7HU4.esm.min.js.map +1 -0
  370. package/dist/chunks/splatFileLoader-DRz20nEn.esm.js +3371 -0
  371. package/dist/chunks/splatFileLoader-DRz20nEn.esm.js.map +1 -0
  372. package/dist/chunks/splatFileLoader-Z6j5oKHW.esm.min.js +2 -0
  373. package/dist/chunks/splatFileLoader-Z6j5oKHW.esm.min.js.map +1 -0
  374. package/dist/chunks/standardMaterial-B3ecSQEW.esm.min.js +2 -0
  375. package/dist/chunks/standardMaterial-B3ecSQEW.esm.min.js.map +1 -0
  376. package/dist/chunks/standardMaterial-Be8wL70k.esm.js +1805 -0
  377. package/dist/chunks/standardMaterial-Be8wL70k.esm.js.map +1 -0
  378. package/dist/chunks/stlFileLoader-C6LdEQ75.esm.js +238 -0
  379. package/dist/chunks/stlFileLoader-C6LdEQ75.esm.js.map +1 -0
  380. package/dist/chunks/stlFileLoader-JCne-dxw.esm.min.js +2 -0
  381. package/dist/chunks/stlFileLoader-JCne-dxw.esm.min.js.map +1 -0
  382. package/dist/chunks/tgaTextureLoader-BZMSekx5.esm.js +349 -0
  383. package/dist/chunks/tgaTextureLoader-BZMSekx5.esm.js.map +1 -0
  384. package/dist/chunks/tgaTextureLoader-DOEvqOPE.esm.min.js +2 -0
  385. package/dist/chunks/tgaTextureLoader-DOEvqOPE.esm.min.js.map +1 -0
  386. package/dist/chunks/thinEngine-BTbbTZix.esm.js +3842 -0
  387. package/dist/chunks/thinEngine-BTbbTZix.esm.js.map +1 -0
  388. package/dist/chunks/thinEngine-v-NSiDW-.esm.min.js +2 -0
  389. package/dist/chunks/thinEngine-v-NSiDW-.esm.min.js.map +1 -0
  390. package/dist/chunks/thinInstanceMesh-B8SVyfho.esm.js +314 -0
  391. package/dist/chunks/thinInstanceMesh-B8SVyfho.esm.js.map +1 -0
  392. package/dist/chunks/thinInstanceMesh-BxfZu7jF.esm.min.js +2 -0
  393. package/dist/chunks/thinInstanceMesh-BxfZu7jF.esm.min.js.map +1 -0
  394. package/dist/chunks/vertexColorMixing-BBpDYi6i.esm.js +412 -0
  395. package/dist/chunks/vertexColorMixing-BBpDYi6i.esm.js.map +1 -0
  396. package/dist/chunks/vertexColorMixing-DKlgUR7M.esm.js +522 -0
  397. package/dist/chunks/vertexColorMixing-DKlgUR7M.esm.js.map +1 -0
  398. package/dist/chunks/vertexColorMixing-Dk4L1tJ7.esm.min.js +2 -0
  399. package/dist/chunks/vertexColorMixing-Dk4L1tJ7.esm.min.js.map +1 -0
  400. package/dist/chunks/vertexColorMixing-f0SaBMnM.esm.min.js +2 -0
  401. package/dist/chunks/vertexColorMixing-f0SaBMnM.esm.min.js.map +1 -0
  402. package/dist/chunks/webgpuEngine-DGT-ms2c.esm.min.js +2 -0
  403. package/dist/chunks/webgpuEngine-DGT-ms2c.esm.min.js.map +1 -0
  404. package/dist/chunks/webgpuEngine-DvWEXB_l.esm.js +11533 -0
  405. package/dist/chunks/webgpuEngine-DvWEXB_l.esm.js.map +1 -0
  406. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  407. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  408. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  409. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  410. package/docs/ViewerDefault.jpg +0 -0
  411. package/docs/ViewerParts.jpg +0 -0
  412. package/docs/ViewerSlots.jpg +0 -0
  413. package/docs/ViewerStyled.jpg +0 -0
  414. package/lib/index.d.ts +568 -0
  415. package/lib/index.js +2067 -0
  416. package/lib/index.js.map +1 -0
  417. package/package.json +18 -27
  418. package/readme.md +145 -21
  419. package/configuration/configuration.d.ts +0 -107
  420. package/configuration/configuration.js +0 -16
  421. package/configuration/configuration.js.map +0 -1
  422. package/configuration/configurationCompatibility.d.ts +0 -8
  423. package/configuration/configurationCompatibility.js +0 -66
  424. package/configuration/configurationCompatibility.js.map +0 -1
  425. package/configuration/configurationContainer.d.ts +0 -10
  426. package/configuration/configurationContainer.js +0 -10
  427. package/configuration/configurationContainer.js.map +0 -1
  428. package/configuration/globals.d.ts +0 -6
  429. package/configuration/globals.js +0 -18
  430. package/configuration/globals.js.map +0 -1
  431. package/configuration/index.d.ts +0 -2
  432. package/configuration/index.js +0 -4
  433. package/configuration/index.js.map +0 -1
  434. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  435. package/configuration/interfaces/cameraConfiguration.js +0 -2
  436. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  437. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  438. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  439. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  440. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  441. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  442. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  443. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  444. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  445. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  446. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  447. package/configuration/interfaces/groundConfiguration.js +0 -2
  448. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  449. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  450. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  451. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  452. package/configuration/interfaces/index.d.ts +0 -15
  453. package/configuration/interfaces/index.js +0 -16
  454. package/configuration/interfaces/index.js.map +0 -1
  455. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  456. package/configuration/interfaces/lightConfiguration.js +0 -2
  457. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  458. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  459. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  460. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  461. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  462. package/configuration/interfaces/modelConfiguration.js +0 -2
  463. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  464. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  465. package/configuration/interfaces/observersConfiguration.js +0 -2
  466. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  467. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  468. package/configuration/interfaces/sceneConfiguration.js +0 -2
  469. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  470. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  471. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  472. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  473. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  474. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  475. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  476. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  477. package/configuration/interfaces/templateConfiguration.js +0 -2
  478. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  479. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  480. package/configuration/interfaces/vrConfiguration.js +0 -2
  481. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  482. package/configuration/loader.d.ts +0 -4
  483. package/configuration/loader.js +0 -17
  484. package/configuration/loader.js.map +0 -1
  485. package/configuration/mappers.d.ts +0 -43
  486. package/configuration/mappers.js +0 -193
  487. package/configuration/mappers.js.map +0 -1
  488. package/configuration/renderOnlyLoader.d.ts +0 -33
  489. package/configuration/renderOnlyLoader.js +0 -162
  490. package/configuration/renderOnlyLoader.js.map +0 -1
  491. package/configuration/types/default.d.ts +0 -6
  492. package/configuration/types/default.js +0 -121
  493. package/configuration/types/default.js.map +0 -1
  494. package/configuration/types/environmentMap.d.ts +0 -5
  495. package/configuration/types/environmentMap.js +0 -14
  496. package/configuration/types/environmentMap.js.map +0 -1
  497. package/configuration/types/extended.d.ts +0 -6
  498. package/configuration/types/extended.js +0 -317
  499. package/configuration/types/extended.js.map +0 -1
  500. package/configuration/types/index.d.ts +0 -14
  501. package/configuration/types/index.js +0 -51
  502. package/configuration/types/index.js.map +0 -1
  503. package/configuration/types/minimal.d.ts +0 -6
  504. package/configuration/types/minimal.js +0 -43
  505. package/configuration/types/minimal.js.map +0 -1
  506. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  507. package/configuration/types/renderOnlyDefault.js +0 -31
  508. package/configuration/types/renderOnlyDefault.js.map +0 -1
  509. package/configuration/types/shadowLight.d.ts +0 -9
  510. package/configuration/types/shadowLight.js +0 -64
  511. package/configuration/types/shadowLight.js.map +0 -1
  512. package/helper/index.d.ts +0 -29
  513. package/helper/index.js +0 -66
  514. package/helper/index.js.map +0 -1
  515. package/index.d.ts +0 -30
  516. package/index.js +0 -46
  517. package/index.js.map +0 -1
  518. package/initializer.d.ts +0 -11
  519. package/initializer.js +0 -35
  520. package/initializer.js.map +0 -1
  521. package/interfaces.d.ts +0 -5
  522. package/interfaces.js +0 -7
  523. package/interfaces.js.map +0 -1
  524. package/labs/environmentSerializer.d.ts +0 -126
  525. package/labs/environmentSerializer.js +0 -191
  526. package/labs/environmentSerializer.js.map +0 -1
  527. package/labs/texture.d.ts +0 -183
  528. package/labs/texture.js +0 -351
  529. package/labs/texture.js.map +0 -1
  530. package/labs/viewerLabs.d.ts +0 -51
  531. package/labs/viewerLabs.js +0 -134
  532. package/labs/viewerLabs.js.map +0 -1
  533. package/loader/modelLoader.d.ts +0 -56
  534. package/loader/modelLoader.js +0 -202
  535. package/loader/modelLoader.js.map +0 -1
  536. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  537. package/loader/plugins/applyMaterialConfig.js +0 -16
  538. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  539. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  540. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  541. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  542. package/loader/plugins/index.d.ts +0 -19
  543. package/loader/plugins/index.js +0 -44
  544. package/loader/plugins/index.js.map +0 -1
  545. package/loader/plugins/loaderPlugin.d.ts +0 -24
  546. package/loader/plugins/loaderPlugin.js +0 -2
  547. package/loader/plugins/loaderPlugin.js.map +0 -1
  548. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  549. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  550. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  551. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  552. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  553. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  554. package/managers/observablesManager.d.ts +0 -66
  555. package/managers/observablesManager.js +0 -35
  556. package/managers/observablesManager.js.map +0 -1
  557. package/managers/sceneManager.d.ts +0 -245
  558. package/managers/sceneManager.js +0 -1375
  559. package/managers/sceneManager.js.map +0 -1
  560. package/managers/telemetryManager.d.ts +0 -78
  561. package/managers/telemetryManager.js +0 -117
  562. package/managers/telemetryManager.js.map +0 -1
  563. package/model/modelAnimation.d.ts +0 -215
  564. package/model/modelAnimation.js +0 -237
  565. package/model/modelAnimation.js.map +0 -1
  566. package/model/viewerModel.d.ts +0 -233
  567. package/model/viewerModel.js +0 -673
  568. package/model/viewerModel.js.map +0 -1
  569. package/optimizer/custom/extended.d.ts +0 -13
  570. package/optimizer/custom/extended.js +0 -101
  571. package/optimizer/custom/extended.js.map +0 -1
  572. package/optimizer/custom/index.d.ts +0 -9
  573. package/optimizer/custom/index.js +0 -26
  574. package/optimizer/custom/index.js.map +0 -1
  575. package/renderOnlyIndex.d.ts +0 -11
  576. package/renderOnlyIndex.js +0 -18
  577. package/renderOnlyIndex.js.map +0 -1
  578. package/templating/eventManager.d.ts +0 -35
  579. package/templating/eventManager.js +0 -66
  580. package/templating/eventManager.js.map +0 -1
  581. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  582. package/templating/plugins/hdButtonPlugin.js +0 -22
  583. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  584. package/templating/plugins/printButton.d.ts +0 -9
  585. package/templating/plugins/printButton.js +0 -41
  586. package/templating/plugins/printButton.js.map +0 -1
  587. package/templating/templateManager.d.ts +0 -197
  588. package/templating/templateManager.js +0 -561
  589. package/templating/templateManager.js.map +0 -1
  590. package/templating/viewerTemplatePlugin.d.ts +0 -21
  591. package/templating/viewerTemplatePlugin.js +0 -69
  592. package/templating/viewerTemplatePlugin.js.map +0 -1
  593. package/viewer/defaultViewer.d.ts +0 -130
  594. package/viewer/defaultViewer.js +0 -672
  595. package/viewer/defaultViewer.js.map +0 -1
  596. package/viewer/renderOnlyViewer.d.ts +0 -9
  597. package/viewer/renderOnlyViewer.js +0 -46
  598. package/viewer/renderOnlyViewer.js.map +0 -1
  599. package/viewer/viewer.d.ts +0 -258
  600. package/viewer/viewer.js +0 -783
  601. package/viewer/viewer.js.map +0 -1
  602. package/viewer/viewerManager.d.ts +0 -58
  603. package/viewer/viewerManager.js +0 -91
  604. package/viewer/viewerManager.js.map +0 -1
  605. package/viewer/viewerWithTemplate.d.ts +0 -9
  606. package/viewer/viewerWithTemplate.js +0 -20
  607. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -0,0 +1,433 @@
1
+ import { i as ShaderStore } from './index-BeKEIRka.esm.js';
2
+ import './defaultUboDeclaration-CudfJrM7.esm.js';
3
+ import './oitFragment-SgLz27Xb.esm.js';
4
+ import './mainUVVaryingDeclaration-DYf1yJUX.esm.js';
5
+ import './helperFunctions-BLuUx2nq.esm.js';
6
+ import './fresnelFunction-FeK3vqPy.esm.js';
7
+ import './fogFragment-C49gmIGZ.esm.js';
8
+ import './logDepthDeclaration-CyTQagov.esm.js';
9
+ import './decalFragment-CmM9_XL6.esm.js';
10
+ import './meshUboDeclaration-BiUwws9z.esm.js';
11
+
12
+ // Do not edit.
13
+ const name$1 = "lightsFragmentFunctions";
14
+ const shader$1 = `struct lightingInfo
15
+ {diffuse: vec3f,
16
+ #ifdef SPECULARTERM
17
+ specular: vec3f,
18
+ #endif
19
+ #ifdef NDOTL
20
+ ndl: f32,
21
+ #endif
22
+ };fn computeLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var lightVectorW: vec3f;var attenuation: f32=1.0;if (lightData.w==0.)
23
+ {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var attenuation: f32=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}
24
+ else
25
+ {lightVectorW=normalize(-lightData.xyz);}
26
+ var ndl: f32=max(0.,dot(vNormal,lightVectorW));
27
+ #ifdef NDOTL
28
+ result.ndl=ndl;
29
+ #endif
30
+ result.diffuse=ndl*diffuseColor*attenuation;
31
+ #ifdef SPECULARTERM
32
+ var angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
33
+ #endif
34
+ return result;}
35
+ fn computeSpotLighting(viewDirectionW: vec3f,vNormal: vec3f ,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var cosAngle: f32=max(0.,dot(lightDirection.xyz,-lightVectorW));if (cosAngle>=lightDirection.w)
36
+ {cosAngle=max(0.,pow(cosAngle,lightData.w));attenuation*=cosAngle;var ndl: f32=max(0.,dot(vNormal,lightVectorW));
37
+ #ifdef NDOTL
38
+ result.ndl=ndl;
39
+ #endif
40
+ result.diffuse=ndl*diffuseColor*attenuation;
41
+ #ifdef SPECULARTERM
42
+ var angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;
43
+ #endif
44
+ return result;}
45
+ result.diffuse=vec3f(0.);
46
+ #ifdef SPECULARTERM
47
+ result.specular=vec3f(0.);
48
+ #endif
49
+ #ifdef NDOTL
50
+ result.ndl=0.;
51
+ #endif
52
+ return result;}
53
+ fn computeHemisphericLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,groundColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=dot(vNormal,lightData.xyz)*0.5+0.5;
54
+ #ifdef NDOTL
55
+ result.ndl=ndl;
56
+ #endif
57
+ result.diffuse=mix(groundColor,diffuseColor,ndl);
58
+ #ifdef SPECULARTERM
59
+ var angleW: vec3f=normalize(viewDirectionW+lightData.xyz);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor;
60
+ #endif
61
+ return result;}
62
+ fn computeProjectionTextureDiffuseLighting(projectionLightTexture: texture_2d<f32>,projectionLightSampler: sampler,textureProjectionMatrix: mat4x4f,posW: vec3f)->vec3f {var strq: vec4f=textureProjectionMatrix*vec4f(posW,1.0);strq/=strq.w;var textureColor: vec3f=textureSample(projectionLightTexture,projectionLightSampler,strq.xy).rgb;return textureColor;}`;
63
+ // Sideeffect
64
+ ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
65
+
66
+ // Do not edit.
67
+ const name = "defaultPixelShader";
68
+ const shader = `#include<defaultUboDeclaration>
69
+ #include<prePassDeclaration>[SCENE_MRT_COUNT]
70
+ #include<oitDeclaration>
71
+ #define CUSTOM_FRAGMENT_BEGIN
72
+ varying vPositionW: vec3f;
73
+ #ifdef NORMAL
74
+ varying vNormalW: vec3f;
75
+ #endif
76
+ #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
77
+ varying vColor: vec4f;
78
+ #endif
79
+ #include<mainUVVaryingDeclaration>[1..7]
80
+ #include<helperFunctions>
81
+ #include<lightUboDeclaration>[0..maxSimultaneousLights]
82
+ #include<lightsFragmentFunctions>
83
+ #include<shadowsFragmentFunctions>
84
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)
85
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
86
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)
87
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)
88
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)
89
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)
90
+ #ifdef REFRACTION
91
+ #ifdef REFRACTIONMAP_3D
92
+ var refractionCubeSamplerSampler: sampler;var refractionCubeSampler: texture_cube<f32>;
93
+ #else
94
+ var refraction2DSamplerSampler: sampler;var refraction2DSampler: texture_2d<f32>;
95
+ #endif
96
+ #endif
97
+ #if defined(SPECULARTERM)
98
+ #include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)
99
+ #endif
100
+ #include<fresnelFunction>
101
+ #ifdef REFLECTION
102
+ #ifdef REFLECTIONMAP_3D
103
+ var reflectionCubeSamplerSampler: sampler;var reflectionCubeSampler: texture_cube<f32>;
104
+ #else
105
+ var reflection2DSamplerSampler: sampler;var reflection2DSampler: texture_2d<f32>;
106
+ #endif
107
+ #ifdef REFLECTIONMAP_SKYBOX
108
+ varying vPositionUVW: vec3f;
109
+ #else
110
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
111
+ varying vDirectionW: vec3f;
112
+ #endif
113
+ #endif
114
+ #include<reflectionFunction>
115
+ #endif
116
+ #include<imageProcessingDeclaration>
117
+ #include<imageProcessingFunctions>
118
+ #include<bumpFragmentMainFunctions>
119
+ #include<bumpFragmentFunctions>
120
+ #include<clipPlaneFragmentDeclaration>
121
+ #include<logDepthDeclaration>
122
+ #include<fogFragmentDeclaration>
123
+ #define CUSTOM_FRAGMENT_DEFINITIONS
124
+ @fragment
125
+ fn main(input: FragmentInputs)->FragmentOutputs {
126
+ #define CUSTOM_FRAGMENT_MAIN_BEGIN
127
+ #include<clipPlaneFragment>
128
+ var viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-fragmentInputs.vPositionW);var baseColor: vec4f= vec4f(1.,1.,1.,1.);var diffuseColor: vec3f=uniforms.vDiffuseColor.rgb;var alpha: f32=uniforms.vDiffuseColor.a;
129
+ #ifdef NORMAL
130
+ var normalW: vec3f=normalize(fragmentInputs.vNormalW);
131
+ #else
132
+ var normalW: vec3f=normalize(-cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)));
133
+ #endif
134
+ #include<bumpFragment>
135
+ #ifdef TWOSIDEDLIGHTING
136
+ normalW=select(-normalW,normalW,fragmentInputs.frontFacing);
137
+ #endif
138
+ #ifdef DIFFUSE
139
+ baseColor=textureSample(diffuseSampler,diffuseSamplerSampler,fragmentInputs.vDiffuseUV+uvOffset);
140
+ #if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)
141
+ if (baseColor.a<uniforms.alphaCutOff) {discard;}
142
+ #endif
143
+ #ifdef ALPHAFROMDIFFUSE
144
+ alpha*=baseColor.a;
145
+ #endif
146
+ #define CUSTOM_FRAGMENT_UPDATE_ALPHA
147
+ baseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);
148
+ #endif
149
+ #if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)
150
+ var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
151
+ #include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
152
+ #endif
153
+ #include<depthPrePass>
154
+ #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
155
+ baseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);
156
+ #endif
157
+ #ifdef DETAIL
158
+ baseColor=vec4f(baseColor.rgb*2.0*mix(0.5,detailColor.r,uniforms.vDetailInfos.y),baseColor.a);
159
+ #endif
160
+ #if defined(DECAL) && defined(DECAL_AFTER_DETAIL)
161
+ var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
162
+ #include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
163
+ #endif
164
+ #define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
165
+ var baseAmbientColor: vec3f= vec3f(1.,1.,1.);
166
+ #ifdef AMBIENT
167
+ baseAmbientColor=textureSample(ambientSampler,ambientSamplerSampler,fragmentInputs.vAmbientUV+uvOffset).rgb*uniforms.vAmbientInfos.y;
168
+ #endif
169
+ #define CUSTOM_FRAGMENT_BEFORE_LIGHTS
170
+ var glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;
171
+ #ifdef SPECULARTERM
172
+ #ifdef SPECULAR
173
+ var specularMapColor: vec4f=textureSample(specularSampler,specularSamplerSampler,fragmentInputs.vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;
174
+ #ifdef GLOSSINESS
175
+ glossiness=glossiness*specularMapColor.a;
176
+ #endif
177
+ #endif
178
+ #endif
179
+ var diffuseBase: vec3f= vec3f(0.,0.,0.);var info: lightingInfo;
180
+ #ifdef SPECULARTERM
181
+ var specularBase: vec3f= vec3f(0.,0.,0.);
182
+ #endif
183
+ var shadow: f32=1.;var aggShadow: f32=0.;var numLights: f32=0.;
184
+ #ifdef LIGHTMAP
185
+ var lightmapColor: vec4f=textureSample(lightmapSampler,lightmapSamplerSampler,fragmentInputs.vLightmapUV+uvOffset);
186
+ #ifdef RGBDLIGHTMAP
187
+ lightmapColor=vec4f(fromRGBD(lightmapColor),lightmapColor.a);
188
+ #endif
189
+ lightmapColor=vec4f(lightmapColor.rgb*uniforms.vLightmapInfos.y,lightmapColor.a);
190
+ #endif
191
+ #include<lightFragment>[0..maxSimultaneousLights]
192
+ aggShadow=aggShadow/numLights;var refractionColor: vec4f= vec4f(0.,0.,0.,1.);
193
+ #ifdef REFRACTION
194
+ var refractionVector: vec3f=normalize(refract(-viewDirectionW,normalW,uniforms.vRefractionInfos.y));
195
+ #ifdef REFRACTIONMAP_3D
196
+ #ifdef USE_LOCAL_REFRACTIONMAP_CUBIC
197
+ refractionVector=parallaxCorrectNormal(fragmentInputs.vPositionW,refractionVector,uniforms.vRefractionSize,uniforms.vRefractionPosition);
198
+ #endif
199
+ refractionVector.y=refractionVector.y*uniforms.vRefractionInfos.w;var refractionLookup: vec4f=textureSample(refractionCubeSampler,refractionCubeSamplerSampler,refractionVector);if (dot(refractionVector,viewDirectionW)<1.0) {refractionColor=refractionLookup;}
200
+ #else
201
+ var vRefractionUVW: vec3f= (uniforms.refractionMatrix*(scene.view* vec4f(fragmentInputs.vPositionW+refractionVector*uniforms.vRefractionInfos.z,1.0))).xyz;var refractionCoords: vec2f=vRefractionUVW.xy/vRefractionUVW.z;refractionCoords.y=1.0-refractionCoords.y;refractionColor=textureSample(refraction2DSampler,refraction2DSamplerSampler,refractionCoords);
202
+ #endif
203
+ #ifdef RGBDREFRACTION
204
+ refractionColor=vec4f(fromRGBD(refractionColor),refractionColor.a);
205
+ #endif
206
+ #ifdef IS_REFRACTION_LINEAR
207
+ refractionColor=vec4f(toGammaSpaceVec3(refractionColor.rgb),refractionColor.a);
208
+ #endif
209
+ refractionColor=vec4f(refractionColor.rgb*uniforms.vRefractionInfos.x,refractionColor.a);
210
+ #endif
211
+ var reflectionColor: vec4f= vec4f(0.,0.,0.,1.);
212
+ #ifdef REFLECTION
213
+ var vReflectionUVW: vec3f=computeReflectionCoords( vec4f(fragmentInputs.vPositionW,1.0),normalW);
214
+ #ifdef REFLECTIONMAP_OPPOSITEZ
215
+ vReflectionUVW=vec3f(vReflectionUVW.x,vReflectionUVW.y,vReflectionUVW.z*-1.0);
216
+ #endif
217
+ #ifdef REFLECTIONMAP_3D
218
+ #ifdef ROUGHNESS
219
+ var bias: f32=uniforms.vReflectionInfos.y;
220
+ #ifdef SPECULARTERM
221
+ #ifdef SPECULAR
222
+ #ifdef GLOSSINESS
223
+ bias*=(1.0-specularMapColor.a);
224
+ #endif
225
+ #endif
226
+ #endif
227
+ reflectionColor=textureSampleLevel(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW,bias);
228
+ #else
229
+ reflectionColor=textureSample(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW);
230
+ #endif
231
+ #else
232
+ var coords: vec2f=vReflectionUVW.xy;
233
+ #ifdef REFLECTIONMAP_PROJECTION
234
+ coords/=vReflectionUVW.z;
235
+ #endif
236
+ coords.y=1.0-coords.y;reflectionColor=textureSample(reflection2DSampler,reflection2DSamplerSampler,coords);
237
+ #endif
238
+ #ifdef RGBDREFLECTION
239
+ reflectionColor=vec4f(fromRGBD(reflectionColor),reflectionColor.a);
240
+ #endif
241
+ #ifdef IS_REFLECTION_LINEAR
242
+ reflectionColor=vec4f(toGammaSpaceVec3(reflectionColor.rgb),reflectionColor.a);
243
+ #endif
244
+ reflectionColor=vec4f(reflectionColor.rgb*uniforms.vReflectionInfos.x,reflectionColor.a);
245
+ #ifdef REFLECTIONFRESNEL
246
+ var reflectionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.reflectionRightColor.a,uniforms.reflectionLeftColor.a);
247
+ #ifdef REFLECTIONFRESNELFROMSPECULAR
248
+ #ifdef SPECULARTERM
249
+ reflectionColor=vec4f(reflectionColor.rgb*specularColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
250
+ #else
251
+ reflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
252
+ #endif
253
+ #else
254
+ reflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);
255
+ #endif
256
+ #endif
257
+ #endif
258
+ #ifdef REFRACTIONFRESNEL
259
+ var refractionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.refractionRightColor.a,uniforms.refractionLeftColor.a);refractionColor=vec4f(refractionColor.rgb*uniforms.refractionLeftColor.rgb*(1.0-refractionFresnelTerm)+refractionFresnelTerm*uniforms.refractionRightColor.rgb,refractionColor.a);
260
+ #endif
261
+ #ifdef OPACITY
262
+ var opacityMap: vec4f=textureSample(opacitySampler,opacitySamplerSampler,fragmentInputs.vOpacityUV+uvOffset);
263
+ #ifdef OPACITYRGB
264
+ opacityMap=vec4f(opacityMap.rgb* vec3f(0.3,0.59,0.11),opacityMap.a);alpha*=(opacityMap.x+opacityMap.y+opacityMap.z)* uniforms.vOpacityInfos.y;
265
+ #else
266
+ alpha*=opacityMap.a*uniforms.vOpacityInfos.y;
267
+ #endif
268
+ #endif
269
+ #if defined(VERTEXALPHA) || defined(INSTANCESCOLOR) && defined(INSTANCES)
270
+ alpha*=fragmentInputs.vColor.a;
271
+ #endif
272
+ #ifdef OPACITYFRESNEL
273
+ var opacityFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.opacityParts.z,uniforms.opacityParts.w);alpha+=uniforms.opacityParts.x*(1.0-opacityFresnelTerm)+opacityFresnelTerm*uniforms.opacityParts.y;
274
+ #endif
275
+ #ifdef ALPHATEST
276
+ #ifdef ALPHATEST_AFTERALLALPHACOMPUTATIONS
277
+ if (alpha<uniforms.alphaCutOff) {discard;}
278
+ #endif
279
+ #ifndef ALPHABLEND
280
+ alpha=1.0;
281
+ #endif
282
+ #endif
283
+ var emissiveColor: vec3f=uniforms.vEmissiveColor;
284
+ #ifdef EMISSIVE
285
+ emissiveColor+=textureSample(emissiveSampler,emissiveSamplerSampler,fragmentInputs.vEmissiveUV+uvOffset).rgb*uniforms.vEmissiveInfos.y;
286
+ #endif
287
+ #ifdef EMISSIVEFRESNEL
288
+ var emissiveFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.emissiveRightColor.a,uniforms.emissiveLeftColor.a);emissiveColor*=uniforms.emissiveLeftColor.rgb*(1.0-emissiveFresnelTerm)+emissiveFresnelTerm*uniforms.emissiveRightColor.rgb;
289
+ #endif
290
+ #ifdef DIFFUSEFRESNEL
291
+ var diffuseFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.diffuseRightColor.a,uniforms.diffuseLeftColor.a);diffuseBase*=uniforms.diffuseLeftColor.rgb*(1.0-diffuseFresnelTerm)+diffuseFresnelTerm*uniforms.diffuseRightColor.rgb;
292
+ #endif
293
+ #ifdef EMISSIVEASILLUMINATION
294
+ var finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
295
+ #else
296
+ #ifdef LINKEMISSIVEWITHDIFFUSE
297
+ var finalDiffuse: vec3f=clamp((diffuseBase+emissiveColor)*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
298
+ #else
299
+ var finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+emissiveColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;
300
+ #endif
301
+ #endif
302
+ #ifdef SPECULARTERM
303
+ var finalSpecular: vec3f=specularBase*specularColor;
304
+ #ifdef SPECULAROVERALPHA
305
+ alpha=clamp(alpha+dot(finalSpecular, vec3f(0.3,0.59,0.11)),0.0,1.0);
306
+ #endif
307
+ #else
308
+ var finalSpecular: vec3f= vec3f(0.0);
309
+ #endif
310
+ #ifdef REFLECTIONOVERALPHA
311
+ alpha=clamp(alpha+dot(reflectionColor.rgb, vec3f(0.3,0.59,0.11)),0.0,1.0);
312
+ #endif
313
+ #ifdef EMISSIVEASILLUMINATION
314
+ var color: vec4f= vec4f(clamp(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+emissiveColor+refractionColor.rgb,0.0,1.0),alpha);
315
+ #else
316
+ var color: vec4f= vec4f(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);
317
+ #endif
318
+ #ifdef LIGHTMAP
319
+ #ifndef LIGHTMAPEXCLUDED
320
+ #ifdef USELIGHTMAPASSHADOWMAP
321
+ color=vec4f(color.rgb*lightmapColor.rgb,color.a);
322
+ #else
323
+ color=vec4f(color.rgb+lightmapColor.rgb,color.a);
324
+ #endif
325
+ #endif
326
+ #endif
327
+ #define CUSTOM_FRAGMENT_BEFORE_FOG
328
+ color=vec4f(max(color.rgb,vec3f(0.)),color.a);
329
+ #include<logDepthFragment>
330
+ #include<fogFragment>
331
+ #ifdef IMAGEPROCESSINGPOSTPROCESS
332
+ color=vec4f(toLinearSpaceVec3(color.rgb),color.a);
333
+ #else
334
+ #ifdef IMAGEPROCESSING
335
+ color=vec4f(toLinearSpaceVec3(color.rgb),color.a);color=applyImageProcessing(color);
336
+ #endif
337
+ #endif
338
+ color=vec4f(color.rgb,color.a*mesh.visibility);
339
+ #ifdef PREMULTIPLYALPHA
340
+ color=vec4f(color.rgb*color.a, color.a);
341
+ #endif
342
+ #define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
343
+ #ifdef PREPASS
344
+ var writeGeometryInfo: f32=select(0.0,1.0,color.a>0.4);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;
345
+ #ifdef PREPASS_COLOR
346
+ fragData[PREPASS_COLOR_INDEX]=color;
347
+ #endif
348
+ #ifdef PREPASS_POSITION
349
+ fragData[PREPASS_POSITION_INDEX]=vec4f(fragmentInputs.vPositionW,writeGeometryInfo);
350
+ #endif
351
+ #ifdef PREPASS_LOCAL_POSITION
352
+ fragData[PREPASS_LOCAL_POSITION_INDEX]=vec4f(fragmentInputs.vPosition,writeGeometryInfo);
353
+ #endif
354
+ #ifdef PREPASS_VELOCITY
355
+ var a: vec2f=(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w)*0.5+0.5;var b: vec2f=(fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w)*0.5+0.5;var velocity: vec2f=abs(a-b);velocity= vec2f(pow(velocity.x,1.0/3.0),pow(velocity.y,1.0/3.0))*sign(a-b)*0.5+0.5;fragData[PREPASS_VELOCITY_INDEX]= vec4f(velocity,0.0,writeGeometryInfo);
356
+ #elif defined(PREPASS_VELOCITY_LINEAR)
357
+ var velocity : vec2f=vec2f(0.5)*((fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w) -
358
+ (fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX]=vec4f(velocity,0.0,writeGeometryInfo);
359
+ #endif
360
+ #ifdef PREPASS_IRRADIANCE
361
+ fragData[PREPASS_IRRADIANCE_INDEX]=vec4f(0.0,0.0,0.0,writeGeometryInfo);
362
+ #endif
363
+ #ifdef PREPASS_DEPTH
364
+ fragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,writeGeometryInfo);
365
+ #endif
366
+ #ifdef PREPASS_SCREENSPACE_DEPTH
367
+ fragData[PREPASS_SCREENSPACE_DEPTH_INDEX]=vec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);
368
+ #endif
369
+ #ifdef PREPASS_NORMAL
370
+ #ifdef PREPASS_NORMAL_WORLDSPACE
371
+ fragData[PREPASS_NORMAL_INDEX]=vec4f(normalW,writeGeometryInfo);
372
+ #else
373
+ fragData[PREPASS_NORMAL_INDEX]=vec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),writeGeometryInfo);
374
+ #endif
375
+ #endif
376
+ #ifdef PREPASS_WORLD_NORMAL
377
+ fragData[PREPASS_WORLD_NORMAL_INDEX]=vec4f(normalW*0.5+0.5,writeGeometryInfo);
378
+ #endif
379
+ #ifdef PREPASS_ALBEDO
380
+ fragData[PREPASS_ALBEDO_INDEX]=vec4f(baseColor.rgb,writeGeometryInfo);
381
+ #endif
382
+ #ifdef PREPASS_ALBEDO_SQRT
383
+ fragData[PREPASS_ALBEDO_SQRT_INDEX]=vec4f(sqrt(baseColor.rgb),writeGeometryInfo);
384
+ #endif
385
+ #ifdef PREPASS_REFLECTIVITY
386
+ #if defined(SPECULAR)
387
+ fragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec4(specularMapColor))*writeGeometryInfo;
388
+ #else
389
+ fragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;
390
+ #endif
391
+ #endif
392
+ #if SCENE_MRT_COUNT>0
393
+ fragmentOutputs.fragData0=fragData[0];
394
+ #endif
395
+ #if SCENE_MRT_COUNT>1
396
+ fragmentOutputs.fragData1=fragData[1];
397
+ #endif
398
+ #if SCENE_MRT_COUNT>2
399
+ fragmentOutputs.fragData2=fragData[2];
400
+ #endif
401
+ #if SCENE_MRT_COUNT>3
402
+ fragmentOutputs.fragData3=fragData[3];
403
+ #endif
404
+ #if SCENE_MRT_COUNT>4
405
+ fragmentOutputs.fragData4=fragData[4];
406
+ #endif
407
+ #if SCENE_MRT_COUNT>5
408
+ fragmentOutputs.fragData5=fragData[5];
409
+ #endif
410
+ #if SCENE_MRT_COUNT>6
411
+ fragmentOutputs.fragData6=fragData[6];
412
+ #endif
413
+ #if SCENE_MRT_COUNT>7
414
+ fragmentOutputs.fragData7=fragData[7];
415
+ #endif
416
+ #endif
417
+ #if !defined(PREPASS) && !defined(ORDER_INDEPENDENT_TRANSPARENCY)
418
+ fragmentOutputs.color=color;
419
+ #endif
420
+ #include<oitFragment>
421
+ #if ORDER_INDEPENDENT_TRANSPARENCY
422
+ if (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.frontColor.rgb+color.rgb*color.a*alphaMultiplier,1.0-alphaMultiplier*(1.0-color.a));} else {fragmentOutputs.backColor+=color;}
423
+ #endif
424
+ #define CUSTOM_FRAGMENT_MAIN_END
425
+ }
426
+ `;
427
+ // Sideeffect
428
+ ShaderStore.ShadersStoreWGSL[name] = shader;
429
+ /** @internal */
430
+ const defaultPixelShaderWGSL = { name, shader };
431
+
432
+ export { defaultPixelShaderWGSL };
433
+ //# sourceMappingURL=default.fragment-FNsxMRYc.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.fragment-FNsxMRYc.esm.js","sources":["../../../../../dev/core/dist/ShadersWGSL/ShadersInclude/lightsFragmentFunctions.js","../../../../../dev/core/dist/ShadersWGSL/default.fragment.js"],"sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\nconst name = \"lightsFragmentFunctions\";\nconst shader = `struct lightingInfo\n{diffuse: vec3f,\n#ifdef SPECULARTERM\nspecular: vec3f,\n#endif\n#ifdef NDOTL\nndl: f32,\n#endif\n};fn computeLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var lightVectorW: vec3f;var attenuation: f32=1.0;if (lightData.w==0.)\n{var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var attenuation: f32=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}\nelse\n{lightVectorW=normalize(-lightData.xyz);}\nvar ndl: f32=max(0.,dot(vNormal,lightVectorW));\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=ndl*diffuseColor*attenuation;\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;\n#endif\nreturn result;}\nfn computeSpotLighting(viewDirectionW: vec3f,vNormal: vec3f ,lightData: vec4f,lightDirection: vec4f,diffuseColor: vec3f,specularColor: vec3f,range: f32,glossiness: f32)->lightingInfo {var result: lightingInfo;var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var lightVectorW: vec3f=normalize(direction);var attenuation: f32=max(0.,1.0-length(direction)/range);var cosAngle: f32=max(0.,dot(lightDirection.xyz,-lightVectorW));if (cosAngle>=lightDirection.w)\n{cosAngle=max(0.,pow(cosAngle,lightData.w));attenuation*=cosAngle;var ndl: f32=max(0.,dot(vNormal,lightVectorW));\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=ndl*diffuseColor*attenuation;\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightVectorW);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor*attenuation;\n#endif\nreturn result;}\nresult.diffuse=vec3f(0.);\n#ifdef SPECULARTERM\nresult.specular=vec3f(0.);\n#endif\n#ifdef NDOTL\nresult.ndl=0.;\n#endif\nreturn result;}\nfn computeHemisphericLighting(viewDirectionW: vec3f,vNormal: vec3f,lightData: vec4f,diffuseColor: vec3f,specularColor: vec3f,groundColor: vec3f,glossiness: f32)->lightingInfo {var result: lightingInfo;var ndl: f32=dot(vNormal,lightData.xyz)*0.5+0.5;\n#ifdef NDOTL\nresult.ndl=ndl;\n#endif\nresult.diffuse=mix(groundColor,diffuseColor,ndl);\n#ifdef SPECULARTERM\nvar angleW: vec3f=normalize(viewDirectionW+lightData.xyz);var specComp: f32=max(0.,dot(vNormal,angleW));specComp=pow(specComp,max(1.,glossiness));result.specular=specComp*specularColor;\n#endif\nreturn result;}\nfn computeProjectionTextureDiffuseLighting(projectionLightTexture: texture_2d<f32>,projectionLightSampler: sampler,textureProjectionMatrix: mat4x4f,posW: vec3f)->vec3f {var strq: vec4f=textureProjectionMatrix*vec4f(posW,1.0);strq/=strq.w;var textureColor: vec3f=textureSample(projectionLightTexture,projectionLightSampler,strq.xy).rgb;return textureColor;}`;\n// Sideeffect\nShaderStore.IncludesShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const lightsFragmentFunctionsWGSL = { name, shader };\n//# sourceMappingURL=lightsFragmentFunctions.js.map","// Do not edit.\nimport { ShaderStore } from \"../Engines/shaderStore\";\nimport \"./ShadersInclude/defaultUboDeclaration\";\nimport \"./ShadersInclude/prePassDeclaration\";\nimport \"./ShadersInclude/oitDeclaration\";\nimport \"./ShadersInclude/mainUVVaryingDeclaration\";\nimport \"./ShadersInclude/helperFunctions\";\nimport \"./ShadersInclude/lightUboDeclaration\";\nimport \"./ShadersInclude/lightsFragmentFunctions\";\nimport \"./ShadersInclude/shadowsFragmentFunctions\";\nimport \"./ShadersInclude/samplerFragmentDeclaration\";\nimport \"./ShadersInclude/fresnelFunction\";\nimport \"./ShadersInclude/reflectionFunction\";\nimport \"./ShadersInclude/imageProcessingDeclaration\";\nimport \"./ShadersInclude/imageProcessingFunctions\";\nimport \"./ShadersInclude/bumpFragmentMainFunctions\";\nimport \"./ShadersInclude/bumpFragmentFunctions\";\nimport \"./ShadersInclude/clipPlaneFragmentDeclaration\";\nimport \"./ShadersInclude/logDepthDeclaration\";\nimport \"./ShadersInclude/fogFragmentDeclaration\";\nimport \"./ShadersInclude/clipPlaneFragment\";\nimport \"./ShadersInclude/bumpFragment\";\nimport \"./ShadersInclude/decalFragment\";\nimport \"./ShadersInclude/depthPrePass\";\nimport \"./ShadersInclude/lightFragment\";\nimport \"./ShadersInclude/logDepthFragment\";\nimport \"./ShadersInclude/fogFragment\";\nimport \"./ShadersInclude/oitFragment\";\nconst name = \"defaultPixelShader\";\nconst shader = `#include<defaultUboDeclaration>\n#include<prePassDeclaration>[SCENE_MRT_COUNT]\n#include<oitDeclaration>\n#define CUSTOM_FRAGMENT_BEGIN\nvarying vPositionW: vec3f;\n#ifdef NORMAL\nvarying vNormalW: vec3f;\n#endif\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nvarying vColor: vec4f;\n#endif\n#include<mainUVVaryingDeclaration>[1..7]\n#include<helperFunctions>\n#include<lightUboDeclaration>[0..maxSimultaneousLights]\n#include<lightsFragmentFunctions>\n#include<shadowsFragmentFunctions>\n#include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)\n#ifdef REFRACTION\n#ifdef REFRACTIONMAP_3D\nvar refractionCubeSamplerSampler: sampler;var refractionCubeSampler: texture_cube<f32>;\n#else\nvar refraction2DSamplerSampler: sampler;var refraction2DSampler: texture_2d<f32>;\n#endif\n#endif\n#if defined(SPECULARTERM)\n#include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)\n#endif\n#include<fresnelFunction>\n#ifdef REFLECTION\n#ifdef REFLECTIONMAP_3D\nvar reflectionCubeSamplerSampler: sampler;var reflectionCubeSampler: texture_cube<f32>;\n#else\nvar reflection2DSamplerSampler: sampler;var reflection2DSampler: texture_2d<f32>;\n#endif\n#ifdef REFLECTIONMAP_SKYBOX\nvarying vPositionUVW: vec3f;\n#else\n#if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)\nvarying vDirectionW: vec3f;\n#endif\n#endif\n#include<reflectionFunction>\n#endif\n#include<imageProcessingDeclaration>\n#include<imageProcessingFunctions>\n#include<bumpFragmentMainFunctions>\n#include<bumpFragmentFunctions>\n#include<clipPlaneFragmentDeclaration>\n#include<logDepthDeclaration>\n#include<fogFragmentDeclaration>\n#define CUSTOM_FRAGMENT_DEFINITIONS\n@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {\n#define CUSTOM_FRAGMENT_MAIN_BEGIN\n#include<clipPlaneFragment>\nvar viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-fragmentInputs.vPositionW);var baseColor: vec4f= vec4f(1.,1.,1.,1.);var diffuseColor: vec3f=uniforms.vDiffuseColor.rgb;var alpha: f32=uniforms.vDiffuseColor.a;\n#ifdef NORMAL\nvar normalW: vec3f=normalize(fragmentInputs.vNormalW);\n#else\nvar normalW: vec3f=normalize(-cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)));\n#endif\n#include<bumpFragment>\n#ifdef TWOSIDEDLIGHTING\nnormalW=select(-normalW,normalW,fragmentInputs.frontFacing);\n#endif\n#ifdef DIFFUSE\nbaseColor=textureSample(diffuseSampler,diffuseSamplerSampler,fragmentInputs.vDiffuseUV+uvOffset);\n#if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)\nif (baseColor.a<uniforms.alphaCutOff) {discard;}\n#endif\n#ifdef ALPHAFROMDIFFUSE\nalpha*=baseColor.a;\n#endif\n#define CUSTOM_FRAGMENT_UPDATE_ALPHA\nbaseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);\n#endif\n#if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)\nvar decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);\n#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)\n#endif\n#include<depthPrePass>\n#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nbaseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);\n#endif\n#ifdef DETAIL\nbaseColor=vec4f(baseColor.rgb*2.0*mix(0.5,detailColor.r,uniforms.vDetailInfos.y),baseColor.a);\n#endif\n#if defined(DECAL) && defined(DECAL_AFTER_DETAIL)\nvar decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);\n#include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)\n#endif\n#define CUSTOM_FRAGMENT_UPDATE_DIFFUSE\nvar baseAmbientColor: vec3f= vec3f(1.,1.,1.);\n#ifdef AMBIENT\nbaseAmbientColor=textureSample(ambientSampler,ambientSamplerSampler,fragmentInputs.vAmbientUV+uvOffset).rgb*uniforms.vAmbientInfos.y;\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_LIGHTS\nvar glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;\n#ifdef SPECULARTERM\n#ifdef SPECULAR\nvar specularMapColor: vec4f=textureSample(specularSampler,specularSamplerSampler,fragmentInputs.vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;\n#ifdef GLOSSINESS\nglossiness=glossiness*specularMapColor.a;\n#endif\n#endif\n#endif\nvar diffuseBase: vec3f= vec3f(0.,0.,0.);var info: lightingInfo;\n#ifdef SPECULARTERM\nvar specularBase: vec3f= vec3f(0.,0.,0.);\n#endif\nvar shadow: f32=1.;var aggShadow: f32=0.;var numLights: f32=0.;\n#ifdef LIGHTMAP\nvar lightmapColor: vec4f=textureSample(lightmapSampler,lightmapSamplerSampler,fragmentInputs.vLightmapUV+uvOffset);\n#ifdef RGBDLIGHTMAP\nlightmapColor=vec4f(fromRGBD(lightmapColor),lightmapColor.a);\n#endif\nlightmapColor=vec4f(lightmapColor.rgb*uniforms.vLightmapInfos.y,lightmapColor.a);\n#endif\n#include<lightFragment>[0..maxSimultaneousLights]\naggShadow=aggShadow/numLights;var refractionColor: vec4f= vec4f(0.,0.,0.,1.);\n#ifdef REFRACTION\nvar refractionVector: vec3f=normalize(refract(-viewDirectionW,normalW,uniforms.vRefractionInfos.y));\n#ifdef REFRACTIONMAP_3D\n#ifdef USE_LOCAL_REFRACTIONMAP_CUBIC\nrefractionVector=parallaxCorrectNormal(fragmentInputs.vPositionW,refractionVector,uniforms.vRefractionSize,uniforms.vRefractionPosition);\n#endif\nrefractionVector.y=refractionVector.y*uniforms.vRefractionInfos.w;var refractionLookup: vec4f=textureSample(refractionCubeSampler,refractionCubeSamplerSampler,refractionVector);if (dot(refractionVector,viewDirectionW)<1.0) {refractionColor=refractionLookup;}\n#else\nvar vRefractionUVW: vec3f= (uniforms.refractionMatrix*(scene.view* vec4f(fragmentInputs.vPositionW+refractionVector*uniforms.vRefractionInfos.z,1.0))).xyz;var refractionCoords: vec2f=vRefractionUVW.xy/vRefractionUVW.z;refractionCoords.y=1.0-refractionCoords.y;refractionColor=textureSample(refraction2DSampler,refraction2DSamplerSampler,refractionCoords);\n#endif\n#ifdef RGBDREFRACTION\nrefractionColor=vec4f(fromRGBD(refractionColor),refractionColor.a);\n#endif\n#ifdef IS_REFRACTION_LINEAR\nrefractionColor=vec4f(toGammaSpaceVec3(refractionColor.rgb),refractionColor.a);\n#endif\nrefractionColor=vec4f(refractionColor.rgb*uniforms.vRefractionInfos.x,refractionColor.a);\n#endif\nvar reflectionColor: vec4f= vec4f(0.,0.,0.,1.);\n#ifdef REFLECTION\nvar vReflectionUVW: vec3f=computeReflectionCoords( vec4f(fragmentInputs.vPositionW,1.0),normalW);\n#ifdef REFLECTIONMAP_OPPOSITEZ\nvReflectionUVW=vec3f(vReflectionUVW.x,vReflectionUVW.y,vReflectionUVW.z*-1.0);\n#endif\n#ifdef REFLECTIONMAP_3D\n#ifdef ROUGHNESS\nvar bias: f32=uniforms.vReflectionInfos.y;\n#ifdef SPECULARTERM\n#ifdef SPECULAR\n#ifdef GLOSSINESS\nbias*=(1.0-specularMapColor.a);\n#endif\n#endif\n#endif\nreflectionColor=textureSampleLevel(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW,bias);\n#else\nreflectionColor=textureSample(reflectionCubeSampler,reflectionCubeSamplerSampler,vReflectionUVW);\n#endif\n#else\nvar coords: vec2f=vReflectionUVW.xy;\n#ifdef REFLECTIONMAP_PROJECTION\ncoords/=vReflectionUVW.z;\n#endif\ncoords.y=1.0-coords.y;reflectionColor=textureSample(reflection2DSampler,reflection2DSamplerSampler,coords);\n#endif\n#ifdef RGBDREFLECTION\nreflectionColor=vec4f(fromRGBD(reflectionColor),reflectionColor.a);\n#endif\n#ifdef IS_REFLECTION_LINEAR\nreflectionColor=vec4f(toGammaSpaceVec3(reflectionColor.rgb),reflectionColor.a);\n#endif\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.vReflectionInfos.x,reflectionColor.a);\n#ifdef REFLECTIONFRESNEL\nvar reflectionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.reflectionRightColor.a,uniforms.reflectionLeftColor.a);\n#ifdef REFLECTIONFRESNELFROMSPECULAR\n#ifdef SPECULARTERM\nreflectionColor=vec4f(reflectionColor.rgb*specularColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#else\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#endif\n#else\nreflectionColor=vec4f(reflectionColor.rgb*uniforms.reflectionLeftColor.rgb*(1.0-reflectionFresnelTerm)+reflectionFresnelTerm*uniforms.reflectionRightColor.rgb,reflectionColor.a);\n#endif\n#endif\n#endif\n#ifdef REFRACTIONFRESNEL\nvar refractionFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.refractionRightColor.a,uniforms.refractionLeftColor.a);refractionColor=vec4f(refractionColor.rgb*uniforms.refractionLeftColor.rgb*(1.0-refractionFresnelTerm)+refractionFresnelTerm*uniforms.refractionRightColor.rgb,refractionColor.a);\n#endif\n#ifdef OPACITY\nvar opacityMap: vec4f=textureSample(opacitySampler,opacitySamplerSampler,fragmentInputs.vOpacityUV+uvOffset);\n#ifdef OPACITYRGB\nopacityMap=vec4f(opacityMap.rgb* vec3f(0.3,0.59,0.11),opacityMap.a);alpha*=(opacityMap.x+opacityMap.y+opacityMap.z)* uniforms.vOpacityInfos.y;\n#else\nalpha*=opacityMap.a*uniforms.vOpacityInfos.y;\n#endif\n#endif\n#if defined(VERTEXALPHA) || defined(INSTANCESCOLOR) && defined(INSTANCES)\nalpha*=fragmentInputs.vColor.a;\n#endif\n#ifdef OPACITYFRESNEL\nvar opacityFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.opacityParts.z,uniforms.opacityParts.w);alpha+=uniforms.opacityParts.x*(1.0-opacityFresnelTerm)+opacityFresnelTerm*uniforms.opacityParts.y;\n#endif\n#ifdef ALPHATEST\n#ifdef ALPHATEST_AFTERALLALPHACOMPUTATIONS\nif (alpha<uniforms.alphaCutOff) {discard;}\n#endif\n#ifndef ALPHABLEND\nalpha=1.0;\n#endif\n#endif\nvar emissiveColor: vec3f=uniforms.vEmissiveColor;\n#ifdef EMISSIVE\nemissiveColor+=textureSample(emissiveSampler,emissiveSamplerSampler,fragmentInputs.vEmissiveUV+uvOffset).rgb*uniforms.vEmissiveInfos.y;\n#endif\n#ifdef EMISSIVEFRESNEL\nvar emissiveFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.emissiveRightColor.a,uniforms.emissiveLeftColor.a);emissiveColor*=uniforms.emissiveLeftColor.rgb*(1.0-emissiveFresnelTerm)+emissiveFresnelTerm*uniforms.emissiveRightColor.rgb;\n#endif\n#ifdef DIFFUSEFRESNEL\nvar diffuseFresnelTerm: f32=computeFresnelTerm(viewDirectionW,normalW,uniforms.diffuseRightColor.a,uniforms.diffuseLeftColor.a);diffuseBase*=uniforms.diffuseLeftColor.rgb*(1.0-diffuseFresnelTerm)+diffuseFresnelTerm*uniforms.diffuseRightColor.rgb;\n#endif\n#ifdef EMISSIVEASILLUMINATION\nvar finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#else\n#ifdef LINKEMISSIVEWITHDIFFUSE\nvar finalDiffuse: vec3f=clamp((diffuseBase+emissiveColor)*diffuseColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#else\nvar finalDiffuse: vec3f=clamp(diffuseBase*diffuseColor+emissiveColor+uniforms.vAmbientColor,vec3f(0.0),vec3f(1.0))*baseColor.rgb;\n#endif\n#endif\n#ifdef SPECULARTERM\nvar finalSpecular: vec3f=specularBase*specularColor;\n#ifdef SPECULAROVERALPHA\nalpha=clamp(alpha+dot(finalSpecular, vec3f(0.3,0.59,0.11)),0.0,1.0);\n#endif\n#else\nvar finalSpecular: vec3f= vec3f(0.0);\n#endif\n#ifdef REFLECTIONOVERALPHA\nalpha=clamp(alpha+dot(reflectionColor.rgb, vec3f(0.3,0.59,0.11)),0.0,1.0);\n#endif\n#ifdef EMISSIVEASILLUMINATION\nvar color: vec4f= vec4f(clamp(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+emissiveColor+refractionColor.rgb,0.0,1.0),alpha);\n#else\nvar color: vec4f= vec4f(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);\n#endif\n#ifdef LIGHTMAP\n#ifndef LIGHTMAPEXCLUDED\n#ifdef USELIGHTMAPASSHADOWMAP\ncolor=vec4f(color.rgb*lightmapColor.rgb,color.a);\n#else\ncolor=vec4f(color.rgb+lightmapColor.rgb,color.a);\n#endif\n#endif\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_FOG\ncolor=vec4f(max(color.rgb,vec3f(0.)),color.a);\n#include<logDepthFragment>\n#include<fogFragment>\n#ifdef IMAGEPROCESSINGPOSTPROCESS\ncolor=vec4f(toLinearSpaceVec3(color.rgb),color.a);\n#else\n#ifdef IMAGEPROCESSING\ncolor=vec4f(toLinearSpaceVec3(color.rgb),color.a);color=applyImageProcessing(color);\n#endif\n#endif\ncolor=vec4f(color.rgb,color.a*mesh.visibility);\n#ifdef PREMULTIPLYALPHA\ncolor=vec4f(color.rgb*color.a, color.a);\n#endif\n#define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR\n#ifdef PREPASS\nvar writeGeometryInfo: f32=select(0.0,1.0,color.a>0.4);var fragData: array<vec4<f32>,SCENE_MRT_COUNT>;\n#ifdef PREPASS_COLOR\nfragData[PREPASS_COLOR_INDEX]=color; \n#endif\n#ifdef PREPASS_POSITION\nfragData[PREPASS_POSITION_INDEX]=vec4f(fragmentInputs.vPositionW,writeGeometryInfo);\n#endif\n#ifdef PREPASS_LOCAL_POSITION\nfragData[PREPASS_LOCAL_POSITION_INDEX]=vec4f(fragmentInputs.vPosition,writeGeometryInfo);\n#endif\n#ifdef PREPASS_VELOCITY\nvar a: vec2f=(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w)*0.5+0.5;var b: vec2f=(fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w)*0.5+0.5;var velocity: vec2f=abs(a-b);velocity= vec2f(pow(velocity.x,1.0/3.0),pow(velocity.y,1.0/3.0))*sign(a-b)*0.5+0.5;fragData[PREPASS_VELOCITY_INDEX]= vec4f(velocity,0.0,writeGeometryInfo);\n#elif defined(PREPASS_VELOCITY_LINEAR)\nvar velocity : vec2f=vec2f(0.5)*((fragmentInputs.vPreviousPosition.xy/fragmentInputs.vPreviousPosition.w) -\n(fragmentInputs.vCurrentPosition.xy/fragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX]=vec4f(velocity,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_IRRADIANCE\nfragData[PREPASS_IRRADIANCE_INDEX]=vec4f(0.0,0.0,0.0,writeGeometryInfo); \n#endif\n#ifdef PREPASS_DEPTH\nfragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,writeGeometryInfo); \n#endif\n#ifdef PREPASS_SCREENSPACE_DEPTH\nfragData[PREPASS_SCREENSPACE_DEPTH_INDEX]=vec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_NORMAL\n#ifdef PREPASS_NORMAL_WORLDSPACE\nfragData[PREPASS_NORMAL_INDEX]=vec4f(normalW,writeGeometryInfo);\n#else\nfragData[PREPASS_NORMAL_INDEX]=vec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),writeGeometryInfo);\n#endif\n#endif\n#ifdef PREPASS_WORLD_NORMAL\nfragData[PREPASS_WORLD_NORMAL_INDEX]=vec4f(normalW*0.5+0.5,writeGeometryInfo);\n#endif\n#ifdef PREPASS_ALBEDO\nfragData[PREPASS_ALBEDO_INDEX]=vec4f(baseColor.rgb,writeGeometryInfo);\n#endif\n#ifdef PREPASS_ALBEDO_SQRT\nfragData[PREPASS_ALBEDO_SQRT_INDEX]=vec4f(sqrt(baseColor.rgb),writeGeometryInfo);\n#endif\n#ifdef PREPASS_REFLECTIVITY\n#if defined(SPECULAR)\nfragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec4(specularMapColor))*writeGeometryInfo; \n#else\nfragData[PREPASS_REFLECTIVITY_INDEX]=vec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;\n#endif\n#endif\n#if SCENE_MRT_COUNT>0\nfragmentOutputs.fragData0=fragData[0];\n#endif\n#if SCENE_MRT_COUNT>1\nfragmentOutputs.fragData1=fragData[1];\n#endif\n#if SCENE_MRT_COUNT>2\nfragmentOutputs.fragData2=fragData[2];\n#endif\n#if SCENE_MRT_COUNT>3\nfragmentOutputs.fragData3=fragData[3];\n#endif\n#if SCENE_MRT_COUNT>4\nfragmentOutputs.fragData4=fragData[4];\n#endif\n#if SCENE_MRT_COUNT>5\nfragmentOutputs.fragData5=fragData[5];\n#endif\n#if SCENE_MRT_COUNT>6\nfragmentOutputs.fragData6=fragData[6];\n#endif\n#if SCENE_MRT_COUNT>7\nfragmentOutputs.fragData7=fragData[7];\n#endif\n#endif\n#if !defined(PREPASS) && !defined(ORDER_INDEPENDENT_TRANSPARENCY)\nfragmentOutputs.color=color;\n#endif\n#include<oitFragment>\n#if ORDER_INDEPENDENT_TRANSPARENCY\nif (fragDepth==nearestDepth) {fragmentOutputs.frontColor=vec4f(fragmentOutputs.frontColor.rgb+color.rgb*color.a*alphaMultiplier,1.0-alphaMultiplier*(1.0-color.a));} else {fragmentOutputs.backColor+=color;}\n#endif\n#define CUSTOM_FRAGMENT_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStoreWGSL[name] = shader;\n/** @internal */\nexport const defaultPixelShaderWGSL = { name, shader };\n//# sourceMappingURL=default.fragment.js.map"],"names":["name","shader"],"mappings":";;;;;;;;;;;AAAA;AAEA,MAAMA,MAAI,GAAG,yBAAyB;AACtC,MAAMC,QAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oWAAoW,CAAC;AACrW;AACA,WAAW,CAAC,wBAAwB,CAACD,MAAI,CAAC,GAAGC,QAAM;;ACrDnD;AA4BA,MAAM,IAAI,GAAG,oBAAoB;AACjC,MAAM,MAAM,GAAG,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM;AAC3C;AACY,MAAC,sBAAsB,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}
@@ -0,0 +1,181 @@
1
+ import { i as ShaderStore } from './index-BeKEIRka.esm.js';
2
+ import './defaultUboDeclaration-CudfJrM7.esm.js';
3
+ import './vertexColorMixing-BBpDYi6i.esm.js';
4
+ import './helperFunctions-BLuUx2nq.esm.js';
5
+ import './bakedVertexAnimation-DOpeNPuF.esm.js';
6
+ import './mainUVVaryingDeclaration-DYf1yJUX.esm.js';
7
+ import './logDepthVertex-COozVPxI.esm.js';
8
+ import './logDepthDeclaration-CyTQagov.esm.js';
9
+ import './meshUboDeclaration-BiUwws9z.esm.js';
10
+
11
+ // Do not edit.
12
+ const name$1 = "lightVxFragmentDeclaration";
13
+ const shader$1 = `#ifdef LIGHT{X}
14
+ uniform vLightData{X}: vec4f;uniform vLightDiffuse{X}: vec4f;
15
+ #ifdef SPECULARTERM
16
+ uniform vLightSpecular{X}: vec4f;
17
+ #else
18
+ var vLightSpecular{X}: vec4f= vec4f(0.);
19
+ #endif
20
+ #ifdef SHADOW{X}
21
+ #ifdef SHADOWCSM{X}
22
+ uniform lightMatrix{X}: mat4x4f[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromLight{X}: vec4f[SHADOWCSMNUM_CASCADES{X}];varying var vDepthMetric{X}: f32[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromCamera{X}: vec4f;
23
+ #elif defined(SHADOWCUBE{X})
24
+ #else
25
+ varying var vPositionFromLight{X}: vec4f;varying var vDepthMetric{X}: f32;uniform lightMatrix{X}: mat4x4f;
26
+ #endif
27
+ uniform shadowsInfo{X}: vec4f;uniform depthValues{X}: vec2f;
28
+ #endif
29
+ #ifdef SPOTLIGHT{X}
30
+ uniform vLightDirection{X}: vec4f;uniform vLightFalloff{X}: vec4f;
31
+ #elif defined(POINTLIGHT{X})
32
+ uniform vLightFalloff{X}: vec4f;
33
+ #elif defined(HEMILIGHT{X})
34
+ uniform vLightGround{X}: vec3f;
35
+ #endif
36
+ #endif
37
+ `;
38
+ // Sideeffect
39
+ ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
40
+
41
+ // Do not edit.
42
+ const name = "defaultVertexShader";
43
+ const shader = `#include<defaultUboDeclaration>
44
+ #define CUSTOM_VERTEX_BEGIN
45
+ attribute position: vec3f;
46
+ #ifdef NORMAL
47
+ attribute normal: vec3f;
48
+ #endif
49
+ #ifdef TANGENT
50
+ attribute tangent: vec4f;
51
+ #endif
52
+ #ifdef UV1
53
+ attribute uv: vec2f;
54
+ #endif
55
+ #include<uvAttributeDeclaration>[2..7]
56
+ #ifdef VERTEXCOLOR
57
+ attribute color: vec4f;
58
+ #endif
59
+ #include<helperFunctions>
60
+ #include<bonesDeclaration>
61
+ #include<bakedVertexAnimationDeclaration>
62
+ #include<instancesDeclaration>
63
+ #include<prePassVertexDeclaration>
64
+ #include<mainUVVaryingDeclaration>[1..7]
65
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse)
66
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)
67
+ #include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)
68
+ #include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)
69
+ #include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)
70
+ #include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)
71
+ #if defined(SPECULARTERM)
72
+ #include<samplerVertexDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular)
73
+ #endif
74
+ #include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)
75
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)
76
+ varying vPositionW: vec3f;
77
+ #ifdef NORMAL
78
+ varying vNormalW: vec3f;
79
+ #endif
80
+ #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
81
+ varying vColor: vec4f;
82
+ #endif
83
+ #include<bumpVertexDeclaration>
84
+ #include<clipPlaneVertexDeclaration>
85
+ #include<fogVertexDeclaration>
86
+ #include<__decl__lightVxFragment>[0..maxSimultaneousLights]
87
+ #include<morphTargetsVertexGlobalDeclaration>
88
+ #include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
89
+ #ifdef REFLECTIONMAP_SKYBOX
90
+ varying vPositionUVW: vec3f;
91
+ #endif
92
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
93
+ varying vDirectionW: vec3f;
94
+ #endif
95
+ #include<logDepthDeclaration>
96
+ #define CUSTOM_VERTEX_DEFINITIONS
97
+ @vertex
98
+ fn main(input : VertexInputs)->FragmentInputs {
99
+ #define CUSTOM_VERTEX_MAIN_BEGIN
100
+ var positionUpdated: vec3f=vertexInputs.position;
101
+ #ifdef NORMAL
102
+ var normalUpdated: vec3f=vertexInputs.normal;
103
+ #endif
104
+ #ifdef TANGENT
105
+ var tangentUpdated: vec4f=vertexInputs.tangent;
106
+ #endif
107
+ #ifdef UV1
108
+ var uvUpdated: vec2f=vertexInputs.uv;
109
+ #endif
110
+ #include<morphTargetsVertexGlobal>
111
+ #include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
112
+ #ifdef REFLECTIONMAP_SKYBOX
113
+ vertexOutputs.vPositionUVW=positionUpdated;
114
+ #endif
115
+ #define CUSTOM_VERTEX_UPDATE_POSITION
116
+ #define CUSTOM_VERTEX_UPDATE_NORMAL
117
+ #include<instancesVertex>
118
+ #if defined(PREPASS) && ((defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && !defined(BONES_VELOCITY_ENABLED)
119
+ vertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld*vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld*vec4f(positionUpdated,1.0);
120
+ #endif
121
+ #include<bonesVertex>
122
+ #include<bakedVertexAnimation>
123
+ var worldPos: vec4f=finalWorld*vec4f(positionUpdated,1.0);
124
+ #ifdef NORMAL
125
+ var normalWorld: mat3x3f= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz);
126
+ #if defined(INSTANCES) && defined(THIN_INSTANCES)
127
+ vertexOutputs.vNormalW=normalUpdated/ vec3f(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vertexOutputs.vNormalW=normalize(normalWorld*vertexOutputs.vNormalW);
128
+ #else
129
+ #ifdef NONUNIFORMSCALING
130
+ normalWorld=transposeMat3(inverseMat3(normalWorld));
131
+ #endif
132
+ vertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);
133
+ #endif
134
+ #endif
135
+ #define CUSTOM_VERTEX_UPDATE_WORLDPOS
136
+ #ifdef MULTIVIEW
137
+ if (gl_ViewID_OVR==0u) {vertexOutputs.position=scene.viewProjection*worldPos;} else {vertexOutputs.position=scene.viewProjectionR*worldPos;}
138
+ #else
139
+ vertexOutputs.position=scene.viewProjection*worldPos;
140
+ #endif
141
+ vertexOutputs.vPositionW= worldPos.xyz;
142
+ #ifdef PREPASS
143
+ #include<prePassVertex>
144
+ #endif
145
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
146
+ vertexOutputs.vDirectionW=normalize((finalWorld* vec4f(positionUpdated,0.0)).xyz);
147
+ #endif
148
+ #ifndef UV1
149
+ var uvUpdated: vec2f=vec2f(0.,0.);
150
+ #endif
151
+ #ifdef MAINUV1
152
+ vertexOutputs.vMainUV1=uvUpdated;
153
+ #endif
154
+ #include<uvVariableDeclaration>[2..7]
155
+ #include<samplerVertexImplementation>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_MATRIXNAME_,diffuse,_INFONAME_,DiffuseInfos.x)
156
+ #include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)
157
+ #include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)
158
+ #include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)
159
+ #include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)
160
+ #include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)
161
+ #if defined(SPECULARTERM)
162
+ #include<samplerVertexImplementation>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_MATRIXNAME_,specular,_INFONAME_,SpecularInfos.x)
163
+ #endif
164
+ #include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)
165
+ #include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)
166
+ #include<bumpVertex>
167
+ #include<clipPlaneVertex>
168
+ #include<fogVertex>
169
+ #include<shadowsVertex>[0..maxSimultaneousLights]
170
+ #include<vertexColorMixing>
171
+ #include<logDepthVertex>
172
+ #define CUSTOM_VERTEX_MAIN_END
173
+ }
174
+ `;
175
+ // Sideeffect
176
+ ShaderStore.ShadersStoreWGSL[name] = shader;
177
+ /** @internal */
178
+ const defaultVertexShaderWGSL = { name, shader };
179
+
180
+ export { defaultVertexShaderWGSL };
181
+ //# sourceMappingURL=default.vertex-D5X4nYce.esm.js.map