@spiffcommerce/preview 3.6.2-rc.5 → 3.6.2-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (526) hide show
  1. package/dist/_tslib.esm.js +33 -0
  2. package/dist/animation.esm.js +1364 -0
  3. package/dist/assetCache.esm.js +6 -0
  4. package/dist/blurPostProcess.esm.js +327 -0
  5. package/dist/bumpVertex.esm.js +497 -0
  6. package/dist/compatibilityOptions.esm.js +68 -0
  7. package/dist/configuration.esm.js +121 -0
  8. package/dist/core.esm.js +8135 -0
  9. package/dist/dynamicTexture.esm.js +105 -0
  10. package/dist/easing.esm.js +130 -0
  11. package/dist/effectFallbacks.esm.js +378 -0
  12. package/dist/engine.esm.js +25504 -0
  13. package/dist/glbLoaderExtensions.esm.js +690 -0
  14. package/dist/glowLayer.esm.js +1621 -0
  15. package/dist/glowLayerManager.esm.js +50 -0
  16. package/dist/guid.esm.js +21 -0
  17. package/dist/hdrFilteringFunctions.esm.js +816 -0
  18. package/dist/helperFunctions.esm.js +5145 -0
  19. package/dist/index.esm.js +38 -11
  20. package/dist/material.esm.js +115 -0
  21. package/dist/math.axis.esm.js +35 -0
  22. package/dist/math.color.esm.js +1661 -0
  23. package/dist/math.path.esm.js +15 -0
  24. package/dist/math.size.esm.js +137 -0
  25. package/dist/mesh.esm.js +11170 -0
  26. package/dist/modelContainer.esm.js +1895 -0
  27. package/dist/node.esm.js +795 -0
  28. package/dist/pbrBRDFFunctions.esm.js +122 -2
  29. package/dist/pbrMaterial.esm.js +8747 -0
  30. package/dist/productAnimations.esm.js +182 -0
  31. package/dist/productCamera.esm.js +14 -0
  32. package/dist/renderConstants.esm.js +116 -0
  33. package/dist/renderingPipeline.esm.js +18 -0
  34. package/dist/sceneLoaderFlags.esm.js +51 -0
  35. package/dist/types.esm.js +30 -0
  36. package/dist/variants.esm.js +16 -0
  37. package/dist/webRequest.esm.js +7777 -0
  38. package/package.json +6 -5
  39. package/dist/index.umd.js +0 -10010
  40. package/dist/lib/assetCache.esm.js +0 -21
  41. package/dist/lib/configuration.esm.js +0 -98
  42. package/dist/lib/core.esm.js +0 -417
  43. package/dist/lib/dynamicTexture.esm.js +0 -51
  44. package/dist/lib/glbLoaderExtensions.esm.js +0 -137
  45. package/dist/lib/glowLayerManager.esm.js +0 -19
  46. package/dist/lib/guid.esm.js +0 -7
  47. package/dist/lib/material.esm.js +0 -50
  48. package/dist/lib/modelContainer.esm.js +0 -351
  49. package/dist/lib/productAnimations.esm.js +0 -123
  50. package/dist/lib/productCamera.esm.js +0 -113
  51. package/dist/lib/renderConstants.esm.js +0 -103
  52. package/dist/lib/renderingPipeline.esm.js +0 -99
  53. package/dist/lib/types.esm.js +0 -5
  54. package/dist/lib/variants.esm.js +0 -112
  55. package/dist/node_modules/@babylonjs/core/Actions/abstractActionManager.esm.js +0 -41
  56. package/dist/node_modules/@babylonjs/core/Actions/action.esm.js +0 -122
  57. package/dist/node_modules/@babylonjs/core/Actions/actionEvent.esm.js +0 -59
  58. package/dist/node_modules/@babylonjs/core/Actions/actionManager.esm.js +0 -335
  59. package/dist/node_modules/@babylonjs/core/Actions/condition.esm.js +0 -193
  60. package/dist/node_modules/@babylonjs/core/Actions/directActions.esm.js +0 -354
  61. package/dist/node_modules/@babylonjs/core/Animations/animatable.esm.js +0 -478
  62. package/dist/node_modules/@babylonjs/core/Animations/animation.esm.js +0 -866
  63. package/dist/node_modules/@babylonjs/core/Animations/animationEvent.esm.js +0 -18
  64. package/dist/node_modules/@babylonjs/core/Animations/animationGroup.esm.js +0 -470
  65. package/dist/node_modules/@babylonjs/core/Animations/animationKey.esm.js +0 -7
  66. package/dist/node_modules/@babylonjs/core/Animations/animationRange.esm.js +0 -21
  67. package/dist/node_modules/@babylonjs/core/Animations/easing.esm.js +0 -93
  68. package/dist/node_modules/@babylonjs/core/Animations/runtimeAnimation.esm.js +0 -281
  69. package/dist/node_modules/@babylonjs/core/Audio/sound.esm.js +0 -568
  70. package/dist/node_modules/@babylonjs/core/Audio/weightedsound.esm.js +0 -117
  71. package/dist/node_modules/@babylonjs/core/Behaviors/Cameras/autoRotationBehavior.esm.js +0 -145
  72. package/dist/node_modules/@babylonjs/core/Behaviors/Cameras/bouncingBehavior.esm.js +0 -93
  73. package/dist/node_modules/@babylonjs/core/Behaviors/Cameras/framingBehavior.esm.js +0 -295
  74. package/dist/node_modules/@babylonjs/core/Bones/bone.esm.js +0 -701
  75. package/dist/node_modules/@babylonjs/core/Bones/skeleton.esm.js +0 -478
  76. package/dist/node_modules/@babylonjs/core/Buffers/buffer.esm.js +0 -433
  77. package/dist/node_modules/@babylonjs/core/Buffers/dataBuffer.esm.js +0 -18
  78. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/BaseCameraMouseWheelInput.esm.js +0 -67
  79. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/BaseCameraPointersInput.esm.js +0 -191
  80. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.esm.js +0 -93
  81. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/arcRotateCameraMouseWheelInput.esm.js +0 -119
  82. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/arcRotateCameraPointersInput.esm.js +0 -119
  83. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/freeCameraKeyboardMoveInput.esm.js +0 -108
  84. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/freeCameraMouseInput.esm.js +0 -114
  85. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/freeCameraMouseWheelInput.esm.js +0 -249
  86. package/dist/node_modules/@babylonjs/core/Cameras/Inputs/freeCameraTouchInput.esm.js +0 -103
  87. package/dist/node_modules/@babylonjs/core/Cameras/arcRotateCamera.esm.js +0 -589
  88. package/dist/node_modules/@babylonjs/core/Cameras/arcRotateCameraInputsManager.esm.js +0 -37
  89. package/dist/node_modules/@babylonjs/core/Cameras/camera.esm.js +0 -686
  90. package/dist/node_modules/@babylonjs/core/Cameras/cameraInputsManager.esm.js +0 -147
  91. package/dist/node_modules/@babylonjs/core/Cameras/freeCamera.esm.js +0 -236
  92. package/dist/node_modules/@babylonjs/core/Cameras/freeCameraInputsManager.esm.js +0 -66
  93. package/dist/node_modules/@babylonjs/core/Cameras/targetCamera.esm.js +0 -214
  94. package/dist/node_modules/@babylonjs/core/Collisions/intersectionInfo.esm.js +0 -8
  95. package/dist/node_modules/@babylonjs/core/Collisions/meshCollisionData.esm.js +0 -9
  96. package/dist/node_modules/@babylonjs/core/Collisions/pickingInfo.esm.js +0 -59
  97. package/dist/node_modules/@babylonjs/core/Compat/compatibilityOptions.esm.js +0 -6
  98. package/dist/node_modules/@babylonjs/core/Culling/boundingBox.esm.js +0 -174
  99. package/dist/node_modules/@babylonjs/core/Culling/boundingInfo.esm.js +0 -159
  100. package/dist/node_modules/@babylonjs/core/Culling/boundingSphere.esm.js +0 -114
  101. package/dist/node_modules/@babylonjs/core/DeviceInput/InputDevices/deviceEnums.esm.js +0 -37
  102. package/dist/node_modules/@babylonjs/core/DeviceInput/InputDevices/deviceSource.esm.js +0 -23
  103. package/dist/node_modules/@babylonjs/core/DeviceInput/InputDevices/deviceSourceManager.esm.js +0 -106
  104. package/dist/node_modules/@babylonjs/core/DeviceInput/eventFactory.esm.js +0 -118
  105. package/dist/node_modules/@babylonjs/core/DeviceInput/internalDeviceSourceManager.esm.js +0 -46
  106. package/dist/node_modules/@babylonjs/core/DeviceInput/nativeDeviceInputSystem.esm.js +0 -50
  107. package/dist/node_modules/@babylonjs/core/DeviceInput/webDeviceInputSystem.esm.js +0 -354
  108. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.alpha.esm.js +0 -101
  109. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.cubeTexture.esm.js +0 -103
  110. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.dynamicBuffer.esm.js +0 -11
  111. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.dynamicTexture.esm.js +0 -14
  112. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.multiRender.esm.js +0 -111
  113. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.rawTexture.esm.js +0 -109
  114. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.readTexture.esm.js +0 -76
  115. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.renderTarget.esm.js +0 -69
  116. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.renderTargetCube.esm.js +0 -15
  117. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.uniformBuffer.esm.js +0 -29
  118. package/dist/node_modules/@babylonjs/core/Engines/Extensions/engine.views.esm.js +0 -85
  119. package/dist/node_modules/@babylonjs/core/Engines/Processors/Expressions/Operators/shaderDefineAndOperator.esm.js +0 -9
  120. package/dist/node_modules/@babylonjs/core/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.esm.js +0 -36
  121. package/dist/node_modules/@babylonjs/core/Engines/Processors/Expressions/Operators/shaderDefineIsDefinedOperator.esm.js +0 -13
  122. package/dist/node_modules/@babylonjs/core/Engines/Processors/Expressions/Operators/shaderDefineOrOperator.esm.js +0 -9
  123. package/dist/node_modules/@babylonjs/core/Engines/Processors/Expressions/shaderDefineExpression.esm.js +0 -88
  124. package/dist/node_modules/@babylonjs/core/Engines/Processors/shaderCodeConditionNode.esm.js +0 -14
  125. package/dist/node_modules/@babylonjs/core/Engines/Processors/shaderCodeCursor.esm.js +0 -44
  126. package/dist/node_modules/@babylonjs/core/Engines/Processors/shaderCodeNode.esm.js +0 -31
  127. package/dist/node_modules/@babylonjs/core/Engines/Processors/shaderCodeTestNode.esm.js +0 -9
  128. package/dist/node_modules/@babylonjs/core/Engines/Processors/shaderProcessor.esm.js +0 -230
  129. package/dist/node_modules/@babylonjs/core/Engines/WebGL/webGL2ShaderProcessors.esm.js +0 -30
  130. package/dist/node_modules/@babylonjs/core/Engines/WebGL/webGLHardwareTexture.esm.js +0 -34
  131. package/dist/node_modules/@babylonjs/core/Engines/WebGL/webGLPipelineContext.esm.js +0 -388
  132. package/dist/node_modules/@babylonjs/core/Engines/WebGL/webGLRenderTargetWrapper.esm.js +0 -87
  133. package/dist/node_modules/@babylonjs/core/Engines/WebGL/webGLShaderProcessors.esm.js +0 -16
  134. package/dist/node_modules/@babylonjs/core/Engines/constants.esm.js +0 -254
  135. package/dist/node_modules/@babylonjs/core/Engines/engine.esm.js +0 -1120
  136. package/dist/node_modules/@babylonjs/core/Engines/engineStore.esm.js +0 -23
  137. package/dist/node_modules/@babylonjs/core/Engines/nullEngine.esm.js +0 -697
  138. package/dist/node_modules/@babylonjs/core/Engines/performanceConfigurator.esm.js +0 -22
  139. package/dist/node_modules/@babylonjs/core/Engines/renderTargetWrapper.esm.js +0 -273
  140. package/dist/node_modules/@babylonjs/core/Engines/shaderStore.esm.js +0 -36
  141. package/dist/node_modules/@babylonjs/core/Engines/thinEngine.esm.js +0 -2921
  142. package/dist/node_modules/@babylonjs/core/Events/deviceInputEvents.esm.js +0 -13
  143. package/dist/node_modules/@babylonjs/core/Events/keyboardEvents.esm.js +0 -41
  144. package/dist/node_modules/@babylonjs/core/Events/pointerEvents.esm.js +0 -63
  145. package/dist/node_modules/@babylonjs/core/Inputs/pointerPickingConfiguration.esm.js +0 -8
  146. package/dist/node_modules/@babylonjs/core/Inputs/scene.inputManager.esm.js +0 -418
  147. package/dist/node_modules/@babylonjs/core/Layers/effectLayer.esm.js +0 -437
  148. package/dist/node_modules/@babylonjs/core/Layers/effectLayerSceneComponent.esm.js +0 -141
  149. package/dist/node_modules/@babylonjs/core/Layers/glowLayer.esm.js +0 -343
  150. package/dist/node_modules/@babylonjs/core/Layers/highlightLayer.esm.js +0 -396
  151. package/dist/node_modules/@babylonjs/core/Lights/directionalLight.esm.js +0 -224
  152. package/dist/node_modules/@babylonjs/core/Lights/hemisphericLight.esm.js +0 -92
  153. package/dist/node_modules/@babylonjs/core/Lights/light.esm.js +0 -476
  154. package/dist/node_modules/@babylonjs/core/Lights/lightConstants.esm.js +0 -30
  155. package/dist/node_modules/@babylonjs/core/Lights/pointLight.esm.js +0 -153
  156. package/dist/node_modules/@babylonjs/core/Lights/shadowLight.esm.js +0 -196
  157. package/dist/node_modules/@babylonjs/core/Lights/spotLight.esm.js +0 -287
  158. package/dist/node_modules/@babylonjs/core/Loading/sceneLoader.esm.js +0 -551
  159. package/dist/node_modules/@babylonjs/core/Loading/sceneLoaderFlags.esm.js +0 -48
  160. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrAnisotropicConfiguration.esm.js +0 -112
  161. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrBRDFConfiguration.esm.js +0 -48
  162. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrBaseMaterial.esm.js +0 -568
  163. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrClearCoatConfiguration.esm.js +0 -139
  164. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrIridescenceConfiguration.esm.js +0 -97
  165. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrMaterial.esm.js +0 -496
  166. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrSheenConfiguration.esm.js +0 -106
  167. package/dist/node_modules/@babylonjs/core/Materials/PBR/pbrSubSurfaceConfiguration.esm.js +0 -270
  168. package/dist/node_modules/@babylonjs/core/Materials/Textures/Filtering/hdrFiltering.esm.js +0 -103
  169. package/dist/node_modules/@babylonjs/core/Materials/Textures/Loaders/ddsTextureLoader.esm.js +0 -53
  170. package/dist/node_modules/@babylonjs/core/Materials/Textures/Loaders/envTextureLoader.esm.js +0 -51
  171. package/dist/node_modules/@babylonjs/core/Materials/Textures/Loaders/ktxTextureLoader.esm.js +0 -81
  172. package/dist/node_modules/@babylonjs/core/Materials/Textures/baseTexture.esm.js +0 -542
  173. package/dist/node_modules/@babylonjs/core/Materials/Textures/baseTexture.polynomial.esm.js +0 -23
  174. package/dist/node_modules/@babylonjs/core/Materials/Textures/cubeTexture.esm.js +0 -244
  175. package/dist/node_modules/@babylonjs/core/Materials/Textures/dynamicTexture.esm.js +0 -134
  176. package/dist/node_modules/@babylonjs/core/Materials/Textures/equiRectangularCubeTexture.esm.js +0 -89
  177. package/dist/node_modules/@babylonjs/core/Materials/Textures/hdrCubeTexture.esm.js +0 -175
  178. package/dist/node_modules/@babylonjs/core/Materials/Textures/internalTexture.esm.js +0 -150
  179. package/dist/node_modules/@babylonjs/core/Materials/Textures/ktx2decoderTypes.esm.js +0 -17
  180. package/dist/node_modules/@babylonjs/core/Materials/Textures/mirrorTexture.esm.js +0 -138
  181. package/dist/node_modules/@babylonjs/core/Materials/Textures/multiRenderTarget.esm.js +0 -223
  182. package/dist/node_modules/@babylonjs/core/Materials/Textures/rawCubeTexture.esm.js +0 -58
  183. package/dist/node_modules/@babylonjs/core/Materials/Textures/rawTexture.esm.js +0 -156
  184. package/dist/node_modules/@babylonjs/core/Materials/Textures/rawTexture2DArray.esm.js +0 -53
  185. package/dist/node_modules/@babylonjs/core/Materials/Textures/renderTargetTexture.esm.js +0 -605
  186. package/dist/node_modules/@babylonjs/core/Materials/Textures/texture.esm.js +0 -421
  187. package/dist/node_modules/@babylonjs/core/Materials/Textures/textureSampler.esm.js +0 -101
  188. package/dist/node_modules/@babylonjs/core/Materials/Textures/thinTexture.esm.js +0 -170
  189. package/dist/node_modules/@babylonjs/core/Materials/clipPlaneMaterialHelper.esm.js +0 -28
  190. package/dist/node_modules/@babylonjs/core/Materials/colorCurves.esm.js +0 -397
  191. package/dist/node_modules/@babylonjs/core/Materials/drawWrapper.esm.js +0 -22
  192. package/dist/node_modules/@babylonjs/core/Materials/effect.esm.js +0 -890
  193. package/dist/node_modules/@babylonjs/core/Materials/effectFallbacks.esm.js +0 -73
  194. package/dist/node_modules/@babylonjs/core/Materials/effectRenderer.esm.js +0 -132
  195. package/dist/node_modules/@babylonjs/core/Materials/imageProcessingConfiguration.esm.js +0 -428
  196. package/dist/node_modules/@babylonjs/core/Materials/material.detailMapConfiguration.esm.js +0 -90
  197. package/dist/node_modules/@babylonjs/core/Materials/material.esm.js +0 -906
  198. package/dist/node_modules/@babylonjs/core/Materials/materialDefines.esm.js +0 -161
  199. package/dist/node_modules/@babylonjs/core/Materials/materialFlags.esm.js +0 -226
  200. package/dist/node_modules/@babylonjs/core/Materials/materialHelper.esm.js +0 -501
  201. package/dist/node_modules/@babylonjs/core/Materials/materialPluginBase.esm.js +0 -226
  202. package/dist/node_modules/@babylonjs/core/Materials/materialPluginEvent.esm.js +0 -7
  203. package/dist/node_modules/@babylonjs/core/Materials/materialPluginManager.esm.js +0 -212
  204. package/dist/node_modules/@babylonjs/core/Materials/materialStencilState.esm.js +0 -145
  205. package/dist/node_modules/@babylonjs/core/Materials/multiMaterial.esm.js +0 -164
  206. package/dist/node_modules/@babylonjs/core/Materials/prePassConfiguration.esm.js +0 -38
  207. package/dist/node_modules/@babylonjs/core/Materials/pushMaterial.esm.js +0 -48
  208. package/dist/node_modules/@babylonjs/core/Materials/shaderLanguage.esm.js +0 -7
  209. package/dist/node_modules/@babylonjs/core/Materials/shaderMaterial.esm.js +0 -838
  210. package/dist/node_modules/@babylonjs/core/Materials/standardMaterial.esm.js +0 -934
  211. package/dist/node_modules/@babylonjs/core/Materials/uniformBuffer.esm.js +0 -541
  212. package/dist/node_modules/@babylonjs/core/Maths/math.axis.esm.js +0 -19
  213. package/dist/node_modules/@babylonjs/core/Maths/math.color.esm.js +0 -903
  214. package/dist/node_modules/@babylonjs/core/Maths/math.constants.esm.js +0 -6
  215. package/dist/node_modules/@babylonjs/core/Maths/math.frustum.esm.js +0 -91
  216. package/dist/node_modules/@babylonjs/core/Maths/math.functions.esm.js +0 -43
  217. package/dist/node_modules/@babylonjs/core/Maths/math.path.esm.js +0 -9
  218. package/dist/node_modules/@babylonjs/core/Maths/math.plane.esm.js +0 -145
  219. package/dist/node_modules/@babylonjs/core/Maths/math.scalar.esm.js +0 -284
  220. package/dist/node_modules/@babylonjs/core/Maths/math.size.esm.js +0 -124
  221. package/dist/node_modules/@babylonjs/core/Maths/math.vector.esm.js +0 -4915
  222. package/dist/node_modules/@babylonjs/core/Maths/math.viewport.esm.js +0 -41
  223. package/dist/node_modules/@babylonjs/core/Maths/sphericalPolynomial.esm.js +0 -177
  224. package/dist/node_modules/@babylonjs/core/Meshes/Builders/boxBuilder.esm.js +0 -260
  225. package/dist/node_modules/@babylonjs/core/Meshes/Compression/dracoCompression.esm.js +0 -233
  226. package/dist/node_modules/@babylonjs/core/Meshes/Compression/meshoptCompression.esm.js +0 -47
  227. package/dist/node_modules/@babylonjs/core/Meshes/WebGL/webGLDataBuffer.esm.js +0 -12
  228. package/dist/node_modules/@babylonjs/core/Meshes/abstractMesh.esm.js +0 -1448
  229. package/dist/node_modules/@babylonjs/core/Meshes/geometry.esm.js +0 -729
  230. package/dist/node_modules/@babylonjs/core/Meshes/instancedMesh.esm.js +0 -455
  231. package/dist/node_modules/@babylonjs/core/Meshes/mesh.esm.js +0 -2526
  232. package/dist/node_modules/@babylonjs/core/Meshes/mesh.vertexData.esm.js +0 -865
  233. package/dist/node_modules/@babylonjs/core/Meshes/meshLODLevel.esm.js +0 -13
  234. package/dist/node_modules/@babylonjs/core/Meshes/subMesh.esm.js +0 -422
  235. package/dist/node_modules/@babylonjs/core/Meshes/thinInstanceMesh.esm.js +0 -129
  236. package/dist/node_modules/@babylonjs/core/Meshes/transformNode.esm.js +0 -796
  237. package/dist/node_modules/@babylonjs/core/Misc/HighDynamicRange/cubemapToSphericalPolynomial.esm.js +0 -111
  238. package/dist/node_modules/@babylonjs/core/Misc/HighDynamicRange/hdr.esm.js +0 -122
  239. package/dist/node_modules/@babylonjs/core/Misc/HighDynamicRange/panoramaToCubemap.esm.js +0 -78
  240. package/dist/node_modules/@babylonjs/core/Misc/andOrNotEvaluator.esm.js +0 -41
  241. package/dist/node_modules/@babylonjs/core/Misc/arrayTools.esm.js +0 -52
  242. package/dist/node_modules/@babylonjs/core/Misc/assetsManager.esm.js +0 -561
  243. package/dist/node_modules/@babylonjs/core/Misc/brdfTextureTools.esm.js +0 -31
  244. package/dist/node_modules/@babylonjs/core/Misc/copyTools.esm.js +0 -44
  245. package/dist/node_modules/@babylonjs/core/Misc/coroutine.esm.js +0 -53
  246. package/dist/node_modules/@babylonjs/core/Misc/dataReader.esm.js +0 -55
  247. package/dist/node_modules/@babylonjs/core/Misc/dds.esm.js +0 -329
  248. package/dist/node_modules/@babylonjs/core/Misc/decorators.esm.js +0 -332
  249. package/dist/node_modules/@babylonjs/core/Misc/deepCopier.esm.js +0 -52
  250. package/dist/node_modules/@babylonjs/core/Misc/deferred.esm.js +0 -25
  251. package/dist/node_modules/@babylonjs/core/Misc/devTools.esm.js +0 -6
  252. package/dist/node_modules/@babylonjs/core/Misc/domManagement.esm.js +0 -21
  253. package/dist/node_modules/@babylonjs/core/Misc/dumpTools.esm.js +0 -117
  254. package/dist/node_modules/@babylonjs/core/Misc/environmentTextureTools.esm.js +0 -187
  255. package/dist/node_modules/@babylonjs/core/Misc/error.esm.js +0 -40
  256. package/dist/node_modules/@babylonjs/core/Misc/fileTools.esm.js +0 -339
  257. package/dist/node_modules/@babylonjs/core/Misc/filesInputStore.esm.js +0 -6
  258. package/dist/node_modules/@babylonjs/core/Misc/guid.esm.js +0 -9
  259. package/dist/node_modules/@babylonjs/core/Misc/instantiationTools.esm.js +0 -26
  260. package/dist/node_modules/@babylonjs/core/Misc/khronosTextureContainer.esm.js +0 -79
  261. package/dist/node_modules/@babylonjs/core/Misc/khronosTextureContainer2.esm.js +0 -281
  262. package/dist/node_modules/@babylonjs/core/Misc/logger.esm.js +0 -77
  263. package/dist/node_modules/@babylonjs/core/Misc/observable.esm.js +0 -231
  264. package/dist/node_modules/@babylonjs/core/Misc/perfCounter.esm.js +0 -99
  265. package/dist/node_modules/@babylonjs/core/Misc/performanceMonitor.esm.js +0 -144
  266. package/dist/node_modules/@babylonjs/core/Misc/precisionDate.esm.js +0 -12
  267. package/dist/node_modules/@babylonjs/core/Misc/retryStrategy.esm.js +0 -14
  268. package/dist/node_modules/@babylonjs/core/Misc/rgbdTextureTools.esm.js +0 -51
  269. package/dist/node_modules/@babylonjs/core/Misc/screenshotTools.esm.js +0 -92
  270. package/dist/node_modules/@babylonjs/core/Misc/smartArray.esm.js +0 -118
  271. package/dist/node_modules/@babylonjs/core/Misc/stringDictionary.esm.js +0 -129
  272. package/dist/node_modules/@babylonjs/core/Misc/stringTools.esm.js +0 -26
  273. package/dist/node_modules/@babylonjs/core/Misc/tags.esm.js +0 -97
  274. package/dist/node_modules/@babylonjs/core/Misc/textureTools.esm.js +0 -41
  275. package/dist/node_modules/@babylonjs/core/Misc/timingTools.esm.js +0 -13
  276. package/dist/node_modules/@babylonjs/core/Misc/tools.esm.js +0 -929
  277. package/dist/node_modules/@babylonjs/core/Misc/typeStore.esm.js +0 -11
  278. package/dist/node_modules/@babylonjs/core/Misc/uniqueIdGenerator.esm.js +0 -13
  279. package/dist/node_modules/@babylonjs/core/Misc/webRequest.esm.js +0 -135
  280. package/dist/node_modules/@babylonjs/core/Misc/workerPool.esm.js +0 -80
  281. package/dist/node_modules/@babylonjs/core/Morph/morphTarget.esm.js +0 -187
  282. package/dist/node_modules/@babylonjs/core/Morph/morphTargetManager.esm.js +0 -249
  283. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.esm.js +0 -349
  284. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.esm.js +0 -306
  285. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.esm.js +0 -161
  286. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.esm.js +0 -589
  287. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.esm.js +0 -512
  288. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderEffect.esm.js +0 -114
  289. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipeline.esm.js +0 -139
  290. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManager.esm.js +0 -99
  291. package/dist/node_modules/@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.esm.js +0 -48
  292. package/dist/node_modules/@babylonjs/core/PostProcesses/bloomEffect.esm.js +0 -76
  293. package/dist/node_modules/@babylonjs/core/PostProcesses/bloomMergePostProcess.esm.js +0 -40
  294. package/dist/node_modules/@babylonjs/core/PostProcesses/blurPostProcess.esm.js +0 -165
  295. package/dist/node_modules/@babylonjs/core/PostProcesses/chromaticAberrationPostProcess.esm.js +0 -61
  296. package/dist/node_modules/@babylonjs/core/PostProcesses/circleOfConfusionPostProcess.esm.js +0 -62
  297. package/dist/node_modules/@babylonjs/core/PostProcesses/depthOfFieldBlurPostProcess.esm.js +0 -58
  298. package/dist/node_modules/@babylonjs/core/PostProcesses/depthOfFieldEffect.esm.js +0 -131
  299. package/dist/node_modules/@babylonjs/core/PostProcesses/depthOfFieldMergePostProcess.esm.js +0 -48
  300. package/dist/node_modules/@babylonjs/core/PostProcesses/extractHighlightsPostProcess.esm.js +0 -27
  301. package/dist/node_modules/@babylonjs/core/PostProcesses/fxaaPostProcess.esm.js +0 -41
  302. package/dist/node_modules/@babylonjs/core/PostProcesses/grainPostProcess.esm.js +0 -46
  303. package/dist/node_modules/@babylonjs/core/PostProcesses/imageProcessingPostProcess.esm.js +0 -359
  304. package/dist/node_modules/@babylonjs/core/PostProcesses/motionBlurPostProcess.esm.js +0 -178
  305. package/dist/node_modules/@babylonjs/core/PostProcesses/passPostProcess.esm.js +0 -40
  306. package/dist/node_modules/@babylonjs/core/PostProcesses/postProcess.esm.js +0 -457
  307. package/dist/node_modules/@babylonjs/core/PostProcesses/postProcessManager.esm.js +0 -94
  308. package/dist/node_modules/@babylonjs/core/PostProcesses/screenSpaceReflectionPostProcess.esm.js +0 -147
  309. package/dist/node_modules/@babylonjs/core/PostProcesses/sharpenPostProcess.esm.js +0 -46
  310. package/dist/node_modules/@babylonjs/core/Probes/reflectionProbe.esm.js +0 -184
  311. package/dist/node_modules/@babylonjs/core/Rendering/boundingBoxRenderer.esm.js +0 -170
  312. package/dist/node_modules/@babylonjs/core/Rendering/depthRenderer.esm.js +0 -185
  313. package/dist/node_modules/@babylonjs/core/Rendering/depthRendererSceneComponent.esm.js +0 -65
  314. package/dist/node_modules/@babylonjs/core/Rendering/geometryBufferRenderer.esm.js +0 -353
  315. package/dist/node_modules/@babylonjs/core/Rendering/geometryBufferRendererSceneComponent.esm.js +0 -55
  316. package/dist/node_modules/@babylonjs/core/Rendering/motionBlurConfiguration.esm.js +0 -8
  317. package/dist/node_modules/@babylonjs/core/Rendering/renderingGroup.esm.js +0 -223
  318. package/dist/node_modules/@babylonjs/core/Rendering/renderingManager.esm.js +0 -185
  319. package/dist/node_modules/@babylonjs/core/Rendering/screenSpaceReflections2Configuration.esm.js +0 -8
  320. package/dist/node_modules/@babylonjs/core/Rendering/screenSpaceReflectionsConfiguration.esm.js +0 -8
  321. package/dist/node_modules/@babylonjs/core/Rendering/ssao2Configuration.esm.js +0 -8
  322. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bakedVertexAnimation.esm.js +0 -48
  323. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bakedVertexAnimationDeclaration.esm.js +0 -24
  324. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bonesDeclaration.esm.js +0 -35
  325. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bonesVertex.esm.js +0 -56
  326. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/boundingBoxRendererFragmentDeclaration.esm.js +0 -4
  327. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/boundingBoxRendererUboDeclaration.esm.js +0 -19
  328. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/boundingBoxRendererVertexDeclaration.esm.js +0 -8
  329. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bumpFragment.esm.js +0 -67
  330. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bumpFragmentFunctions.esm.js +0 -58
  331. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bumpFragmentMainFunctions.esm.js +0 -93
  332. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bumpVertex.esm.js +0 -11
  333. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/bumpVertexDeclaration.esm.js +0 -8
  334. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/clipPlaneFragment.esm.js +0 -42
  335. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/clipPlaneFragmentDeclaration.esm.js +0 -21
  336. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/clipPlaneVertex.esm.js +0 -21
  337. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/clipPlaneVertexDeclaration.esm.js +0 -27
  338. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/decalFragment.esm.js +0 -12
  339. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/decalFragmentDeclaration.esm.js +0 -6
  340. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/decalVertexDeclaration.esm.js +0 -7
  341. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/defaultFragmentDeclaration.esm.js +0 -86
  342. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/defaultUboDeclaration.esm.js +0 -50
  343. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/defaultVertexDeclaration.esm.js +0 -46
  344. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/depthPrePass.esm.js +0 -7
  345. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/fogFragment.esm.js +0 -10
  346. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/fogFragmentDeclaration.esm.js +0 -34
  347. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/fogVertex.esm.js +0 -6
  348. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/fogVertexDeclaration.esm.js +0 -6
  349. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/fresnelFunction.esm.js +0 -10
  350. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/geometryUboDeclaration.esm.js +0 -5
  351. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/geometryVertexDeclaration.esm.js +0 -4
  352. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/harmonicsFunctions.esm.js +0 -42
  353. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/hdrFilteringFunctions.esm.js +0 -139
  354. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/helperFunctions.esm.js +0 -166
  355. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/imageProcessingDeclaration.esm.js +0 -32
  356. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/imageProcessingFunctions.esm.js +0 -129
  357. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/importanceSampling.esm.js +0 -22
  358. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/instancesDeclaration.esm.js +0 -31
  359. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/instancesVertex.esm.js +0 -20
  360. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/kernelBlurFragment.esm.js +0 -15
  361. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/kernelBlurFragment2.esm.js +0 -15
  362. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/kernelBlurVaryingDeclaration.esm.js +0 -3
  363. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/kernelBlurVertex.esm.js +0 -3
  364. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightFragment.esm.js +0 -278
  365. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightFragmentDeclaration.esm.js +0 -82
  366. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightUboDeclaration.esm.js +0 -81
  367. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightVxFragmentDeclaration.esm.js +0 -35
  368. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightVxUboDeclaration.esm.js +0 -34
  369. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/lightsFragmentFunctions.esm.js +0 -93
  370. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/logDepthDeclaration.esm.js +0 -7
  371. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/logDepthFragment.esm.js +0 -6
  372. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/logDepthVertex.esm.js +0 -7
  373. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/mainUVVaryingDeclaration.esm.js +0 -6
  374. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/meshUboDeclaration.esm.js +0 -15
  375. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/morphTargetsVertex.esm.js +0 -32
  376. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/morphTargetsVertexDeclaration.esm.js +0 -17
  377. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/morphTargetsVertexGlobal.esm.js +0 -8
  378. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/morphTargetsVertexGlobalDeclaration.esm.js +0 -19
  379. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/mrtFragmentDeclaration.esm.js +0 -6
  380. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/oitDeclaration.esm.js +0 -13
  381. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/oitFragment.esm.js +0 -40
  382. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/packingFunctions.esm.js +0 -15
  383. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBRDFFunctions.esm.js +0 -268
  384. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.esm.js +0 -83
  385. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockAlphaFresnel.esm.js +0 -37
  386. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockAmbientOcclusion.esm.js +0 -32
  387. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockAnisotropic.esm.js +0 -50
  388. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockClearcoat.esm.js +0 -276
  389. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockDirectLighting.esm.js +0 -19
  390. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockFinalColorComposition.esm.js +0 -45
  391. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockFinalLitComponents.esm.js +0 -100
  392. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockFinalUnlitComponents.esm.js +0 -27
  393. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockGeometryInfo.esm.js +0 -30
  394. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockImageProcessing.esm.js +0 -14
  395. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockIridescence.esm.js +0 -63
  396. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockLightmapInit.esm.js +0 -13
  397. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockNormalFinal.esm.js +0 -13
  398. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockNormalGeometric.esm.js +0 -13
  399. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockReflectance.esm.js +0 -24
  400. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockReflectance0.esm.js +0 -14
  401. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockReflection.esm.js +0 -270
  402. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockReflectivity.esm.js +0 -131
  403. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockSheen.esm.js +0 -197
  404. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrBlockSubSurface.esm.js +0 -337
  405. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrDebug.esm.js +0 -176
  406. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrDirectLightingFalloffFunctions.esm.js +0 -64
  407. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrDirectLightingFunctions.esm.js +0 -130
  408. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrDirectLightingSetupFunctions.esm.js +0 -53
  409. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrFragmentDeclaration.esm.js +0 -179
  410. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrFragmentExtraDeclaration.esm.js +0 -18
  411. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.esm.js +0 -101
  412. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrHelperFunctions.esm.js +0 -83
  413. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrIBLFunctions.esm.js +0 -35
  414. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrUboDeclaration.esm.js +0 -65
  415. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pbrVertexDeclaration.esm.js +0 -151
  416. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/pointCloudVertex.esm.js +0 -6
  417. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/prePassDeclaration.esm.js +0 -13
  418. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/prePassVertex.esm.js +0 -37
  419. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/prePassVertexDeclaration.esm.js +0 -13
  420. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/reflectionFunction.esm.js +0 -116
  421. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/samplerFragmentAlternateDeclaration.esm.js +0 -20
  422. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/samplerFragmentDeclaration.esm.js +0 -21
  423. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/samplerVertexDeclaration.esm.js +0 -6
  424. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/samplerVertexImplementation.esm.js +0 -39
  425. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/sceneUboDeclaration.esm.js +0 -13
  426. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/screenSpaceRayTrace.esm.js +0 -208
  427. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/shadowsFragmentFunctions.esm.js +0 -614
  428. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/shadowsVertex.esm.js +0 -23
  429. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/subSurfaceScatteringFunctions.esm.js +0 -6
  430. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/uvAttributeDeclaration.esm.js +0 -6
  431. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/uvVariableDeclaration.esm.js +0 -9
  432. package/dist/node_modules/@babylonjs/core/Shaders/ShadersInclude/vertexColorMixing.esm.js +0 -16
  433. package/dist/node_modules/@babylonjs/core/Shaders/bloomMerge.fragment.esm.js +0 -14
  434. package/dist/node_modules/@babylonjs/core/Shaders/boundingBoxRenderer.fragment.esm.js +0 -11
  435. package/dist/node_modules/@babylonjs/core/Shaders/boundingBoxRenderer.vertex.esm.js +0 -22
  436. package/dist/node_modules/@babylonjs/core/Shaders/chromaticAberration.fragment.esm.js +0 -34
  437. package/dist/node_modules/@babylonjs/core/Shaders/circleOfConfusion.fragment.esm.js +0 -19
  438. package/dist/node_modules/@babylonjs/core/Shaders/default.fragment.esm.js +0 -387
  439. package/dist/node_modules/@babylonjs/core/Shaders/default.vertex.esm.js +0 -171
  440. package/dist/node_modules/@babylonjs/core/Shaders/depth.fragment.esm.js +0 -47
  441. package/dist/node_modules/@babylonjs/core/Shaders/depth.vertex.esm.js +0 -72
  442. package/dist/node_modules/@babylonjs/core/Shaders/depthOfField.fragment.esm.js +0 -137
  443. package/dist/node_modules/@babylonjs/core/Shaders/depthOfFieldMerge.fragment.esm.js +0 -54
  444. package/dist/node_modules/@babylonjs/core/Shaders/extractHighlights.fragment.esm.js +0 -15
  445. package/dist/node_modules/@babylonjs/core/Shaders/fxaa.fragment.esm.js +0 -211
  446. package/dist/node_modules/@babylonjs/core/Shaders/fxaa.vertex.esm.js +0 -29
  447. package/dist/node_modules/@babylonjs/core/Shaders/geometry.fragment.esm.js +0 -147
  448. package/dist/node_modules/@babylonjs/core/Shaders/geometry.vertex.esm.js +0 -164
  449. package/dist/node_modules/@babylonjs/core/Shaders/glowBlurPostProcess.fragment.esm.js +0 -39
  450. package/dist/node_modules/@babylonjs/core/Shaders/glowMapGeneration.fragment.esm.js +0 -73
  451. package/dist/node_modules/@babylonjs/core/Shaders/glowMapGeneration.vertex.esm.js +0 -94
  452. package/dist/node_modules/@babylonjs/core/Shaders/glowMapMerge.fragment.esm.js +0 -29
  453. package/dist/node_modules/@babylonjs/core/Shaders/glowMapMerge.vertex.esm.js +0 -12
  454. package/dist/node_modules/@babylonjs/core/Shaders/grain.fragment.esm.js +0 -19
  455. package/dist/node_modules/@babylonjs/core/Shaders/hdrFiltering.fragment.esm.js +0 -19
  456. package/dist/node_modules/@babylonjs/core/Shaders/hdrFiltering.vertex.esm.js +0 -15
  457. package/dist/node_modules/@babylonjs/core/Shaders/imageProcessing.fragment.esm.js +0 -26
  458. package/dist/node_modules/@babylonjs/core/Shaders/kernelBlur.fragment.esm.js +0 -49
  459. package/dist/node_modules/@babylonjs/core/Shaders/kernelBlur.vertex.esm.js +0 -17
  460. package/dist/node_modules/@babylonjs/core/Shaders/lensHighlights.fragment.esm.js +0 -115
  461. package/dist/node_modules/@babylonjs/core/Shaders/motionBlur.fragment.esm.js +0 -74
  462. package/dist/node_modules/@babylonjs/core/Shaders/pass.fragment.esm.js +0 -13
  463. package/dist/node_modules/@babylonjs/core/Shaders/passCube.fragment.esm.js +0 -27
  464. package/dist/node_modules/@babylonjs/core/Shaders/pbr.fragment.esm.js +0 -648
  465. package/dist/node_modules/@babylonjs/core/Shaders/pbr.vertex.esm.js +0 -236
  466. package/dist/node_modules/@babylonjs/core/Shaders/postprocess.vertex.esm.js +0 -13
  467. package/dist/node_modules/@babylonjs/core/Shaders/rgbdDecode.fragment.esm.js +0 -11
  468. package/dist/node_modules/@babylonjs/core/Shaders/rgbdEncode.fragment.esm.js +0 -11
  469. package/dist/node_modules/@babylonjs/core/Shaders/screenSpaceReflection.fragment.esm.js +0 -136
  470. package/dist/node_modules/@babylonjs/core/Shaders/screenSpaceReflection2.fragment.esm.js +0 -215
  471. package/dist/node_modules/@babylonjs/core/Shaders/screenSpaceReflection2Blur.fragment.esm.js +0 -52
  472. package/dist/node_modules/@babylonjs/core/Shaders/screenSpaceReflection2BlurCombiner.fragment.esm.js +0 -59
  473. package/dist/node_modules/@babylonjs/core/Shaders/sharpen.fragment.esm.js +0 -18
  474. package/dist/node_modules/@babylonjs/core/Shaders/ssao.fragment.esm.js +0 -55
  475. package/dist/node_modules/@babylonjs/core/Shaders/ssao2.fragment.esm.js +0 -165
  476. package/dist/node_modules/@babylonjs/core/Shaders/ssaoCombine.fragment.esm.js +0 -15
  477. package/dist/node_modules/@babylonjs/core/Shaders/standard.fragment.esm.js +0 -339
  478. package/dist/node_modules/@babylonjs/core/States/alphaCullingState.esm.js +0 -35
  479. package/dist/node_modules/@babylonjs/core/States/depthCullingState.esm.js +0 -69
  480. package/dist/node_modules/@babylonjs/core/States/stencilState.esm.js +0 -62
  481. package/dist/node_modules/@babylonjs/core/States/stencilStateComposer.esm.js +0 -70
  482. package/dist/node_modules/@babylonjs/core/abstractScene.esm.js +0 -71
  483. package/dist/node_modules/@babylonjs/core/assetContainer.esm.js +0 -425
  484. package/dist/node_modules/@babylonjs/core/node.esm.js +0 -536
  485. package/dist/node_modules/@babylonjs/core/scene.esm.js +0 -2809
  486. package/dist/node_modules/@babylonjs/core/sceneComponent.esm.js +0 -102
  487. package/dist/node_modules/@babylonjs/core/tslib.es6.esm.js +0 -12
  488. package/dist/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.esm.js +0 -37
  489. package/dist/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.esm.js +0 -902
  490. package/dist/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.esm.js +0 -42
  491. package/dist/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.esm.js +0 -195
  492. package/dist/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.esm.js +0 -75
  493. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.esm.js +0 -77
  494. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.esm.js +0 -53
  495. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.esm.js +0 -31
  496. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.esm.js +0 -29
  497. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.esm.js +0 -47
  498. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.esm.js +0 -173
  499. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.esm.js +0 -82
  500. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.esm.js +0 -68
  501. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.esm.js +0 -60
  502. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.esm.js +0 -39
  503. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.esm.js +0 -42
  504. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.esm.js +0 -32
  505. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.esm.js +0 -35
  506. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.esm.js +0 -41
  507. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.esm.js +0 -41
  508. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.esm.js +0 -41
  509. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.esm.js +0 -41
  510. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_translucency.esm.js +0 -41
  511. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.esm.js +0 -136
  512. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.esm.js +0 -37
  513. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.esm.js +0 -178
  514. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.esm.js +0 -40
  515. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.esm.js +0 -17
  516. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.esm.js +0 -29
  517. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.esm.js +0 -29
  518. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.esm.js +0 -31
  519. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.esm.js +0 -149
  520. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.esm.js +0 -170
  521. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.esm.js +0 -29
  522. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.esm.js +0 -29
  523. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.esm.js +0 -1562
  524. package/dist/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.esm.js +0 -66
  525. package/dist/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.esm.js +0 -462
  526. package/dist/node_modules/@babylonjs/loaders/glTF/glTFValidation.esm.js +0 -81
