@babylonjs/viewer 7.31.1-alpha → 7.31.2

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 (587) hide show
  1. package/configuration/configuration.d.ts +107 -0
  2. package/configuration/configuration.js +16 -0
  3. package/configuration/configuration.js.map +1 -0
  4. package/configuration/configurationCompatibility.d.ts +8 -0
  5. package/configuration/configurationCompatibility.js +66 -0
  6. package/configuration/configurationCompatibility.js.map +1 -0
  7. package/configuration/configurationContainer.d.ts +10 -0
  8. package/configuration/configurationContainer.js +10 -0
  9. package/configuration/configurationContainer.js.map +1 -0
  10. package/configuration/globals.d.ts +6 -0
  11. package/configuration/globals.js +18 -0
  12. package/configuration/globals.js.map +1 -0
  13. package/configuration/index.d.ts +2 -0
  14. package/configuration/index.js +4 -0
  15. package/configuration/index.js.map +1 -0
  16. package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
  17. package/configuration/interfaces/cameraConfiguration.js +2 -0
  18. package/configuration/interfaces/cameraConfiguration.js.map +1 -0
  19. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
  20. package/configuration/interfaces/colorGradingConfiguration.js +2 -0
  21. package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
  22. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
  23. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
  24. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
  25. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
  26. package/configuration/interfaces/environmentMapConfiguration.js +2 -0
  27. package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
  28. package/configuration/interfaces/groundConfiguration.d.ts +24 -0
  29. package/configuration/interfaces/groundConfiguration.js +2 -0
  30. package/configuration/interfaces/groundConfiguration.js.map +1 -0
  31. package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
  32. package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
  33. package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
  34. package/configuration/interfaces/index.d.ts +15 -0
  35. package/configuration/interfaces/index.js +16 -0
  36. package/configuration/interfaces/index.js.map +1 -0
  37. package/configuration/interfaces/lightConfiguration.d.ts +60 -0
  38. package/configuration/interfaces/lightConfiguration.js +2 -0
  39. package/configuration/interfaces/lightConfiguration.js.map +1 -0
  40. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
  41. package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
  42. package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
  43. package/configuration/interfaces/modelConfiguration.d.ts +65 -0
  44. package/configuration/interfaces/modelConfiguration.js +2 -0
  45. package/configuration/interfaces/modelConfiguration.js.map +1 -0
  46. package/configuration/interfaces/observersConfiguration.d.ts +5 -0
  47. package/configuration/interfaces/observersConfiguration.js +2 -0
  48. package/configuration/interfaces/observersConfiguration.js.map +1 -0
  49. package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
  50. package/configuration/interfaces/sceneConfiguration.js +2 -0
  51. package/configuration/interfaces/sceneConfiguration.js.map +1 -0
  52. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
  53. package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
  54. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
  55. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
  56. package/configuration/interfaces/skyboxConfiguration.js +2 -0
  57. package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
  58. package/configuration/interfaces/templateConfiguration.d.ts +67 -0
  59. package/configuration/interfaces/templateConfiguration.js +2 -0
  60. package/configuration/interfaces/templateConfiguration.js.map +1 -0
  61. package/configuration/interfaces/vrConfiguration.d.ts +16 -0
  62. package/configuration/interfaces/vrConfiguration.js +2 -0
  63. package/configuration/interfaces/vrConfiguration.js.map +1 -0
  64. package/configuration/loader.d.ts +4 -0
  65. package/configuration/loader.js +17 -0
  66. package/configuration/loader.js.map +1 -0
  67. package/configuration/mappers.d.ts +43 -0
  68. package/configuration/mappers.js +192 -0
  69. package/configuration/mappers.js.map +1 -0
  70. package/configuration/renderOnlyLoader.d.ts +33 -0
  71. package/configuration/renderOnlyLoader.js +162 -0
  72. package/configuration/renderOnlyLoader.js.map +1 -0
  73. package/configuration/types/default.d.ts +6 -0
  74. package/configuration/types/default.js +121 -0
  75. package/configuration/types/default.js.map +1 -0
  76. package/configuration/types/environmentMap.d.ts +5 -0
  77. package/configuration/types/environmentMap.js +14 -0
  78. package/configuration/types/environmentMap.js.map +1 -0
  79. package/configuration/types/extended.d.ts +6 -0
  80. package/configuration/types/extended.js +317 -0
  81. package/configuration/types/extended.js.map +1 -0
  82. package/configuration/types/index.d.ts +14 -0
  83. package/configuration/types/index.js +51 -0
  84. package/configuration/types/index.js.map +1 -0
  85. package/configuration/types/minimal.d.ts +6 -0
  86. package/configuration/types/minimal.js +43 -0
  87. package/configuration/types/minimal.js.map +1 -0
  88. package/configuration/types/renderOnlyDefault.d.ts +30 -0
  89. package/configuration/types/renderOnlyDefault.js +31 -0
  90. package/configuration/types/renderOnlyDefault.js.map +1 -0
  91. package/configuration/types/shadowLight.d.ts +9 -0
  92. package/configuration/types/shadowLight.js +64 -0
  93. package/configuration/types/shadowLight.js.map +1 -0
  94. package/helper/index.d.ts +29 -0
  95. package/helper/index.js +66 -0
  96. package/helper/index.js.map +1 -0
  97. package/index.d.ts +30 -0
  98. package/index.js +46 -0
  99. package/index.js.map +1 -0
  100. package/initializer.d.ts +11 -0
  101. package/initializer.js +35 -0
  102. package/initializer.js.map +1 -0
  103. package/interfaces.d.ts +5 -0
  104. package/interfaces.js +7 -0
  105. package/interfaces.js.map +1 -0
  106. package/labs/environmentSerializer.d.ts +126 -0
  107. package/labs/environmentSerializer.js +191 -0
  108. package/labs/environmentSerializer.js.map +1 -0
  109. package/labs/texture.d.ts +183 -0
  110. package/labs/texture.js +350 -0
  111. package/labs/texture.js.map +1 -0
  112. package/labs/viewerLabs.d.ts +51 -0
  113. package/labs/viewerLabs.js +134 -0
  114. package/labs/viewerLabs.js.map +1 -0
  115. package/loader/modelLoader.d.ts +56 -0
  116. package/loader/modelLoader.js +199 -0
  117. package/loader/modelLoader.js.map +1 -0
  118. package/loader/plugins/applyMaterialConfig.d.ts +12 -0
  119. package/loader/plugins/applyMaterialConfig.js +16 -0
  120. package/loader/plugins/applyMaterialConfig.js.map +1 -0
  121. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
  122. package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
  123. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
  124. package/loader/plugins/index.d.ts +19 -0
  125. package/loader/plugins/index.js +44 -0
  126. package/loader/plugins/index.js.map +1 -0
  127. package/loader/plugins/loaderPlugin.d.ts +24 -0
  128. package/loader/plugins/loaderPlugin.js +2 -0
  129. package/loader/plugins/loaderPlugin.js.map +1 -0
  130. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
  131. package/loader/plugins/msftLodLoaderPlugin.js +21 -0
  132. package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
  133. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
  134. package/loader/plugins/telemetryLoaderPlugin.js +36 -0
  135. package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
  136. package/managers/observablesManager.d.ts +66 -0
  137. package/managers/observablesManager.js +35 -0
  138. package/managers/observablesManager.js.map +1 -0
  139. package/managers/sceneManager.d.ts +245 -0
  140. package/managers/sceneManager.js +1375 -0
  141. package/managers/sceneManager.js.map +1 -0
  142. package/managers/telemetryManager.d.ts +78 -0
  143. package/managers/telemetryManager.js +117 -0
  144. package/managers/telemetryManager.js.map +1 -0
  145. package/model/modelAnimation.d.ts +215 -0
  146. package/model/modelAnimation.js +237 -0
  147. package/model/modelAnimation.js.map +1 -0
  148. package/model/viewerModel.d.ts +233 -0
  149. package/model/viewerModel.js +673 -0
  150. package/model/viewerModel.js.map +1 -0
  151. package/optimizer/custom/extended.d.ts +13 -0
  152. package/optimizer/custom/extended.js +101 -0
  153. package/optimizer/custom/extended.js.map +1 -0
  154. package/optimizer/custom/index.d.ts +9 -0
  155. package/optimizer/custom/index.js +26 -0
  156. package/optimizer/custom/index.js.map +1 -0
  157. package/package.json +27 -18
  158. package/readme.md +21 -145
  159. package/renderOnlyIndex.d.ts +11 -0
  160. package/renderOnlyIndex.js +18 -0
  161. package/renderOnlyIndex.js.map +1 -0
  162. package/templating/eventManager.d.ts +35 -0
  163. package/templating/eventManager.js +66 -0
  164. package/templating/eventManager.js.map +1 -0
  165. package/templating/plugins/hdButtonPlugin.d.ts +9 -0
  166. package/templating/plugins/hdButtonPlugin.js +21 -0
  167. package/templating/plugins/hdButtonPlugin.js.map +1 -0
  168. package/templating/plugins/printButton.d.ts +9 -0
  169. package/templating/plugins/printButton.js +40 -0
  170. package/templating/plugins/printButton.js.map +1 -0
  171. package/templating/templateManager.d.ts +197 -0
  172. package/templating/templateManager.js +561 -0
  173. package/templating/templateManager.js.map +1 -0
  174. package/templating/viewerTemplatePlugin.d.ts +21 -0
  175. package/templating/viewerTemplatePlugin.js +69 -0
  176. package/templating/viewerTemplatePlugin.js.map +1 -0
  177. package/viewer/defaultViewer.d.ts +130 -0
  178. package/viewer/defaultViewer.js +672 -0
  179. package/viewer/defaultViewer.js.map +1 -0
  180. package/viewer/renderOnlyViewer.d.ts +9 -0
  181. package/viewer/renderOnlyViewer.js +46 -0
  182. package/viewer/renderOnlyViewer.js.map +1 -0
  183. package/viewer/viewer.d.ts +258 -0
  184. package/viewer/viewer.js +783 -0
  185. package/viewer/viewer.js.map +1 -0
  186. package/viewer/viewerManager.d.ts +58 -0
  187. package/viewer/viewerManager.js +91 -0
  188. package/viewer/viewerManager.js.map +1 -0
  189. package/viewer/viewerWithTemplate.d.ts +9 -0
  190. package/viewer/viewerWithTemplate.js +20 -0
  191. package/viewer/viewerWithTemplate.js.map +1 -0
  192. package/assets/photoStudio.env +0 -0
  193. package/dist/babylon-viewer.esm.js +0 -2
  194. package/dist/babylon-viewer.esm.js.map +0 -1
  195. package/dist/babylon-viewer.esm.min.js +0 -2
  196. package/dist/babylon-viewer.esm.min.js.map +0 -1
  197. package/dist/chunks/EXT_lights_image_based-BvJx05eR.esm.js +0 -172
  198. package/dist/chunks/EXT_lights_image_based-BvJx05eR.esm.js.map +0 -1
  199. package/dist/chunks/EXT_lights_image_based-DCpOVi4F.esm.min.js +0 -2
  200. package/dist/chunks/EXT_lights_image_based-DCpOVi4F.esm.min.js.map +0 -1
  201. package/dist/chunks/EXT_mesh_gpu_instancing-Aj8WYLoB.esm.min.js +0 -2
  202. package/dist/chunks/EXT_mesh_gpu_instancing-Aj8WYLoB.esm.min.js.map +0 -1
  203. package/dist/chunks/EXT_mesh_gpu_instancing-DeQiq7Rp.esm.js +0 -86
  204. package/dist/chunks/EXT_mesh_gpu_instancing-DeQiq7Rp.esm.js.map +0 -1
  205. package/dist/chunks/EXT_meshopt_compression-BUJrjMGk.esm.min.js +0 -2
  206. package/dist/chunks/EXT_meshopt_compression-BUJrjMGk.esm.min.js.map +0 -1
  207. package/dist/chunks/EXT_meshopt_compression-C8oao-uC.esm.js +0 -134
  208. package/dist/chunks/EXT_meshopt_compression-C8oao-uC.esm.js.map +0 -1
  209. package/dist/chunks/EXT_texture_avif-D1QMjckX.esm.js +0 -44
  210. package/dist/chunks/EXT_texture_avif-D1QMjckX.esm.js.map +0 -1
  211. package/dist/chunks/EXT_texture_avif-VUkFAuGP.esm.min.js +0 -2
  212. package/dist/chunks/EXT_texture_avif-VUkFAuGP.esm.min.js.map +0 -1
  213. package/dist/chunks/EXT_texture_webp-146HjboX.esm.js +0 -43
  214. package/dist/chunks/EXT_texture_webp-146HjboX.esm.js.map +0 -1
  215. package/dist/chunks/EXT_texture_webp-CQ3V6L-Z.esm.min.js +0 -2
  216. package/dist/chunks/EXT_texture_webp-CQ3V6L-Z.esm.min.js.map +0 -1
  217. package/dist/chunks/ExtrasAsMetadata-B-b0eXpq.esm.min.js +0 -2
  218. package/dist/chunks/ExtrasAsMetadata-B-b0eXpq.esm.min.js.map +0 -1
  219. package/dist/chunks/ExtrasAsMetadata-CvRbJs7Y.esm.js +0 -64
  220. package/dist/chunks/ExtrasAsMetadata-CvRbJs7Y.esm.js.map +0 -1
  221. package/dist/chunks/KHR_animation_pointer-Bd9hX9iM.esm.js +0 -343
  222. package/dist/chunks/KHR_animation_pointer-Bd9hX9iM.esm.js.map +0 -1
  223. package/dist/chunks/KHR_animation_pointer-ZVVACgFy.esm.min.js +0 -2
  224. package/dist/chunks/KHR_animation_pointer-ZVVACgFy.esm.min.js.map +0 -1
  225. package/dist/chunks/KHR_draco_mesh_compression-DpUmqpkC.esm.js +0 -610
  226. package/dist/chunks/KHR_draco_mesh_compression-DpUmqpkC.esm.js.map +0 -1
  227. package/dist/chunks/KHR_draco_mesh_compression-p7wksBd6.esm.min.js +0 -2
  228. package/dist/chunks/KHR_draco_mesh_compression-p7wksBd6.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_interactivity-CY6_mqUa.esm.js +0 -4033
  230. package/dist/chunks/KHR_interactivity-CY6_mqUa.esm.js.map +0 -1
  231. package/dist/chunks/KHR_interactivity-pLjiJFEA.esm.min.js +0 -2
  232. package/dist/chunks/KHR_interactivity-pLjiJFEA.esm.min.js.map +0 -1
  233. package/dist/chunks/KHR_lights_punctual-D-B3HTfB.esm.js +0 -1253
  234. package/dist/chunks/KHR_lights_punctual-D-B3HTfB.esm.js.map +0 -1
  235. package/dist/chunks/KHR_lights_punctual-DM6AhIXb.esm.min.js +0 -2
  236. package/dist/chunks/KHR_lights_punctual-DM6AhIXb.esm.min.js.map +0 -1
  237. package/dist/chunks/KHR_materials_anisotropy-JD-27z7k.esm.min.js +0 -2
  238. package/dist/chunks/KHR_materials_anisotropy-JD-27z7k.esm.min.js.map +0 -1
  239. package/dist/chunks/KHR_materials_anisotropy-aSZw9IyE.esm.js +0 -64
  240. package/dist/chunks/KHR_materials_anisotropy-aSZw9IyE.esm.js.map +0 -1
  241. package/dist/chunks/KHR_materials_clearcoat-C3LC9yej.esm.min.js +0 -2
  242. package/dist/chunks/KHR_materials_clearcoat-C3LC9yej.esm.min.js.map +0 -1
  243. package/dist/chunks/KHR_materials_clearcoat-D70aD19M.esm.js +0 -96
  244. package/dist/chunks/KHR_materials_clearcoat-D70aD19M.esm.js.map +0 -1
  245. package/dist/chunks/KHR_materials_diffuse_transmission-BJpc5vXM.esm.min.js +0 -2
  246. package/dist/chunks/KHR_materials_diffuse_transmission-BJpc5vXM.esm.min.js.map +0 -1
  247. package/dist/chunks/KHR_materials_diffuse_transmission-CUKIzwqb.esm.js +0 -97
  248. package/dist/chunks/KHR_materials_diffuse_transmission-CUKIzwqb.esm.js.map +0 -1
  249. package/dist/chunks/KHR_materials_dispersion-BrvP-u4o.esm.min.js +0 -2
  250. package/dist/chunks/KHR_materials_dispersion-BrvP-u4o.esm.min.js.map +0 -1
  251. package/dist/chunks/KHR_materials_dispersion-DcKUTeH9.esm.js +0 -62
  252. package/dist/chunks/KHR_materials_dispersion-DcKUTeH9.esm.js.map +0 -1
  253. package/dist/chunks/KHR_materials_emissive_strength-Btd5m7vH.esm.min.js +0 -2
  254. package/dist/chunks/KHR_materials_emissive_strength-Btd5m7vH.esm.min.js.map +0 -1
  255. package/dist/chunks/KHR_materials_emissive_strength-CObYKHp2.esm.js +0 -55
  256. package/dist/chunks/KHR_materials_emissive_strength-CObYKHp2.esm.js.map +0 -1
  257. package/dist/chunks/KHR_materials_ior-C6PwWHpQ.esm.js +0 -64
  258. package/dist/chunks/KHR_materials_ior-C6PwWHpQ.esm.js.map +0 -1
  259. package/dist/chunks/KHR_materials_ior-Dk1HIJQK.esm.min.js +0 -2
  260. package/dist/chunks/KHR_materials_ior-Dk1HIJQK.esm.min.js.map +0 -1
  261. package/dist/chunks/KHR_materials_iridescence-CCgJ58Df.esm.js +0 -72
  262. package/dist/chunks/KHR_materials_iridescence-CCgJ58Df.esm.js.map +0 -1
  263. package/dist/chunks/KHR_materials_iridescence-CvBFkkon.esm.min.js +0 -2
  264. package/dist/chunks/KHR_materials_iridescence-CvBFkkon.esm.min.js.map +0 -1
  265. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B9BmLJgU.esm.js +0 -81
  266. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B9BmLJgU.esm.js.map +0 -1
  267. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-g9x0gvG3.esm.min.js +0 -2
  268. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-g9x0gvG3.esm.min.js.map +0 -1
  269. package/dist/chunks/KHR_materials_sheen-CET8CTK-.esm.js +0 -85
  270. package/dist/chunks/KHR_materials_sheen-CET8CTK-.esm.js.map +0 -1
  271. package/dist/chunks/KHR_materials_sheen-DnzdVL4X.esm.min.js +0 -2
  272. package/dist/chunks/KHR_materials_sheen-DnzdVL4X.esm.min.js.map +0 -1
  273. package/dist/chunks/KHR_materials_specular-DmG_wKGo.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_specular-DmG_wKGo.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_specular-ahqwA4QD.esm.js +0 -75
  276. package/dist/chunks/KHR_materials_specular-ahqwA4QD.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_transmission-DHLOex9Y.esm.js +0 -307
  278. package/dist/chunks/KHR_materials_transmission-DHLOex9Y.esm.js.map +0 -1
  279. package/dist/chunks/KHR_materials_transmission-DcId_Onf.esm.min.js +0 -2
  280. package/dist/chunks/KHR_materials_transmission-DcId_Onf.esm.min.js.map +0 -1
  281. package/dist/chunks/KHR_materials_unlit-CHJoZvcR.esm.js +0 -74
  282. package/dist/chunks/KHR_materials_unlit-CHJoZvcR.esm.js.map +0 -1
  283. package/dist/chunks/KHR_materials_unlit-DrzO1lju.esm.min.js +0 -2
  284. package/dist/chunks/KHR_materials_unlit-DrzO1lju.esm.min.js.map +0 -1
  285. package/dist/chunks/KHR_materials_variants-3TC03wwa.esm.min.js +0 -2
  286. package/dist/chunks/KHR_materials_variants-3TC03wwa.esm.min.js.map +0 -1
  287. package/dist/chunks/KHR_materials_variants-C9HWH1dv.esm.js +0 -238
  288. package/dist/chunks/KHR_materials_variants-C9HWH1dv.esm.js.map +0 -1
  289. package/dist/chunks/KHR_materials_volume-BO2xW-9s.esm.js +0 -87
  290. package/dist/chunks/KHR_materials_volume-BO2xW-9s.esm.js.map +0 -1
  291. package/dist/chunks/KHR_materials_volume-DtVbjbMX.esm.min.js +0 -2
  292. package/dist/chunks/KHR_materials_volume-DtVbjbMX.esm.min.js.map +0 -1
  293. package/dist/chunks/KHR_mesh_quantization-cS7VwXsz.esm.min.js +0 -2
  294. package/dist/chunks/KHR_mesh_quantization-cS7VwXsz.esm.min.js.map +0 -1
  295. package/dist/chunks/KHR_mesh_quantization-xpIAWri-.esm.js +0 -26
  296. package/dist/chunks/KHR_mesh_quantization-xpIAWri-.esm.js.map +0 -1
  297. package/dist/chunks/KHR_texture_basisu-BMcFnggy.esm.js +0 -43
  298. package/dist/chunks/KHR_texture_basisu-BMcFnggy.esm.js.map +0 -1
  299. package/dist/chunks/KHR_texture_basisu-DSfjiTB-.esm.min.js +0 -2
  300. package/dist/chunks/KHR_texture_basisu-DSfjiTB-.esm.min.js.map +0 -1
  301. package/dist/chunks/KHR_texture_transform-DqWvW9Ik.esm.min.js +0 -2
  302. package/dist/chunks/KHR_texture_transform-DqWvW9Ik.esm.min.js.map +0 -1
  303. package/dist/chunks/KHR_texture_transform-ovyK6lxN.esm.js +0 -63
  304. package/dist/chunks/KHR_texture_transform-ovyK6lxN.esm.js.map +0 -1
  305. package/dist/chunks/KHR_xmp_json_ld-BSjiDN_K.esm.js +0 -51
  306. package/dist/chunks/KHR_xmp_json_ld-BSjiDN_K.esm.js.map +0 -1
  307. package/dist/chunks/KHR_xmp_json_ld-CiYvvYcy.esm.min.js +0 -2
  308. package/dist/chunks/KHR_xmp_json_ld-CiYvvYcy.esm.min.js.map +0 -1
  309. package/dist/chunks/MSFT_audio_emitter-D1yL_xMt.esm.js +0 -2207
  310. package/dist/chunks/MSFT_audio_emitter-D1yL_xMt.esm.js.map +0 -1
  311. package/dist/chunks/MSFT_audio_emitter-DvIfL201.esm.min.js +0 -2
  312. package/dist/chunks/MSFT_audio_emitter-DvIfL201.esm.min.js.map +0 -1
  313. package/dist/chunks/MSFT_lod-D4hkUDJr.esm.min.js +0 -2
  314. package/dist/chunks/MSFT_lod-D4hkUDJr.esm.min.js.map +0 -1
  315. package/dist/chunks/MSFT_lod-HD11Za60.esm.js +0 -337
  316. package/dist/chunks/MSFT_lod-HD11Za60.esm.js.map +0 -1
  317. package/dist/chunks/MSFT_minecraftMesh-BhwNALi5.esm.min.js +0 -2
  318. package/dist/chunks/MSFT_minecraftMesh-BhwNALi5.esm.min.js.map +0 -1
  319. package/dist/chunks/MSFT_minecraftMesh-DL5YTMbg.esm.js +0 -46
  320. package/dist/chunks/MSFT_minecraftMesh-DL5YTMbg.esm.js.map +0 -1
  321. package/dist/chunks/MSFT_sRGBFactors-71DWXYlk.esm.min.js +0 -2
  322. package/dist/chunks/MSFT_sRGBFactors-71DWXYlk.esm.min.js.map +0 -1
  323. package/dist/chunks/MSFT_sRGBFactors-CGm4wJMG.esm.js +0 -47
  324. package/dist/chunks/MSFT_sRGBFactors-CGm4wJMG.esm.js.map +0 -1
  325. package/dist/chunks/animationGroup-BroxOYP7.esm.min.js +0 -2
  326. package/dist/chunks/animationGroup-BroxOYP7.esm.min.js.map +0 -1
  327. package/dist/chunks/animationGroup-CWjaOD9K.esm.js +0 -2479
  328. package/dist/chunks/animationGroup-CWjaOD9K.esm.js.map +0 -1
  329. package/dist/chunks/assetContainer-B2MIAnVN.esm.min.js +0 -2
  330. package/dist/chunks/assetContainer-B2MIAnVN.esm.min.js.map +0 -1
  331. package/dist/chunks/assetContainer-TbbETMsA.esm.js +0 -1720
  332. package/dist/chunks/assetContainer-TbbETMsA.esm.js.map +0 -1
  333. package/dist/chunks/audioEngine-D71VHqbc.esm.js +0 -305
  334. package/dist/chunks/audioEngine-D71VHqbc.esm.js.map +0 -1
  335. package/dist/chunks/audioEngine-DGkNgSHT.esm.min.js +0 -2
  336. package/dist/chunks/audioEngine-DGkNgSHT.esm.min.js.map +0 -1
  337. package/dist/chunks/bakedVertexAnimation-C8gu0Kus.esm.min.js +0 -2
  338. package/dist/chunks/bakedVertexAnimation-C8gu0Kus.esm.min.js.map +0 -1
  339. package/dist/chunks/bakedVertexAnimation-Dr93wvvn.esm.js +0 -119
  340. package/dist/chunks/bakedVertexAnimation-Dr93wvvn.esm.js.map +0 -1
  341. package/dist/chunks/basisTextureLoader-DAzrx7CZ.esm.min.js +0 -2
  342. package/dist/chunks/basisTextureLoader-DAzrx7CZ.esm.min.js.map +0 -1
  343. package/dist/chunks/basisTextureLoader-Dz89vPV_.esm.js +0 -600
  344. package/dist/chunks/basisTextureLoader-Dz89vPV_.esm.js.map +0 -1
  345. package/dist/chunks/dds-CfSJhkp9.esm.min.js +0 -2
  346. package/dist/chunks/dds-CfSJhkp9.esm.min.js.map +0 -1
  347. package/dist/chunks/dds-Dlst-66O.esm.js +0 -540
  348. package/dist/chunks/dds-Dlst-66O.esm.js.map +0 -1
  349. package/dist/chunks/ddsTextureLoader-B6X4vPph.esm.min.js +0 -2
  350. package/dist/chunks/ddsTextureLoader-B6X4vPph.esm.min.js.map +0 -1
  351. package/dist/chunks/ddsTextureLoader-CLO8nENj.esm.js +0 -88
  352. package/dist/chunks/ddsTextureLoader-CLO8nENj.esm.js.map +0 -1
  353. package/dist/chunks/decalFragment-B4RSlkG3.esm.js +0 -18
  354. package/dist/chunks/decalFragment-B4RSlkG3.esm.js.map +0 -1
  355. package/dist/chunks/decalFragment-BWLR7pGp.esm.min.js +0 -2
  356. package/dist/chunks/decalFragment-BWLR7pGp.esm.min.js.map +0 -1
  357. package/dist/chunks/default.fragment-Bj4Iw_SG.esm.js +0 -515
  358. package/dist/chunks/default.fragment-Bj4Iw_SG.esm.js.map +0 -1
  359. package/dist/chunks/default.fragment-CKZejJPA.esm.min.js +0 -2
  360. package/dist/chunks/default.fragment-CKZejJPA.esm.min.js.map +0 -1
  361. package/dist/chunks/default.fragment-CmvJdbNF.esm.min.js +0 -2
  362. package/dist/chunks/default.fragment-CmvJdbNF.esm.min.js.map +0 -1
  363. package/dist/chunks/default.fragment-DEtYyTCv.esm.js +0 -449
  364. package/dist/chunks/default.fragment-DEtYyTCv.esm.js.map +0 -1
  365. package/dist/chunks/default.vertex-B5fyVzX0.esm.js +0 -203
  366. package/dist/chunks/default.vertex-B5fyVzX0.esm.js.map +0 -1
  367. package/dist/chunks/default.vertex-CZ_uU-85.esm.min.js +0 -2
  368. package/dist/chunks/default.vertex-CZ_uU-85.esm.min.js.map +0 -1
  369. package/dist/chunks/default.vertex-CbbWO7Co.esm.js +0 -180
  370. package/dist/chunks/default.vertex-CbbWO7Co.esm.js.map +0 -1
  371. package/dist/chunks/default.vertex-rqsWtZrW.esm.min.js +0 -2
  372. package/dist/chunks/default.vertex-rqsWtZrW.esm.min.js.map +0 -1
  373. package/dist/chunks/defaultUboDeclaration-C83f9dhI.esm.min.js +0 -2
  374. package/dist/chunks/defaultUboDeclaration-C83f9dhI.esm.min.js.map +0 -1
  375. package/dist/chunks/defaultUboDeclaration-CljPZkbq.esm.js +0 -15
  376. package/dist/chunks/defaultUboDeclaration-CljPZkbq.esm.js.map +0 -1
  377. package/dist/chunks/defaultUboDeclaration-DD4XocPc.esm.js +0 -13
  378. package/dist/chunks/defaultUboDeclaration-DD4XocPc.esm.js.map +0 -1
  379. package/dist/chunks/defaultUboDeclaration-DYNoYns2.esm.min.js +0 -2
  380. package/dist/chunks/defaultUboDeclaration-DYNoYns2.esm.min.js.map +0 -1
  381. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
  382. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
  383. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
  384. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
  385. package/dist/chunks/dumpTools-BESzxGLa.esm.js +0 -402
  386. package/dist/chunks/dumpTools-BESzxGLa.esm.js.map +0 -1
  387. package/dist/chunks/dumpTools-C1-7XK3T.esm.min.js +0 -2
  388. package/dist/chunks/dumpTools-C1-7XK3T.esm.min.js.map +0 -1
  389. package/dist/chunks/engine-C14Lojh8.esm.min.js +0 -2
  390. package/dist/chunks/engine-C14Lojh8.esm.min.js.map +0 -1
  391. package/dist/chunks/engine-Der8nZ-F.esm.js +0 -2174
  392. package/dist/chunks/engine-Der8nZ-F.esm.js.map +0 -1
  393. package/dist/chunks/engine.common-BIAQAbS5.esm.js +0 -1088
  394. package/dist/chunks/engine.common-BIAQAbS5.esm.js.map +0 -1
  395. package/dist/chunks/engine.common-JR3eK4lo.esm.min.js +0 -2
  396. package/dist/chunks/engine.common-JR3eK4lo.esm.min.js.map +0 -1
  397. package/dist/chunks/envTextureLoader-DBxj01wq.esm.min.js +0 -2
  398. package/dist/chunks/envTextureLoader-DBxj01wq.esm.min.js.map +0 -1
  399. package/dist/chunks/envTextureLoader-TPtjC4AO.esm.js +0 -65
  400. package/dist/chunks/envTextureLoader-TPtjC4AO.esm.js.map +0 -1
  401. package/dist/chunks/environmentTextureTools-BFTF7Uuv.esm.js +0 -382
  402. package/dist/chunks/environmentTextureTools-BFTF7Uuv.esm.js.map +0 -1
  403. package/dist/chunks/environmentTextureTools-hAgJLHR5.esm.min.js +0 -2
  404. package/dist/chunks/environmentTextureTools-hAgJLHR5.esm.min.js.map +0 -1
  405. package/dist/chunks/exrTextureLoader-BGbLT201.esm.js +0 -1682
  406. package/dist/chunks/exrTextureLoader-BGbLT201.esm.js.map +0 -1
  407. package/dist/chunks/exrTextureLoader-BIy8Kowg.esm.min.js +0 -2
  408. package/dist/chunks/exrTextureLoader-BIy8Kowg.esm.min.js.map +0 -1
  409. package/dist/chunks/fogFragment-DfzGCNiO.esm.min.js +0 -2
  410. package/dist/chunks/fogFragment-DfzGCNiO.esm.min.js.map +0 -1
  411. package/dist/chunks/fogFragment-us2nPbnR.esm.js +0 -102
  412. package/dist/chunks/fogFragment-us2nPbnR.esm.js.map +0 -1
  413. package/dist/chunks/fresnelFunction-DCdAvPbg.esm.js +0 -12
  414. package/dist/chunks/fresnelFunction-DCdAvPbg.esm.js.map +0 -1
  415. package/dist/chunks/fresnelFunction-DgnyAxzz.esm.min.js +0 -2
  416. package/dist/chunks/fresnelFunction-DgnyAxzz.esm.min.js.map +0 -1
  417. package/dist/chunks/glTFLoader-CoypRThR.esm.js +0 -7577
  418. package/dist/chunks/glTFLoader-CoypRThR.esm.js.map +0 -1
  419. package/dist/chunks/glTFLoader-DJOWGGzO.esm.min.js +0 -2
  420. package/dist/chunks/glTFLoader-DJOWGGzO.esm.min.js.map +0 -1
  421. package/dist/chunks/glTFLoaderAnimation-Bj17JLj0.esm.js +0 -77
  422. package/dist/chunks/glTFLoaderAnimation-Bj17JLj0.esm.js.map +0 -1
  423. package/dist/chunks/glTFLoaderAnimation-CFIqLbF8.esm.min.js +0 -2
  424. package/dist/chunks/glTFLoaderAnimation-CFIqLbF8.esm.min.js.map +0 -1
  425. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
  426. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
  427. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
  428. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
  429. package/dist/chunks/harmonicsFunctions-BUdOda2X.esm.js +0 -34
  430. package/dist/chunks/harmonicsFunctions-BUdOda2X.esm.js.map +0 -1
  431. package/dist/chunks/harmonicsFunctions-Cwd91Rxn.esm.min.js +0 -2
  432. package/dist/chunks/harmonicsFunctions-Cwd91Rxn.esm.min.js.map +0 -1
  433. package/dist/chunks/harmonicsFunctions-DffaFQxD.esm.js +0 -35
  434. package/dist/chunks/harmonicsFunctions-DffaFQxD.esm.js.map +0 -1
  435. package/dist/chunks/harmonicsFunctions-o_ODwySi.esm.min.js +0 -2
  436. package/dist/chunks/harmonicsFunctions-o_ODwySi.esm.min.js.map +0 -1
  437. package/dist/chunks/hdrTextureLoader-1niTHf7G.esm.min.js +0 -2
  438. package/dist/chunks/hdrTextureLoader-1niTHf7G.esm.min.js.map +0 -1
  439. package/dist/chunks/hdrTextureLoader-D8lbfJJF.esm.js +0 -252
  440. package/dist/chunks/hdrTextureLoader-D8lbfJJF.esm.js.map +0 -1
  441. package/dist/chunks/helperFunctions-Bc3vBAJE.esm.js +0 -80
  442. package/dist/chunks/helperFunctions-Bc3vBAJE.esm.js.map +0 -1
  443. package/dist/chunks/helperFunctions-Bjxu6aor.esm.min.js +0 -2
  444. package/dist/chunks/helperFunctions-Bjxu6aor.esm.min.js.map +0 -1
  445. package/dist/chunks/helperFunctions-Bm1PSts6.esm.js +0 -108
  446. package/dist/chunks/helperFunctions-Bm1PSts6.esm.js.map +0 -1
  447. package/dist/chunks/helperFunctions-CqNsMT4d.esm.min.js +0 -2
  448. package/dist/chunks/helperFunctions-CqNsMT4d.esm.min.js.map +0 -1
  449. package/dist/chunks/index-ByqPlgGf.esm.js +0 -72106
  450. package/dist/chunks/index-ByqPlgGf.esm.js.map +0 -1
  451. package/dist/chunks/index-DPuAKXwn.esm.min.js +0 -57
  452. package/dist/chunks/index-DPuAKXwn.esm.min.js.map +0 -1
  453. package/dist/chunks/ktxTextureLoader-2vQETX4d.esm.js +0 -814
  454. package/dist/chunks/ktxTextureLoader-2vQETX4d.esm.js.map +0 -1
  455. package/dist/chunks/ktxTextureLoader-D97p2qzj.esm.min.js +0 -2
  456. package/dist/chunks/ktxTextureLoader-D97p2qzj.esm.min.js.map +0 -1
  457. package/dist/chunks/logDepthDeclaration-BKKLIeIA.esm.js +0 -20
  458. package/dist/chunks/logDepthDeclaration-BKKLIeIA.esm.js.map +0 -1
  459. package/dist/chunks/logDepthDeclaration-C0fhsb0C.esm.min.js +0 -2
  460. package/dist/chunks/logDepthDeclaration-C0fhsb0C.esm.min.js.map +0 -1
  461. package/dist/chunks/logDepthDeclaration-CHp3lFEW.esm.min.js +0 -2
  462. package/dist/chunks/logDepthDeclaration-CHp3lFEW.esm.min.js.map +0 -1
  463. package/dist/chunks/logDepthDeclaration-Do91zFth.esm.js +0 -35
  464. package/dist/chunks/logDepthDeclaration-Do91zFth.esm.js.map +0 -1
  465. package/dist/chunks/logDepthVertex-B-7kj-3y.esm.min.js +0 -2
  466. package/dist/chunks/logDepthVertex-B-7kj-3y.esm.min.js.map +0 -1
  467. package/dist/chunks/logDepthVertex-D3mPozkB.esm.js +0 -488
  468. package/dist/chunks/logDepthVertex-D3mPozkB.esm.js.map +0 -1
  469. package/dist/chunks/logDepthVertex-DL6XlVbh.esm.js +0 -77
  470. package/dist/chunks/logDepthVertex-DL6XlVbh.esm.js.map +0 -1
  471. package/dist/chunks/logDepthVertex-yU0rnFjt.esm.min.js +0 -2
  472. package/dist/chunks/logDepthVertex-yU0rnFjt.esm.min.js.map +0 -1
  473. package/dist/chunks/mainUVVaryingDeclaration-BltpVhQi.esm.min.js +0 -2
  474. package/dist/chunks/mainUVVaryingDeclaration-BltpVhQi.esm.min.js.map +0 -1
  475. package/dist/chunks/mainUVVaryingDeclaration-jir-aCNu.esm.js +0 -11
  476. package/dist/chunks/mainUVVaryingDeclaration-jir-aCNu.esm.js.map +0 -1
  477. package/dist/chunks/meshUboDeclaration-CDuX-5yo.esm.min.js +0 -2
  478. package/dist/chunks/meshUboDeclaration-CDuX-5yo.esm.min.js.map +0 -1
  479. package/dist/chunks/meshUboDeclaration-D-WNLe-f.esm.js +0 -24
  480. package/dist/chunks/meshUboDeclaration-D-WNLe-f.esm.js.map +0 -1
  481. package/dist/chunks/objFileLoader-BDOFeMen.esm.min.js +0 -2
  482. package/dist/chunks/objFileLoader-BDOFeMen.esm.min.js.map +0 -1
  483. package/dist/chunks/objFileLoader-_JLh3j9p.esm.js +0 -1338
  484. package/dist/chunks/objFileLoader-_JLh3j9p.esm.js.map +0 -1
  485. package/dist/chunks/oitFragment-24dXuq-Q.esm.js +0 -1210
  486. package/dist/chunks/oitFragment-24dXuq-Q.esm.js.map +0 -1
  487. package/dist/chunks/oitFragment-DJh1sV_q.esm.min.js +0 -2
  488. package/dist/chunks/oitFragment-DJh1sV_q.esm.min.js.map +0 -1
  489. package/dist/chunks/oitFragment-GKZN5NeN.esm.min.js +0 -2
  490. package/dist/chunks/oitFragment-GKZN5NeN.esm.min.js.map +0 -1
  491. package/dist/chunks/oitFragment-V_hEa1Hy.esm.js +0 -1150
  492. package/dist/chunks/oitFragment-V_hEa1Hy.esm.js.map +0 -1
  493. package/dist/chunks/pass.fragment-BgaGZPQr.esm.js +0 -15
  494. package/dist/chunks/pass.fragment-BgaGZPQr.esm.js.map +0 -1
  495. package/dist/chunks/pass.fragment-Cq5o99EQ.esm.js +0 -15
  496. package/dist/chunks/pass.fragment-Cq5o99EQ.esm.js.map +0 -1
  497. package/dist/chunks/pass.fragment-DoEOiSt_.esm.min.js +0 -2
  498. package/dist/chunks/pass.fragment-DoEOiSt_.esm.min.js.map +0 -1
  499. package/dist/chunks/pass.fragment-cU8cfFI-.esm.min.js +0 -2
  500. package/dist/chunks/pass.fragment-cU8cfFI-.esm.min.js.map +0 -1
  501. package/dist/chunks/pbr.fragment-BwCxYjsw.esm.js +0 -3165
  502. package/dist/chunks/pbr.fragment-BwCxYjsw.esm.js.map +0 -1
  503. package/dist/chunks/pbr.fragment-CEG-YtMg.esm.min.js +0 -2
  504. package/dist/chunks/pbr.fragment-CEG-YtMg.esm.min.js.map +0 -1
  505. package/dist/chunks/pbr.fragment-DNKjQ3cr.esm.min.js +0 -2
  506. package/dist/chunks/pbr.fragment-DNKjQ3cr.esm.min.js.map +0 -1
  507. package/dist/chunks/pbr.fragment-zzWqx8ql.esm.js +0 -3219
  508. package/dist/chunks/pbr.fragment-zzWqx8ql.esm.js.map +0 -1
  509. package/dist/chunks/pbr.vertex-BkRqW37U.esm.js +0 -210
  510. package/dist/chunks/pbr.vertex-BkRqW37U.esm.js.map +0 -1
  511. package/dist/chunks/pbr.vertex-CtzKcKA3.esm.js +0 -338
  512. package/dist/chunks/pbr.vertex-CtzKcKA3.esm.js.map +0 -1
  513. package/dist/chunks/pbr.vertex-DWa21sFW.esm.min.js +0 -2
  514. package/dist/chunks/pbr.vertex-DWa21sFW.esm.min.js.map +0 -1
  515. package/dist/chunks/pbr.vertex-Dud-ssa0.esm.min.js +0 -2
  516. package/dist/chunks/pbr.vertex-Dud-ssa0.esm.min.js.map +0 -1
  517. package/dist/chunks/postprocess.vertex-Ci5PKrzE.esm.min.js +0 -2
  518. package/dist/chunks/postprocess.vertex-Ci5PKrzE.esm.min.js.map +0 -1
  519. package/dist/chunks/postprocess.vertex-DE8R21-J.esm.js +0 -18
  520. package/dist/chunks/postprocess.vertex-DE8R21-J.esm.js.map +0 -1
  521. package/dist/chunks/postprocess.vertex-Un1QraiQ.esm.min.js +0 -2
  522. package/dist/chunks/postprocess.vertex-Un1QraiQ.esm.min.js.map +0 -1
  523. package/dist/chunks/postprocess.vertex-WUTUgxc2.esm.js +0 -20
  524. package/dist/chunks/postprocess.vertex-WUTUgxc2.esm.js.map +0 -1
  525. package/dist/chunks/rawTexture-CuSzaUaF.esm.js +0 -191
  526. package/dist/chunks/rawTexture-CuSzaUaF.esm.js.map +0 -1
  527. package/dist/chunks/rawTexture-LSnUJCfU.esm.min.js +0 -2
  528. package/dist/chunks/rawTexture-LSnUJCfU.esm.min.js.map +0 -1
  529. package/dist/chunks/rgbdDecode.fragment-KxeWL_IG.esm.js +0 -17
  530. package/dist/chunks/rgbdDecode.fragment-KxeWL_IG.esm.js.map +0 -1
  531. package/dist/chunks/rgbdDecode.fragment-jlPvnFLf.esm.js +0 -17
  532. package/dist/chunks/rgbdDecode.fragment-jlPvnFLf.esm.js.map +0 -1
  533. package/dist/chunks/rgbdDecode.fragment-oOBoPBFW.esm.min.js +0 -2
  534. package/dist/chunks/rgbdDecode.fragment-oOBoPBFW.esm.min.js.map +0 -1
  535. package/dist/chunks/rgbdDecode.fragment-p7rlxivn.esm.min.js +0 -2
  536. package/dist/chunks/rgbdDecode.fragment-p7rlxivn.esm.min.js.map +0 -1
  537. package/dist/chunks/rgbdEncode.fragment-Bnol48De.esm.js +0 -17
  538. package/dist/chunks/rgbdEncode.fragment-Bnol48De.esm.js.map +0 -1
  539. package/dist/chunks/rgbdEncode.fragment-CvrE0t7x.esm.min.js +0 -2
  540. package/dist/chunks/rgbdEncode.fragment-CvrE0t7x.esm.min.js.map +0 -1
  541. package/dist/chunks/rgbdEncode.fragment-DQHV0aF-.esm.js +0 -17
  542. package/dist/chunks/rgbdEncode.fragment-DQHV0aF-.esm.js.map +0 -1
  543. package/dist/chunks/rgbdEncode.fragment-HmJa7ce-.esm.min.js +0 -2
  544. package/dist/chunks/rgbdEncode.fragment-HmJa7ce-.esm.min.js.map +0 -1
  545. package/dist/chunks/splatFileLoader-Bg-eE_ig.esm.js +0 -3534
  546. package/dist/chunks/splatFileLoader-Bg-eE_ig.esm.js.map +0 -1
  547. package/dist/chunks/splatFileLoader-f1fIwgoj.esm.min.js +0 -2
  548. package/dist/chunks/splatFileLoader-f1fIwgoj.esm.min.js.map +0 -1
  549. package/dist/chunks/standardMaterial-CUPiiMA3.esm.min.js +0 -2
  550. package/dist/chunks/standardMaterial-CUPiiMA3.esm.min.js.map +0 -1
  551. package/dist/chunks/standardMaterial-DFXdS_Rz.esm.js +0 -1800
  552. package/dist/chunks/standardMaterial-DFXdS_Rz.esm.js.map +0 -1
  553. package/dist/chunks/stlFileLoader-BmzL0e6r.esm.js +0 -238
  554. package/dist/chunks/stlFileLoader-BmzL0e6r.esm.js.map +0 -1
  555. package/dist/chunks/stlFileLoader-U7lSanwx.esm.min.js +0 -2
  556. package/dist/chunks/stlFileLoader-U7lSanwx.esm.min.js.map +0 -1
  557. package/dist/chunks/tgaTextureLoader-Cu9vzvI4.esm.js +0 -349
  558. package/dist/chunks/tgaTextureLoader-Cu9vzvI4.esm.js.map +0 -1
  559. package/dist/chunks/tgaTextureLoader-DAHIPxuT.esm.min.js +0 -2
  560. package/dist/chunks/tgaTextureLoader-DAHIPxuT.esm.min.js.map +0 -1
  561. package/dist/chunks/thinEngine-Dpmt-o3Q.esm.min.js +0 -2
  562. package/dist/chunks/thinEngine-Dpmt-o3Q.esm.min.js.map +0 -1
  563. package/dist/chunks/thinEngine-TkAEP0Bu.esm.js +0 -3721
  564. package/dist/chunks/thinEngine-TkAEP0Bu.esm.js.map +0 -1
  565. package/dist/chunks/thinInstanceMesh-BRIc4_sA.esm.min.js +0 -2
  566. package/dist/chunks/thinInstanceMesh-BRIc4_sA.esm.min.js.map +0 -1
  567. package/dist/chunks/thinInstanceMesh-fJzQpbwJ.esm.js +0 -314
  568. package/dist/chunks/thinInstanceMesh-fJzQpbwJ.esm.js.map +0 -1
  569. package/dist/chunks/vertexColorMixing-QZAPCh7S.esm.min.js +0 -2
  570. package/dist/chunks/vertexColorMixing-QZAPCh7S.esm.min.js.map +0 -1
  571. package/dist/chunks/vertexColorMixing-ufoLav4M.esm.js +0 -528
  572. package/dist/chunks/vertexColorMixing-ufoLav4M.esm.js.map +0 -1
  573. package/dist/chunks/webgpuEngine-BQZSxi1G.esm.js +0 -11214
  574. package/dist/chunks/webgpuEngine-BQZSxi1G.esm.js.map +0 -1
  575. package/dist/chunks/webgpuEngine-BxVp3hgd.esm.min.js +0 -2
  576. package/dist/chunks/webgpuEngine-BxVp3hgd.esm.min.js.map +0 -1
  577. package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
  578. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
  579. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
  580. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
  581. package/docs/ViewerDefault.jpg +0 -0
  582. package/docs/ViewerParts.jpg +0 -0
  583. package/docs/ViewerSlots.jpg +0 -0
  584. package/docs/ViewerStyled.jpg +0 -0
  585. package/lib/index.d.ts +0 -325
  586. package/lib/index.js +0 -1117
  587. package/lib/index.js.map +0 -1
