@babylonjs/viewer 7.40.2 → 7.40.3-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 (615) 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_ies-CD6xLsCy.esm.js +84 -0
  7. package/dist/chunks/EXT_lights_ies-CD6xLsCy.esm.js.map +1 -0
  8. package/dist/chunks/EXT_lights_ies-DS9bIHFP.esm.min.js +2 -0
  9. package/dist/chunks/EXT_lights_ies-DS9bIHFP.esm.min.js.map +1 -0
  10. package/dist/chunks/EXT_lights_image_based-BGdZs5mF.esm.js +171 -0
  11. package/dist/chunks/EXT_lights_image_based-BGdZs5mF.esm.js.map +1 -0
  12. package/dist/chunks/EXT_lights_image_based-DJq0NJF1.esm.min.js +2 -0
  13. package/dist/chunks/EXT_lights_image_based-DJq0NJF1.esm.min.js.map +1 -0
  14. package/dist/chunks/EXT_mesh_gpu_instancing-D70tpOB6.esm.js +86 -0
  15. package/dist/chunks/EXT_mesh_gpu_instancing-D70tpOB6.esm.js.map +1 -0
  16. package/dist/chunks/EXT_mesh_gpu_instancing-DcgiYr6J.esm.min.js +2 -0
  17. package/dist/chunks/EXT_mesh_gpu_instancing-DcgiYr6J.esm.min.js.map +1 -0
  18. package/dist/chunks/EXT_meshopt_compression-hkW0_ox-.esm.min.js +2 -0
  19. package/dist/chunks/EXT_meshopt_compression-hkW0_ox-.esm.min.js.map +1 -0
  20. package/dist/chunks/EXT_meshopt_compression-yaTtGxec.esm.js +134 -0
  21. package/dist/chunks/EXT_meshopt_compression-yaTtGxec.esm.js.map +1 -0
  22. package/dist/chunks/EXT_texture_avif-Chwut1VD.esm.min.js +2 -0
  23. package/dist/chunks/EXT_texture_avif-Chwut1VD.esm.min.js.map +1 -0
  24. package/dist/chunks/EXT_texture_avif-CyxmV9wZ.esm.js +44 -0
  25. package/dist/chunks/EXT_texture_avif-CyxmV9wZ.esm.js.map +1 -0
  26. package/dist/chunks/EXT_texture_webp-C8kKXzMe.esm.min.js +2 -0
  27. package/dist/chunks/EXT_texture_webp-C8kKXzMe.esm.min.js.map +1 -0
  28. package/dist/chunks/EXT_texture_webp-C9fxnRq1.esm.js +43 -0
  29. package/dist/chunks/EXT_texture_webp-C9fxnRq1.esm.js.map +1 -0
  30. package/dist/chunks/ExtrasAsMetadata-B6-h7vlD.esm.min.js +2 -0
  31. package/dist/chunks/ExtrasAsMetadata-B6-h7vlD.esm.min.js.map +1 -0
  32. package/dist/chunks/ExtrasAsMetadata-sw0sAaoo.esm.js +64 -0
  33. package/dist/chunks/ExtrasAsMetadata-sw0sAaoo.esm.js.map +1 -0
  34. package/dist/chunks/KHR_animation_pointer-CP7-gocW.esm.min.js +2 -0
  35. package/dist/chunks/KHR_animation_pointer-CP7-gocW.esm.min.js.map +1 -0
  36. package/dist/chunks/KHR_animation_pointer-lrzgXMw2.esm.js +352 -0
  37. package/dist/chunks/KHR_animation_pointer-lrzgXMw2.esm.js.map +1 -0
  38. package/dist/chunks/KHR_draco_mesh_compression-6ejAggyS.esm.js +610 -0
  39. package/dist/chunks/KHR_draco_mesh_compression-6ejAggyS.esm.js.map +1 -0
  40. package/dist/chunks/KHR_draco_mesh_compression-BaG0uIFE.esm.min.js +2 -0
  41. package/dist/chunks/KHR_draco_mesh_compression-BaG0uIFE.esm.min.js.map +1 -0
  42. package/dist/chunks/KHR_interactivity-BCSmv9s-.esm.js +4033 -0
  43. package/dist/chunks/KHR_interactivity-BCSmv9s-.esm.js.map +1 -0
  44. package/dist/chunks/KHR_interactivity-BwG2kMjm.esm.min.js +2 -0
  45. package/dist/chunks/KHR_interactivity-BwG2kMjm.esm.min.js.map +1 -0
  46. package/dist/chunks/KHR_lights_punctual-BmAkLiea.esm.js +581 -0
  47. package/dist/chunks/KHR_lights_punctual-BmAkLiea.esm.js.map +1 -0
  48. package/dist/chunks/KHR_lights_punctual-D1dtMznV.esm.min.js +2 -0
  49. package/dist/chunks/KHR_lights_punctual-D1dtMznV.esm.min.js.map +1 -0
  50. package/dist/chunks/KHR_materials_anisotropy-CRJDUZsx.esm.js +65 -0
  51. package/dist/chunks/KHR_materials_anisotropy-CRJDUZsx.esm.js.map +1 -0
  52. package/dist/chunks/KHR_materials_anisotropy-Dp1pJfRB.esm.min.js +2 -0
  53. package/dist/chunks/KHR_materials_anisotropy-Dp1pJfRB.esm.min.js.map +1 -0
  54. package/dist/chunks/KHR_materials_clearcoat-BD3XLdt2.esm.min.js +2 -0
  55. package/dist/chunks/KHR_materials_clearcoat-BD3XLdt2.esm.min.js.map +1 -0
  56. package/dist/chunks/KHR_materials_clearcoat-DJKj9xQP.esm.js +96 -0
  57. package/dist/chunks/KHR_materials_clearcoat-DJKj9xQP.esm.js.map +1 -0
  58. package/dist/chunks/KHR_materials_diffuse_transmission-BYYyEZrB.esm.js +97 -0
  59. package/dist/chunks/KHR_materials_diffuse_transmission-BYYyEZrB.esm.js.map +1 -0
  60. package/dist/chunks/KHR_materials_diffuse_transmission-DhA5fNkp.esm.min.js +2 -0
  61. package/dist/chunks/KHR_materials_diffuse_transmission-DhA5fNkp.esm.min.js.map +1 -0
  62. package/dist/chunks/KHR_materials_dispersion-CDCigqMd.esm.js +62 -0
  63. package/dist/chunks/KHR_materials_dispersion-CDCigqMd.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_dispersion-CzJ-kzY0.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_dispersion-CzJ-kzY0.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_emissive_strength-C727hCIO.esm.js +55 -0
  67. package/dist/chunks/KHR_materials_emissive_strength-C727hCIO.esm.js.map +1 -0
  68. package/dist/chunks/KHR_materials_emissive_strength-DHmw-T7v.esm.min.js +2 -0
  69. package/dist/chunks/KHR_materials_emissive_strength-DHmw-T7v.esm.min.js.map +1 -0
  70. package/dist/chunks/KHR_materials_ior-CUkwwamZ.esm.min.js +2 -0
  71. package/dist/chunks/KHR_materials_ior-CUkwwamZ.esm.min.js.map +1 -0
  72. package/dist/chunks/KHR_materials_ior-arU1qfpr.esm.js +64 -0
  73. package/dist/chunks/KHR_materials_ior-arU1qfpr.esm.js.map +1 -0
  74. package/dist/chunks/KHR_materials_iridescence-BDFcEA9b.esm.js +72 -0
  75. package/dist/chunks/KHR_materials_iridescence-BDFcEA9b.esm.js.map +1 -0
  76. package/dist/chunks/KHR_materials_iridescence-Dv1MtidF.esm.min.js +2 -0
  77. package/dist/chunks/KHR_materials_iridescence-Dv1MtidF.esm.min.js.map +1 -0
  78. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-IoDqngfZ.esm.js +81 -0
  79. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-IoDqngfZ.esm.js.map +1 -0
  80. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-r32OVvwD.esm.min.js +2 -0
  81. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-r32OVvwD.esm.min.js.map +1 -0
  82. package/dist/chunks/KHR_materials_sheen-BBwukNo5.esm.js +85 -0
  83. package/dist/chunks/KHR_materials_sheen-BBwukNo5.esm.js.map +1 -0
  84. package/dist/chunks/KHR_materials_sheen-upfKannz.esm.min.js +2 -0
  85. package/dist/chunks/KHR_materials_sheen-upfKannz.esm.min.js.map +1 -0
  86. package/dist/chunks/KHR_materials_specular-CLFluGSg.esm.min.js +2 -0
  87. package/dist/chunks/KHR_materials_specular-CLFluGSg.esm.min.js.map +1 -0
  88. package/dist/chunks/KHR_materials_specular-CRQL_z4b.esm.js +75 -0
  89. package/dist/chunks/KHR_materials_specular-CRQL_z4b.esm.js.map +1 -0
  90. package/dist/chunks/KHR_materials_transmission-6oV0DB3N.esm.min.js +2 -0
  91. package/dist/chunks/KHR_materials_transmission-6oV0DB3N.esm.min.js.map +1 -0
  92. package/dist/chunks/KHR_materials_transmission-x9Lwa871.esm.js +307 -0
  93. package/dist/chunks/KHR_materials_transmission-x9Lwa871.esm.js.map +1 -0
  94. package/dist/chunks/KHR_materials_unlit-B_foF8Lt.esm.min.js +2 -0
  95. package/dist/chunks/KHR_materials_unlit-B_foF8Lt.esm.min.js.map +1 -0
  96. package/dist/chunks/KHR_materials_unlit-CDGuKJjb.esm.js +74 -0
  97. package/dist/chunks/KHR_materials_unlit-CDGuKJjb.esm.js.map +1 -0
  98. package/dist/chunks/KHR_materials_variants-DANx-_Mx.esm.js +262 -0
  99. package/dist/chunks/KHR_materials_variants-DANx-_Mx.esm.js.map +1 -0
  100. package/dist/chunks/KHR_materials_variants-DL4EGGiE.esm.min.js +2 -0
  101. package/dist/chunks/KHR_materials_variants-DL4EGGiE.esm.min.js.map +1 -0
  102. package/dist/chunks/KHR_materials_volume-Dlquu8Y2.esm.js +87 -0
  103. package/dist/chunks/KHR_materials_volume-Dlquu8Y2.esm.js.map +1 -0
  104. package/dist/chunks/KHR_materials_volume-LVeMDkB_.esm.min.js +2 -0
  105. package/dist/chunks/KHR_materials_volume-LVeMDkB_.esm.min.js.map +1 -0
  106. package/dist/chunks/KHR_mesh_quantization-C1w2vzgz.esm.js +26 -0
  107. package/dist/chunks/KHR_mesh_quantization-C1w2vzgz.esm.js.map +1 -0
  108. package/dist/chunks/KHR_mesh_quantization-DfOGHc4g.esm.min.js +2 -0
  109. package/dist/chunks/KHR_mesh_quantization-DfOGHc4g.esm.min.js.map +1 -0
  110. package/dist/chunks/KHR_node_hoverability-BxU_AIs6.esm.min.js +2 -0
  111. package/dist/chunks/KHR_node_hoverability-BxU_AIs6.esm.min.js.map +1 -0
  112. package/dist/chunks/KHR_node_hoverability-DODhQaXP.esm.js +39 -0
  113. package/dist/chunks/KHR_node_hoverability-DODhQaXP.esm.js.map +1 -0
  114. package/dist/chunks/KHR_node_visibility-3haIZvsb.esm.js +46 -0
  115. package/dist/chunks/KHR_node_visibility-3haIZvsb.esm.js.map +1 -0
  116. package/dist/chunks/KHR_node_visibility-DDRTTQ-U.esm.min.js +2 -0
  117. package/dist/chunks/KHR_node_visibility-DDRTTQ-U.esm.min.js.map +1 -0
  118. package/dist/chunks/KHR_texture_basisu-CEPiCdOn.esm.min.js +2 -0
  119. package/dist/chunks/KHR_texture_basisu-CEPiCdOn.esm.min.js.map +1 -0
  120. package/dist/chunks/KHR_texture_basisu-gXsppVcQ.esm.js +43 -0
  121. package/dist/chunks/KHR_texture_basisu-gXsppVcQ.esm.js.map +1 -0
  122. package/dist/chunks/KHR_texture_transform-Bjux7yCy.esm.js +63 -0
  123. package/dist/chunks/KHR_texture_transform-Bjux7yCy.esm.js.map +1 -0
  124. package/dist/chunks/KHR_texture_transform-_PXwFDP8.esm.min.js +2 -0
  125. package/dist/chunks/KHR_texture_transform-_PXwFDP8.esm.min.js.map +1 -0
  126. package/dist/chunks/KHR_xmp_json_ld-DpaeEUGt.esm.min.js +2 -0
  127. package/dist/chunks/KHR_xmp_json_ld-DpaeEUGt.esm.min.js.map +1 -0
  128. package/dist/chunks/KHR_xmp_json_ld-DyzNphyu.esm.js +51 -0
  129. package/dist/chunks/KHR_xmp_json_ld-DyzNphyu.esm.js.map +1 -0
  130. package/dist/chunks/MSFT_audio_emitter-BGoxaF5U.esm.min.js +2 -0
  131. package/dist/chunks/MSFT_audio_emitter-BGoxaF5U.esm.min.js.map +1 -0
  132. package/dist/chunks/MSFT_audio_emitter-DEE5n41V.esm.js +2207 -0
  133. package/dist/chunks/MSFT_audio_emitter-DEE5n41V.esm.js.map +1 -0
  134. package/dist/chunks/MSFT_lod-D-_-eQHW.esm.js +337 -0
  135. package/dist/chunks/MSFT_lod-D-_-eQHW.esm.js.map +1 -0
  136. package/dist/chunks/MSFT_lod-XoRI0gWX.esm.min.js +2 -0
  137. package/dist/chunks/MSFT_lod-XoRI0gWX.esm.min.js.map +1 -0
  138. package/dist/chunks/MSFT_minecraftMesh-DO_tijSD.esm.js +46 -0
  139. package/dist/chunks/MSFT_minecraftMesh-DO_tijSD.esm.js.map +1 -0
  140. package/dist/chunks/MSFT_minecraftMesh-_iQvjiZi.esm.min.js +2 -0
  141. package/dist/chunks/MSFT_minecraftMesh-_iQvjiZi.esm.min.js.map +1 -0
  142. package/dist/chunks/MSFT_sRGBFactors-BLHF-pts.esm.js +47 -0
  143. package/dist/chunks/MSFT_sRGBFactors-BLHF-pts.esm.js.map +1 -0
  144. package/dist/chunks/MSFT_sRGBFactors-BTokzGgG.esm.min.js +2 -0
  145. package/dist/chunks/MSFT_sRGBFactors-BTokzGgG.esm.min.js.map +1 -0
  146. package/dist/chunks/animationGroup-BPxpoNna.esm.js +2482 -0
  147. package/dist/chunks/animationGroup-BPxpoNna.esm.js.map +1 -0
  148. package/dist/chunks/animationGroup-TpjYesJi.esm.min.js +2 -0
  149. package/dist/chunks/animationGroup-TpjYesJi.esm.min.js.map +1 -0
  150. package/dist/chunks/assetContainer-C11e8jK9.esm.js +1720 -0
  151. package/dist/chunks/assetContainer-C11e8jK9.esm.js.map +1 -0
  152. package/dist/chunks/assetContainer-DN0guS4J.esm.min.js +2 -0
  153. package/dist/chunks/assetContainer-DN0guS4J.esm.min.js.map +1 -0
  154. package/dist/chunks/audioEngine-BPCDLqX1.esm.js +305 -0
  155. package/dist/chunks/audioEngine-BPCDLqX1.esm.js.map +1 -0
  156. package/dist/chunks/audioEngine-jDnUlloH.esm.min.js +2 -0
  157. package/dist/chunks/audioEngine-jDnUlloH.esm.min.js.map +1 -0
  158. package/dist/chunks/bakedVertexAnimation-Cz6yjm9Z.esm.js +114 -0
  159. package/dist/chunks/bakedVertexAnimation-Cz6yjm9Z.esm.js.map +1 -0
  160. package/dist/chunks/bakedVertexAnimation-QOLg75eL.esm.min.js +2 -0
  161. package/dist/chunks/bakedVertexAnimation-QOLg75eL.esm.min.js.map +1 -0
  162. package/dist/chunks/basisTextureLoader-BoGBC9bq.esm.js +600 -0
  163. package/dist/chunks/basisTextureLoader-BoGBC9bq.esm.js.map +1 -0
  164. package/dist/chunks/basisTextureLoader-D6orCmzb.esm.min.js +2 -0
  165. package/dist/chunks/basisTextureLoader-D6orCmzb.esm.min.js.map +1 -0
  166. package/dist/chunks/dds-DPGLfLtA.esm.js +540 -0
  167. package/dist/chunks/dds-DPGLfLtA.esm.js.map +1 -0
  168. package/dist/chunks/dds-ty-4gLsX.esm.min.js +2 -0
  169. package/dist/chunks/dds-ty-4gLsX.esm.min.js.map +1 -0
  170. package/dist/chunks/ddsTextureLoader-BCk_i6Vj.esm.min.js +2 -0
  171. package/dist/chunks/ddsTextureLoader-BCk_i6Vj.esm.min.js.map +1 -0
  172. package/dist/chunks/ddsTextureLoader-DVbQnnL_.esm.js +88 -0
  173. package/dist/chunks/ddsTextureLoader-DVbQnnL_.esm.js.map +1 -0
  174. package/dist/chunks/decalFragment-BiywWcVN.esm.js +18 -0
  175. package/dist/chunks/decalFragment-BiywWcVN.esm.js.map +1 -0
  176. package/dist/chunks/decalFragment-D06mgECc.esm.min.js +2 -0
  177. package/dist/chunks/decalFragment-D06mgECc.esm.min.js.map +1 -0
  178. package/dist/chunks/default.fragment-B_HQTa4-.esm.min.js +2 -0
  179. package/dist/chunks/default.fragment-B_HQTa4-.esm.min.js.map +1 -0
  180. package/dist/chunks/default.fragment-BiTyj-JR.esm.min.js +2 -0
  181. package/dist/chunks/default.fragment-BiTyj-JR.esm.min.js.map +1 -0
  182. package/dist/chunks/default.fragment-DPPypY0M.esm.js +515 -0
  183. package/dist/chunks/default.fragment-DPPypY0M.esm.js.map +1 -0
  184. package/dist/chunks/default.fragment-Yh18209a.esm.js +446 -0
  185. package/dist/chunks/default.fragment-Yh18209a.esm.js.map +1 -0
  186. package/dist/chunks/default.vertex-BGoXgJxH.esm.min.js +2 -0
  187. package/dist/chunks/default.vertex-BGoXgJxH.esm.min.js.map +1 -0
  188. package/dist/chunks/default.vertex-CHD4PKUY.esm.min.js +2 -0
  189. package/dist/chunks/default.vertex-CHD4PKUY.esm.min.js.map +1 -0
  190. package/dist/chunks/default.vertex-L7AngZxY.esm.js +211 -0
  191. package/dist/chunks/default.vertex-L7AngZxY.esm.js.map +1 -0
  192. package/dist/chunks/default.vertex-bWGrH88y.esm.js +190 -0
  193. package/dist/chunks/default.vertex-bWGrH88y.esm.js.map +1 -0
  194. package/dist/chunks/defaultUboDeclaration-C1wAUiUE.esm.js +15 -0
  195. package/dist/chunks/defaultUboDeclaration-C1wAUiUE.esm.js.map +1 -0
  196. package/dist/chunks/defaultUboDeclaration-Cui4ai4R.esm.min.js +2 -0
  197. package/dist/chunks/defaultUboDeclaration-Cui4ai4R.esm.min.js.map +1 -0
  198. package/dist/chunks/defaultUboDeclaration-DQrGGmYB.esm.min.js +2 -0
  199. package/dist/chunks/defaultUboDeclaration-DQrGGmYB.esm.min.js.map +1 -0
  200. package/dist/chunks/defaultUboDeclaration-DwKq3ipu.esm.js +13 -0
  201. package/dist/chunks/defaultUboDeclaration-DwKq3ipu.esm.js.map +1 -0
  202. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  203. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  204. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  205. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  206. package/dist/chunks/dumpTools-CK6KW8rD.esm.js +200 -0
  207. package/dist/chunks/dumpTools-CK6KW8rD.esm.js.map +1 -0
  208. package/dist/chunks/dumpTools-DtuBR0TB.esm.min.js +2 -0
  209. package/dist/chunks/dumpTools-DtuBR0TB.esm.min.js.map +1 -0
  210. package/dist/chunks/engine-CjwHJJ_I.esm.js +2216 -0
  211. package/dist/chunks/engine-CjwHJJ_I.esm.js.map +1 -0
  212. package/dist/chunks/engine-DDdcZyBr.esm.min.js +2 -0
  213. package/dist/chunks/engine-DDdcZyBr.esm.min.js.map +1 -0
  214. package/dist/chunks/engine.common-9BWDtT2M.esm.js +1162 -0
  215. package/dist/chunks/engine.common-9BWDtT2M.esm.js.map +1 -0
  216. package/dist/chunks/engine.common-B3oiG-PJ.esm.min.js +2 -0
  217. package/dist/chunks/engine.common-B3oiG-PJ.esm.min.js.map +1 -0
  218. package/dist/chunks/envTextureLoader-B2kcZ0TS.esm.js +64 -0
  219. package/dist/chunks/envTextureLoader-B2kcZ0TS.esm.js.map +1 -0
  220. package/dist/chunks/envTextureLoader-BJ0RU-N0.esm.min.js +2 -0
  221. package/dist/chunks/envTextureLoader-BJ0RU-N0.esm.min.js.map +1 -0
  222. package/dist/chunks/environmentTextureTools-BDDKxUKH.esm.js +382 -0
  223. package/dist/chunks/environmentTextureTools-BDDKxUKH.esm.js.map +1 -0
  224. package/dist/chunks/environmentTextureTools-BuVOE0iE.esm.min.js +2 -0
  225. package/dist/chunks/environmentTextureTools-BuVOE0iE.esm.min.js.map +1 -0
  226. package/dist/chunks/exrTextureLoader-ByEbgBJq.esm.min.js +2 -0
  227. package/dist/chunks/exrTextureLoader-ByEbgBJq.esm.min.js.map +1 -0
  228. package/dist/chunks/exrTextureLoader-CVJEgA3V.esm.js +1683 -0
  229. package/dist/chunks/exrTextureLoader-CVJEgA3V.esm.js.map +1 -0
  230. package/dist/chunks/fogFragment-BCI6G-ZP.esm.min.js +2 -0
  231. package/dist/chunks/fogFragment-BCI6G-ZP.esm.min.js.map +1 -0
  232. package/dist/chunks/fogFragment-DWRmb1tG.esm.min.js +2 -0
  233. package/dist/chunks/fogFragment-DWRmb1tG.esm.min.js.map +1 -0
  234. package/dist/chunks/fogFragment-Dmcif2rs.esm.js +102 -0
  235. package/dist/chunks/fogFragment-Dmcif2rs.esm.js.map +1 -0
  236. package/dist/chunks/fogFragment-K4UslW3k.esm.js +101 -0
  237. package/dist/chunks/fogFragment-K4UslW3k.esm.js.map +1 -0
  238. package/dist/chunks/fresnelFunction-Byr-DptL.esm.js +12 -0
  239. package/dist/chunks/fresnelFunction-Byr-DptL.esm.js.map +1 -0
  240. package/dist/chunks/fresnelFunction-nqy6Uoot.esm.min.js +2 -0
  241. package/dist/chunks/fresnelFunction-nqy6Uoot.esm.min.js.map +1 -0
  242. package/dist/chunks/glTFLoader-BNHy6PGg.esm.min.js +2 -0
  243. package/dist/chunks/glTFLoader-BNHy6PGg.esm.min.js.map +1 -0
  244. package/dist/chunks/glTFLoader-Bt4XTOHj.esm.js +7658 -0
  245. package/dist/chunks/glTFLoader-Bt4XTOHj.esm.js.map +1 -0
  246. package/dist/chunks/glTFLoaderAnimation-C7bRnMuQ.esm.min.js +2 -0
  247. package/dist/chunks/glTFLoaderAnimation-C7bRnMuQ.esm.min.js.map +1 -0
  248. package/dist/chunks/glTFLoaderAnimation-wzgl1G3Q.esm.js +77 -0
  249. package/dist/chunks/glTFLoaderAnimation-wzgl1G3Q.esm.js.map +1 -0
  250. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  251. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  252. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  253. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  254. package/dist/chunks/harmonicsFunctions-CJK-zUAx.esm.min.js +2 -0
  255. package/dist/chunks/harmonicsFunctions-CJK-zUAx.esm.min.js.map +1 -0
  256. package/dist/chunks/harmonicsFunctions-Cc4Kn69U.esm.js +35 -0
  257. package/dist/chunks/harmonicsFunctions-Cc4Kn69U.esm.js.map +1 -0
  258. package/dist/chunks/harmonicsFunctions-D_T4jAii.esm.min.js +2 -0
  259. package/dist/chunks/harmonicsFunctions-D_T4jAii.esm.min.js.map +1 -0
  260. package/dist/chunks/harmonicsFunctions-KLqvdh60.esm.js +34 -0
  261. package/dist/chunks/harmonicsFunctions-KLqvdh60.esm.js.map +1 -0
  262. package/dist/chunks/hdrTextureLoader-C6Df--L1.esm.js +253 -0
  263. package/dist/chunks/hdrTextureLoader-C6Df--L1.esm.js.map +1 -0
  264. package/dist/chunks/hdrTextureLoader-CsfShnoX.esm.min.js +2 -0
  265. package/dist/chunks/hdrTextureLoader-CsfShnoX.esm.min.js.map +1 -0
  266. package/dist/chunks/helperFunctions-DDGAItWp.esm.js +80 -0
  267. package/dist/chunks/helperFunctions-DDGAItWp.esm.js.map +1 -0
  268. package/dist/chunks/helperFunctions-DR_I6MXm.esm.min.js +2 -0
  269. package/dist/chunks/helperFunctions-DR_I6MXm.esm.min.js.map +1 -0
  270. package/dist/chunks/helperFunctions-DciHbMbJ.esm.min.js +2 -0
  271. package/dist/chunks/helperFunctions-DciHbMbJ.esm.min.js.map +1 -0
  272. package/dist/chunks/helperFunctions-Dp1Kzl1o.esm.js +108 -0
  273. package/dist/chunks/helperFunctions-Dp1Kzl1o.esm.js.map +1 -0
  274. package/dist/chunks/iesTextureLoader-6OJu6Vq2.esm.min.js +2 -0
  275. package/dist/chunks/iesTextureLoader-6OJu6Vq2.esm.min.js.map +1 -0
  276. package/dist/chunks/iesTextureLoader-Bm570oWa.esm.js +189 -0
  277. package/dist/chunks/iesTextureLoader-Bm570oWa.esm.js.map +1 -0
  278. package/dist/chunks/index-B6sqDOGz.esm.js +74825 -0
  279. package/dist/chunks/index-B6sqDOGz.esm.js.map +1 -0
  280. package/dist/chunks/index-D3BVnHHq.esm.min.js +57 -0
  281. package/dist/chunks/index-D3BVnHHq.esm.min.js.map +1 -0
  282. package/dist/chunks/ktxTextureLoader-Bqe5q1rf.esm.js +814 -0
  283. package/dist/chunks/ktxTextureLoader-Bqe5q1rf.esm.js.map +1 -0
  284. package/dist/chunks/ktxTextureLoader-CYGltN4N.esm.min.js +2 -0
  285. package/dist/chunks/ktxTextureLoader-CYGltN4N.esm.min.js.map +1 -0
  286. package/dist/chunks/logDepthDeclaration-5ljdm3vC.esm.min.js +2 -0
  287. package/dist/chunks/logDepthDeclaration-5ljdm3vC.esm.min.js.map +1 -0
  288. package/dist/chunks/logDepthDeclaration-BAi1U8tp.esm.js +35 -0
  289. package/dist/chunks/logDepthDeclaration-BAi1U8tp.esm.js.map +1 -0
  290. package/dist/chunks/logDepthDeclaration-BhyTMFMU.esm.js +11 -0
  291. package/dist/chunks/logDepthDeclaration-BhyTMFMU.esm.js.map +1 -0
  292. package/dist/chunks/logDepthDeclaration-TpKbhGMf.esm.min.js +2 -0
  293. package/dist/chunks/logDepthDeclaration-TpKbhGMf.esm.min.js.map +1 -0
  294. package/dist/chunks/logDepthVertex-CAe41JFY.esm.js +77 -0
  295. package/dist/chunks/logDepthVertex-CAe41JFY.esm.js.map +1 -0
  296. package/dist/chunks/logDepthVertex-DSb3D1Hm.esm.js +81 -0
  297. package/dist/chunks/logDepthVertex-DSb3D1Hm.esm.js.map +1 -0
  298. package/dist/chunks/logDepthVertex-I7P1jvLX.esm.min.js +2 -0
  299. package/dist/chunks/logDepthVertex-I7P1jvLX.esm.min.js.map +1 -0
  300. package/dist/chunks/logDepthVertex-JJkSRL9W.esm.min.js +2 -0
  301. package/dist/chunks/logDepthVertex-JJkSRL9W.esm.min.js.map +1 -0
  302. package/dist/chunks/mainUVVaryingDeclaration-BOsqkSBn.esm.js +11 -0
  303. package/dist/chunks/mainUVVaryingDeclaration-BOsqkSBn.esm.js.map +1 -0
  304. package/dist/chunks/mainUVVaryingDeclaration-CInC18r7.esm.js +11 -0
  305. package/dist/chunks/mainUVVaryingDeclaration-CInC18r7.esm.js.map +1 -0
  306. package/dist/chunks/mainUVVaryingDeclaration-CS3E9EgB.esm.min.js +2 -0
  307. package/dist/chunks/mainUVVaryingDeclaration-CS3E9EgB.esm.min.js.map +1 -0
  308. package/dist/chunks/mainUVVaryingDeclaration-ChM_7YDH.esm.min.js +2 -0
  309. package/dist/chunks/mainUVVaryingDeclaration-ChM_7YDH.esm.min.js.map +1 -0
  310. package/dist/chunks/meshUboDeclaration-BJzygYVf.esm.min.js +2 -0
  311. package/dist/chunks/meshUboDeclaration-BJzygYVf.esm.min.js.map +1 -0
  312. package/dist/chunks/meshUboDeclaration-DM7Knmm0.esm.js +26 -0
  313. package/dist/chunks/meshUboDeclaration-DM7Knmm0.esm.js.map +1 -0
  314. package/dist/chunks/objFileLoader-DXh6dEqA.esm.min.js +2 -0
  315. package/dist/chunks/objFileLoader-DXh6dEqA.esm.min.js.map +1 -0
  316. package/dist/chunks/objFileLoader-DzxFwUIY.esm.js +1338 -0
  317. package/dist/chunks/objFileLoader-DzxFwUIY.esm.js.map +1 -0
  318. package/dist/chunks/oitFragment-C2V-9s6u.esm.min.js +2 -0
  319. package/dist/chunks/oitFragment-C2V-9s6u.esm.min.js.map +1 -0
  320. package/dist/chunks/oitFragment-DOPwpc5v.esm.js +1240 -0
  321. package/dist/chunks/oitFragment-DOPwpc5v.esm.js.map +1 -0
  322. package/dist/chunks/oitFragment-kS5s81PF.esm.min.js +2 -0
  323. package/dist/chunks/oitFragment-kS5s81PF.esm.min.js.map +1 -0
  324. package/dist/chunks/oitFragment-yAzK8PUt.esm.js +1078 -0
  325. package/dist/chunks/oitFragment-yAzK8PUt.esm.js.map +1 -0
  326. package/dist/chunks/pass.fragment-5ocLOmrf.esm.js +15 -0
  327. package/dist/chunks/pass.fragment-5ocLOmrf.esm.js.map +1 -0
  328. package/dist/chunks/pass.fragment-BN-f4kEG.esm.js +15 -0
  329. package/dist/chunks/pass.fragment-BN-f4kEG.esm.js.map +1 -0
  330. package/dist/chunks/pass.fragment-CE2yo34Z.esm.min.js +2 -0
  331. package/dist/chunks/pass.fragment-CE2yo34Z.esm.min.js.map +1 -0
  332. package/dist/chunks/pass.fragment-O74A4S0m.esm.min.js +2 -0
  333. package/dist/chunks/pass.fragment-O74A4S0m.esm.min.js.map +1 -0
  334. package/dist/chunks/pbr.fragment-AC22HTP0.esm.js +3273 -0
  335. package/dist/chunks/pbr.fragment-AC22HTP0.esm.js.map +1 -0
  336. package/dist/chunks/pbr.fragment-BsRPu6hA.esm.min.js +2 -0
  337. package/dist/chunks/pbr.fragment-BsRPu6hA.esm.min.js.map +1 -0
  338. package/dist/chunks/pbr.fragment-Dxb2AuuM.esm.js +3232 -0
  339. package/dist/chunks/pbr.fragment-Dxb2AuuM.esm.js.map +1 -0
  340. package/dist/chunks/pbr.fragment-Jz2EDvVc.esm.min.js +2 -0
  341. package/dist/chunks/pbr.fragment-Jz2EDvVc.esm.min.js.map +1 -0
  342. package/dist/chunks/pbr.vertex-BkRM-a3D.esm.min.js +2 -0
  343. package/dist/chunks/pbr.vertex-BkRM-a3D.esm.min.js.map +1 -0
  344. package/dist/chunks/pbr.vertex-DC-IeqOc.esm.js +348 -0
  345. package/dist/chunks/pbr.vertex-DC-IeqOc.esm.js.map +1 -0
  346. package/dist/chunks/pbr.vertex-DFq751_7.esm.js +223 -0
  347. package/dist/chunks/pbr.vertex-DFq751_7.esm.js.map +1 -0
  348. package/dist/chunks/pbr.vertex-NaenLCtj.esm.min.js +2 -0
  349. package/dist/chunks/pbr.vertex-NaenLCtj.esm.min.js.map +1 -0
  350. package/dist/chunks/postprocess.vertex-CCzNHvuk.esm.js +20 -0
  351. package/dist/chunks/postprocess.vertex-CCzNHvuk.esm.js.map +1 -0
  352. package/dist/chunks/postprocess.vertex-Mo0vpVxw.esm.min.js +2 -0
  353. package/dist/chunks/postprocess.vertex-Mo0vpVxw.esm.min.js.map +1 -0
  354. package/dist/chunks/rawTexture-DsvWY4wf.esm.js +191 -0
  355. package/dist/chunks/rawTexture-DsvWY4wf.esm.js.map +1 -0
  356. package/dist/chunks/rawTexture-Ub3t-s7i.esm.min.js +2 -0
  357. package/dist/chunks/rawTexture-Ub3t-s7i.esm.min.js.map +1 -0
  358. package/dist/chunks/ray-BRtIhzin.esm.min.js +2 -0
  359. package/dist/chunks/ray-BRtIhzin.esm.min.js.map +1 -0
  360. package/dist/chunks/ray-DGNoxqma.esm.js +946 -0
  361. package/dist/chunks/ray-DGNoxqma.esm.js.map +1 -0
  362. package/dist/chunks/rgbdDecode.fragment-CZhZbezW.esm.min.js +2 -0
  363. package/dist/chunks/rgbdDecode.fragment-CZhZbezW.esm.min.js.map +1 -0
  364. package/dist/chunks/rgbdDecode.fragment-CgKBbbD1.esm.js +13 -0
  365. package/dist/chunks/rgbdDecode.fragment-CgKBbbD1.esm.js.map +1 -0
  366. package/dist/chunks/rgbdDecode.fragment-LHNdHf3k.esm.min.js +2 -0
  367. package/dist/chunks/rgbdDecode.fragment-LHNdHf3k.esm.min.js.map +1 -0
  368. package/dist/chunks/rgbdDecode.fragment-fiTenc35.esm.js +13 -0
  369. package/dist/chunks/rgbdDecode.fragment-fiTenc35.esm.js.map +1 -0
  370. package/dist/chunks/rgbdEncode.fragment-9S80Pwpo.esm.min.js +2 -0
  371. package/dist/chunks/rgbdEncode.fragment-9S80Pwpo.esm.min.js.map +1 -0
  372. package/dist/chunks/rgbdEncode.fragment-BqEeZloN.esm.js +13 -0
  373. package/dist/chunks/rgbdEncode.fragment-BqEeZloN.esm.js.map +1 -0
  374. package/dist/chunks/rgbdEncode.fragment-DNHQ71A7.esm.min.js +2 -0
  375. package/dist/chunks/rgbdEncode.fragment-DNHQ71A7.esm.min.js.map +1 -0
  376. package/dist/chunks/rgbdEncode.fragment-Opuv8m2e.esm.js +13 -0
  377. package/dist/chunks/rgbdEncode.fragment-Opuv8m2e.esm.js.map +1 -0
  378. package/dist/chunks/splatFileLoader-ZYsB_KqH.esm.js +3379 -0
  379. package/dist/chunks/splatFileLoader-ZYsB_KqH.esm.js.map +1 -0
  380. package/dist/chunks/splatFileLoader-vkPYxHIT.esm.min.js +2 -0
  381. package/dist/chunks/splatFileLoader-vkPYxHIT.esm.min.js.map +1 -0
  382. package/dist/chunks/spotLight-BlYHhPZ5.esm.js +701 -0
  383. package/dist/chunks/spotLight-BlYHhPZ5.esm.js.map +1 -0
  384. package/dist/chunks/spotLight-CbgIfMbz.esm.min.js +2 -0
  385. package/dist/chunks/spotLight-CbgIfMbz.esm.min.js.map +1 -0
  386. package/dist/chunks/standardMaterial-2SzHzTgX.esm.js +1806 -0
  387. package/dist/chunks/standardMaterial-2SzHzTgX.esm.js.map +1 -0
  388. package/dist/chunks/standardMaterial-BuAbZl_Z.esm.min.js +2 -0
  389. package/dist/chunks/standardMaterial-BuAbZl_Z.esm.min.js.map +1 -0
  390. package/dist/chunks/stlFileLoader-5Kq215Ci.esm.js +238 -0
  391. package/dist/chunks/stlFileLoader-5Kq215Ci.esm.js.map +1 -0
  392. package/dist/chunks/stlFileLoader-wv5ATvZu.esm.min.js +2 -0
  393. package/dist/chunks/stlFileLoader-wv5ATvZu.esm.min.js.map +1 -0
  394. package/dist/chunks/tgaTextureLoader-DWICU4Mc.esm.js +349 -0
  395. package/dist/chunks/tgaTextureLoader-DWICU4Mc.esm.js.map +1 -0
  396. package/dist/chunks/tgaTextureLoader-bJsNfJzG.esm.min.js +2 -0
  397. package/dist/chunks/tgaTextureLoader-bJsNfJzG.esm.min.js.map +1 -0
  398. package/dist/chunks/thinEngine-BeWECwt6.esm.js +3848 -0
  399. package/dist/chunks/thinEngine-BeWECwt6.esm.js.map +1 -0
  400. package/dist/chunks/thinEngine-DFwbHE_G.esm.min.js +2 -0
  401. package/dist/chunks/thinEngine-DFwbHE_G.esm.min.js.map +1 -0
  402. package/dist/chunks/thinInstanceMesh-B1pIcpZJ.esm.min.js +2 -0
  403. package/dist/chunks/thinInstanceMesh-B1pIcpZJ.esm.min.js.map +1 -0
  404. package/dist/chunks/thinInstanceMesh-CwRJpzmW.esm.js +314 -0
  405. package/dist/chunks/thinInstanceMesh-CwRJpzmW.esm.js.map +1 -0
  406. package/dist/chunks/vertexColorMixing-BKr2fbgc.esm.js +531 -0
  407. package/dist/chunks/vertexColorMixing-BKr2fbgc.esm.js.map +1 -0
  408. package/dist/chunks/vertexColorMixing-BygjAnHj.esm.min.js +2 -0
  409. package/dist/chunks/vertexColorMixing-BygjAnHj.esm.min.js.map +1 -0
  410. package/dist/chunks/vertexColorMixing-HfObYyiq.esm.min.js +2 -0
  411. package/dist/chunks/vertexColorMixing-HfObYyiq.esm.min.js.map +1 -0
  412. package/dist/chunks/vertexColorMixing-_UoBUkRQ.esm.js +421 -0
  413. package/dist/chunks/vertexColorMixing-_UoBUkRQ.esm.js.map +1 -0
  414. package/dist/chunks/webgpuEngine-BPO8q4wr.esm.js +11533 -0
  415. package/dist/chunks/webgpuEngine-BPO8q4wr.esm.js.map +1 -0
  416. package/dist/chunks/webgpuEngine-DvdhZwbl.esm.min.js +2 -0
  417. package/dist/chunks/webgpuEngine-DvdhZwbl.esm.min.js.map +1 -0
  418. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  419. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  420. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  421. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  422. package/lib/index.d.ts +591 -0
  423. package/lib/index.js +2165 -0
  424. package/lib/index.js.map +1 -0
  425. package/package.json +19 -28
  426. package/readme.md +28 -28
  427. package/configuration/configuration.d.ts +0 -107
  428. package/configuration/configuration.js +0 -16
  429. package/configuration/configuration.js.map +0 -1
  430. package/configuration/configurationCompatibility.d.ts +0 -8
  431. package/configuration/configurationCompatibility.js +0 -66
  432. package/configuration/configurationCompatibility.js.map +0 -1
  433. package/configuration/configurationContainer.d.ts +0 -10
  434. package/configuration/configurationContainer.js +0 -10
  435. package/configuration/configurationContainer.js.map +0 -1
  436. package/configuration/globals.d.ts +0 -6
  437. package/configuration/globals.js +0 -18
  438. package/configuration/globals.js.map +0 -1
  439. package/configuration/index.d.ts +0 -2
  440. package/configuration/index.js +0 -4
  441. package/configuration/index.js.map +0 -1
  442. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  443. package/configuration/interfaces/cameraConfiguration.js +0 -2
  444. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  445. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  446. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  447. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  448. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  449. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  450. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  451. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  452. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  453. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  454. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  455. package/configuration/interfaces/groundConfiguration.js +0 -2
  456. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  457. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  458. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  459. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  460. package/configuration/interfaces/index.d.ts +0 -15
  461. package/configuration/interfaces/index.js +0 -16
  462. package/configuration/interfaces/index.js.map +0 -1
  463. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  464. package/configuration/interfaces/lightConfiguration.js +0 -2
  465. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  466. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  467. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  468. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  469. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  470. package/configuration/interfaces/modelConfiguration.js +0 -2
  471. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  472. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  473. package/configuration/interfaces/observersConfiguration.js +0 -2
  474. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  475. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  476. package/configuration/interfaces/sceneConfiguration.js +0 -2
  477. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  478. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  479. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  480. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  481. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  482. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  483. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  484. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  485. package/configuration/interfaces/templateConfiguration.js +0 -2
  486. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  487. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  488. package/configuration/interfaces/vrConfiguration.js +0 -2
  489. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  490. package/configuration/loader.d.ts +0 -4
  491. package/configuration/loader.js +0 -17
  492. package/configuration/loader.js.map +0 -1
  493. package/configuration/mappers.d.ts +0 -43
  494. package/configuration/mappers.js +0 -193
  495. package/configuration/mappers.js.map +0 -1
  496. package/configuration/renderOnlyLoader.d.ts +0 -33
  497. package/configuration/renderOnlyLoader.js +0 -162
  498. package/configuration/renderOnlyLoader.js.map +0 -1
  499. package/configuration/types/default.d.ts +0 -6
  500. package/configuration/types/default.js +0 -121
  501. package/configuration/types/default.js.map +0 -1
  502. package/configuration/types/environmentMap.d.ts +0 -5
  503. package/configuration/types/environmentMap.js +0 -14
  504. package/configuration/types/environmentMap.js.map +0 -1
  505. package/configuration/types/extended.d.ts +0 -6
  506. package/configuration/types/extended.js +0 -317
  507. package/configuration/types/extended.js.map +0 -1
  508. package/configuration/types/index.d.ts +0 -14
  509. package/configuration/types/index.js +0 -51
  510. package/configuration/types/index.js.map +0 -1
  511. package/configuration/types/minimal.d.ts +0 -6
  512. package/configuration/types/minimal.js +0 -43
  513. package/configuration/types/minimal.js.map +0 -1
  514. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  515. package/configuration/types/renderOnlyDefault.js +0 -31
  516. package/configuration/types/renderOnlyDefault.js.map +0 -1
  517. package/configuration/types/shadowLight.d.ts +0 -9
  518. package/configuration/types/shadowLight.js +0 -64
  519. package/configuration/types/shadowLight.js.map +0 -1
  520. package/helper/index.d.ts +0 -29
  521. package/helper/index.js +0 -66
  522. package/helper/index.js.map +0 -1
  523. package/index.d.ts +0 -30
  524. package/index.js +0 -46
  525. package/index.js.map +0 -1
  526. package/initializer.d.ts +0 -11
  527. package/initializer.js +0 -35
  528. package/initializer.js.map +0 -1
  529. package/interfaces.d.ts +0 -5
  530. package/interfaces.js +0 -7
  531. package/interfaces.js.map +0 -1
  532. package/labs/environmentSerializer.d.ts +0 -126
  533. package/labs/environmentSerializer.js +0 -191
  534. package/labs/environmentSerializer.js.map +0 -1
  535. package/labs/texture.d.ts +0 -183
  536. package/labs/texture.js +0 -351
  537. package/labs/texture.js.map +0 -1
  538. package/labs/viewerLabs.d.ts +0 -51
  539. package/labs/viewerLabs.js +0 -134
  540. package/labs/viewerLabs.js.map +0 -1
  541. package/loader/modelLoader.d.ts +0 -56
  542. package/loader/modelLoader.js +0 -202
  543. package/loader/modelLoader.js.map +0 -1
  544. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  545. package/loader/plugins/applyMaterialConfig.js +0 -16
  546. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  547. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  548. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  549. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  550. package/loader/plugins/index.d.ts +0 -19
  551. package/loader/plugins/index.js +0 -44
  552. package/loader/plugins/index.js.map +0 -1
  553. package/loader/plugins/loaderPlugin.d.ts +0 -24
  554. package/loader/plugins/loaderPlugin.js +0 -2
  555. package/loader/plugins/loaderPlugin.js.map +0 -1
  556. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  557. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  558. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  559. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  560. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  561. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  562. package/managers/observablesManager.d.ts +0 -66
  563. package/managers/observablesManager.js +0 -35
  564. package/managers/observablesManager.js.map +0 -1
  565. package/managers/sceneManager.d.ts +0 -245
  566. package/managers/sceneManager.js +0 -1375
  567. package/managers/sceneManager.js.map +0 -1
  568. package/managers/telemetryManager.d.ts +0 -78
  569. package/managers/telemetryManager.js +0 -117
  570. package/managers/telemetryManager.js.map +0 -1
  571. package/model/modelAnimation.d.ts +0 -215
  572. package/model/modelAnimation.js +0 -237
  573. package/model/modelAnimation.js.map +0 -1
  574. package/model/viewerModel.d.ts +0 -233
  575. package/model/viewerModel.js +0 -673
  576. package/model/viewerModel.js.map +0 -1
  577. package/optimizer/custom/extended.d.ts +0 -13
  578. package/optimizer/custom/extended.js +0 -101
  579. package/optimizer/custom/extended.js.map +0 -1
  580. package/optimizer/custom/index.d.ts +0 -9
  581. package/optimizer/custom/index.js +0 -26
  582. package/optimizer/custom/index.js.map +0 -1
  583. package/renderOnlyIndex.d.ts +0 -11
  584. package/renderOnlyIndex.js +0 -18
  585. package/renderOnlyIndex.js.map +0 -1
  586. package/templating/eventManager.d.ts +0 -35
  587. package/templating/eventManager.js +0 -66
  588. package/templating/eventManager.js.map +0 -1
  589. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  590. package/templating/plugins/hdButtonPlugin.js +0 -22
  591. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  592. package/templating/plugins/printButton.d.ts +0 -9
  593. package/templating/plugins/printButton.js +0 -41
  594. package/templating/plugins/printButton.js.map +0 -1
  595. package/templating/templateManager.d.ts +0 -197
  596. package/templating/templateManager.js +0 -561
  597. package/templating/templateManager.js.map +0 -1
  598. package/templating/viewerTemplatePlugin.d.ts +0 -21
  599. package/templating/viewerTemplatePlugin.js +0 -69
  600. package/templating/viewerTemplatePlugin.js.map +0 -1
  601. package/viewer/defaultViewer.d.ts +0 -130
  602. package/viewer/defaultViewer.js +0 -672
  603. package/viewer/defaultViewer.js.map +0 -1
  604. package/viewer/renderOnlyViewer.d.ts +0 -9
  605. package/viewer/renderOnlyViewer.js +0 -46
  606. package/viewer/renderOnlyViewer.js.map +0 -1
  607. package/viewer/viewer.d.ts +0 -258
  608. package/viewer/viewer.js +0 -783
  609. package/viewer/viewer.js.map +0 -1
  610. package/viewer/viewerManager.d.ts +0 -58
  611. package/viewer/viewerManager.js +0 -91
  612. package/viewer/viewerManager.js.map +0 -1
  613. package/viewer/viewerWithTemplate.d.ts +0 -9
  614. package/viewer/viewerWithTemplate.js +0 -20
  615. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -0,0 +1,1806 @@
