@babylonjs/viewer 7.42.0 → 7.44.0

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