@@ -1,449 +0,0 @@
1
- import { i as ShaderStore } from './index-ByqPlgGf.esm.js';
2
- import './defaultUboDeclaration-DD4XocPc.esm.js';
3
- import './oitFragment-V_hEa1Hy.esm.js';
4
- import './logDepthDeclaration-BKKLIeIA.esm.js';
5
- import './helperFunctions-Bc3vBAJE.esm.js';
6
- import './fresnelFunction-DCdAvPbg.esm.js';
7
- import './decalFragment-B4RSlkG3.esm.js';
8
- import './meshUboDeclaration-D-WNLe-f.esm.js';
9
-
10
- // Do not edit.
11
- const name$1 = "lightsFragmentFunctions";
12
- const shader$1 = `struct lightingInfo
13
- {diffuse: vec3f,
14
- #ifdef SPECULARTERM
15
- specular: vec3f,
16
- #endif
17
- #ifdef NDOTL
18
- ndl: f32,
19
- #endif
20
- };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.)
21
- {var direction: vec3f=lightData.xyz-fragmentInputs.vPositionW;var attenuation: f32=max(0.,1.0-length(direction)/range);lightVectorW=normalize(direction);}
22
- else
23
- {lightVectorW=normalize(-lightData.xyz);}
24
- var ndl: f32=max(0.,dot(vNormal,lightVectorW));
25
- #ifdef NDOTL
26
- result.ndl=ndl;
27
- #endif
28
- result.diffuse=ndl*diffuseColor*attenuation;
29
- #ifdef SPECULARTERM
30
- 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;
31
- #endif
32
- return result;}
33
- 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)
34
- {cosAngle=max(0.,pow(cosAngle,lightData.w));attenuation*=cosAngle;var ndl: f32=max(0.,dot(vNormal,lightVectorW));
35
- #ifdef NDOTL
36
- result.ndl=ndl;
37
- #endif
38
- result.diffuse=ndl*diffuseColor*attenuation;
39
- #ifdef SPECULARTERM
40
- 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;
41
- #endif
42
- return result;}
43
- result.diffuse=vec3f(0.);
44
- #ifdef SPECULARTERM
45
- result.specular=vec3f(0.);
46
- #endif
47
- #ifdef NDOTL
48
- result.ndl=0.;
49
- #endif
50
- return result;}
51
- 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;
52
- #ifdef NDOTL
53
- result.ndl=ndl;
54
- #endif
55
- result.diffuse=mix(groundColor,diffuseColor,ndl);
56
- #ifdef SPECULARTERM
57
- 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;
58
- #endif
59
- return result;}
60
- 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;}`;
61
- // Sideeffect
62
- ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
63
-
64
- // Do not edit.
65
- const name = "defaultPixelShader";
66
- const shader = `#include<defaultUboDeclaration>
67
- #include<prePassDeclaration>[SCENE_MRT_COUNT]
68
- #include<oitDeclaration>
69
- #define CUSTOM_FRAGMENT_BEGIN
70
- varying vPositionW: vec3f;
71
- #ifdef NORMAL
72
- varying vNormalW: vec3f;
73
- #endif
74
- #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
75
- varying vColor: vec4f;
76
- #endif
77
- #include<mainUVVaryingDeclaration>[1..7]
78
- #include<helperFunctions>
79
- #include<lightUboDeclaration>[0..maxSimultaneousLights]
80
- #include<lightsFragmentFunctions>
81
- #include<shadowsFragmentFunctions>
82
- #include<samplerFragmentDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_SAMPLERNAME_,diffuse)
83
- #include<samplerFragmentDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_SAMPLERNAME_,ambient)
84
- #include<samplerFragmentDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_SAMPLERNAME_,opacity)
85
- #include<samplerFragmentDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_SAMPLERNAME_,emissive)
86
- #include<samplerFragmentDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_SAMPLERNAME_,lightmap)
87
- #include<samplerFragmentDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_SAMPLERNAME_,decal)
88
- #ifdef REFRACTION
89
- #ifdef REFRACTIONMAP_3D
90
- var refractionCubeSamplerSampler: sampler;var refractionCubeSampler: texture_cube<f32>;
91
- #else
92
- var refraction2DSamplerSampler: sampler;var refraction2DSampler: texture_2d<f32>;
93
- #endif
94
- #endif
95
- #if defined(SPECULARTERM)
96
- #include<samplerFragmentDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_SAMPLERNAME_,specular)
97
- #endif
98
- #include<fresnelFunction>
99
- #ifdef REFLECTION
100
- #ifdef REFLECTIONMAP_3D
101
- var reflectionCubeSamplerSampler: sampler;var reflectionCubeSampler: texture_cube<f32>;
102
- #else
103
- var reflection2DSamplerSampler: sampler;var reflection2DSampler: texture_2d<f32>;
104
- #endif
105
- #ifdef REFLECTIONMAP_SKYBOX
106
- varying vPositionUVW: vec3f;
107
- #else
108
- #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
109
- varying vDirectionW: vec3f;
110
- #endif
111
- #endif
112
- #include<reflectionFunction>
113
- #endif
114
- #include<imageProcessingDeclaration>
115
- #include<imageProcessingFunctions>
116
- #include<bumpFragmentMainFunctions>
117
- #include<bumpFragmentFunctions>
118
- #include<clipPlaneFragmentDeclaration>
119
- #include<logDepthDeclaration>
120
- #include<fogFragmentDeclaration>
121
- #define CUSTOM_FRAGMENT_DEFINITIONS
122
- @fragment
123
- fn main(input: FragmentInputs)->FragmentOutputs {
124
- #define CUSTOM_FRAGMENT_MAIN_BEGIN
125
- #include<clipPlaneFragment>
126
- 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;
127
- #ifdef NORMAL
128
- var normalW: vec3f=normalize(fragmentInputs.vNormalW);
129
- #else
130
- var normalW: vec3f=normalize(-cross(dpdx(fragmentInputs.vPositionW),dpdy(fragmentInputs.vPositionW)));
131
- #endif
132
- #include<bumpFragment>
133
- #ifdef TWOSIDEDLIGHTING
134
- normalW=select(-normalW,normalW,fragmentInputs.frontFacing);
135
- #endif
136
- #ifdef DIFFUSE
137
- baseColor=textureSample(diffuseSampler,diffuseSamplerSampler,fragmentInputs.vDiffuseUV+uvOffset);
138
- #if defined(ALPHATEST) && !defined(ALPHATEST_AFTERALLALPHACOMPUTATIONS)
139
- if (baseColor.a<uniforms.alphaCutOff) {discard;}
140
- #endif
141
- #ifdef ALPHAFROMDIFFUSE
142
- alpha*=baseColor.a;
143
- #endif
144
- #define CUSTOM_FRAGMENT_UPDATE_ALPHA
145
- baseColor=vec4f(baseColor.rgb*uniforms.vDiffuseInfos.y,baseColor.a);
146
- #endif
147
- #if defined(DECAL) && !defined(DECAL_AFTER_DETAIL)
148
- var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
149
- #include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
150
- #endif
151
- #include<depthPrePass>
152
- #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
153
- baseColor=vec4f(baseColor.rgb*fragmentInputs.vColor.rgb,baseColor.a);
154
- #endif
155
- #ifdef DETAIL
156
- baseColor=vec4f(baseColor.rgb*2.0*mix(0.5,detailColor.r,uniforms.vDetailInfos.y),baseColor.a);
157
- #endif
158
- #if defined(DECAL) && defined(DECAL_AFTER_DETAIL)
159
- var decalColor: vec4f=textureSample(decalSampler,decalSamplerSampler,fragmentInputs.vDecalUV+uvOffset);
160
- #include<decalFragment>(surfaceAlbedo,baseColor,GAMMADECAL,_GAMMADECAL_NOTUSED_)
161
- #endif
162
- #define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
163
- var baseAmbientColor: vec3f= vec3f(1.,1.,1.);
164
- #ifdef AMBIENT
165
- baseAmbientColor=textureSample(ambientSampler,ambientSamplerSampler,fragmentInputs.vAmbientUV+uvOffset).rgb*uniforms.vAmbientInfos.y;
166
- #endif
167
- #define CUSTOM_FRAGMENT_BEFORE_LIGHTS
168
- #ifdef SPECULARTERM
169
- var glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;
170
- #ifdef SPECULAR
171
- var specularMapColor: vec4f=textureSample(specularSampler,specularSamplerSampler,fragmentInputs.vSpecularUV+uvOffset);specularColor=specularMapColor.rgb;
172
- #ifdef GLOSSINESS
173
- glossiness=glossiness*specularMapColor.a;
174
- #endif
175
- #endif
176
- #else
177
- var glossiness: f32=0.;
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>;fragData[0]=color;
345
- #ifdef PREPASS_POSITION
346
- fragData[PREPASS_POSITION_INDEX]= vec4f(fragmentInputs.vPositionW,writeGeometryInfo);
347
- #endif
348
- #ifdef PREPASS_LOCAL_POSITION
349
- fragData[PREPASS_LOCAL_POSITION_INDEX] =
350
- vec4f(fragmentInputs.vPosition,writeGeometryInfo);
351
- #endif
352
- #ifdef PREPASS_VELOCITY
353
- 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);
354
- #elif defined(PREPASS_VELOCITY_LINEAR)
355
- var velocity : vec2f=vec2f(0.5)*((fragmentInputs.vPreviousPosition.xy /
356
- fragmentInputs.vPreviousPosition.w) -
357
- (fragmentInputs.vCurrentPosition.xy /
358
- fragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX] =
359
- vec4f(velocity,0.0,writeGeometryInfo);
360
- #endif
361
- #ifdef PREPASS_IRRADIANCE
362
- fragData[PREPASS_IRRADIANCE_INDEX] =
363
- vec4f(0.0,0.0,0.0,
364
- writeGeometryInfo);
365
- #endif
366
- #ifdef PREPASS_DEPTH
367
- fragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,
368
- writeGeometryInfo);
369
- #endif
370
- #ifdef PREPASS_SCREENSPACE_DEPTH
371
- fragData[PREPASS_SCREENSPACE_DEPTH_INDEX] =
372
- vec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);
373
- #endif
374
- #ifdef PREPASS_NORMAL
375
- #ifdef PREPASS_NORMAL_WORLDSPACE
376
- fragData[PREPASS_NORMAL_INDEX] =
377
- vec4f(normalW,writeGeometryInfo);
378
- #else
379
- fragData[PREPASS_NORMAL_INDEX] =
380
- vec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),
381
- writeGeometryInfo);
382
- #endif
383
- #endif
384
- #ifdef PREPASS_WORLD_NORMAL
385
- fragData[PREPASS_WORLD_NORMAL_INDEX] =
386
- vec4f(normalW*0.5+0.5,writeGeometryInfo);
387
- #endif
388
- #ifdef PREPASS_ALBEDO_SQRT
389
- fragData[PREPASS_ALBEDO_SQRT_INDEX] =
390
- vec4f(0.0,0.0,0.0,
391
- writeGeometryInfo);
392
- #endif
393
- #ifdef PREPASS_REFLECTIVITY
394
- #if defined(SPECULARTERM)
395
- #if defined(SPECULAR)
396
- fragData[PREPASS_REFLECTIVITY_INDEX] =
397
- vec4f(toLinearSpaceVec4(specularMapColor)) *
398
- writeGeometryInfo;
399
- #else
400
- fragData[PREPASS_REFLECTIVITY_INDEX] =
401
- vec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;
402
- #endif
403
- #else
404
- fragData[PREPASS_REFLECTIVITY_INDEX] =
405
- vec4f(0.0,0.0,0.0,1.0)*writeGeometryInfo;
406
- #endif
407
- #endif
408
- #if SCENE_MRT_COUNT>0
409
- fragmentOutputs.fragData0=fragData[0];
410
- #endif
411
- #if SCENE_MRT_COUNT>1
412
- fragmentOutputs.fragData1=fragData[1];
413
- #endif
414
- #if SCENE_MRT_COUNT>2
415
- fragmentOutputs.fragData2=fragData[2];
416
- #endif
417
- #if SCENE_MRT_COUNT>3
418
- fragmentOutputs.fragData3=fragData[3];
419
- #endif
420
- #if SCENE_MRT_COUNT>4
421
- fragmentOutputs.fragData4=fragData[4];
422
- #endif
423
- #if SCENE_MRT_COUNT>5
424
- fragmentOutputs.fragData5=fragData[5];
425
- #endif
426
- #if SCENE_MRT_COUNT>6
427
- fragmentOutputs.fragData6=fragData[6];
428
- #endif
429
- #if SCENE_MRT_COUNT>7
430
- fragmentOutputs.fragData7=fragData[7];
431
- #endif
432
- #endif
433
- #if !defined(PREPASS) && !defined(ORDER_INDEPENDENT_TRANSPARENCY)
434
- fragmentOutputs.color=color;
435
- #endif
436
- #include<oitFragment>
437
- #if ORDER_INDEPENDENT_TRANSPARENCY
438
- 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;}
439
- #endif
440
- #define CUSTOM_FRAGMENT_MAIN_END
441
- }
442
- `;
443
- // Sideeffect
444
- ShaderStore.ShadersStoreWGSL[name] = shader;
445
- /** @internal */
446
- const defaultPixelShaderWGSL = { name, shader };
447
-
448
- export { defaultPixelShaderWGSL };
449
- //# sourceMappingURL=default.fragment-DEtYyTCv.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.fragment-DEtYyTCv.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\n#ifdef SPECULARTERM\nvar glossiness: f32=uniforms.vSpecularColor.a;var specularColor: vec3f=uniforms.vSpecularColor.rgb;\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#else\nvar glossiness: f32=0.;\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>;fragData[0]=color; \n#ifdef PREPASS_POSITION\nfragData[PREPASS_POSITION_INDEX]= vec4f(fragmentInputs.vPositionW,writeGeometryInfo);\n#endif\n#ifdef PREPASS_LOCAL_POSITION\nfragData[PREPASS_LOCAL_POSITION_INDEX] =\nvec4f(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 /\nfragmentInputs.vPreviousPosition.w) -\n(fragmentInputs.vCurrentPosition.xy /\nfragmentInputs.vCurrentPosition.w));fragData[PREPASS_VELOCITY_LINEAR_INDEX] =\nvec4f(velocity,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_IRRADIANCE\nfragData[PREPASS_IRRADIANCE_INDEX] =\nvec4f(0.0,0.0,0.0,\nwriteGeometryInfo); \n#endif\n#ifdef PREPASS_DEPTH\nfragData[PREPASS_DEPTH_INDEX]=vec4f(fragmentInputs.vViewPos.z,0.0,0.0,\nwriteGeometryInfo); \n#endif\n#ifdef PREPASS_SCREENSPACE_DEPTH\nfragData[PREPASS_SCREENSPACE_DEPTH_INDEX] =\nvec4f(fragmentInputs.position.z,0.0,0.0,writeGeometryInfo);\n#endif\n#ifdef PREPASS_NORMAL\n#ifdef PREPASS_NORMAL_WORLDSPACE\nfragData[PREPASS_NORMAL_INDEX] =\nvec4f(normalW,writeGeometryInfo); \n#else\nfragData[PREPASS_NORMAL_INDEX] =\nvec4f(normalize((scene.view*vec4f(normalW,0.0)).rgb),\nwriteGeometryInfo); \n#endif\n#endif\n#ifdef PREPASS_WORLD_NORMAL\nfragData[PREPASS_WORLD_NORMAL_INDEX] =\nvec4f(normalW*0.5+0.5,writeGeometryInfo); \n#endif\n#ifdef PREPASS_ALBEDO_SQRT\nfragData[PREPASS_ALBEDO_SQRT_INDEX] =\nvec4f(0.0,0.0,0.0,\nwriteGeometryInfo); \n#endif\n#ifdef PREPASS_REFLECTIVITY\n#if defined(SPECULARTERM)\n#if defined(SPECULAR)\nfragData[PREPASS_REFLECTIVITY_INDEX] =\nvec4f(toLinearSpaceVec4(specularMapColor)) *\nwriteGeometryInfo; \n#else\nfragData[PREPASS_REFLECTIVITY_INDEX] =\nvec4f(toLinearSpaceVec3(specularColor),1.0)*writeGeometryInfo;\n#endif\n#else\nfragData[PREPASS_REFLECTIVITY_INDEX] =\nvec4f(0.0,0.0,0.0,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,CAAC;AACvC,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,CAAC;AACtW;AACA,WAAW,CAAC,wBAAwB,CAACD,MAAI,CAAC,GAAGC,QAAM;;ACrDnD;AA4BA,MAAM,IAAI,GAAG,oBAAoB,CAAC;AAClC,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AACA,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAC5C;AACY,MAAC,sBAAsB,GAAG,EAAE,IAAI,EAAE,MAAM;;;;"}