1
+ import { am as __decorate, an as serializeAsTexture, ao as expandToProperty, ap as serializeAsColor3, aq as serialize, ar as serializeAsFresnelParameters, R as RegisterClass, ak as Scene, z as PushMaterial, s as Color3, as as SmartArray, a4 as Matrix, at as DetailMapConfiguration, au as PrePassConfiguration, av as Material, aw as PrepareDefinesForLights, ax as PrepareDefinesForMultiview, ay as PrepareDefinesForPrePass, az as PrepareDefinesForOIT, aA as MaterialHelperGeometryRendering, C as Constants, aB as PrepareDefinesForMergedUV, t as Texture, J as PrepareDefinesForMisc, K as PrepareDefinesForFrameBoundValues, N as PrepareDefinesForAttributes, aC as HandleFallbacksForShadows, aD as PrepareAttributesForBones, Q as PrepareAttributesForInstances, aE as PrepareAttributesForMorphTargets, aF as PrepareAttributesForBakedVertexAnimation, aG as ImageProcessingConfiguration, W as PrepareUniformsAndSamplersList, X as addClipPlaneUniforms, aH as BindBonesParameters, aI as BindTextureMatrix, Z as bindClipPlane, aJ as BindLights, _ as BindFogParameters, aK as BindMorphTargetParameters, $ as BindLogDepth, a0 as SerializationHelper, aL as MaterialFlags, a1 as MaterialDefines, aM as EffectFallbacks, V as VertexBuffer } from './index-B6sqDOGz.esm.js';
2
+
3
+ const onCreatedEffectParameters = { effect: null, subMesh: null };
4
+ /** @internal */
5
+ class StandardMaterialDefines extends MaterialDefines {
6
+ /**
7
+ * Initializes the Standard Material defines.
8
+ * @param externalProperties The external properties
9
+ */
10
+ constructor(externalProperties) {
11
+ super(externalProperties);
12
+ this.MAINUV1 = false;
13
+ this.MAINUV2 = false;
14
+ this.MAINUV3 = false;
15
+ this.MAINUV4 = false;
16
+ this.MAINUV5 = false;
17
+ this.MAINUV6 = false;
18
+ this.DIFFUSE = false;
19
+ this.DIFFUSEDIRECTUV = 0;
20
+ this.BAKED_VERTEX_ANIMATION_TEXTURE = false;
21
+ this.AMBIENT = false;
22
+ this.AMBIENTDIRECTUV = 0;
23
+ this.OPACITY = false;
24
+ this.OPACITYDIRECTUV = 0;
25
+ this.OPACITYRGB = false;
26
+ this.REFLECTION = false;
27
+ this.EMISSIVE = false;
28
+ this.EMISSIVEDIRECTUV = 0;
29
+ this.SPECULAR = false;
30
+ this.SPECULARDIRECTUV = 0;
31
+ this.BUMP = false;
32
+ this.BUMPDIRECTUV = 0;
33
+ this.PARALLAX = false;
34
+ this.PARALLAX_RHS = false;
35
+ this.PARALLAXOCCLUSION = false;
36
+ this.SPECULAROVERALPHA = false;
37
+ this.CLIPPLANE = false;
38
+ this.CLIPPLANE2 = false;
39
+ this.CLIPPLANE3 = false;
40
+ this.CLIPPLANE4 = false;
41
+ this.CLIPPLANE5 = false;
42
+ this.CLIPPLANE6 = false;
43
+ this.ALPHATEST = false;
44
+ this.DEPTHPREPASS = false;
45
+ this.ALPHAFROMDIFFUSE = false;
46
+ this.POINTSIZE = false;
47
+ this.FOG = false;
48
+ this.SPECULARTERM = false;
49
+ this.DIFFUSEFRESNEL = false;
50
+ this.OPACITYFRESNEL = false;
51
+ this.REFLECTIONFRESNEL = false;
52
+ this.REFRACTIONFRESNEL = false;
53
+ this.EMISSIVEFRESNEL = false;
54
+ this.FRESNEL = false;
55
+ this.NORMAL = false;
56
+ this.TANGENT = false;
57
+ this.UV1 = false;
58
+ this.UV2 = false;
59
+ this.UV3 = false;
60
+ this.UV4 = false;
61
+ this.UV5 = false;
62
+ this.UV6 = false;
63
+ this.VERTEXCOLOR = false;
64
+ this.VERTEXALPHA = false;
65
+ this.NUM_BONE_INFLUENCERS = 0;
66
+ this.BonesPerMesh = 0;
67
+ this.BONETEXTURE = false;
68
+ this.BONES_VELOCITY_ENABLED = false;
69
+ this.INSTANCES = false;
70
+ this.THIN_INSTANCES = false;
71
+ this.INSTANCESCOLOR = false;
72
+ this.GLOSSINESS = false;
73
+ this.ROUGHNESS = false;
74
+ this.EMISSIVEASILLUMINATION = false;
75
+ this.LINKEMISSIVEWITHDIFFUSE = false;
76
+ this.REFLECTIONFRESNELFROMSPECULAR = false;
77
+ this.LIGHTMAP = false;
78
+ this.LIGHTMAPDIRECTUV = 0;
79
+ this.OBJECTSPACE_NORMALMAP = false;
80
+ this.USELIGHTMAPASSHADOWMAP = false;
81
+ this.REFLECTIONMAP_3D = false;
82
+ this.REFLECTIONMAP_SPHERICAL = false;
83
+ this.REFLECTIONMAP_PLANAR = false;
84
+ this.REFLECTIONMAP_CUBIC = false;
85
+ this.USE_LOCAL_REFLECTIONMAP_CUBIC = false;
86
+ this.USE_LOCAL_REFRACTIONMAP_CUBIC = false;
87
+ this.REFLECTIONMAP_PROJECTION = false;
88
+ this.REFLECTIONMAP_SKYBOX = false;
89
+ this.REFLECTIONMAP_EXPLICIT = false;
90
+ this.REFLECTIONMAP_EQUIRECTANGULAR = false;
91
+ this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED = false;
92
+ this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED = false;
93
+ this.REFLECTIONMAP_OPPOSITEZ = false;
94
+ this.INVERTCUBICMAP = false;
95
+ this.LOGARITHMICDEPTH = false;
96
+ this.REFRACTION = false;
97
+ this.REFRACTIONMAP_3D = false;
98
+ this.REFLECTIONOVERALPHA = false;
99
+ this.TWOSIDEDLIGHTING = false;
100
+ this.SHADOWFLOAT = false;
101
+ this.MORPHTARGETS = false;
102
+ this.MORPHTARGETS_NORMAL = false;
103
+ this.MORPHTARGETS_TANGENT = false;
104
+ this.MORPHTARGETS_UV = false;
105
+ this.MORPHTARGETS_UV2 = false;
106
+ this.NUM_MORPH_INFLUENCERS = 0;
107
+ this.MORPHTARGETS_TEXTURE = false;
108
+ this.NONUNIFORMSCALING = false; // https://playground.babylonjs.com#V6DWIH
109
+ this.PREMULTIPLYALPHA = false; // https://playground.babylonjs.com#LNVJJ7
110
+ this.ALPHATEST_AFTERALLALPHACOMPUTATIONS = false;
111
+ this.ALPHABLEND = true;
112
+ this.PREPASS = false;
113
+ this.PREPASS_COLOR = false;
114
+ this.PREPASS_COLOR_INDEX = -1;
115
+ this.PREPASS_IRRADIANCE = false;
116
+ this.PREPASS_IRRADIANCE_INDEX = -1;
117
+ this.PREPASS_ALBEDO = false;
118
+ this.PREPASS_ALBEDO_INDEX = -1;
119
+ this.PREPASS_ALBEDO_SQRT = false;
120
+ this.PREPASS_ALBEDO_SQRT_INDEX = -1;
121
+ this.PREPASS_DEPTH = false;
122
+ this.PREPASS_DEPTH_INDEX = -1;
123
+ this.PREPASS_SCREENSPACE_DEPTH = false;
124
+ this.PREPASS_SCREENSPACE_DEPTH_INDEX = -1;
125
+ this.PREPASS_NORMAL = false;
126
+ this.PREPASS_NORMAL_INDEX = -1;
127
+ this.PREPASS_NORMAL_WORLDSPACE = false;
128
+ this.PREPASS_WORLD_NORMAL = false;
129
+ this.PREPASS_WORLD_NORMAL_INDEX = -1;
130
+ this.PREPASS_POSITION = false;
131
+ this.PREPASS_POSITION_INDEX = -1;
132
+ this.PREPASS_LOCAL_POSITION = false;
133
+ this.PREPASS_LOCAL_POSITION_INDEX = -1;
134
+ this.PREPASS_VELOCITY = false;
135
+ this.PREPASS_VELOCITY_INDEX = -1;
136
+ this.PREPASS_VELOCITY_LINEAR = false;
137
+ this.PREPASS_VELOCITY_LINEAR_INDEX = -1;
138
+ this.PREPASS_REFLECTIVITY = false;
139
+ this.PREPASS_REFLECTIVITY_INDEX = -1;
140
+ this.SCENE_MRT_COUNT = 0;
141
+ this.RGBDLIGHTMAP = false;
142
+ this.RGBDREFLECTION = false;
143
+ this.RGBDREFRACTION = false;
144
+ this.IMAGEPROCESSING = false;
145
+ this.VIGNETTE = false;
146
+ this.VIGNETTEBLENDMODEMULTIPLY = false;
147
+ this.VIGNETTEBLENDMODEOPAQUE = false;
148
+ this.TONEMAPPING = 0;
149
+ this.CONTRAST = false;
150
+ this.COLORCURVES = false;
151
+ this.COLORGRADING = false;
152
+ this.COLORGRADING3D = false;
153
+ this.SAMPLER3DGREENDEPTH = false;
154
+ this.SAMPLER3DBGRMAP = false;
155
+ this.DITHER = false;
156
+ this.IMAGEPROCESSINGPOSTPROCESS = false;
157
+ this.SKIPFINALCOLORCLAMP = false;
158
+ this.MULTIVIEW = false;
159
+ this.ORDER_INDEPENDENT_TRANSPARENCY = false;
160
+ this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS = false;
161
+ this.CAMERA_ORTHOGRAPHIC = false;
162
+ this.CAMERA_PERSPECTIVE = false;
163
+ /**
164
+ * If the reflection texture on this material is in linear color space
165
+ * @internal
166
+ */
167
+ this.IS_REFLECTION_LINEAR = false;
168
+ /**
169
+ * If the refraction texture on this material is in linear color space
170
+ * @internal
171
+ */
172
+ this.IS_REFRACTION_LINEAR = false;
173
+ this.EXPOSURE = false;
174
+ this.DECAL_AFTER_DETAIL = false;
175
+ this.rebuild();
176
+ }
177
+ setReflectionMode(modeToEnable) {
178
+ const modes = [
179
+ "REFLECTIONMAP_CUBIC",
180
+ "REFLECTIONMAP_EXPLICIT",
181
+ "REFLECTIONMAP_PLANAR",
182
+ "REFLECTIONMAP_PROJECTION",
183
+ "REFLECTIONMAP_PROJECTION",
184
+ "REFLECTIONMAP_SKYBOX",
185
+ "REFLECTIONMAP_SPHERICAL",
186
+ "REFLECTIONMAP_EQUIRECTANGULAR",
187
+ "REFLECTIONMAP_EQUIRECTANGULAR_FIXED",
188
+ "REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED",
189
+ ];
190
+ for (const mode of modes) {
191
+ this[mode] = mode === modeToEnable;
192
+ }
193
+ }
194
+ }
195
+ /**
196
+ * This is the default material used in Babylon. It is the best trade off between quality
197
+ * and performances.
198
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/materials_introduction
199
+ */
200
+ class StandardMaterial extends PushMaterial {
201
+ /**
202
+ * Gets the image processing configuration used either in this material.
203
+ */
204
+ get imageProcessingConfiguration() {
205
+ return this._imageProcessingConfiguration;
206
+ }
207
+ /**
208
+ * Sets the Default image processing configuration used either in the this material.
209
+ *
210
+ * If sets to null, the scene one is in use.
211
+ */
212
+ set imageProcessingConfiguration(value) {
213
+ this._attachImageProcessingConfiguration(value);
214
+ // Ensure the effect will be rebuilt.
215
+ this._markAllSubMeshesAsTexturesDirty();
216
+ }
217
+ /**
218
+ * Attaches a new image processing configuration to the Standard Material.
219
+ * @param configuration
220
+ */
221
+ _attachImageProcessingConfiguration(configuration) {
222
+ if (configuration === this._imageProcessingConfiguration) {
223
+ return;
224
+ }
225
+ // Detaches observer
226
+ if (this._imageProcessingConfiguration && this._imageProcessingObserver) {
227
+ this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver);
228
+ }
229
+ // Pick the scene configuration if needed
230
+ if (!configuration) {
231
+ this._imageProcessingConfiguration = this.getScene().imageProcessingConfiguration;
232
+ }
233
+ else {
234
+ this._imageProcessingConfiguration = configuration;
235
+ }
236
+ // Attaches observer
237
+ if (this._imageProcessingConfiguration) {
238
+ this._imageProcessingObserver = this._imageProcessingConfiguration.onUpdateParameters.add(() => {
239
+ this._markAllSubMeshesAsImageProcessingDirty();
240
+ });
241
+ }
242
+ }
243
+ /**
244
+ * Can this material render to prepass
245
+ */
246
+ get isPrePassCapable() {
247
+ return !this.disableDepthWrite;
248
+ }
249
+ /**
250
+ * Gets whether the color curves effect is enabled.
251
+ */
252
+ get cameraColorCurvesEnabled() {
253
+ return this.imageProcessingConfiguration.colorCurvesEnabled;
254
+ }
255
+ /**
256
+ * Sets whether the color curves effect is enabled.
257
+ */
258
+ set cameraColorCurvesEnabled(value) {
259
+ this.imageProcessingConfiguration.colorCurvesEnabled = value;
260
+ }
261
+ /**
262
+ * Gets whether the color grading effect is enabled.
263
+ */
264
+ get cameraColorGradingEnabled() {
265
+ return this.imageProcessingConfiguration.colorGradingEnabled;
266
+ }
267
+ /**
268
+ * Gets whether the color grading effect is enabled.
269
+ */
270
+ set cameraColorGradingEnabled(value) {
271
+ this.imageProcessingConfiguration.colorGradingEnabled = value;
272
+ }
273
+ /**
274
+ * Gets whether tonemapping is enabled or not.
275
+ */
276
+ get cameraToneMappingEnabled() {
277
+ return this._imageProcessingConfiguration.toneMappingEnabled;
278
+ }
279
+ /**
280
+ * Sets whether tonemapping is enabled or not
281
+ */
282
+ set cameraToneMappingEnabled(value) {
283
+ this._imageProcessingConfiguration.toneMappingEnabled = value;
284
+ }
285
+ /**
286
+ * The camera exposure used on this material.
287
+ * This property is here and not in the camera to allow controlling exposure without full screen post process.
288
+ * This corresponds to a photographic exposure.
289
+ */
290
+ get cameraExposure() {
291
+ return this._imageProcessingConfiguration.exposure;
292
+ }
293
+ /**
294
+ * The camera exposure used on this material.
295
+ * This property is here and not in the camera to allow controlling exposure without full screen post process.
296
+ * This corresponds to a photographic exposure.
297
+ */
298
+ set cameraExposure(value) {
299
+ this._imageProcessingConfiguration.exposure = value;
300
+ }
301
+ /**
302
+ * Gets The camera contrast used on this material.
303
+ */
304
+ get cameraContrast() {
305
+ return this._imageProcessingConfiguration.contrast;
306
+ }
307
+ /**
308
+ * Sets The camera contrast used on this material.
309
+ */
310
+ set cameraContrast(value) {
311
+ this._imageProcessingConfiguration.contrast = value;
312
+ }
313
+ /**
314
+ * Gets the Color Grading 2D Lookup Texture.
315
+ */
316
+ get cameraColorGradingTexture() {
317
+ return this._imageProcessingConfiguration.colorGradingTexture;
318
+ }
319
+ /**
320
+ * Sets the Color Grading 2D Lookup Texture.
321
+ */
322
+ set cameraColorGradingTexture(value) {
323
+ this._imageProcessingConfiguration.colorGradingTexture = value;
324
+ }
325
+ /**
326
+ * The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
327
+ * They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
328
+ * These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
329
+ * corresponding to low luminance, medium luminance, and high luminance areas respectively.
330
+ */
331
+ get cameraColorCurves() {
332
+ return this._imageProcessingConfiguration.colorCurves;
333
+ }
334
+ /**
335
+ * The color grading curves provide additional color adjustment that is applied after any color grading transform (3D LUT).
336
+ * They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
337
+ * These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
338
+ * corresponding to low luminance, medium luminance, and high luminance areas respectively.
339
+ */
340
+ set cameraColorCurves(value) {
341
+ this._imageProcessingConfiguration.colorCurves = value;
342
+ }
343
+ /**
344
+ * Can this material render to several textures at once
345
+ */
346
+ get canRenderToMRT() {
347
+ return true;
348
+ }
349
+ /**
350
+ * Instantiates a new standard material.
351
+ * This is the default material used in Babylon. It is the best trade off between quality
352
+ * and performances.
353
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/materials_introduction
354
+ * @param name Define the name of the material in the scene
355
+ * @param scene Define the scene the material belong to
356
+ * @param forceGLSL Use the GLSL code generation for the shader (even on WebGPU). Default is false
357
+ */
358
+ constructor(name, scene, forceGLSL = false) {
359
+ super(name, scene, undefined, forceGLSL || StandardMaterial.ForceGLSL);
360
+ this._diffuseTexture = null;
361
+ this._ambientTexture = null;
362
+ this._opacityTexture = null;
363
+ this._reflectionTexture = null;
364
+ this._emissiveTexture = null;
365
+ this._specularTexture = null;
366
+ this._bumpTexture = null;
367
+ this._lightmapTexture = null;
368
+ this._refractionTexture = null;
369
+ /**
370
+ * The color of the material lit by the environmental background lighting.
371
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/materials_introduction#ambient-color-example
372
+ */
373
+ this.ambientColor = new Color3(0, 0, 0);
374
+ /**
375
+ * The basic color of the material as viewed under a light.
376
+ */
377
+ this.diffuseColor = new Color3(1, 1, 1);
378
+ /**
379
+ * Define how the color and intensity of the highlight given by the light in the material.
380
+ */
381
+ this.specularColor = new Color3(1, 1, 1);
382
+ /**
383
+ * Define the color of the material as if self lit.
384
+ * This will be mixed in the final result even in the absence of light.
385
+ */
386
+ this.emissiveColor = new Color3(0, 0, 0);
387
+ /**
388
+ * Defines how sharp are the highlights in the material.
389
+ * The bigger the value the sharper giving a more glossy feeling to the result.
390
+ * Reversely, the smaller the value the blurrier giving a more rough feeling to the result.
391
+ */
392
+ this.specularPower = 64;
393
+ this._useAlphaFromDiffuseTexture = false;
394
+ this._useEmissiveAsIllumination = false;
395
+ this._linkEmissiveWithDiffuse = false;
396
+ this._useSpecularOverAlpha = false;
397
+ this._useReflectionOverAlpha = false;
398
+ this._disableLighting = false;
399
+ this._useObjectSpaceNormalMap = false;
400
+ this._useParallax = false;
401
+ this._useParallaxOcclusion = false;
402
+ /**
403
+ * Apply a scaling factor that determine which "depth" the height map should reprensent. A value between 0.05 and 0.1 is reasonnable in Parallax, you can reach 0.2 using Parallax Occlusion.
404
+ */
405
+ this.parallaxScaleBias = 0.05;
406
+ this._roughness = 0;
407
+ /**
408
+ * In case of refraction, define the value of the index of refraction.
409
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#how-to-obtain-reflections-and-refractions
410
+ */
411
+ this.indexOfRefraction = 0.98;
412
+ /**
413
+ * Invert the refraction texture alongside the y axis.
414
+ * It can be useful with procedural textures or probe for instance.
415
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#how-to-obtain-reflections-and-refractions
416
+ */
417
+ this.invertRefractionY = true;
418
+ /**
419
+ * Defines the alpha limits in alpha test mode.
420
+ */
421
+ this.alphaCutOff = 0.4;
422
+ this._useLightmapAsShadowmap = false;
423
+ this._useReflectionFresnelFromSpecular = false;
424
+ this._useGlossinessFromSpecularMapAlpha = false;
425
+ this._maxSimultaneousLights = 4;
426
+ this._invertNormalMapX = false;
427
+ this._invertNormalMapY = false;
428
+ this._twoSidedLighting = false;
429
+ this._applyDecalMapAfterDetailMap = false;
430
+ this._shadersLoaded = false;
431
+ this._renderTargets = new SmartArray(16);
432
+ this._worldViewProjectionMatrix = Matrix.Zero();
433
+ this._globalAmbientColor = new Color3(0, 0, 0);
434
+ this._cacheHasRenderTargetTextures = false;
435
+ this.detailMap = new DetailMapConfiguration(this);
436
+ // Setup the default processing configuration to the scene.
437
+ this._attachImageProcessingConfiguration(null);
438
+ this.prePassConfiguration = new PrePassConfiguration();
439
+ this.getRenderTargetTextures = () => {
440
+ this._renderTargets.reset();
441
+ if (StandardMaterial.ReflectionTextureEnabled && this._reflectionTexture && this._reflectionTexture.isRenderTarget) {
442
+ this._renderTargets.push(this._reflectionTexture);
443
+ }
444
+ if (StandardMaterial.RefractionTextureEnabled && this._refractionTexture && this._refractionTexture.isRenderTarget) {
445
+ this._renderTargets.push(this._refractionTexture);
446
+ }
447
+ this._eventInfo.renderTargets = this._renderTargets;
448
+ this._callbackPluginEventFillRenderTargetTextures(this._eventInfo);
449
+ return this._renderTargets;
450
+ };
451
+ }
452
+ /**
453
+ * Gets a boolean indicating that current material needs to register RTT
454
+ */
455
+ get hasRenderTargetTextures() {
456
+ if (StandardMaterial.ReflectionTextureEnabled && this._reflectionTexture && this._reflectionTexture.isRenderTarget) {
457
+ return true;
458
+ }
459
+ if (StandardMaterial.RefractionTextureEnabled && this._refractionTexture && this._refractionTexture.isRenderTarget) {
460
+ return true;
461
+ }
462
+ return this._cacheHasRenderTargetTextures;
463
+ }
464
+ /**
465
+ * Gets the current class name of the material e.g. "StandardMaterial"
466
+ * Mainly use in serialization.
467
+ * @returns the class name
468
+ */
469
+ getClassName() {
470
+ return "StandardMaterial";
471
+ }
472
+ /**
473
+ * Specifies if the material will require alpha blending
474
+ * @returns a boolean specifying if alpha blending is needed
475
+ */
476
+ needAlphaBlending() {
477
+ if (this._disableAlphaBlending) {
478
+ return false;
479
+ }
480
+ return (this.alpha < 1.0 ||
481
+ this._opacityTexture != null ||
482
+ this._shouldUseAlphaFromDiffuseTexture() ||
483
+ (this._opacityFresnelParameters && this._opacityFresnelParameters.isEnabled));
484
+ }
485
+ /**
486
+ * Specifies if this material should be rendered in alpha test mode
487
+ * @returns a boolean specifying if an alpha test is needed.
488
+ */
489
+ needAlphaTesting() {
490
+ if (this._forceAlphaTest) {
491
+ return true;
492
+ }
493
+ return this._hasAlphaChannel() && (this._transparencyMode == null || this._transparencyMode === Material.MATERIAL_ALPHATEST);
494
+ }
495
+ /**
496
+ * @returns whether or not the alpha value of the diffuse texture should be used for alpha blending.
497
+ */
498
+ _shouldUseAlphaFromDiffuseTexture() {
499
+ return this._diffuseTexture != null && this._diffuseTexture.hasAlpha && this._useAlphaFromDiffuseTexture && this._transparencyMode !== Material.MATERIAL_OPAQUE;
500
+ }
501
+ /**
502
+ * @returns whether or not there is a usable alpha channel for transparency.
503
+ */
504
+ _hasAlphaChannel() {
505
+ return (this._diffuseTexture != null && this._diffuseTexture.hasAlpha) || this._opacityTexture != null;
506
+ }
507
+ /**
508
+ * Get the texture used for alpha test purpose.
509
+ * @returns the diffuse texture in case of the standard material.
510
+ */
511
+ getAlphaTestTexture() {
512
+ return this._diffuseTexture;
513
+ }
514
+ /**
515
+ * Get if the submesh is ready to be used and all its information available.
516
+ * Child classes can use it to update shaders
517
+ * @param mesh defines the mesh to check
518
+ * @param subMesh defines which submesh to check
519
+ * @param useInstances specifies that instances should be used
520
+ * @returns a boolean indicating that the submesh is ready or not
521
+ */
522
+ isReadyForSubMesh(mesh, subMesh, useInstances = false) {
523
+ if (!this._uniformBufferLayoutBuilt) {
524
+ this.buildUniformLayout();
525
+ }
526
+ const drawWrapper = subMesh._drawWrapper;
527
+ if (drawWrapper.effect && this.isFrozen) {
528
+ if (drawWrapper._wasPreviouslyReady && drawWrapper._wasPreviouslyUsingInstances === useInstances) {
529
+ return true;
530
+ }
531
+ }
532
+ if (!subMesh.materialDefines) {
533
+ this._callbackPluginEventGeneric(4 /* MaterialPluginEvent.GetDefineNames */, this._eventInfo);
534
+ subMesh.materialDefines = new StandardMaterialDefines(this._eventInfo.defineNames);
535
+ }
536
+ const scene = this.getScene();
537
+ const defines = subMesh.materialDefines;
538
+ if (this._isReadyForSubMesh(subMesh)) {
539
+ return true;
540
+ }
541
+ const engine = scene.getEngine();
542
+ // Lights
543
+ defines._needNormals = PrepareDefinesForLights(scene, mesh, defines, true, this._maxSimultaneousLights, this._disableLighting);
544
+ // Multiview
545
+ PrepareDefinesForMultiview(scene, defines);
546
+ // PrePass
547
+ const oit = this.needAlphaBlendingForMesh(mesh) && this.getScene().useOrderIndependentTransparency;
548
+ PrepareDefinesForPrePass(scene, defines, this.canRenderToMRT && !oit);
549
+ // Order independant transparency
550
+ PrepareDefinesForOIT(scene, defines, oit);
551
+ MaterialHelperGeometryRendering.PrepareDefines(engine.currentRenderPassId, mesh, defines);
552
+ // Textures
553
+ if (defines._areTexturesDirty) {
554
+ this._eventInfo.hasRenderTargetTextures = false;
555
+ this._callbackPluginEventHasRenderTargetTextures(this._eventInfo);
556
+ this._cacheHasRenderTargetTextures = this._eventInfo.hasRenderTargetTextures;
557
+ defines._needUVs = false;
558
+ for (let i = 1; i <= Constants.MAX_SUPPORTED_UV_SETS; ++i) {
559
+ defines["MAINUV" + i] = false;
560
+ }
561
+ if (scene.texturesEnabled) {
562
+ defines.DIFFUSEDIRECTUV = 0;
563
+ defines.BUMPDIRECTUV = 0;
564
+ defines.AMBIENTDIRECTUV = 0;
565
+ defines.OPACITYDIRECTUV = 0;
566
+ defines.EMISSIVEDIRECTUV = 0;
567
+ defines.SPECULARDIRECTUV = 0;
568
+ defines.LIGHTMAPDIRECTUV = 0;
569
+ if (this._diffuseTexture && StandardMaterial.DiffuseTextureEnabled) {
570
+ if (!this._diffuseTexture.isReadyOrNotBlocking()) {
571
+ return false;
572
+ }
573
+ else {
574
+ PrepareDefinesForMergedUV(this._diffuseTexture, defines, "DIFFUSE");
575
+ }
576
+ }
577
+ else {
578
+ defines.DIFFUSE = false;
579
+ }
580
+ if (this._ambientTexture && StandardMaterial.AmbientTextureEnabled) {
581
+ if (!this._ambientTexture.isReadyOrNotBlocking()) {
582
+ return false;
583
+ }
584
+ else {
585
+ PrepareDefinesForMergedUV(this._ambientTexture, defines, "AMBIENT");
586
+ }
587
+ }
588
+ else {
589
+ defines.AMBIENT = false;
590
+ }
591
+ if (this._opacityTexture && StandardMaterial.OpacityTextureEnabled) {
592
+ if (!this._opacityTexture.isReadyOrNotBlocking()) {
593
+ return false;
594
+ }
595
+ else {
596
+ PrepareDefinesForMergedUV(this._opacityTexture, defines, "OPACITY");
597
+ defines.OPACITYRGB = this._opacityTexture.getAlphaFromRGB;
598
+ }
599
+ }
600
+ else {
601
+ defines.OPACITY = false;
602
+ }
603
+ if (this._reflectionTexture && StandardMaterial.ReflectionTextureEnabled) {
604
+ if (!this._reflectionTexture.isReadyOrNotBlocking()) {
605
+ return false;
606
+ }
607
+ else {
608
+ defines._needNormals = true;
609
+ defines.REFLECTION = true;
610
+ defines.ROUGHNESS = this._roughness > 0;
611
+ defines.REFLECTIONOVERALPHA = this._useReflectionOverAlpha;
612
+ defines.INVERTCUBICMAP = this._reflectionTexture.coordinatesMode === Texture.INVCUBIC_MODE;
613
+ defines.REFLECTIONMAP_3D = this._reflectionTexture.isCube;
614
+ defines.REFLECTIONMAP_OPPOSITEZ =
615
+ defines.REFLECTIONMAP_3D && this.getScene().useRightHandedSystem ? !this._reflectionTexture.invertZ : this._reflectionTexture.invertZ;
616
+ defines.RGBDREFLECTION = this._reflectionTexture.isRGBD;
617
+ switch (this._reflectionTexture.coordinatesMode) {
618
+ case Texture.EXPLICIT_MODE:
619
+ defines.setReflectionMode("REFLECTIONMAP_EXPLICIT");
620
+ break;
621
+ case Texture.PLANAR_MODE:
622
+ defines.setReflectionMode("REFLECTIONMAP_PLANAR");
623
+ break;
624
+ case Texture.PROJECTION_MODE:
625
+ defines.setReflectionMode("REFLECTIONMAP_PROJECTION");
626
+ break;
627
+ case Texture.SKYBOX_MODE:
628
+ defines.setReflectionMode("REFLECTIONMAP_SKYBOX");
629
+ break;
630
+ case Texture.SPHERICAL_MODE:
631
+ defines.setReflectionMode("REFLECTIONMAP_SPHERICAL");
632
+ break;
633
+ case Texture.EQUIRECTANGULAR_MODE:
634
+ defines.setReflectionMode("REFLECTIONMAP_EQUIRECTANGULAR");
635
+ break;
636
+ case Texture.FIXED_EQUIRECTANGULAR_MODE:
637
+ defines.setReflectionMode("REFLECTIONMAP_EQUIRECTANGULAR_FIXED");
638
+ break;
639
+ case Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE:
640
+ defines.setReflectionMode("REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED");
641
+ break;
642
+ case Texture.CUBIC_MODE:
643
+ case Texture.INVCUBIC_MODE:
644
+ default:
645
+ defines.setReflectionMode("REFLECTIONMAP_CUBIC");
646
+ break;
647
+ }
648
+ defines.USE_LOCAL_REFLECTIONMAP_CUBIC = this._reflectionTexture.boundingBoxSize ? true : false;
649
+ }
650
+ }
651
+ else {
652
+ defines.REFLECTION = false;
653
+ defines.REFLECTIONMAP_OPPOSITEZ = false;
654
+ }
655
+ if (this._emissiveTexture && StandardMaterial.EmissiveTextureEnabled) {
656
+ if (!this._emissiveTexture.isReadyOrNotBlocking()) {
657
+ return false;
658
+ }
659
+ else {
660
+ PrepareDefinesForMergedUV(this._emissiveTexture, defines, "EMISSIVE");
661
+ }
662
+ }
663
+ else {
664
+ defines.EMISSIVE = false;
665
+ }
666
+ if (this._lightmapTexture && StandardMaterial.LightmapTextureEnabled) {
667
+ if (!this._lightmapTexture.isReadyOrNotBlocking()) {
668
+ return false;
669
+ }
670
+ else {
671
+ PrepareDefinesForMergedUV(this._lightmapTexture, defines, "LIGHTMAP");
672
+ defines.USELIGHTMAPASSHADOWMAP = this._useLightmapAsShadowmap;
673
+ defines.RGBDLIGHTMAP = this._lightmapTexture.isRGBD;
674
+ }
675
+ }
676
+ else {
677
+ defines.LIGHTMAP = false;
678
+ }
679
+ if (this._specularTexture && StandardMaterial.SpecularTextureEnabled) {
680
+ if (!this._specularTexture.isReadyOrNotBlocking()) {
681
+ return false;
682
+ }
683
+ else {
684
+ PrepareDefinesForMergedUV(this._specularTexture, defines, "SPECULAR");
685
+ defines.GLOSSINESS = this._useGlossinessFromSpecularMapAlpha;
686
+ }
687
+ }
688
+ else {
689
+ defines.SPECULAR = false;
690
+ }
691
+ if (scene.getEngine().getCaps().standardDerivatives && this._bumpTexture && StandardMaterial.BumpTextureEnabled) {
692
+ // Bump texture can not be not blocking.
693
+ if (!this._bumpTexture.isReady()) {
694
+ return false;
695
+ }
696
+ else {
697
+ PrepareDefinesForMergedUV(this._bumpTexture, defines, "BUMP");
698
+ defines.PARALLAX = this._useParallax;
699
+ defines.PARALLAX_RHS = scene.useRightHandedSystem;
700
+ defines.PARALLAXOCCLUSION = this._useParallaxOcclusion;
701
+ }
702
+ defines.OBJECTSPACE_NORMALMAP = this._useObjectSpaceNormalMap;
703
+ }
704
+ else {
705
+ defines.BUMP = false;
706
+ defines.PARALLAX = false;
707
+ defines.PARALLAX_RHS = false;
708
+ defines.PARALLAXOCCLUSION = false;
709
+ }
710
+ if (this._refractionTexture && StandardMaterial.RefractionTextureEnabled) {
711
+ if (!this._refractionTexture.isReadyOrNotBlocking()) {
712
+ return false;
713
+ }
714
+ else {
715
+ defines._needUVs = true;
716
+ defines.REFRACTION = true;
717
+ defines.REFRACTIONMAP_3D = this._refractionTexture.isCube;
718
+ defines.RGBDREFRACTION = this._refractionTexture.isRGBD;
719
+ defines.USE_LOCAL_REFRACTIONMAP_CUBIC = this._refractionTexture.boundingBoxSize ? true : false;
720
+ }
721
+ }
722
+ else {
723
+ defines.REFRACTION = false;
724
+ }
725
+ defines.TWOSIDEDLIGHTING = !this._backFaceCulling && this._twoSidedLighting;
726
+ }
727
+ else {
728
+ defines.DIFFUSE = false;
729
+ defines.AMBIENT = false;
730
+ defines.OPACITY = false;
731
+ defines.REFLECTION = false;
732
+ defines.EMISSIVE = false;
733
+ defines.LIGHTMAP = false;
734
+ defines.BUMP = false;
735
+ defines.REFRACTION = false;
736
+ }
737
+ defines.ALPHAFROMDIFFUSE = this._shouldUseAlphaFromDiffuseTexture();
738
+ defines.EMISSIVEASILLUMINATION = this._useEmissiveAsIllumination;
739
+ defines.LINKEMISSIVEWITHDIFFUSE = this._linkEmissiveWithDiffuse;
740
+ defines.SPECULAROVERALPHA = this._useSpecularOverAlpha;
741
+ defines.PREMULTIPLYALPHA = this.alphaMode === Constants.ALPHA_PREMULTIPLIED || this.alphaMode === Constants.ALPHA_PREMULTIPLIED_PORTERDUFF;
742
+ defines.ALPHATEST_AFTERALLALPHACOMPUTATIONS = this.transparencyMode !== null;
743
+ defines.ALPHABLEND = this.transparencyMode === null || this.needAlphaBlendingForMesh(mesh); // check on null for backward compatibility
744
+ }
745
+ this._eventInfo.isReadyForSubMesh = true;
746
+ this._eventInfo.defines = defines;
747
+ this._eventInfo.subMesh = subMesh;
748
+ this._callbackPluginEventIsReadyForSubMesh(this._eventInfo);
749
+ if (!this._eventInfo.isReadyForSubMesh) {
750
+ return false;
751
+ }
752
+ if (defines._areImageProcessingDirty && this._imageProcessingConfiguration) {
753
+ if (!this._imageProcessingConfiguration.isReady()) {
754
+ return false;
755
+ }
756
+ this._imageProcessingConfiguration.prepareDefines(defines);
757
+ defines.IS_REFLECTION_LINEAR = this.reflectionTexture != null && !this.reflectionTexture.gammaSpace;
758
+ defines.IS_REFRACTION_LINEAR = this.refractionTexture != null && !this.refractionTexture.gammaSpace;
759
+ }
760
+ if (defines._areFresnelDirty) {
761
+ if (StandardMaterial.FresnelEnabled) {
762
+ // Fresnel
763
+ if (this._diffuseFresnelParameters ||
764
+ this._opacityFresnelParameters ||
765
+ this._emissiveFresnelParameters ||
766
+ this._refractionFresnelParameters ||
767
+ this._reflectionFresnelParameters) {
768
+ defines.DIFFUSEFRESNEL = this._diffuseFresnelParameters && this._diffuseFresnelParameters.isEnabled;
769
+ defines.OPACITYFRESNEL = this._opacityFresnelParameters && this._opacityFresnelParameters.isEnabled;
770
+ defines.REFLECTIONFRESNEL = this._reflectionFresnelParameters && this._reflectionFresnelParameters.isEnabled;
771
+ defines.REFLECTIONFRESNELFROMSPECULAR = this._useReflectionFresnelFromSpecular;
772
+ defines.REFRACTIONFRESNEL = this._refractionFresnelParameters && this._refractionFresnelParameters.isEnabled;
773
+ defines.EMISSIVEFRESNEL = this._emissiveFresnelParameters && this._emissiveFresnelParameters.isEnabled;
774
+ defines._needNormals = true;
775
+ defines.FRESNEL = true;
776
+ }
777
+ }
778
+ else {
779
+ defines.FRESNEL = false;
780
+ }
781
+ }
782
+ // Misc.
783
+ PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this._shouldTurnAlphaTestOn(mesh) || this._forceAlphaTest, defines, this._applyDecalMapAfterDetailMap);
784
+ // Values that need to be evaluated on every frame
785
+ PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances, null, subMesh.getRenderingMesh().hasThinInstances);
786
+ // External config
787
+ this._eventInfo.defines = defines;
788
+ this._eventInfo.mesh = mesh;
789
+ this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo);
790
+ // Attribs
791
+ PrepareDefinesForAttributes(mesh, defines, true, true, true);
792
+ // External config
793
+ this._callbackPluginEventPrepareDefines(this._eventInfo);
794
+ // Get correct effect
795
+ let forceWasNotReadyPreviously = false;
796
+ if (defines.isDirty) {
797
+ const lightDisposed = defines._areLightsDisposed;
798
+ defines.markAsProcessed();
799
+ // Fallbacks
800
+ const fallbacks = new EffectFallbacks();
801
+ if (defines.REFLECTION) {
802
+ fallbacks.addFallback(0, "REFLECTION");
803
+ }
804
+ if (defines.SPECULAR) {
805
+ fallbacks.addFallback(0, "SPECULAR");
806
+ }
807
+ if (defines.BUMP) {
808
+ fallbacks.addFallback(0, "BUMP");
809
+ }
810
+ if (defines.PARALLAX) {
811
+ fallbacks.addFallback(1, "PARALLAX");
812
+ }
813
+ if (defines.PARALLAX_RHS) {
814
+ fallbacks.addFallback(1, "PARALLAX_RHS");
815
+ }
816
+ if (defines.PARALLAXOCCLUSION) {
817
+ fallbacks.addFallback(0, "PARALLAXOCCLUSION");
818
+ }
819
+ if (defines.SPECULAROVERALPHA) {
820
+ fallbacks.addFallback(0, "SPECULAROVERALPHA");
821
+ }
822
+ if (defines.FOG) {
823
+ fallbacks.addFallback(1, "FOG");
824
+ }
825
+ if (defines.POINTSIZE) {
826
+ fallbacks.addFallback(0, "POINTSIZE");
827
+ }
828
+ if (defines.LOGARITHMICDEPTH) {
829
+ fallbacks.addFallback(0, "LOGARITHMICDEPTH");
830
+ }
831
+ HandleFallbacksForShadows(defines, fallbacks, this._maxSimultaneousLights);
832
+ if (defines.SPECULARTERM) {
833
+ fallbacks.addFallback(0, "SPECULARTERM");
834
+ }
835
+ if (defines.DIFFUSEFRESNEL) {
836
+ fallbacks.addFallback(1, "DIFFUSEFRESNEL");
837
+ }
838
+ if (defines.OPACITYFRESNEL) {
839
+ fallbacks.addFallback(2, "OPACITYFRESNEL");
840
+ }
841
+ if (defines.REFLECTIONFRESNEL) {
842
+ fallbacks.addFallback(3, "REFLECTIONFRESNEL");
843
+ }
844
+ if (defines.EMISSIVEFRESNEL) {
845
+ fallbacks.addFallback(4, "EMISSIVEFRESNEL");
846
+ }
847
+ if (defines.FRESNEL) {
848
+ fallbacks.addFallback(4, "FRESNEL");
849
+ }
850
+ if (defines.MULTIVIEW) {
851
+ fallbacks.addFallback(0, "MULTIVIEW");
852
+ }
853
+ //Attributes
854
+ const attribs = [VertexBuffer.PositionKind];
855
+ if (defines.NORMAL) {
856
+ attribs.push(VertexBuffer.NormalKind);
857
+ }
858
+ if (defines.TANGENT) {
859
+ attribs.push(VertexBuffer.TangentKind);
860
+ }
861
+ for (let i = 1; i <= Constants.MAX_SUPPORTED_UV_SETS; ++i) {
862
+ if (defines["UV" + i]) {
863
+ attribs.push(`uv${i === 1 ? "" : i}`);
864
+ }
865
+ }
866
+ if (defines.VERTEXCOLOR) {
867
+ attribs.push(VertexBuffer.ColorKind);
868
+ }
869
+ PrepareAttributesForBones(attribs, mesh, defines, fallbacks);
870
+ PrepareAttributesForInstances(attribs, defines);
871
+ PrepareAttributesForMorphTargets(attribs, mesh, defines);
872
+ PrepareAttributesForBakedVertexAnimation(attribs, mesh, defines);
873
+ let shaderName = "default";
874
+ const uniforms = [
875
+ "world",
876
+ "view",
877
+ "viewProjection",
878
+ "vEyePosition",
879
+ "vLightsType",
880
+ "vAmbientColor",
881
+ "vDiffuseColor",
882
+ "vSpecularColor",
883
+ "vEmissiveColor",
884
+ "visibility",
885
+ "vFogInfos",
886
+ "vFogColor",
887
+ "pointSize",
888
+ "vDiffuseInfos",
889
+ "vAmbientInfos",
890
+ "vOpacityInfos",
891
+ "vReflectionInfos",
892
+ "vEmissiveInfos",
893
+ "vSpecularInfos",
894
+ "vBumpInfos",
895
+ "vLightmapInfos",
896
+ "vRefractionInfos",
897
+ "mBones",
898
+ "diffuseMatrix",
899
+ "ambientMatrix",
900
+ "opacityMatrix",
901
+ "reflectionMatrix",
902
+ "emissiveMatrix",
903
+ "specularMatrix",
904
+ "bumpMatrix",
905
+ "normalMatrix",
906
+ "lightmapMatrix",
907
+ "refractionMatrix",
908
+ "diffuseLeftColor",
909
+ "diffuseRightColor",
910
+ "opacityParts",
911
+ "reflectionLeftColor",
912
+ "reflectionRightColor",
913
+ "emissiveLeftColor",
914
+ "emissiveRightColor",
915
+ "refractionLeftColor",
916
+ "refractionRightColor",
917
+ "vReflectionPosition",
918
+ "vReflectionSize",
919
+ "vRefractionPosition",
920
+ "vRefractionSize",
921
+ "logarithmicDepthConstant",
922
+ "vTangentSpaceParams",
923
+ "alphaCutOff",
924
+ "boneTextureWidth",
925
+ "morphTargetTextureInfo",
926
+ "morphTargetTextureIndices",
927
+ ];
928
+ const samplers = [
929
+ "diffuseSampler",
930
+ "ambientSampler",
931
+ "opacitySampler",
932
+ "reflectionCubeSampler",
933
+ "reflection2DSampler",
934
+ "emissiveSampler",
935
+ "specularSampler",
936
+ "bumpSampler",
937
+ "lightmapSampler",
938
+ "refractionCubeSampler",
939
+ "refraction2DSampler",
940
+ "boneSampler",
941
+ "morphTargets",
942
+ "oitDepthSampler",
943
+ "oitFrontColorSampler",
944
+ ];
945
+ const uniformBuffers = ["Material", "Scene", "Mesh"];
946
+ const indexParameters = { maxSimultaneousLights: this._maxSimultaneousLights, maxSimultaneousMorphTargets: defines.NUM_MORPH_INFLUENCERS };
947
+ this._eventInfo.fallbacks = fallbacks;
948
+ this._eventInfo.fallbackRank = 0;
949
+ this._eventInfo.defines = defines;
950
+ this._eventInfo.uniforms = uniforms;
951
+ this._eventInfo.attributes = attribs;
952
+ this._eventInfo.samplers = samplers;
953
+ this._eventInfo.uniformBuffersNames = uniformBuffers;
954
+ this._eventInfo.customCode = undefined;
955
+ this._eventInfo.mesh = mesh;
956
+ this._eventInfo.indexParameters = indexParameters;
957
+ this._callbackPluginEventGeneric(128 /* MaterialPluginEvent.PrepareEffect */, this._eventInfo);
958
+ MaterialHelperGeometryRendering.AddUniformsAndSamplers(uniforms, samplers);
959
+ PrePassConfiguration.AddUniforms(uniforms);
960
+ if (ImageProcessingConfiguration) {
961
+ ImageProcessingConfiguration.PrepareUniforms(uniforms, defines);
962
+ ImageProcessingConfiguration.PrepareSamplers(samplers, defines);
963
+ }
964
+ PrepareUniformsAndSamplersList({
965
+ uniformsNames: uniforms,
966
+ uniformBuffersNames: uniformBuffers,
967
+ samplers: samplers,
968
+ defines: defines,
969
+ maxSimultaneousLights: this._maxSimultaneousLights,
970
+ });
971
+ addClipPlaneUniforms(uniforms);
972
+ const csnrOptions = {};
973
+ if (this.customShaderNameResolve) {
974
+ shaderName = this.customShaderNameResolve(shaderName, uniforms, uniformBuffers, samplers, defines, attribs, csnrOptions);
975
+ }
976
+ const join = defines.toString();
977
+ const previousEffect = subMesh.effect;
978
+ let effect = scene.getEngine().createEffect(shaderName, {
979
+ attributes: attribs,
980
+ uniformsNames: uniforms,
981
+ uniformBuffersNames: uniformBuffers,
982
+ samplers: samplers,
983
+ defines: join,
984
+ fallbacks: fallbacks,
985
+ onCompiled: this.onCompiled,
986
+ onError: this.onError,
987
+ indexParameters,
988
+ processFinalCode: csnrOptions.processFinalCode,
989
+ processCodeAfterIncludes: this._eventInfo.customCode,
990
+ multiTarget: defines.PREPASS,
991
+ shaderLanguage: this._shaderLanguage,
992
+ extraInitializationsAsync: this._shadersLoaded
993
+ ? undefined
994
+ : async () => {
995
+ if (this._shaderLanguage === 1 /* ShaderLanguage.WGSL */) {
996
+ await Promise.all([import('./default.vertex-bWGrH88y.esm.js'), import('./default.fragment-Yh18209a.esm.js')]);
997
+ }
998
+ else {
999
+ await Promise.all([import('./default.vertex-L7AngZxY.esm.js'), import('./default.fragment-DPPypY0M.esm.js')]);
1000
+ }
1001
+ this._shadersLoaded = true;
1002
+ },
1003
+ }, engine);
1004
+ this._eventInfo.customCode = undefined;
1005
+ if (effect) {
1006
+ if (this._onEffectCreatedObservable) {
1007
+ onCreatedEffectParameters.effect = effect;
1008
+ onCreatedEffectParameters.subMesh = subMesh;
1009
+ this._onEffectCreatedObservable.notifyObservers(onCreatedEffectParameters);
1010
+ }
1011
+ // Use previous effect while new one is compiling
1012
+ if (this.allowShaderHotSwapping && previousEffect && !effect.isReady()) {
1013
+ effect = previousEffect;
1014
+ defines.markAsUnprocessed();
1015
+ forceWasNotReadyPreviously = this.isFrozen;
1016
+ if (lightDisposed) {
1017
+ // re register in case it takes more than one frame.
1018
+ defines._areLightsDisposed = true;
1019
+ return false;
1020
+ }
1021
+ }
1022
+ else {
1023
+ scene.resetCachedMaterial();
1024
+ subMesh.setEffect(effect, defines, this._materialContext);
1025
+ }
1026
+ }
1027
+ }
1028
+ if (!subMesh.effect || !subMesh.effect.isReady()) {
1029
+ return false;
1030
+ }
1031
+ defines._renderId = scene.getRenderId();
1032
+ drawWrapper._wasPreviouslyReady = forceWasNotReadyPreviously ? false : true;
1033
+ drawWrapper._wasPreviouslyUsingInstances = useInstances;
1034
+ this._checkScenePerformancePriority();
1035
+ return true;
1036
+ }
1037
+ /**
1038
+ * Builds the material UBO layouts.
1039
+ * Used internally during the effect preparation.
1040
+ */
1041
+ buildUniformLayout() {
1042
+ // Order is important !
1043
+ const ubo = this._uniformBuffer;
1044
+ ubo.addUniform("diffuseLeftColor", 4);
1045
+ ubo.addUniform("diffuseRightColor", 4);
1046
+ ubo.addUniform("opacityParts", 4);
1047
+ ubo.addUniform("reflectionLeftColor", 4);
1048
+ ubo.addUniform("reflectionRightColor", 4);
1049
+ ubo.addUniform("refractionLeftColor", 4);
1050
+ ubo.addUniform("refractionRightColor", 4);
1051
+ ubo.addUniform("emissiveLeftColor", 4);
1052
+ ubo.addUniform("emissiveRightColor", 4);
1053
+ ubo.addUniform("vDiffuseInfos", 2);
1054
+ ubo.addUniform("vAmbientInfos", 2);
1055
+ ubo.addUniform("vOpacityInfos", 2);
1056
+ ubo.addUniform("vReflectionInfos", 2);
1057
+ ubo.addUniform("vReflectionPosition", 3);
1058
+ ubo.addUniform("vReflectionSize", 3);
1059
+ ubo.addUniform("vEmissiveInfos", 2);
1060
+ ubo.addUniform("vLightmapInfos", 2);
1061
+ ubo.addUniform("vSpecularInfos", 2);
1062
+ ubo.addUniform("vBumpInfos", 3);
1063
+ ubo.addUniform("diffuseMatrix", 16);
1064
+ ubo.addUniform("ambientMatrix", 16);
1065
+ ubo.addUniform("opacityMatrix", 16);
1066
+ ubo.addUniform("reflectionMatrix", 16);
1067
+ ubo.addUniform("emissiveMatrix", 16);
1068
+ ubo.addUniform("lightmapMatrix", 16);
1069
+ ubo.addUniform("specularMatrix", 16);
1070
+ ubo.addUniform("bumpMatrix", 16);
1071
+ ubo.addUniform("vTangentSpaceParams", 2);
1072
+ ubo.addUniform("pointSize", 1);
1073
+ ubo.addUniform("alphaCutOff", 1);
1074
+ ubo.addUniform("refractionMatrix", 16);
1075
+ ubo.addUniform("vRefractionInfos", 4);
1076
+ ubo.addUniform("vRefractionPosition", 3);
1077
+ ubo.addUniform("vRefractionSize", 3);
1078
+ ubo.addUniform("vSpecularColor", 4);
1079
+ ubo.addUniform("vEmissiveColor", 3);
1080
+ ubo.addUniform("vDiffuseColor", 4);
1081
+ ubo.addUniform("vAmbientColor", 3);
1082
+ super.buildUniformLayout();
1083
+ }
1084
+ /**
1085
+ * Binds the submesh to this material by preparing the effect and shader to draw
1086
+ * @param world defines the world transformation matrix
1087
+ * @param mesh defines the mesh containing the submesh
1088
+ * @param subMesh defines the submesh to bind the material to
1089
+ */
1090
+ bindForSubMesh(world, mesh, subMesh) {
1091
+ const scene = this.getScene();
1092
+ const defines = subMesh.materialDefines;
1093
+ if (!defines) {
1094
+ return;
1095
+ }
1096
+ const effect = subMesh.effect;
1097
+ if (!effect) {
1098
+ return;
1099
+ }
1100
+ this._activeEffect = effect;
1101
+ // Matrices Mesh.
1102
+ mesh.getMeshUniformBuffer().bindToEffect(effect, "Mesh");
1103
+ mesh.transferToEffect(world);
1104
+ // Binding unconditionally
1105
+ this._uniformBuffer.bindToEffect(effect, "Material");
1106
+ this.prePassConfiguration.bindForSubMesh(this._activeEffect, scene, mesh, world, this.isFrozen);
1107
+ MaterialHelperGeometryRendering.Bind(scene.getEngine().currentRenderPassId, this._activeEffect, mesh, world);
1108
+ this._eventInfo.subMesh = subMesh;
1109
+ this._callbackPluginEventHardBindForSubMesh(this._eventInfo);
1110
+ // Normal Matrix
1111
+ if (defines.OBJECTSPACE_NORMALMAP) {
1112
+ world.toNormalMatrix(this._normalMatrix);
1113
+ this.bindOnlyNormalMatrix(this._normalMatrix);
1114
+ }
1115
+ const mustRebind = this._mustRebind(scene, effect, subMesh, mesh.visibility);
1116
+ // Bones
1117
+ BindBonesParameters(mesh, effect);
1118
+ const ubo = this._uniformBuffer;
1119
+ if (mustRebind) {
1120
+ this.bindViewProjection(effect);
1121
+ if (!ubo.useUbo || !this.isFrozen || !ubo.isSync || subMesh._drawWrapper._forceRebindOnNextCall) {
1122
+ if (StandardMaterial.FresnelEnabled && defines.FRESNEL) {
1123
+ // Fresnel
1124
+ if (this.diffuseFresnelParameters && this.diffuseFresnelParameters.isEnabled) {
1125
+ ubo.updateColor4("diffuseLeftColor", this.diffuseFresnelParameters.leftColor, this.diffuseFresnelParameters.power);
1126
+ ubo.updateColor4("diffuseRightColor", this.diffuseFresnelParameters.rightColor, this.diffuseFresnelParameters.bias);
1127
+ }
1128
+ if (this.opacityFresnelParameters && this.opacityFresnelParameters.isEnabled) {
1129
+ ubo.updateColor4("opacityParts", new Color3(this.opacityFresnelParameters.leftColor.toLuminance(), this.opacityFresnelParameters.rightColor.toLuminance(), this.opacityFresnelParameters.bias), this.opacityFresnelParameters.power);
1130
+ }
1131
+ if (this.reflectionFresnelParameters && this.reflectionFresnelParameters.isEnabled) {
1132
+ ubo.updateColor4("reflectionLeftColor", this.reflectionFresnelParameters.leftColor, this.reflectionFresnelParameters.power);
1133
+ ubo.updateColor4("reflectionRightColor", this.reflectionFresnelParameters.rightColor, this.reflectionFresnelParameters.bias);
1134
+ }
1135
+ if (this.refractionFresnelParameters && this.refractionFresnelParameters.isEnabled) {
1136
+ ubo.updateColor4("refractionLeftColor", this.refractionFresnelParameters.leftColor, this.refractionFresnelParameters.power);
1137
+ ubo.updateColor4("refractionRightColor", this.refractionFresnelParameters.rightColor, this.refractionFresnelParameters.bias);
1138
+ }
1139
+ if (this.emissiveFresnelParameters && this.emissiveFresnelParameters.isEnabled) {
1140
+ ubo.updateColor4("emissiveLeftColor", this.emissiveFresnelParameters.leftColor, this.emissiveFresnelParameters.power);
1141
+ ubo.updateColor4("emissiveRightColor", this.emissiveFresnelParameters.rightColor, this.emissiveFresnelParameters.bias);
1142
+ }
1143
+ }
1144
+ // Textures
1145
+ if (scene.texturesEnabled) {
1146
+ if (this._diffuseTexture && StandardMaterial.DiffuseTextureEnabled) {
1147
+ ubo.updateFloat2("vDiffuseInfos", this._diffuseTexture.coordinatesIndex, this._diffuseTexture.level);
1148
+ BindTextureMatrix(this._diffuseTexture, ubo, "diffuse");
1149
+ }
1150
+ if (this._ambientTexture && StandardMaterial.AmbientTextureEnabled) {
1151
+ ubo.updateFloat2("vAmbientInfos", this._ambientTexture.coordinatesIndex, this._ambientTexture.level);
1152
+ BindTextureMatrix(this._ambientTexture, ubo, "ambient");
1153
+ }
1154
+ if (this._opacityTexture && StandardMaterial.OpacityTextureEnabled) {
1155
+ ubo.updateFloat2("vOpacityInfos", this._opacityTexture.coordinatesIndex, this._opacityTexture.level);
1156
+ BindTextureMatrix(this._opacityTexture, ubo, "opacity");
1157
+ }
1158
+ if (this._hasAlphaChannel()) {
1159
+ ubo.updateFloat("alphaCutOff", this.alphaCutOff);
1160
+ }
1161
+ if (this._reflectionTexture && StandardMaterial.ReflectionTextureEnabled) {
1162
+ ubo.updateFloat2("vReflectionInfos", this._reflectionTexture.level, this.roughness);
1163
+ ubo.updateMatrix("reflectionMatrix", this._reflectionTexture.getReflectionTextureMatrix());
1164
+ if (this._reflectionTexture.boundingBoxSize) {
1165
+ const cubeTexture = this._reflectionTexture;
1166
+ ubo.updateVector3("vReflectionPosition", cubeTexture.boundingBoxPosition);
1167
+ ubo.updateVector3("vReflectionSize", cubeTexture.boundingBoxSize);
1168
+ }
1169
+ }
1170
+ if (this._emissiveTexture && StandardMaterial.EmissiveTextureEnabled) {
1171
+ ubo.updateFloat2("vEmissiveInfos", this._emissiveTexture.coordinatesIndex, this._emissiveTexture.level);
1172
+ BindTextureMatrix(this._emissiveTexture, ubo, "emissive");
1173
+ }
1174
+ if (this._lightmapTexture && StandardMaterial.LightmapTextureEnabled) {
1175
+ ubo.updateFloat2("vLightmapInfos", this._lightmapTexture.coordinatesIndex, this._lightmapTexture.level);
1176
+ BindTextureMatrix(this._lightmapTexture, ubo, "lightmap");
1177
+ }
1178
+ if (this._specularTexture && StandardMaterial.SpecularTextureEnabled) {
1179
+ ubo.updateFloat2("vSpecularInfos", this._specularTexture.coordinatesIndex, this._specularTexture.level);
1180
+ BindTextureMatrix(this._specularTexture, ubo, "specular");
1181
+ }
1182
+ if (this._bumpTexture && scene.getEngine().getCaps().standardDerivatives && StandardMaterial.BumpTextureEnabled) {
1183
+ ubo.updateFloat3("vBumpInfos", this._bumpTexture.coordinatesIndex, 1.0 / this._bumpTexture.level, this.parallaxScaleBias);
1184
+ BindTextureMatrix(this._bumpTexture, ubo, "bump");
1185
+ if (scene._mirroredCameraPosition) {
1186
+ ubo.updateFloat2("vTangentSpaceParams", this._invertNormalMapX ? 1.0 : -1.0, this._invertNormalMapY ? 1.0 : -1.0);
1187
+ }
1188
+ else {
1189
+ ubo.updateFloat2("vTangentSpaceParams", this._invertNormalMapX ? -1.0 : 1.0, this._invertNormalMapY ? -1.0 : 1.0);
1190
+ }
1191
+ }
1192
+ if (this._refractionTexture && StandardMaterial.RefractionTextureEnabled) {
1193
+ let depth = 1.0;
1194
+ if (!this._refractionTexture.isCube) {
1195
+ ubo.updateMatrix("refractionMatrix", this._refractionTexture.getReflectionTextureMatrix());
1196
+ if (this._refractionTexture.depth) {
1197
+ depth = this._refractionTexture.depth;
1198
+ }
1199
+ }
1200
+ ubo.updateFloat4("vRefractionInfos", this._refractionTexture.level, this.indexOfRefraction, depth, this.invertRefractionY ? -1 : 1);
1201
+ if (this._refractionTexture.boundingBoxSize) {
1202
+ const cubeTexture = this._refractionTexture;
1203
+ ubo.updateVector3("vRefractionPosition", cubeTexture.boundingBoxPosition);
1204
+ ubo.updateVector3("vRefractionSize", cubeTexture.boundingBoxSize);
1205
+ }
1206
+ }
1207
+ }
1208
+ // Point size
1209
+ if (this.pointsCloud) {
1210
+ ubo.updateFloat("pointSize", this.pointSize);
1211
+ }
1212
+ ubo.updateColor4("vSpecularColor", this.specularColor, this.specularPower);
1213
+ ubo.updateColor3("vEmissiveColor", StandardMaterial.EmissiveTextureEnabled ? this.emissiveColor : Color3.BlackReadOnly);
1214
+ ubo.updateColor4("vDiffuseColor", this.diffuseColor, this.alpha);
1215
+ scene.ambientColor.multiplyToRef(this.ambientColor, this._globalAmbientColor);
1216
+ ubo.updateColor3("vAmbientColor", this._globalAmbientColor);
1217
+ }
1218
+ // Textures
1219
+ if (scene.texturesEnabled) {
1220
+ if (this._diffuseTexture && StandardMaterial.DiffuseTextureEnabled) {
1221
+ effect.setTexture("diffuseSampler", this._diffuseTexture);
1222
+ }
1223
+ if (this._ambientTexture && StandardMaterial.AmbientTextureEnabled) {
1224
+ effect.setTexture("ambientSampler", this._ambientTexture);
1225
+ }
1226
+ if (this._opacityTexture && StandardMaterial.OpacityTextureEnabled) {
1227
+ effect.setTexture("opacitySampler", this._opacityTexture);
1228
+ }
1229
+ if (this._reflectionTexture && StandardMaterial.ReflectionTextureEnabled) {
1230
+ if (this._reflectionTexture.isCube) {
1231
+ effect.setTexture("reflectionCubeSampler", this._reflectionTexture);
1232
+ }
1233
+ else {
1234
+ effect.setTexture("reflection2DSampler", this._reflectionTexture);
1235
+ }
1236
+ }
1237
+ if (this._emissiveTexture && StandardMaterial.EmissiveTextureEnabled) {
1238
+ effect.setTexture("emissiveSampler", this._emissiveTexture);
1239
+ }
1240
+ if (this._lightmapTexture && StandardMaterial.LightmapTextureEnabled) {
1241
+ effect.setTexture("lightmapSampler", this._lightmapTexture);
1242
+ }
1243
+ if (this._specularTexture && StandardMaterial.SpecularTextureEnabled) {
1244
+ effect.setTexture("specularSampler", this._specularTexture);
1245
+ }
1246
+ if (this._bumpTexture && scene.getEngine().getCaps().standardDerivatives && StandardMaterial.BumpTextureEnabled) {
1247
+ effect.setTexture("bumpSampler", this._bumpTexture);
1248
+ }
1249
+ if (this._refractionTexture && StandardMaterial.RefractionTextureEnabled) {
1250
+ if (this._refractionTexture.isCube) {
1251
+ effect.setTexture("refractionCubeSampler", this._refractionTexture);
1252
+ }
1253
+ else {
1254
+ effect.setTexture("refraction2DSampler", this._refractionTexture);
1255
+ }
1256
+ }
1257
+ }
1258
+ // OIT with depth peeling
1259
+ if (this.getScene().useOrderIndependentTransparency && this.needAlphaBlendingForMesh(mesh)) {
1260
+ this.getScene().depthPeelingRenderer.bind(effect);
1261
+ }
1262
+ this._eventInfo.subMesh = subMesh;
1263
+ this._callbackPluginEventBindForSubMesh(this._eventInfo);
1264
+ // Clip plane
1265
+ bindClipPlane(effect, this, scene);
1266
+ // Colors
1267
+ this.bindEyePosition(effect);
1268
+ }
1269
+ else if (scene.getEngine()._features.needToAlwaysBindUniformBuffers) {
1270
+ this._needToBindSceneUbo = true;
1271
+ }
1272
+ if (mustRebind || !this.isFrozen) {
1273
+ // Lights
1274
+ if (scene.lightsEnabled && !this._disableLighting) {
1275
+ BindLights(scene, mesh, effect, defines, this._maxSimultaneousLights);
1276
+ }
1277
+ // View
1278
+ if ((scene.fogEnabled && mesh.applyFog && scene.fogMode !== Scene.FOGMODE_NONE) ||
1279
+ this._reflectionTexture ||
1280
+ this._refractionTexture ||
1281
+ mesh.receiveShadows ||
1282
+ defines.PREPASS) {
1283
+ this.bindView(effect);
1284
+ }
1285
+ // Fog
1286
+ BindFogParameters(scene, mesh, effect);
1287
+ // Morph targets
1288
+ if (defines.NUM_MORPH_INFLUENCERS) {
1289
+ BindMorphTargetParameters(mesh, effect);
1290
+ }
1291
+ if (defines.BAKED_VERTEX_ANIMATION_TEXTURE) {
1292
+ mesh.bakedVertexAnimationManager?.bind(effect, defines.INSTANCES);
1293
+ }
1294
+ // Log. depth
1295
+ if (this.useLogarithmicDepth) {
1296
+ BindLogDepth(defines, effect, scene);
1297
+ }
1298
+ // image processing
1299
+ if (this._imageProcessingConfiguration && !this._imageProcessingConfiguration.applyByPostProcess) {
1300
+ this._imageProcessingConfiguration.bind(this._activeEffect);
1301
+ }
1302
+ }
1303
+ this._afterBind(mesh, this._activeEffect, subMesh);
1304
+ ubo.update();
1305
+ }
1306
+ /**
1307
+ * Get the list of animatables in the material.
1308
+ * @returns the list of animatables object used in the material
1309
+ */
1310
+ getAnimatables() {
1311
+ const results = super.getAnimatables();
1312
+ if (this._diffuseTexture && this._diffuseTexture.animations && this._diffuseTexture.animations.length > 0) {
1313
+ results.push(this._diffuseTexture);
1314
+ }
1315
+ if (this._ambientTexture && this._ambientTexture.animations && this._ambientTexture.animations.length > 0) {
1316
+ results.push(this._ambientTexture);
1317
+ }
1318
+ if (this._opacityTexture && this._opacityTexture.animations && this._opacityTexture.animations.length > 0) {
1319
+ results.push(this._opacityTexture);
1320
+ }
1321
+ if (this._reflectionTexture && this._reflectionTexture.animations && this._reflectionTexture.animations.length > 0) {
1322
+ results.push(this._reflectionTexture);
1323
+ }
1324
+ if (this._emissiveTexture && this._emissiveTexture.animations && this._emissiveTexture.animations.length > 0) {
1325
+ results.push(this._emissiveTexture);
1326
+ }
1327
+ if (this._specularTexture && this._specularTexture.animations && this._specularTexture.animations.length > 0) {
1328
+ results.push(this._specularTexture);
1329
+ }
1330
+ if (this._bumpTexture && this._bumpTexture.animations && this._bumpTexture.animations.length > 0) {
1331
+ results.push(this._bumpTexture);
1332
+ }
1333
+ if (this._lightmapTexture && this._lightmapTexture.animations && this._lightmapTexture.animations.length > 0) {
1334
+ results.push(this._lightmapTexture);
1335
+ }
1336
+ if (this._refractionTexture && this._refractionTexture.animations && this._refractionTexture.animations.length > 0) {
1337
+ results.push(this._refractionTexture);
1338
+ }
1339
+ return results;
1340
+ }
1341
+ /**
1342
+ * Gets the active textures from the material
1343
+ * @returns an array of textures
1344
+ */
1345
+ getActiveTextures() {
1346
+ const activeTextures = super.getActiveTextures();
1347
+ if (this._diffuseTexture) {
1348
+ activeTextures.push(this._diffuseTexture);
1349
+ }
1350
+ if (this._ambientTexture) {
1351
+ activeTextures.push(this._ambientTexture);
1352
+ }
1353
+ if (this._opacityTexture) {
1354
+ activeTextures.push(this._opacityTexture);
1355
+ }
1356
+ if (this._reflectionTexture) {
1357
+ activeTextures.push(this._reflectionTexture);
1358
+ }
1359
+ if (this._emissiveTexture) {
1360
+ activeTextures.push(this._emissiveTexture);
1361
+ }
1362
+ if (this._specularTexture) {
1363
+ activeTextures.push(this._specularTexture);
1364
+ }
1365
+ if (this._bumpTexture) {
1366
+ activeTextures.push(this._bumpTexture);
1367
+ }
1368
+ if (this._lightmapTexture) {
1369
+ activeTextures.push(this._lightmapTexture);
1370
+ }
1371
+ if (this._refractionTexture) {
1372
+ activeTextures.push(this._refractionTexture);
1373
+ }
1374
+ return activeTextures;
1375
+ }
1376
+ /**
1377
+ * Specifies if the material uses a texture
1378
+ * @param texture defines the texture to check against the material
1379
+ * @returns a boolean specifying if the material uses the texture
1380
+ */
1381
+ hasTexture(texture) {
1382
+ if (super.hasTexture(texture)) {
1383
+ return true;
1384
+ }
1385
+ if (this._diffuseTexture === texture) {
1386
+ return true;
1387
+ }
1388
+ if (this._ambientTexture === texture) {
1389
+ return true;
1390
+ }
1391
+ if (this._opacityTexture === texture) {
1392
+ return true;
1393
+ }
1394
+ if (this._reflectionTexture === texture) {
1395
+ return true;
1396
+ }
1397
+ if (this._emissiveTexture === texture) {
1398
+ return true;
1399
+ }
1400
+ if (this._specularTexture === texture) {
1401
+ return true;
1402
+ }
1403
+ if (this._bumpTexture === texture) {
1404
+ return true;
1405
+ }
1406
+ if (this._lightmapTexture === texture) {
1407
+ return true;
1408
+ }
1409
+ if (this._refractionTexture === texture) {
1410
+ return true;
1411
+ }
1412
+ return false;
1413
+ }
1414
+ /**
1415
+ * Disposes the material
1416
+ * @param forceDisposeEffect specifies if effects should be forcefully disposed
1417
+ * @param forceDisposeTextures specifies if textures should be forcefully disposed
1418
+ */
1419
+ dispose(forceDisposeEffect, forceDisposeTextures) {
1420
+ if (forceDisposeTextures) {
1421
+ this._diffuseTexture?.dispose();
1422
+ this._ambientTexture?.dispose();
1423
+ this._opacityTexture?.dispose();
1424
+ this._reflectionTexture?.dispose();
1425
+ this._emissiveTexture?.dispose();
1426
+ this._specularTexture?.dispose();
1427
+ this._bumpTexture?.dispose();
1428
+ this._lightmapTexture?.dispose();
1429
+ this._refractionTexture?.dispose();
1430
+ }
1431
+ if (this._imageProcessingConfiguration && this._imageProcessingObserver) {
1432
+ this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver);
1433
+ }
1434
+ super.dispose(forceDisposeEffect, forceDisposeTextures);
1435
+ }
1436
+ /**
1437
+ * Makes a duplicate of the material, and gives it a new name
1438
+ * @param name defines the new name for the duplicated material
1439
+ * @param cloneTexturesOnlyOnce - if a texture is used in more than one channel (e.g diffuse and opacity), only clone it once and reuse it on the other channels. Default false.
1440
+ * @param rootUrl defines the root URL to use to load textures
1441
+ * @returns the cloned material
1442
+ */
1443
+ clone(name, cloneTexturesOnlyOnce = true, rootUrl = "") {
1444
+ const result = SerializationHelper.Clone(() => new StandardMaterial(name, this.getScene()), this, { cloneTexturesOnlyOnce });
1445
+ result.name = name;
1446
+ result.id = name;
1447
+ this.stencil.copyTo(result.stencil);
1448
+ this._clonePlugins(result, rootUrl);
1449
+ return result;
1450
+ }
1451
+ /**
1452
+ * Creates a standard material from parsed material data
1453
+ * @param source defines the JSON representation of the material
1454
+ * @param scene defines the hosting scene
1455
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
1456
+ * @returns a new standard material
1457
+ */
1458
+ static Parse(source, scene, rootUrl) {
1459
+ const material = SerializationHelper.Parse(() => new StandardMaterial(source.name, scene), source, scene, rootUrl);
1460
+ if (source.stencil) {
1461
+ material.stencil.parse(source.stencil, scene, rootUrl);
1462
+ }
1463
+ Material._ParsePlugins(source, material, scene, rootUrl);
1464
+ return material;
1465
+ }
1466
+ // Flags used to enable or disable a type of texture for all Standard Materials
1467
+ /**
1468
+ * Are diffuse textures enabled in the application.
1469
+ */
1470
+ static get DiffuseTextureEnabled() {
1471
+ return MaterialFlags.DiffuseTextureEnabled;
1472
+ }
1473
+ static set DiffuseTextureEnabled(value) {
1474
+ MaterialFlags.DiffuseTextureEnabled = value;
1475
+ }
1476
+ /**
1477
+ * Are detail textures enabled in the application.
1478
+ */
1479
+ static get DetailTextureEnabled() {
1480
+ return MaterialFlags.DetailTextureEnabled;
1481
+ }
1482
+ static set DetailTextureEnabled(value) {
1483
+ MaterialFlags.DetailTextureEnabled = value;
1484
+ }
1485
+ /**
1486
+ * Are ambient textures enabled in the application.
1487
+ */
1488
+ static get AmbientTextureEnabled() {
1489
+ return MaterialFlags.AmbientTextureEnabled;
1490
+ }
1491
+ static set AmbientTextureEnabled(value) {
1492
+ MaterialFlags.AmbientTextureEnabled = value;
1493
+ }
1494
+ /**
1495
+ * Are opacity textures enabled in the application.
1496
+ */
1497
+ static get OpacityTextureEnabled() {
1498
+ return MaterialFlags.OpacityTextureEnabled;
1499
+ }
1500
+ static set OpacityTextureEnabled(value) {
1501
+ MaterialFlags.OpacityTextureEnabled = value;
1502
+ }
1503
+ /**
1504
+ * Are reflection textures enabled in the application.
1505
+ */
1506
+ static get ReflectionTextureEnabled() {
1507
+ return MaterialFlags.ReflectionTextureEnabled;
1508
+ }
1509
+ static set ReflectionTextureEnabled(value) {
1510
+ MaterialFlags.ReflectionTextureEnabled = value;
1511
+ }
1512
+ /**
1513
+ * Are emissive textures enabled in the application.
1514
+ */
1515
+ static get EmissiveTextureEnabled() {
1516
+ return MaterialFlags.EmissiveTextureEnabled;
1517
+ }
1518
+ static set EmissiveTextureEnabled(value) {
1519
+ MaterialFlags.EmissiveTextureEnabled = value;
1520
+ }
1521
+ /**
1522
+ * Are specular textures enabled in the application.
1523
+ */
1524
+ static get SpecularTextureEnabled() {
1525
+ return MaterialFlags.SpecularTextureEnabled;
1526
+ }
1527
+ static set SpecularTextureEnabled(value) {
1528
+ MaterialFlags.SpecularTextureEnabled = value;
1529
+ }
1530
+ /**
1531
+ * Are bump textures enabled in the application.
1532
+ */
1533
+ static get BumpTextureEnabled() {
1534
+ return MaterialFlags.BumpTextureEnabled;
1535
+ }
1536
+ static set BumpTextureEnabled(value) {
1537
+ MaterialFlags.BumpTextureEnabled = value;
1538
+ }
1539
+ /**
1540
+ * Are lightmap textures enabled in the application.
1541
+ */
1542
+ static get LightmapTextureEnabled() {
1543
+ return MaterialFlags.LightmapTextureEnabled;
1544
+ }
1545
+ static set LightmapTextureEnabled(value) {
1546
+ MaterialFlags.LightmapTextureEnabled = value;
1547
+ }
1548
+ /**
1549
+ * Are refraction textures enabled in the application.
1550
+ */
1551
+ static get RefractionTextureEnabled() {
1552
+ return MaterialFlags.RefractionTextureEnabled;
1553
+ }
1554
+ static set RefractionTextureEnabled(value) {
1555
+ MaterialFlags.RefractionTextureEnabled = value;
1556
+ }
1557
+ /**
1558
+ * Are color grading textures enabled in the application.
1559
+ */
1560
+ static get ColorGradingTextureEnabled() {
1561
+ return MaterialFlags.ColorGradingTextureEnabled;
1562
+ }
1563
+ static set ColorGradingTextureEnabled(value) {
1564
+ MaterialFlags.ColorGradingTextureEnabled = value;
1565
+ }
1566
+ /**
1567
+ * Are fresnels enabled in the application.
1568
+ */
1569
+ static get FresnelEnabled() {
1570
+ return MaterialFlags.FresnelEnabled;
1571
+ }
1572
+ static set FresnelEnabled(value) {
1573
+ MaterialFlags.FresnelEnabled = value;
1574
+ }
1575
+ }
1576
+ /**
1577
+ * Force all the standard materials to compile to glsl even on WebGPU engines.
1578
+ * False by default. This is mostly meant for backward compatibility.
1579
+ */
1580
+ StandardMaterial.ForceGLSL = false;
1581
+ __decorate([
1582
+ serializeAsTexture("diffuseTexture")
1583
+ ], StandardMaterial.prototype, "_diffuseTexture", void 0);
1584
+ __decorate([
1585
+ expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")
1586
+ ], StandardMaterial.prototype, "diffuseTexture", void 0);
1587
+ __decorate([
1588
+ serializeAsTexture("ambientTexture")
1589
+ ], StandardMaterial.prototype, "_ambientTexture", void 0);
1590
+ __decorate([
1591
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1592
+ ], StandardMaterial.prototype, "ambientTexture", void 0);
1593
+ __decorate([
1594
+ serializeAsTexture("opacityTexture")
1595
+ ], StandardMaterial.prototype, "_opacityTexture", void 0);
1596
+ __decorate([
1597
+ expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")
1598
+ ], StandardMaterial.prototype, "opacityTexture", void 0);
1599
+ __decorate([
1600
+ serializeAsTexture("reflectionTexture")
1601
+ ], StandardMaterial.prototype, "_reflectionTexture", void 0);
1602
+ __decorate([
1603
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1604
+ ], StandardMaterial.prototype, "reflectionTexture", void 0);
1605
+ __decorate([
1606
+ serializeAsTexture("emissiveTexture")
1607
+ ], StandardMaterial.prototype, "_emissiveTexture", void 0);
1608
+ __decorate([
1609
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1610
+ ], StandardMaterial.prototype, "emissiveTexture", void 0);
1611
+ __decorate([
1612
+ serializeAsTexture("specularTexture")
1613
+ ], StandardMaterial.prototype, "_specularTexture", void 0);
1614
+ __decorate([
1615
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1616
+ ], StandardMaterial.prototype, "specularTexture", void 0);
1617
+ __decorate([
1618
+ serializeAsTexture("bumpTexture")
1619
+ ], StandardMaterial.prototype, "_bumpTexture", void 0);
1620
+ __decorate([
1621
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1622
+ ], StandardMaterial.prototype, "bumpTexture", void 0);
1623
+ __decorate([
1624
+ serializeAsTexture("lightmapTexture")
1625
+ ], StandardMaterial.prototype, "_lightmapTexture", void 0);
1626
+ __decorate([
1627
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1628
+ ], StandardMaterial.prototype, "lightmapTexture", void 0);
1629
+ __decorate([
1630
+ serializeAsTexture("refractionTexture")
1631
+ ], StandardMaterial.prototype, "_refractionTexture", void 0);
1632
+ __decorate([
1633
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1634
+ ], StandardMaterial.prototype, "refractionTexture", void 0);
1635
+ __decorate([
1636
+ serializeAsColor3("ambient")
1637
+ ], StandardMaterial.prototype, "ambientColor", void 0);
1638
+ __decorate([
1639
+ serializeAsColor3("diffuse")
1640
+ ], StandardMaterial.prototype, "diffuseColor", void 0);
1641
+ __decorate([
1642
+ serializeAsColor3("specular")
1643
+ ], StandardMaterial.prototype, "specularColor", void 0);
1644
+ __decorate([
1645
+ serializeAsColor3("emissive")
1646
+ ], StandardMaterial.prototype, "emissiveColor", void 0);
1647
+ __decorate([
1648
+ serialize()
1649
+ ], StandardMaterial.prototype, "specularPower", void 0);
1650
+ __decorate([
1651
+ serialize("useAlphaFromDiffuseTexture")
1652
+ ], StandardMaterial.prototype, "_useAlphaFromDiffuseTexture", void 0);
1653
+ __decorate([
1654
+ expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")
1655
+ ], StandardMaterial.prototype, "useAlphaFromDiffuseTexture", void 0);
1656
+ __decorate([
1657
+ serialize("useEmissiveAsIllumination")
1658
+ ], StandardMaterial.prototype, "_useEmissiveAsIllumination", void 0);
1659
+ __decorate([
1660
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1661
+ ], StandardMaterial.prototype, "useEmissiveAsIllumination", void 0);
1662
+ __decorate([
1663
+ serialize("linkEmissiveWithDiffuse")
1664
+ ], StandardMaterial.prototype, "_linkEmissiveWithDiffuse", void 0);
1665
+ __decorate([
1666
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1667
+ ], StandardMaterial.prototype, "linkEmissiveWithDiffuse", void 0);
1668
+ __decorate([
1669
+ serialize("useSpecularOverAlpha")
1670
+ ], StandardMaterial.prototype, "_useSpecularOverAlpha", void 0);
1671
+ __decorate([
1672
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1673
+ ], StandardMaterial.prototype, "useSpecularOverAlpha", void 0);
1674
+ __decorate([
1675
+ serialize("useReflectionOverAlpha")
1676
+ ], StandardMaterial.prototype, "_useReflectionOverAlpha", void 0);
1677
+ __decorate([
1678
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1679
+ ], StandardMaterial.prototype, "useReflectionOverAlpha", void 0);
1680
+ __decorate([
1681
+ serialize("disableLighting")
1682
+ ], StandardMaterial.prototype, "_disableLighting", void 0);
1683
+ __decorate([
1684
+ expandToProperty("_markAllSubMeshesAsLightsDirty")
1685
+ ], StandardMaterial.prototype, "disableLighting", void 0);
1686
+ __decorate([
1687
+ serialize("useObjectSpaceNormalMap")
1688
+ ], StandardMaterial.prototype, "_useObjectSpaceNormalMap", void 0);
1689
+ __decorate([
1690
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1691
+ ], StandardMaterial.prototype, "useObjectSpaceNormalMap", void 0);
1692
+ __decorate([
1693
+ serialize("useParallax")
1694
+ ], StandardMaterial.prototype, "_useParallax", void 0);
1695
+ __decorate([
1696
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1697
+ ], StandardMaterial.prototype, "useParallax", void 0);
1698
+ __decorate([
1699
+ serialize("useParallaxOcclusion")
1700
+ ], StandardMaterial.prototype, "_useParallaxOcclusion", void 0);
1701
+ __decorate([
1702
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1703
+ ], StandardMaterial.prototype, "useParallaxOcclusion", void 0);
1704
+ __decorate([
1705
+ serialize()
1706
+ ], StandardMaterial.prototype, "parallaxScaleBias", void 0);
1707
+ __decorate([
1708
+ serialize("roughness")
1709
+ ], StandardMaterial.prototype, "_roughness", void 0);
1710
+ __decorate([
1711
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1712
+ ], StandardMaterial.prototype, "roughness", void 0);
1713
+ __decorate([
1714
+ serialize()
1715
+ ], StandardMaterial.prototype, "indexOfRefraction", void 0);
1716
+ __decorate([
1717
+ serialize()
1718
+ ], StandardMaterial.prototype, "invertRefractionY", void 0);
1719
+ __decorate([
1720
+ serialize()
1721
+ ], StandardMaterial.prototype, "alphaCutOff", void 0);
1722
+ __decorate([
1723
+ serialize("useLightmapAsShadowmap")
1724
+ ], StandardMaterial.prototype, "_useLightmapAsShadowmap", void 0);
1725
+ __decorate([
1726
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1727
+ ], StandardMaterial.prototype, "useLightmapAsShadowmap", void 0);
1728
+ __decorate([
1729
+ serializeAsFresnelParameters("diffuseFresnelParameters")
1730
+ ], StandardMaterial.prototype, "_diffuseFresnelParameters", void 0);
1731
+ __decorate([
1732
+ expandToProperty("_markAllSubMeshesAsFresnelDirty")
1733
+ ], StandardMaterial.prototype, "diffuseFresnelParameters", void 0);
1734
+ __decorate([
1735
+ serializeAsFresnelParameters("opacityFresnelParameters")
1736
+ ], StandardMaterial.prototype, "_opacityFresnelParameters", void 0);
1737
+ __decorate([
1738
+ expandToProperty("_markAllSubMeshesAsFresnelAndMiscDirty")
1739
+ ], StandardMaterial.prototype, "opacityFresnelParameters", void 0);
1740
+ __decorate([
1741
+ serializeAsFresnelParameters("reflectionFresnelParameters")
1742
+ ], StandardMaterial.prototype, "_reflectionFresnelParameters", void 0);
1743
+ __decorate([
1744
+ expandToProperty("_markAllSubMeshesAsFresnelDirty")
1745
+ ], StandardMaterial.prototype, "reflectionFresnelParameters", void 0);
1746
+ __decorate([
1747
+ serializeAsFresnelParameters("refractionFresnelParameters")
1748
+ ], StandardMaterial.prototype, "_refractionFresnelParameters", void 0);
1749
+ __decorate([
1750
+ expandToProperty("_markAllSubMeshesAsFresnelDirty")
1751
+ ], StandardMaterial.prototype, "refractionFresnelParameters", void 0);
1752
+ __decorate([
1753
+ serializeAsFresnelParameters("emissiveFresnelParameters")
1754
+ ], StandardMaterial.prototype, "_emissiveFresnelParameters", void 0);
1755
+ __decorate([
1756
+ expandToProperty("_markAllSubMeshesAsFresnelDirty")
1757
+ ], StandardMaterial.prototype, "emissiveFresnelParameters", void 0);
1758
+ __decorate([
1759
+ serialize("useReflectionFresnelFromSpecular")
1760
+ ], StandardMaterial.prototype, "_useReflectionFresnelFromSpecular", void 0);
1761
+ __decorate([
1762
+ expandToProperty("_markAllSubMeshesAsFresnelDirty")
1763
+ ], StandardMaterial.prototype, "useReflectionFresnelFromSpecular", void 0);
1764
+ __decorate([
1765
+ serialize("useGlossinessFromSpecularMapAlpha")
1766
+ ], StandardMaterial.prototype, "_useGlossinessFromSpecularMapAlpha", void 0);
1767
+ __decorate([
1768
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1769
+ ], StandardMaterial.prototype, "useGlossinessFromSpecularMapAlpha", void 0);
1770
+ __decorate([
1771
+ serialize("maxSimultaneousLights")
1772
+ ], StandardMaterial.prototype, "_maxSimultaneousLights", void 0);
1773
+ __decorate([
1774
+ expandToProperty("_markAllSubMeshesAsLightsDirty")
1775
+ ], StandardMaterial.prototype, "maxSimultaneousLights", void 0);
1776
+ __decorate([
1777
+ serialize("invertNormalMapX")
1778
+ ], StandardMaterial.prototype, "_invertNormalMapX", void 0);
1779
+ __decorate([
1780
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1781
+ ], StandardMaterial.prototype, "invertNormalMapX", void 0);
1782
+ __decorate([
1783
+ serialize("invertNormalMapY")
1784
+ ], StandardMaterial.prototype, "_invertNormalMapY", void 0);
1785
+ __decorate([
1786
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1787
+ ], StandardMaterial.prototype, "invertNormalMapY", void 0);
1788
+ __decorate([
1789
+ serialize("twoSidedLighting")
1790
+ ], StandardMaterial.prototype, "_twoSidedLighting", void 0);
1791
+ __decorate([
1792
+ expandToProperty("_markAllSubMeshesAsTexturesDirty")
1793
+ ], StandardMaterial.prototype, "twoSidedLighting", void 0);
1794
+ __decorate([
1795
+ serialize("applyDecalMapAfterDetailMap")
1796
+ ], StandardMaterial.prototype, "_applyDecalMapAfterDetailMap", void 0);
1797
+ __decorate([
1798
+ expandToProperty("_markAllSubMeshesAsMiscDirty")
1799
+ ], StandardMaterial.prototype, "applyDecalMapAfterDetailMap", void 0);
1800
+ RegisterClass("BABYLON.StandardMaterial", StandardMaterial);
1801
+ Scene.DefaultMaterialFactory = (scene) => {
1802
+ return new StandardMaterial("default material", scene);
1803
+ };
1804
+
1805
+ export { StandardMaterial as S };
1806
+ //# sourceMappingURL=standardMaterial-2SzHzTgX.esm.js.map