@@ -1,865 +0,0 @@
1
- import { __decorate as X } from "../tslib.es6.esm.js";
2
- import { TmpVectors as F, Vector3 as _, Vector4 as j } from "../Maths/math.vector.esm.js";
3
- import { VertexBuffer as n } from "../Buffers/buffer.esm.js";
4
- import { _WarnImport as E } from "../Misc/devTools.esm.js";
5
- import { Color4 as ci } from "../Maths/math.color.esm.js";
6
- import { Logger as li } from "../Misc/logger.esm.js";
7
- import { nativeOverride as Y } from "../Misc/decorators.esm.js";
8
- import { makeSyncFunction as fi, runCoroutineSync as hi } from "../Misc/coroutine.esm.js";
9
- import { RuntimeError as oi, ErrorCodes as di } from "../Misc/error.esm.js";
10
- class h {
11
- constructor() {
12
- this._applyTo = fi(this._applyToCoroutine.bind(this));
13
- }
14
- /**
15
- * Uses the passed data array to set the set the values for the specified kind of data
16
- * @param data a linear array of floating numbers
17
- * @param kind the type of data that is being set, eg positions, colors etc
18
- */
19
- set(i, e) {
20
- switch (i.length || li.Warn(`Setting vertex data kind '${e}' with an empty array`), e) {
21
- case n.PositionKind:
22
- this.positions = i;
23
- break;
24
- case n.NormalKind:
25
- this.normals = i;
26
- break;
27
- case n.TangentKind:
28
- this.tangents = i;
29
- break;
30
- case n.UVKind:
31
- this.uvs = i;
32
- break;
33
- case n.UV2Kind:
34
- this.uvs2 = i;
35
- break;
36
- case n.UV3Kind:
37
- this.uvs3 = i;
38
- break;
39
- case n.UV4Kind:
40
- this.uvs4 = i;
41
- break;
42
- case n.UV5Kind:
43
- this.uvs5 = i;
44
- break;
45
- case n.UV6Kind:
46
- this.uvs6 = i;
47
- break;
48
- case n.ColorKind:
49
- this.colors = i;
50
- break;
51
- case n.MatricesIndicesKind:
52
- this.matricesIndices = i;
53
- break;
54
- case n.MatricesWeightsKind:
55
- this.matricesWeights = i;
56
- break;
57
- case n.MatricesIndicesExtraKind:
58
- this.matricesIndicesExtra = i;
59
- break;
60
- case n.MatricesWeightsExtraKind:
61
- this.matricesWeightsExtra = i;
62
- break;
63
- }
64
- }
65
- /**
66
- * Associates the vertexData to the passed Mesh.
67
- * Sets it as updatable or not (default `false`)
68
- * @param mesh the mesh the vertexData is applied to
69
- * @param updatable when used and having the value true allows new data to update the vertexData
70
- * @returns the VertexData
71
- */
72
- applyToMesh(i, e) {
73
- return this._applyTo(i, e, !1), this;
74
- }
75
- /**
76
- * Associates the vertexData to the passed Geometry.
77
- * Sets it as updatable or not (default `false`)
78
- * @param geometry the geometry the vertexData is applied to
79
- * @param updatable when used and having the value true allows new data to update the vertexData
80
- * @returns VertexData
81
- */
82
- applyToGeometry(i, e) {
83
- return this._applyTo(i, e, !1), this;
84
- }
85
- /**
86
- * Updates the associated mesh
87
- * @param mesh the mesh to be updated
88
- * @returns VertexData
89
- */
90
- updateMesh(i) {
91
- return this._update(i), this;
92
- }
93
- /**
94
- * Updates the associated geometry
95
- * @param geometry the geometry to be updated
96
- * @returns VertexData.
97
- */
98
- updateGeometry(i) {
99
- return this._update(i), this;
100
- }
101
- /**
102
- * @internal
103
- */
104
- *_applyToCoroutine(i, e = !1, s) {
105
- return this.positions && (i.setVerticesData(n.PositionKind, this.positions, e), s && (yield)), this.normals && (i.setVerticesData(n.NormalKind, this.normals, e), s && (yield)), this.tangents && (i.setVerticesData(n.TangentKind, this.tangents, e), s && (yield)), this.uvs && (i.setVerticesData(n.UVKind, this.uvs, e), s && (yield)), this.uvs2 && (i.setVerticesData(n.UV2Kind, this.uvs2, e), s && (yield)), this.uvs3 && (i.setVerticesData(n.UV3Kind, this.uvs3, e), s && (yield)), this.uvs4 && (i.setVerticesData(n.UV4Kind, this.uvs4, e), s && (yield)), this.uvs5 && (i.setVerticesData(n.UV5Kind, this.uvs5, e), s && (yield)), this.uvs6 && (i.setVerticesData(n.UV6Kind, this.uvs6, e), s && (yield)), this.colors && (i.setVerticesData(n.ColorKind, this.colors, e), s && (yield)), this.matricesIndices && (i.setVerticesData(n.MatricesIndicesKind, this.matricesIndices, e), s && (yield)), this.matricesWeights && (i.setVerticesData(n.MatricesWeightsKind, this.matricesWeights, e), s && (yield)), this.matricesIndicesExtra && (i.setVerticesData(n.MatricesIndicesExtraKind, this.matricesIndicesExtra, e), s && (yield)), this.matricesWeightsExtra && (i.setVerticesData(n.MatricesWeightsExtraKind, this.matricesWeightsExtra, e), s && (yield)), this.indices ? (i.setIndices(this.indices, null, e), s && (yield)) : i.setIndices([], null), this;
106
- }
107
- _update(i, e, s) {
108
- return this.positions && i.updateVerticesData(n.PositionKind, this.positions, e, s), this.normals && i.updateVerticesData(n.NormalKind, this.normals, e, s), this.tangents && i.updateVerticesData(n.TangentKind, this.tangents, e, s), this.uvs && i.updateVerticesData(n.UVKind, this.uvs, e, s), this.uvs2 && i.updateVerticesData(n.UV2Kind, this.uvs2, e, s), this.uvs3 && i.updateVerticesData(n.UV3Kind, this.uvs3, e, s), this.uvs4 && i.updateVerticesData(n.UV4Kind, this.uvs4, e, s), this.uvs5 && i.updateVerticesData(n.UV5Kind, this.uvs5, e, s), this.uvs6 && i.updateVerticesData(n.UV6Kind, this.uvs6, e, s), this.colors && i.updateVerticesData(n.ColorKind, this.colors, e, s), this.matricesIndices && i.updateVerticesData(n.MatricesIndicesKind, this.matricesIndices, e, s), this.matricesWeights && i.updateVerticesData(n.MatricesWeightsKind, this.matricesWeights, e, s), this.matricesIndicesExtra && i.updateVerticesData(n.MatricesIndicesExtraKind, this.matricesIndicesExtra, e, s), this.matricesWeightsExtra && i.updateVerticesData(n.MatricesWeightsExtraKind, this.matricesWeightsExtra, e, s), this.indices && i.setIndices(this.indices, null), this;
109
- }
110
- static _TransformVector3Coordinates(i, e, s = 0, t = i.length) {
111
- const a = F.Vector3[0], l = F.Vector3[1];
112
- for (let c = s; c < s + t; c += 3)
113
- _.FromArrayToRef(i, c, a), _.TransformCoordinatesToRef(a, e, l), i[c] = l.x, i[c + 1] = l.y, i[c + 2] = l.z;
114
- }
115
- static _TransformVector3Normals(i, e, s = 0, t = i.length) {
116
- const a = F.Vector3[0], l = F.Vector3[1];
117
- for (let c = s; c < s + t; c += 3)
118
- _.FromArrayToRef(i, c, a), _.TransformNormalToRef(a, e, l), i[c] = l.x, i[c + 1] = l.y, i[c + 2] = l.z;
119
- }
120
- static _TransformVector4Normals(i, e, s = 0, t = i.length) {
121
- const a = F.Vector4[0], l = F.Vector4[1];
122
- for (let c = s; c < s + t; c += 4)
123
- j.FromArrayToRef(i, c, a), j.TransformNormalToRef(a, e, l), i[c] = l.x, i[c + 1] = l.y, i[c + 2] = l.z, i[c + 3] = l.w;
124
- }
125
- static _FlipFaces(i, e = 0, s = i.length) {
126
- for (let t = e; t < e + s; t += 3) {
127
- const a = i[t + 1];
128
- i[t + 1] = i[t + 2], i[t + 2] = a;
129
- }
130
- }
131
- /**
132
- * Transforms each position and each normal of the vertexData according to the passed Matrix
133
- * @param matrix the transforming matrix
134
- * @returns the VertexData
135
- */
136
- transform(i) {
137
- const e = i.determinant() < 0;
138
- return this.positions && h._TransformVector3Coordinates(this.positions, i), this.normals && h._TransformVector3Normals(this.normals, i), this.tangents && h._TransformVector4Normals(this.tangents, i), e && this.indices && h._FlipFaces(this.indices), this;
139
- }
140
- /**
141
- * Merges the passed VertexData into the current one
142
- * @param others the VertexData to be merged into the current one
143
- * @param use32BitsIndices defines a boolean indicating if indices must be store in a 32 bits array
144
- * @param forceCloneIndices defines a boolean indicating if indices are forced to be cloned
145
- * @returns the modified VertexData
146
- */
147
- merge(i, e = !1, s = !1) {
148
- const t = Array.isArray(i) ? i.map((a) => ({ vertexData: a })) : [{ vertexData: i }];
149
- return hi(this._mergeCoroutine(void 0, t, e, !1, s));
150
- }
151
- /**
152
- * @internal
153
- */
154
- *_mergeCoroutine(i, e, s = !1, t, a) {
155
- var l, c, u, K;
156
- this._validate();
157
- const f = e.map((r) => r.vertexData);
158
- for (const r of f)
159
- if (r._validate(), !this.normals != !r.normals || !this.tangents != !r.tangents || !this.uvs != !r.uvs || !this.uvs2 != !r.uvs2 || !this.uvs3 != !r.uvs3 || !this.uvs4 != !r.uvs4 || !this.uvs5 != !r.uvs5 || !this.uvs6 != !r.uvs6 || !this.colors != !r.colors || !this.matricesIndices != !r.matricesIndices || !this.matricesWeights != !r.matricesWeights || !this.matricesIndicesExtra != !r.matricesIndicesExtra || !this.matricesWeightsExtra != !r.matricesWeightsExtra)
160
- throw new Error("Cannot merge vertex data that do not have the same set of attributes");
161
- const g = f.reduce((r, o) => {
162
- var v, I;
163
- return r + ((I = (v = o.indices) === null || v === void 0 ? void 0 : v.length) !== null && I !== void 0 ? I : 0);
164
- }, (c = (l = this.indices) === null || l === void 0 ? void 0 : l.length) !== null && c !== void 0 ? c : 0);
165
- let d = a || f.some((r) => r.indices === this.indices) ? (u = this.indices) === null || u === void 0 ? void 0 : u.slice() : this.indices;
166
- if (g > 0) {
167
- let r = (K = d == null ? void 0 : d.length) !== null && K !== void 0 ? K : 0;
168
- if (d || (d = new Array(g)), d.length !== g) {
169
- if (Array.isArray(d))
170
- d.length = g;
171
- else {
172
- const v = s || d instanceof Uint32Array ? new Uint32Array(g) : new Uint16Array(g);
173
- v.set(d), d = v;
174
- }
175
- i && i.determinant() < 0 && h._FlipFaces(d, 0, r);
176
- }
177
- let o = this.positions ? this.positions.length / 3 : 0;
178
- for (const { vertexData: v, transform: I } of e)
179
- if (v.indices) {
180
- for (let M = 0; M < v.indices.length; M++)
181
- d[r + M] = v.indices[M] + o;
182
- I && I.determinant() < 0 && h._FlipFaces(d, r, v.indices.length), o += v.positions.length / 3, r += v.indices.length, t && (yield);
183
- }
184
- }
185
- return this.indices = d, this.positions = h._MergeElement(n.PositionKind, this.positions, i, e.map((r) => [r.vertexData.positions, r.transform])), t && (yield), this.normals = h._MergeElement(n.NormalKind, this.normals, i, e.map((r) => [r.vertexData.normals, r.transform])), t && (yield), this.tangents = h._MergeElement(n.TangentKind, this.tangents, i, e.map((r) => [r.vertexData.tangents, r.transform])), t && (yield), this.uvs = h._MergeElement(n.UVKind, this.uvs, i, e.map((r) => [r.vertexData.uvs, r.transform])), t && (yield), this.uvs2 = h._MergeElement(n.UV2Kind, this.uvs2, i, e.map((r) => [r.vertexData.uvs2, r.transform])), t && (yield), this.uvs3 = h._MergeElement(n.UV3Kind, this.uvs3, i, e.map((r) => [r.vertexData.uvs3, r.transform])), t && (yield), this.uvs4 = h._MergeElement(n.UV4Kind, this.uvs4, i, e.map((r) => [r.vertexData.uvs4, r.transform])), t && (yield), this.uvs5 = h._MergeElement(n.UV5Kind, this.uvs5, i, e.map((r) => [r.vertexData.uvs5, r.transform])), t && (yield), this.uvs6 = h._MergeElement(n.UV6Kind, this.uvs6, i, e.map((r) => [r.vertexData.uvs6, r.transform])), t && (yield), this.colors = h._MergeElement(n.ColorKind, this.colors, i, e.map((r) => [r.vertexData.colors, r.transform])), t && (yield), this.matricesIndices = h._MergeElement(n.MatricesIndicesKind, this.matricesIndices, i, e.map((r) => [r.vertexData.matricesIndices, r.transform])), t && (yield), this.matricesWeights = h._MergeElement(n.MatricesWeightsKind, this.matricesWeights, i, e.map((r) => [r.vertexData.matricesWeights, r.transform])), t && (yield), this.matricesIndicesExtra = h._MergeElement(n.MatricesIndicesExtraKind, this.matricesIndicesExtra, i, e.map((r) => [r.vertexData.matricesIndicesExtra, r.transform])), t && (yield), this.matricesWeightsExtra = h._MergeElement(n.MatricesWeightsExtraKind, this.matricesWeightsExtra, i, e.map((r) => [r.vertexData.matricesWeightsExtra, r.transform])), this;
186
- }
187
- static _MergeElement(i, e, s, t) {
188
- const a = t.filter((u) => u[0] !== null && u[0] !== void 0);
189
- if (!e && a.length == 0)
190
- return e;
191
- if (!e)
192
- return this._MergeElement(i, a[0][0], a[0][1], a.slice(1));
193
- const l = a.reduce((u, K) => u + K[0].length, e.length), c = i === n.PositionKind ? h._TransformVector3Coordinates : i === n.NormalKind ? h._TransformVector3Normals : i === n.TangentKind ? h._TransformVector4Normals : () => {
194
- };
195
- if (e instanceof Float32Array) {
196
- const u = new Float32Array(l);
197
- u.set(e), s && c(u, s, 0, e.length);
198
- let K = e.length;
199
- for (const [f, g] of a)
200
- u.set(f, K), g && c(u, g, K, f.length), K += f.length;
201
- return u;
202
- } else {
203
- const u = new Array(l);
204
- for (let f = 0; f < e.length; f++)
205
- u[f] = e[f];
206
- s && c(u, s, 0, e.length);
207
- let K = e.length;
208
- for (const [f, g] of a) {
209
- for (let m = 0; m < f.length; m++)
210
- u[K + m] = f[m];
211
- g && c(u, g, K, f.length), K += f.length;
212
- }
213
- return u;
214
- }
215
- }
216
- _validate() {
217
- if (!this.positions)
218
- throw new oi("Positions are required", di.MeshInvalidPositionsError);
219
- const i = (t, a) => {
220
- const l = n.DeduceStride(t);
221
- if (a.length % l !== 0)
222
- throw new Error("The " + t + "s array count must be a multiple of " + l);
223
- return a.length / l;
224
- }, e = i(n.PositionKind, this.positions), s = (t, a) => {
225
- const l = i(t, a);
226
- if (l !== e)
227
- throw new Error("The " + t + "s element count (" + l + ") does not match the positions count (" + e + ")");
228
- };
229
- this.normals && s(n.NormalKind, this.normals), this.tangents && s(n.TangentKind, this.tangents), this.uvs && s(n.UVKind, this.uvs), this.uvs2 && s(n.UV2Kind, this.uvs2), this.uvs3 && s(n.UV3Kind, this.uvs3), this.uvs4 && s(n.UV4Kind, this.uvs4), this.uvs5 && s(n.UV5Kind, this.uvs5), this.uvs6 && s(n.UV6Kind, this.uvs6), this.colors && s(n.ColorKind, this.colors), this.matricesIndices && s(n.MatricesIndicesKind, this.matricesIndices), this.matricesWeights && s(n.MatricesWeightsKind, this.matricesWeights), this.matricesIndicesExtra && s(n.MatricesIndicesExtraKind, this.matricesIndicesExtra), this.matricesWeightsExtra && s(n.MatricesWeightsExtraKind, this.matricesWeightsExtra);
230
- }
231
- /**
232
- * Serializes the VertexData
233
- * @returns a serialized object
234
- */
235
- serialize() {
236
- const i = {};
237
- return this.positions && (i.positions = this.positions), this.normals && (i.normals = this.normals), this.tangents && (i.tangents = this.tangents), this.uvs && (i.uvs = this.uvs), this.uvs2 && (i.uvs2 = this.uvs2), this.uvs3 && (i.uvs3 = this.uvs3), this.uvs4 && (i.uvs4 = this.uvs4), this.uvs5 && (i.uvs5 = this.uvs5), this.uvs6 && (i.uvs6 = this.uvs6), this.colors && (i.colors = this.colors), this.matricesIndices && (i.matricesIndices = this.matricesIndices, i.matricesIndices._isExpanded = !0), this.matricesWeights && (i.matricesWeights = this.matricesWeights), this.matricesIndicesExtra && (i.matricesIndicesExtra = this.matricesIndicesExtra, i.matricesIndicesExtra._isExpanded = !0), this.matricesWeightsExtra && (i.matricesWeightsExtra = this.matricesWeightsExtra), i.indices = this.indices, i;
238
- }
239
- // Statics
240
- /**
241
- * Extracts the vertexData from a mesh
242
- * @param mesh the mesh from which to extract the VertexData
243
- * @param copyWhenShared defines if the VertexData must be cloned when shared between multiple meshes, optional, default false
244
- * @param forceCopy indicating that the VertexData must be cloned, optional, default false
245
- * @returns the object VertexData associated to the passed mesh
246
- */
247
- static ExtractFromMesh(i, e, s) {
248
- return h._ExtractFrom(i, e, s);
249
- }
250
- /**
251
- * Extracts the vertexData from the geometry
252
- * @param geometry the geometry from which to extract the VertexData
253
- * @param copyWhenShared defines if the VertexData must be cloned when the geometry is shared between multiple meshes, optional, default false
254
- * @param forceCopy indicating that the VertexData must be cloned, optional, default false
255
- * @returns the object VertexData associated to the passed mesh
256
- */
257
- static ExtractFromGeometry(i, e, s) {
258
- return h._ExtractFrom(i, e, s);
259
- }
260
- static _ExtractFrom(i, e, s) {
261
- const t = new h();
262
- return i.isVerticesDataPresent(n.PositionKind) && (t.positions = i.getVerticesData(n.PositionKind, e, s)), i.isVerticesDataPresent(n.NormalKind) && (t.normals = i.getVerticesData(n.NormalKind, e, s)), i.isVerticesDataPresent(n.TangentKind) && (t.tangents = i.getVerticesData(n.TangentKind, e, s)), i.isVerticesDataPresent(n.UVKind) && (t.uvs = i.getVerticesData(n.UVKind, e, s)), i.isVerticesDataPresent(n.UV2Kind) && (t.uvs2 = i.getVerticesData(n.UV2Kind, e, s)), i.isVerticesDataPresent(n.UV3Kind) && (t.uvs3 = i.getVerticesData(n.UV3Kind, e, s)), i.isVerticesDataPresent(n.UV4Kind) && (t.uvs4 = i.getVerticesData(n.UV4Kind, e, s)), i.isVerticesDataPresent(n.UV5Kind) && (t.uvs5 = i.getVerticesData(n.UV5Kind, e, s)), i.isVerticesDataPresent(n.UV6Kind) && (t.uvs6 = i.getVerticesData(n.UV6Kind, e, s)), i.isVerticesDataPresent(n.ColorKind) && (t.colors = i.getVerticesData(n.ColorKind, e, s)), i.isVerticesDataPresent(n.MatricesIndicesKind) && (t.matricesIndices = i.getVerticesData(n.MatricesIndicesKind, e, s)), i.isVerticesDataPresent(n.MatricesWeightsKind) && (t.matricesWeights = i.getVerticesData(n.MatricesWeightsKind, e, s)), i.isVerticesDataPresent(n.MatricesIndicesExtraKind) && (t.matricesIndicesExtra = i.getVerticesData(n.MatricesIndicesExtraKind, e, s)), i.isVerticesDataPresent(n.MatricesWeightsExtraKind) && (t.matricesWeightsExtra = i.getVerticesData(n.MatricesWeightsExtraKind, e, s)), t.indices = i.getIndices(e, s), t;
263
- }
264
- /**
265
- * Creates the VertexData for a Ribbon
266
- * @param options an object used to set the following optional parameters for the ribbon, required but can be empty
267
- * * pathArray array of paths, each of which an array of successive Vector3
268
- * * closeArray creates a seam between the first and the last paths of the pathArray, optional, default false
269
- * * closePath creates a seam between the first and the last points of each path of the path array, optional, default false
270
- * * offset a positive integer, only used when pathArray contains a single path (offset = 10 means the point 1 is joined to the point 11), default rounded half size of the pathArray length
271
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
272
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
273
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
274
- * * invertUV swaps in the U and V coordinates when applying a texture, optional, default false
275
- * * uvs a linear array, of length 2 * number of vertices, of custom UV values, optional
276
- * * colors a linear array, of length 4 * number of vertices, of custom color values, optional
277
- * @param options.pathArray
278
- * @param options.closeArray
279
- * @param options.closePath
280
- * @param options.offset
281
- * @param options.sideOrientation
282
- * @param options.frontUVs
283
- * @param options.backUVs
284
- * @param options.invertUV
285
- * @param options.uvs
286
- * @param options.colors
287
- * @returns the VertexData of the ribbon
288
- * @deprecated use CreateRibbonVertexData instead
289
- */
290
- static CreateRibbon(i) {
291
- throw E("ribbonBuilder");
292
- }
293
- /**
294
- * Creates the VertexData for a box
295
- * @param options an object used to set the following optional parameters for the box, required but can be empty
296
- * * size sets the width, height and depth of the box to the value of size, optional default 1
297
- * * width sets the width (x direction) of the box, overwrites the width set by size, optional, default size
298
- * * height sets the height (y direction) of the box, overwrites the height set by size, optional, default size
299
- * * depth sets the depth (z direction) of the box, overwrites the depth set by size, optional, default size
300
- * * faceUV an array of 6 Vector4 elements used to set different images to each box side
301
- * * faceColors an array of 6 Color3 elements used to set different colors to each box side
302
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
303
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
304
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
305
- * @param options.size
306
- * @param options.width
307
- * @param options.height
308
- * @param options.depth
309
- * @param options.faceUV
310
- * @param options.faceColors
311
- * @param options.sideOrientation
312
- * @param options.frontUVs
313
- * @param options.backUVs
314
- * @returns the VertexData of the box
315
- * @deprecated Please use CreateBoxVertexData from the BoxBuilder file instead
316
- */
317
- static CreateBox(i) {
318
- throw E("boxBuilder");
319
- }
320
- /**
321
- * Creates the VertexData for a tiled box
322
- * @param options an object used to set the following optional parameters for the box, required but can be empty
323
- * * faceTiles sets the pattern, tile size and number of tiles for a face
324
- * * faceUV an array of 6 Vector4 elements used to set different images to each box side
325
- * * faceColors an array of 6 Color3 elements used to set different colors to each box side
326
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
327
- * @param options.pattern
328
- * @param options.width
329
- * @param options.height
330
- * @param options.depth
331
- * @param options.tileSize
332
- * @param options.tileWidth
333
- * @param options.tileHeight
334
- * @param options.alignHorizontal
335
- * @param options.alignVertical
336
- * @param options.faceUV
337
- * @param options.faceColors
338
- * @param options.sideOrientation
339
- * @returns the VertexData of the box
340
- * @deprecated Please use CreateTiledBoxVertexData instead
341
- */
342
- static CreateTiledBox(i) {
343
- throw E("tiledBoxBuilder");
344
- }
345
- /**
346
- * Creates the VertexData for a tiled plane
347
- * @param options an object used to set the following optional parameters for the box, required but can be empty
348
- * * pattern a limited pattern arrangement depending on the number
349
- * * tileSize sets the width, height and depth of the tile to the value of size, optional default 1
350
- * * tileWidth sets the width (x direction) of the tile, overwrites the width set by size, optional, default size
351
- * * tileHeight sets the height (y direction) of the tile, overwrites the height set by size, optional, default size
352
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
353
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
354
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
355
- * @param options.pattern
356
- * @param options.tileSize
357
- * @param options.tileWidth
358
- * @param options.tileHeight
359
- * @param options.size
360
- * @param options.width
361
- * @param options.height
362
- * @param options.alignHorizontal
363
- * @param options.alignVertical
364
- * @param options.sideOrientation
365
- * @param options.frontUVs
366
- * @param options.backUVs
367
- * @returns the VertexData of the tiled plane
368
- * @deprecated use CreateTiledPlaneVertexData instead
369
- */
370
- static CreateTiledPlane(i) {
371
- throw E("tiledPlaneBuilder");
372
- }
373
- /**
374
- * Creates the VertexData for an ellipsoid, defaults to a sphere
375
- * @param options an object used to set the following optional parameters for the box, required but can be empty
376
- * * segments sets the number of horizontal strips optional, default 32
377
- * * diameter sets the axes dimensions, diameterX, diameterY and diameterZ to the value of diameter, optional default 1
378
- * * diameterX sets the diameterX (x direction) of the ellipsoid, overwrites the diameterX set by diameter, optional, default diameter
379
- * * diameterY sets the diameterY (y direction) of the ellipsoid, overwrites the diameterY set by diameter, optional, default diameter
380
- * * diameterZ sets the diameterZ (z direction) of the ellipsoid, overwrites the diameterZ set by diameter, optional, default diameter
381
- * * arc a number from 0 to 1, to create an unclosed ellipsoid based on the fraction of the circumference (latitude) given by the arc value, optional, default 1
382
- * * slice a number from 0 to 1, to create an unclosed ellipsoid based on the fraction of the height (latitude) given by the arc value, optional, default 1
383
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
384
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
385
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
386
- * @param options.segments
387
- * @param options.diameter
388
- * @param options.diameterX
389
- * @param options.diameterY
390
- * @param options.diameterZ
391
- * @param options.arc
392
- * @param options.slice
393
- * @param options.sideOrientation
394
- * @param options.frontUVs
395
- * @param options.backUVs
396
- * @returns the VertexData of the ellipsoid
397
- * @deprecated use CreateSphereVertexData instead
398
- */
399
- static CreateSphere(i) {
400
- throw E("sphereBuilder");
401
- }
402
- /**
403
- * Creates the VertexData for a cylinder, cone or prism
404
- * @param options an object used to set the following optional parameters for the box, required but can be empty
405
- * * height sets the height (y direction) of the cylinder, optional, default 2
406
- * * diameterTop sets the diameter of the top of the cone, overwrites diameter, optional, default diameter
407
- * * diameterBottom sets the diameter of the bottom of the cone, overwrites diameter, optional, default diameter
408
- * * diameter sets the diameter of the top and bottom of the cone, optional default 1
409
- * * tessellation the number of prism sides, 3 for a triangular prism, optional, default 24
410
- * * subdivisions` the number of rings along the cylinder height, optional, default 1
411
- * * arc a number from 0 to 1, to create an unclosed cylinder based on the fraction of the circumference given by the arc value, optional, default 1
412
- * * faceColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively
413
- * * faceUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively
414
- * * hasRings when true makes each subdivision independently treated as a face for faceUV and faceColors, optional, default false
415
- * * enclose when true closes an open cylinder by adding extra flat faces between the height axis and vertical edges, think cut cake
416
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
417
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
418
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
419
- * @param options.height
420
- * @param options.diameterTop
421
- * @param options.diameterBottom
422
- * @param options.diameter
423
- * @param options.tessellation
424
- * @param options.subdivisions
425
- * @param options.arc
426
- * @param options.faceColors
427
- * @param options.faceUV
428
- * @param options.hasRings
429
- * @param options.enclose
430
- * @param options.sideOrientation
431
- * @param options.frontUVs
432
- * @param options.backUVs
433
- * @returns the VertexData of the cylinder, cone or prism
434
- * @deprecated please use CreateCylinderVertexData instead
435
- */
436
- static CreateCylinder(i) {
437
- throw E("cylinderBuilder");
438
- }
439
- /**
440
- * Creates the VertexData for a torus
441
- * @param options an object used to set the following optional parameters for the box, required but can be empty
442
- * * diameter the diameter of the torus, optional default 1
443
- * * thickness the diameter of the tube forming the torus, optional default 0.5
444
- * * tessellation the number of prism sides, 3 for a triangular prism, optional, default 24
445
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
446
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
447
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
448
- * @param options.diameter
449
- * @param options.thickness
450
- * @param options.tessellation
451
- * @param options.sideOrientation
452
- * @param options.frontUVs
453
- * @param options.backUVs
454
- * @returns the VertexData of the torus
455
- * @deprecated use CreateTorusVertexData instead
456
- */
457
- static CreateTorus(i) {
458
- throw E("torusBuilder");
459
- }
460
- /**
461
- * Creates the VertexData of the LineSystem
462
- * @param options an object used to set the following optional parameters for the LineSystem, required but can be empty
463
- * - lines an array of lines, each line being an array of successive Vector3
464
- * - colors an array of line colors, each of the line colors being an array of successive Color4, one per line point
465
- * @param options.lines
466
- * @param options.colors
467
- * @returns the VertexData of the LineSystem
468
- * @deprecated use CreateLineSystemVertexData instead
469
- */
470
- static CreateLineSystem(i) {
471
- throw E("linesBuilder");
472
- }
473
- /**
474
- * Create the VertexData for a DashedLines
475
- * @param options an object used to set the following optional parameters for the DashedLines, required but can be empty
476
- * - points an array successive Vector3
477
- * - dashSize the size of the dashes relative to the dash number, optional, default 3
478
- * - gapSize the size of the gap between two successive dashes relative to the dash number, optional, default 1
479
- * - dashNb the intended total number of dashes, optional, default 200
480
- * @param options.points
481
- * @param options.dashSize
482
- * @param options.gapSize
483
- * @param options.dashNb
484
- * @returns the VertexData for the DashedLines
485
- * @deprecated use CreateDashedLinesVertexData instead
486
- */
487
- static CreateDashedLines(i) {
488
- throw E("linesBuilder");
489
- }
490
- /**
491
- * Creates the VertexData for a Ground
492
- * @param options an object used to set the following optional parameters for the Ground, required but can be empty
493
- * - width the width (x direction) of the ground, optional, default 1
494
- * - height the height (z direction) of the ground, optional, default 1
495
- * - subdivisions the number of subdivisions per side, optional, default 1
496
- * @param options.width
497
- * @param options.height
498
- * @param options.subdivisions
499
- * @param options.subdivisionsX
500
- * @param options.subdivisionsY
501
- * @returns the VertexData of the Ground
502
- * @deprecated Please use CreateGroundVertexData instead
503
- */
504
- static CreateGround(i) {
505
- throw E("groundBuilder");
506
- }
507
- /**
508
- * Creates the VertexData for a TiledGround by subdividing the ground into tiles
509
- * @param options an object used to set the following optional parameters for the Ground, required but can be empty
510
- * * xmin the ground minimum X coordinate, optional, default -1
511
- * * zmin the ground minimum Z coordinate, optional, default -1
512
- * * xmax the ground maximum X coordinate, optional, default 1
513
- * * zmax the ground maximum Z coordinate, optional, default 1
514
- * * subdivisions a javascript object {w: positive integer, h: positive integer}, `w` and `h` are the numbers of subdivisions on the ground width and height creating 'tiles', default {w: 6, h: 6}
515
- * * precision a javascript object {w: positive integer, h: positive integer}, `w` and `h` are the numbers of subdivisions on the tile width and height, default {w: 2, h: 2}
516
- * @param options.xmin
517
- * @param options.zmin
518
- * @param options.xmax
519
- * @param options.zmax
520
- * @param options.subdivisions
521
- * @param options.subdivisions.w
522
- * @param options.subdivisions.h
523
- * @param options.precision
524
- * @param options.precision.w
525
- * @param options.precision.h
526
- * @returns the VertexData of the TiledGround
527
- * @deprecated use CreateTiledGroundVertexData instead
528
- */
529
- static CreateTiledGround(i) {
530
- throw E("groundBuilder");
531
- }
532
- /**
533
- * Creates the VertexData of the Ground designed from a heightmap
534
- * @param options an object used to set the following parameters for the Ground, required and provided by CreateGroundFromHeightMap
535
- * * width the width (x direction) of the ground
536
- * * height the height (z direction) of the ground
537
- * * subdivisions the number of subdivisions per side
538
- * * minHeight the minimum altitude on the ground, optional, default 0
539
- * * maxHeight the maximum altitude on the ground, optional default 1
540
- * * colorFilter the filter to apply to the image pixel colors to compute the height, optional Color3, default (0.3, 0.59, 0.11)
541
- * * buffer the array holding the image color data
542
- * * bufferWidth the width of image
543
- * * bufferHeight the height of image
544
- * * alphaFilter Remove any data where the alpha channel is below this value, defaults 0 (all data visible)
545
- * @param options.width
546
- * @param options.height
547
- * @param options.subdivisions
548
- * @param options.minHeight
549
- * @param options.maxHeight
550
- * @param options.colorFilter
551
- * @param options.buffer
552
- * @param options.bufferWidth
553
- * @param options.bufferHeight
554
- * @param options.alphaFilter
555
- * @returns the VertexData of the Ground designed from a heightmap
556
- * @deprecated use CreateGroundFromHeightMapVertexData instead
557
- */
558
- static CreateGroundFromHeightMap(i) {
559
- throw E("groundBuilder");
560
- }
561
- /**
562
- * Creates the VertexData for a Plane
563
- * @param options an object used to set the following optional parameters for the plane, required but can be empty
564
- * * size sets the width and height of the plane to the value of size, optional default 1
565
- * * width sets the width (x direction) of the plane, overwrites the width set by size, optional, default size
566
- * * height sets the height (y direction) of the plane, overwrites the height set by size, optional, default size
567
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
568
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
569
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
570
- * @param options.size
571
- * @param options.width
572
- * @param options.height
573
- * @param options.sideOrientation
574
- * @param options.frontUVs
575
- * @param options.backUVs
576
- * @returns the VertexData of the box
577
- * @deprecated use CreatePlaneVertexData instead
578
- */
579
- static CreatePlane(i) {
580
- throw E("planeBuilder");
581
- }
582
- /**
583
- * Creates the VertexData of the Disc or regular Polygon
584
- * @param options an object used to set the following optional parameters for the disc, required but can be empty
585
- * * radius the radius of the disc, optional default 0.5
586
- * * tessellation the number of polygon sides, optional, default 64
587
- * * arc a number from 0 to 1, to create an unclosed polygon based on the fraction of the circumference given by the arc value, optional, default 1
588
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
589
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
590
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
591
- * @param options.radius
592
- * @param options.tessellation
593
- * @param options.arc
594
- * @param options.sideOrientation
595
- * @param options.frontUVs
596
- * @param options.backUVs
597
- * @returns the VertexData of the box
598
- * @deprecated use CreateDiscVertexData instead
599
- */
600
- static CreateDisc(i) {
601
- throw E("discBuilder");
602
- }
603
- /**
604
- * Creates the VertexData for an irregular Polygon in the XoZ plane using a mesh built by polygonTriangulation.build()
605
- * All parameters are provided by CreatePolygon as needed
606
- * @param polygon a mesh built from polygonTriangulation.build()
607
- * @param sideOrientation takes the values Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
608
- * @param fUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively
609
- * @param fColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively
610
- * @param frontUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
611
- * @param backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
612
- * @param wrap a boolean, default false, when true and fUVs used texture is wrapped around all sides, when false texture is applied side
613
- * @returns the VertexData of the Polygon
614
- * @deprecated use CreatePolygonVertexData instead
615
- */
616
- static CreatePolygon(i, e, s, t, a, l, c) {
617
- throw E("polygonBuilder");
618
- }
619
- /**
620
- * Creates the VertexData of the IcoSphere
621
- * @param options an object used to set the following optional parameters for the IcoSphere, required but can be empty
622
- * * radius the radius of the IcoSphere, optional default 1
623
- * * radiusX allows stretching in the x direction, optional, default radius
624
- * * radiusY allows stretching in the y direction, optional, default radius
625
- * * radiusZ allows stretching in the z direction, optional, default radius
626
- * * flat when true creates a flat shaded mesh, optional, default true
627
- * * subdivisions increasing the subdivisions increases the number of faces, optional, default 4
628
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
629
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
630
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
631
- * @param options.radius
632
- * @param options.radiusX
633
- * @param options.radiusY
634
- * @param options.radiusZ
635
- * @param options.flat
636
- * @param options.subdivisions
637
- * @param options.sideOrientation
638
- * @param options.frontUVs
639
- * @param options.backUVs
640
- * @returns the VertexData of the IcoSphere
641
- * @deprecated use CreateIcoSphereVertexData instead
642
- */
643
- static CreateIcoSphere(i) {
644
- throw E("icoSphereBuilder");
645
- }
646
- // inspired from // http://stemkoski.github.io/Three.js/Polyhedra.html
647
- /**
648
- * Creates the VertexData for a Polyhedron
649
- * @param options an object used to set the following optional parameters for the polyhedron, required but can be empty
650
- * * type provided types are:
651
- * * 0 : Tetrahedron, 1 : Octahedron, 2 : Dodecahedron, 3 : Icosahedron, 4 : Rhombicuboctahedron, 5 : Triangular Prism, 6 : Pentagonal Prism, 7 : Hexagonal Prism, 8 : Square Pyramid (J1)
652
- * * 9 : Pentagonal Pyramid (J2), 10 : Triangular Dipyramid (J12), 11 : Pentagonal Dipyramid (J13), 12 : Elongated Square Dipyramid (J15), 13 : Elongated Pentagonal Dipyramid (J16), 14 : Elongated Pentagonal Cupola (J20)
653
- * * size the size of the IcoSphere, optional default 1
654
- * * sizeX allows stretching in the x direction, optional, default size
655
- * * sizeY allows stretching in the y direction, optional, default size
656
- * * sizeZ allows stretching in the z direction, optional, default size
657
- * * custom a number that overwrites the type to create from an extended set of polyhedron from https://www.babylonjs-playground.com/#21QRSK#15 with minimised editor
658
- * * faceUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively
659
- * * faceColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively
660
- * * flat when true creates a flat shaded mesh, optional, default true
661
- * * subdivisions increasing the subdivisions increases the number of faces, optional, default 4
662
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
663
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
664
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
665
- * @param options.type
666
- * @param options.size
667
- * @param options.sizeX
668
- * @param options.sizeY
669
- * @param options.sizeZ
670
- * @param options.custom
671
- * @param options.faceUV
672
- * @param options.faceColors
673
- * @param options.flat
674
- * @param options.sideOrientation
675
- * @param options.frontUVs
676
- * @param options.backUVs
677
- * @returns the VertexData of the Polyhedron
678
- * @deprecated use CreatePolyhedronVertexData instead
679
- */
680
- static CreatePolyhedron(i) {
681
- throw E("polyhedronBuilder");
682
- }
683
- /**
684
- * Creates the VertexData for a Capsule, inspired from https://github.com/maximeq/three-js-capsule-geometry/blob/master/src/CapsuleBufferGeometry.js
685
- * @param options an object used to set the following optional parameters for the capsule, required but can be empty
686
- * @returns the VertexData of the Capsule
687
- * @deprecated Please use CreateCapsuleVertexData from the capsuleBuilder file instead
688
- */
689
- static CreateCapsule(i = {
690
- orientation: _.Up(),
691
- subdivisions: 2,
692
- tessellation: 16,
693
- height: 1,
694
- radius: 0.25,
695
- capSubdivisions: 6
696
- }) {
697
- throw E("capsuleBuilder");
698
- }
699
- // based on http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3D/src/away3d/primitives/TorusKnot.as?spec=svn2473&r=2473
700
- /**
701
- * Creates the VertexData for a TorusKnot
702
- * @param options an object used to set the following optional parameters for the TorusKnot, required but can be empty
703
- * * radius the radius of the torus knot, optional, default 2
704
- * * tube the thickness of the tube, optional, default 0.5
705
- * * radialSegments the number of sides on each tube segments, optional, default 32
706
- * * tubularSegments the number of tubes to decompose the knot into, optional, default 32
707
- * * p the number of windings around the z axis, optional, default 2
708
- * * q the number of windings around the x axis, optional, default 3
709
- * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
710
- * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
711
- * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
712
- * @param options.radius
713
- * @param options.tube
714
- * @param options.radialSegments
715
- * @param options.tubularSegments
716
- * @param options.p
717
- * @param options.q
718
- * @param options.sideOrientation
719
- * @param options.frontUVs
720
- * @param options.backUVs
721
- * @returns the VertexData of the Torus Knot
722
- * @deprecated use CreateTorusKnotVertexData instead
723
- */
724
- static CreateTorusKnot(i) {
725
- throw E("torusKnotBuilder");
726
- }
727
- // Tools
728
- /**
729
- * Compute normals for given positions and indices
730
- * @param positions an array of vertex positions, [...., x, y, z, ......]
731
- * @param indices an array of indices in groups of three for each triangular facet, [...., i, j, k, ......]
732
- * @param normals an array of vertex normals, [...., x, y, z, ......]
733
- * @param options an object used to set the following optional parameters for the TorusKnot, optional
734
- * * facetNormals : optional array of facet normals (vector3)
735
- * * facetPositions : optional array of facet positions (vector3)
736
- * * facetPartitioning : optional partitioning array. facetPositions is required for facetPartitioning computation
737
- * * ratio : optional partitioning ratio / bounding box, required for facetPartitioning computation
738
- * * bInfo : optional bounding info, required for facetPartitioning computation
739
- * * bbSize : optional bounding box size data, required for facetPartitioning computation
740
- * * subDiv : optional partitioning data about subdivisions on each axis (int), required for facetPartitioning computation
741
- * * useRightHandedSystem: optional boolean to for right handed system computation
742
- * * depthSort : optional boolean to enable the facet depth sort computation
743
- * * distanceTo : optional Vector3 to compute the facet depth from this location
744
- * * depthSortedFacets : optional array of depthSortedFacets to store the facet distances from the reference location
745
- * @param options.facetNormals
746
- * @param options.facetPositions
747
- * @param options.facetPartitioning
748
- * @param options.ratio
749
- * @param options.bInfo
750
- * @param options.bbSize
751
- * @param options.subDiv
752
- * @param options.useRightHandedSystem
753
- * @param options.depthSort
754
- * @param options.distanceTo
755
- * @param options.depthSortedFacets
756
- */
757
- static ComputeNormals(i, e, s, t) {
758
- let a = 0, l = 0, c = 0, u = 0, K = 0, f = 0, g = 0, m = 0, d = 0, r = 0, o = 0, v = 0, I = 0, M = 0, P = 0, W = 0, N = 0, x = 0, z = 0, U = 0, Q = !1, k = !1, $ = !1, J = !1, A = 1, V = 0, H = null;
759
- t && (Q = !!t.facetNormals, k = !!t.facetPositions, $ = !!t.facetPartitioning, A = t.useRightHandedSystem === !0 ? -1 : 1, V = t.ratio || 0, J = !!t.depthSort, H = t.distanceTo, J && H === void 0 && (H = _.Zero()));
760
- let B = 0, S = 0, R = 0, L = 0;
761
- for ($ && t && t.bbSize && (B = t.subDiv.X * V / t.bbSize.x, S = t.subDiv.Y * V / t.bbSize.y, R = t.subDiv.Z * V / t.bbSize.z, L = t.subDiv.max * t.subDiv.max, t.facetPartitioning.length = 0), a = 0; a < i.length; a++)
762
- s[a] = 0;
763
- const p = e.length / 3 | 0;
764
- for (a = 0; a < p; a++) {
765
- if (v = e[a * 3] * 3, I = v + 1, M = v + 2, P = e[a * 3 + 1] * 3, W = P + 1, N = P + 2, x = e[a * 3 + 2] * 3, z = x + 1, U = x + 2, l = i[v] - i[P], c = i[I] - i[W], u = i[M] - i[N], K = i[x] - i[P], f = i[z] - i[W], g = i[U] - i[N], m = A * (c * g - u * f), d = A * (u * K - l * g), r = A * (l * f - c * K), o = Math.sqrt(m * m + d * d + r * r), o = o === 0 ? 1 : o, m /= o, d /= o, r /= o, Q && t && (t.facetNormals[a].x = m, t.facetNormals[a].y = d, t.facetNormals[a].z = r), k && t && (t.facetPositions[a].x = (i[v] + i[P] + i[x]) / 3, t.facetPositions[a].y = (i[I] + i[W] + i[z]) / 3, t.facetPositions[a].z = (i[M] + i[N] + i[U]) / 3), $ && t) {
766
- const Z = Math.floor((t.facetPositions[a].x - t.bInfo.minimum.x * V) * B), q = Math.floor((t.facetPositions[a].y - t.bInfo.minimum.y * V) * S), y = Math.floor((t.facetPositions[a].z - t.bInfo.minimum.z * V) * R), O = Math.floor((i[v] - t.bInfo.minimum.x * V) * B), G = Math.floor((i[I] - t.bInfo.minimum.y * V) * S), ii = Math.floor((i[M] - t.bInfo.minimum.z * V) * R), ti = Math.floor((i[P] - t.bInfo.minimum.x * V) * B), si = Math.floor((i[W] - t.bInfo.minimum.y * V) * S), ei = Math.floor((i[N] - t.bInfo.minimum.z * V) * R), ni = Math.floor((i[x] - t.bInfo.minimum.x * V) * B), ri = Math.floor((i[z] - t.bInfo.minimum.y * V) * S), ai = Math.floor((i[U] - t.bInfo.minimum.z * V) * R), T = O + t.subDiv.max * G + L * ii, D = ti + t.subDiv.max * si + L * ei, w = ni + t.subDiv.max * ri + L * ai, C = Z + t.subDiv.max * q + L * y;
767
- t.facetPartitioning[C] = t.facetPartitioning[C] ? t.facetPartitioning[C] : new Array(), t.facetPartitioning[T] = t.facetPartitioning[T] ? t.facetPartitioning[T] : new Array(), t.facetPartitioning[D] = t.facetPartitioning[D] ? t.facetPartitioning[D] : new Array(), t.facetPartitioning[w] = t.facetPartitioning[w] ? t.facetPartitioning[w] : new Array(), t.facetPartitioning[T].push(a), D != T && t.facetPartitioning[D].push(a), w == D || w == T || t.facetPartitioning[w].push(a), C == T || C == D || C == w || t.facetPartitioning[C].push(a);
768
- }
769
- if (J && t && t.facetPositions) {
770
- const Z = t.depthSortedFacets[a];
771
- Z.ind = a * 3, Z.sqDistance = _.DistanceSquared(t.facetPositions[a], H);
772
- }
773
- s[v] += m, s[I] += d, s[M] += r, s[P] += m, s[W] += d, s[N] += r, s[x] += m, s[z] += d, s[U] += r;
774
- }
775
- for (a = 0; a < s.length / 3; a++)
776
- m = s[a * 3], d = s[a * 3 + 1], r = s[a * 3 + 2], o = Math.sqrt(m * m + d * d + r * r), o = o === 0 ? 1 : o, m /= o, d /= o, r /= o, s[a * 3] = m, s[a * 3 + 1] = d, s[a * 3 + 2] = r;
777
- }
778
- /**
779
- * @internal
780
- */
781
- static _ComputeSides(i, e, s, t, a, l, c) {
782
- const u = s.length, K = t.length;
783
- let f, g;
784
- switch (i = i || h.DEFAULTSIDE, i) {
785
- case h.FRONTSIDE:
786
- break;
787
- case h.BACKSIDE:
788
- for (f = 0; f < u; f += 3) {
789
- const m = s[f];
790
- s[f] = s[f + 2], s[f + 2] = m;
791
- }
792
- for (g = 0; g < K; g++)
793
- t[g] = -t[g];
794
- break;
795
- case h.DOUBLESIDE: {
796
- const m = e.length, d = m / 3;
797
- for (let v = 0; v < m; v++)
798
- e[m + v] = e[v];
799
- for (f = 0; f < u; f += 3)
800
- s[f + u] = s[f + 2] + d, s[f + 1 + u] = s[f + 1] + d, s[f + 2 + u] = s[f] + d;
801
- for (g = 0; g < K; g++)
802
- t[K + g] = -t[g];
803
- const r = a.length;
804
- let o = 0;
805
- for (o = 0; o < r; o++)
806
- a[o + r] = a[o];
807
- for (l = l || new j(0, 0, 1, 1), c = c || new j(0, 0, 1, 1), o = 0, f = 0; f < r / 2; f++)
808
- a[o] = l.x + (l.z - l.x) * a[o], a[o + 1] = l.y + (l.w - l.y) * a[o + 1], a[o + r] = c.x + (c.z - c.x) * a[o + r], a[o + r + 1] = c.y + (c.w - c.y) * a[o + r + 1], o += 2;
809
- break;
810
- }
811
- }
812
- }
813
- /**
814
- * Applies VertexData created from the imported parameters to the geometry
815
- * @param parsedVertexData the parsed data from an imported file
816
- * @param geometry the geometry to apply the VertexData to
817
- */
818
- static ImportVertexData(i, e) {
819
- const s = new h(), t = i.positions;
820
- t && s.set(t, n.PositionKind);
821
- const a = i.normals;
822
- a && s.set(a, n.NormalKind);
823
- const l = i.tangents;
824
- l && s.set(l, n.TangentKind);
825
- const c = i.uvs;
826
- c && s.set(c, n.UVKind);
827
- const u = i.uv2s;
828
- u && s.set(u, n.UV2Kind);
829
- const K = i.uv3s;
830
- K && s.set(K, n.UV3Kind);
831
- const f = i.uv4s;
832
- f && s.set(f, n.UV4Kind);
833
- const g = i.uv5s;
834
- g && s.set(g, n.UV5Kind);
835
- const m = i.uv6s;
836
- m && s.set(m, n.UV6Kind);
837
- const d = i.colors;
838
- d && s.set(ci.CheckColors4(d, t.length / 3), n.ColorKind);
839
- const r = i.matricesIndices;
840
- r && s.set(r, n.MatricesIndicesKind);
841
- const o = i.matricesWeights;
842
- o && s.set(o, n.MatricesWeightsKind);
843
- const v = i.indices;
844
- v && (s.indices = v), e.setAllVerticesData(s, i.updatable);
845
- }
846
- }
847
- h.FRONTSIDE = 0;
848
- h.BACKSIDE = 1;
849
- h.DOUBLESIDE = 2;
850
- h.DEFAULTSIDE = 0;
851
- X([
852
- Y.filter((...[b]) => !Array.isArray(b))
853
- ], h, "_TransformVector3Coordinates", null);
854
- X([
855
- Y.filter((...[b]) => !Array.isArray(b))
856
- ], h, "_TransformVector3Normals", null);
857
- X([
858
- Y.filter((...[b]) => !Array.isArray(b))
859
- ], h, "_TransformVector4Normals", null);
860
- X([
861
- Y.filter((...[b]) => !Array.isArray(b))
862
- ], h, "_FlipFaces", null);
863
- export {
864
- h as VertexData
865
- };