@babylonjs/core 6.33.2 → 6.34.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/Animations/animation.js +1 -1
  2. package/Animations/animation.js.map +1 -1
  3. package/Buffers/storageBuffer.d.ts +2 -1
  4. package/Buffers/storageBuffer.js +3 -2
  5. package/Buffers/storageBuffer.js.map +1 -1
  6. package/Cameras/Inputs/followCameraMouseWheelInput.js +12 -9
  7. package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
  8. package/Cameras/Inputs/followCameraPointersInput.js +28 -9
  9. package/Cameras/Inputs/followCameraPointersInput.js.map +1 -1
  10. package/Cameras/arcRotateCamera.js +1 -1
  11. package/Cameras/arcRotateCamera.js.map +1 -1
  12. package/Cameras/followCameraInputsManager.js +2 -1
  13. package/Cameras/followCameraInputsManager.js.map +1 -1
  14. package/Debug/skeletonViewer.js +2 -1
  15. package/Debug/skeletonViewer.js.map +1 -1
  16. package/Engines/Extensions/engine.alpha.js +8 -116
  17. package/Engines/Extensions/engine.alpha.js.map +1 -1
  18. package/Engines/Extensions/engine.cubeTexture.d.ts +1 -1
  19. package/Engines/Extensions/engine.cubeTexture.js +11 -213
  20. package/Engines/Extensions/engine.cubeTexture.js.map +1 -1
  21. package/Engines/Extensions/engine.dynamicBuffer.js +5 -42
  22. package/Engines/Extensions/engine.dynamicBuffer.js.map +1 -1
  23. package/Engines/Extensions/engine.dynamicTexture.d.ts +1 -1
  24. package/Engines/Extensions/engine.dynamicTexture.js +5 -47
  25. package/Engines/Extensions/engine.dynamicTexture.js.map +1 -1
  26. package/Engines/Extensions/engine.multiRender.js +11 -341
  27. package/Engines/Extensions/engine.multiRender.js.map +1 -1
  28. package/Engines/Extensions/engine.multiview.js +6 -57
  29. package/Engines/Extensions/engine.multiview.js.map +1 -1
  30. package/Engines/Extensions/engine.query.d.ts +8 -2
  31. package/Engines/Extensions/engine.query.js +44 -152
  32. package/Engines/Extensions/engine.query.js.map +1 -1
  33. package/Engines/Extensions/engine.rawTexture.d.ts +1 -1
  34. package/Engines/Extensions/engine.rawTexture.js +20 -361
  35. package/Engines/Extensions/engine.rawTexture.js.map +1 -1
  36. package/Engines/Extensions/engine.readTexture.js +6 -112
  37. package/Engines/Extensions/engine.readTexture.js.map +1 -1
  38. package/Engines/Extensions/engine.renderTarget.d.ts +1 -1
  39. package/Engines/Extensions/engine.renderTarget.js +8 -173
  40. package/Engines/Extensions/engine.renderTarget.js.map +1 -1
  41. package/Engines/Extensions/engine.renderTargetCube.js +4 -55
  42. package/Engines/Extensions/engine.renderTargetCube.js.map +1 -1
  43. package/Engines/Extensions/engine.storageBuffer.d.ts +2 -1
  44. package/Engines/Extensions/engine.storageBuffer.js.map +1 -1
  45. package/Engines/Extensions/engine.textureSelector.js +11 -52
  46. package/Engines/Extensions/engine.textureSelector.js.map +1 -1
  47. package/Engines/Extensions/engine.transformFeedback.js +10 -11
  48. package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
  49. package/Engines/Extensions/engine.uniformBuffer.js +9 -59
  50. package/Engines/Extensions/engine.uniformBuffer.js.map +1 -1
  51. package/Engines/Extensions/engine.videoTexture.js +4 -54
  52. package/Engines/Extensions/engine.videoTexture.js.map +1 -1
  53. package/Engines/Extensions/engine.views.d.ts +2 -24
  54. package/Engines/Extensions/engine.views.js +17 -136
  55. package/Engines/Extensions/engine.views.js.map +1 -1
  56. package/Engines/Processors/shaderCodeInliner.js +15 -14
  57. package/Engines/Processors/shaderCodeInliner.js.map +1 -1
  58. package/Engines/WebGPU/Extensions/engine.computeShader.js +3 -2
  59. package/Engines/WebGPU/Extensions/engine.computeShader.js.map +1 -1
  60. package/Engines/WebGPU/Extensions/engine.storageBuffer.js +14 -5
  61. package/Engines/WebGPU/Extensions/engine.storageBuffer.js.map +1 -1
  62. package/Engines/WebGPU/webgpuShaderProcessor.js +2 -1
  63. package/Engines/WebGPU/webgpuShaderProcessor.js.map +1 -1
  64. package/Engines/WebGPU/webgpuTintWASM.js +3 -2
  65. package/Engines/WebGPU/webgpuTintWASM.js.map +1 -1
  66. package/Engines/engine.d.ts +15 -64
  67. package/Engines/engine.js +322 -773
  68. package/Engines/engine.js.map +1 -1
  69. package/Engines/nativeEngine.d.ts +1 -1
  70. package/Engines/nativeEngine.js.map +1 -1
  71. package/Engines/nullEngine.d.ts +1 -1
  72. package/Engines/nullEngine.js.map +1 -1
  73. package/Engines/thinEngine.d.ts +160 -151
  74. package/Engines/thinEngine.js +712 -3281
  75. package/Engines/thinEngine.js.map +1 -1
  76. package/Engines/webgpuEngine.d.ts +5 -8
  77. package/Engines/webgpuEngine.js +143 -112
  78. package/Engines/webgpuEngine.js.map +1 -1
  79. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js +2 -1
  80. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js.map +1 -1
  81. package/FlowGraph/flowGraphBlock.js +1 -21
  82. package/FlowGraph/flowGraphBlock.js.map +1 -1
  83. package/FlowGraph/flowGraphExecutionBlock.d.ts +1 -0
  84. package/FlowGraph/flowGraphExecutionBlock.js +20 -0
  85. package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
  86. package/Gizmos/axisScaleGizmo.d.ts +1 -0
  87. package/Gizmos/axisScaleGizmo.js +12 -0
  88. package/Gizmos/axisScaleGizmo.js.map +1 -1
  89. package/Gizmos/lightGizmo.js +2 -1
  90. package/Gizmos/lightGizmo.js.map +1 -1
  91. package/Gizmos/rotationGizmo.js +1 -1
  92. package/Gizmos/rotationGizmo.js.map +1 -1
  93. package/Lights/Shadows/cascadedShadowGenerator.js +1 -1
  94. package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
  95. package/Materials/Node/Blocks/Dual/lightBlock.js +2 -1
  96. package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
  97. package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js +3 -2
  98. package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js.map +1 -1
  99. package/Materials/Node/Blocks/Fragment/fragDepthBlock.js +2 -1
  100. package/Materials/Node/Blocks/Fragment/fragDepthBlock.js.map +1 -1
  101. package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js +2 -1
  102. package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js.map +1 -1
  103. package/Materials/Node/Blocks/PBR/anisotropyBlock.js +2 -1
  104. package/Materials/Node/Blocks/PBR/anisotropyBlock.js.map +1 -1
  105. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +3 -2
  106. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
  107. package/Materials/Node/Blocks/PBR/reflectionBlock.js +2 -1
  108. package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
  109. package/Materials/Node/nodeMaterial.js +9 -8
  110. package/Materials/Node/nodeMaterial.js.map +1 -1
  111. package/Materials/Node/nodeMaterialBlock.js +2 -1
  112. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  113. package/Materials/drawWrapper.js +3 -2
  114. package/Materials/drawWrapper.js.map +1 -1
  115. package/Materials/effect.js +2 -1
  116. package/Materials/effect.js.map +1 -1
  117. package/Materials/material.js +2 -1
  118. package/Materials/material.js.map +1 -1
  119. package/Materials/uniformBuffer.d.ts +4 -1
  120. package/Materials/uniformBuffer.js +5 -2
  121. package/Materials/uniformBuffer.js.map +1 -1
  122. package/Meshes/Node/nodeGeometryBlock.js +2 -1
  123. package/Meshes/Node/nodeGeometryBlock.js.map +1 -1
  124. package/Meshes/abstractMesh.js +3 -1
  125. package/Meshes/abstractMesh.js.map +1 -1
  126. package/Misc/assetsManager.js +2 -2
  127. package/Misc/assetsManager.js.map +1 -1
  128. package/Misc/dds.d.ts +2 -0
  129. package/Misc/dds.js +27 -23
  130. package/Misc/dds.js.map +1 -1
  131. package/Misc/logger.d.ts +3 -3
  132. package/Misc/logger.js +8 -4
  133. package/Misc/logger.js.map +1 -1
  134. package/Misc/sceneSerializer.js +2 -1
  135. package/Misc/sceneSerializer.js.map +1 -1
  136. package/Navigation/Plugins/recastJSPlugin.js +2 -2
  137. package/Navigation/Plugins/recastJSPlugin.js.map +1 -1
  138. package/Physics/v2/Plugins/havokPlugin.js +1 -1
  139. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  140. package/Physics/v2/index.d.ts +1 -0
  141. package/Physics/v2/index.js +1 -0
  142. package/Physics/v2/index.js.map +1 -1
  143. package/Physics/v2/ragdoll.d.ts +107 -0
  144. package/Physics/v2/ragdoll.js +228 -0
  145. package/Physics/v2/ragdoll.js.map +1 -0
  146. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +2 -2
  147. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
  148. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js +3 -2
  149. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js.map +1 -1
  150. package/PostProcesses/index.d.ts +1 -1
  151. package/PostProcesses/index.js +1 -1
  152. package/PostProcesses/index.js.map +1 -1
  153. package/PostProcesses/passPostProcess.d.ts +1 -0
  154. package/PostProcesses/passPostProcess.js +6 -2
  155. package/PostProcesses/passPostProcess.js.map +1 -1
  156. package/PostProcesses/screenSpaceCurvaturePostProcess.js +1 -1
  157. package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
  158. package/PostProcesses/screenSpaceReflectionPostProcess.js +3 -2
  159. package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
  160. package/Rendering/depthPeelingRenderer.js +2 -1
  161. package/Rendering/depthPeelingRenderer.js.map +1 -1
  162. package/Shaders/ShadersInclude/pbrBlockSubSurface.js +3 -2
  163. package/Shaders/ShadersInclude/pbrBlockSubSurface.js.map +1 -1
  164. package/XR/features/WebXRControllerPhysics.js +2 -2
  165. package/XR/features/WebXRControllerPhysics.js.map +1 -1
  166. package/XR/features/WebXRMeshDetector.js +2 -1
  167. package/XR/features/WebXRMeshDetector.js.map +1 -1
  168. package/XR/features/WebXRWalkingLocomotion.js +1 -1
  169. package/XR/features/WebXRWalkingLocomotion.js.map +1 -1
  170. package/XR/webXRExperienceHelper.js +2 -2
  171. package/XR/webXRExperienceHelper.js.map +1 -1
  172. package/assetContainer.js +2 -2
  173. package/assetContainer.js.map +1 -1
  174. package/esm/Engines/Extensions/alpha/alpha.base.d.ts +34 -0
  175. package/esm/Engines/Extensions/alpha/alpha.base.js +2 -0
  176. package/esm/Engines/Extensions/alpha/alpha.base.js.map +1 -0
  177. package/esm/Engines/Extensions/computeShaders/computeShaders.base.d.ts +87 -0
  178. package/esm/Engines/Extensions/computeShaders/computeShaders.base.js +12 -0
  179. package/esm/Engines/Extensions/computeShaders/computeShaders.base.js.map +1 -0
  180. package/esm/Engines/Extensions/cubeTexture/cubeTexture.base.d.ts +79 -0
  181. package/esm/Engines/Extensions/cubeTexture/cubeTexture.base.js +2 -0
  182. package/esm/Engines/Extensions/cubeTexture/cubeTexture.base.js.map +1 -0
  183. package/esm/Engines/Extensions/debugging/debugging.base.d.ts +11 -0
  184. package/esm/Engines/Extensions/debugging/debugging.base.js +2 -0
  185. package/esm/Engines/Extensions/debugging/debugging.base.js.map +1 -0
  186. package/esm/Engines/Extensions/dynamicBuffer/dynamicBuffer.base.d.ts +20 -0
  187. package/esm/Engines/Extensions/dynamicBuffer/dynamicBuffer.base.js +2 -0
  188. package/esm/Engines/Extensions/dynamicBuffer/dynamicBuffer.base.js.map +1 -0
  189. package/esm/Engines/Extensions/dynamicTexture/dynamicTexture.base.d.ts +26 -0
  190. package/esm/Engines/Extensions/dynamicTexture/dynamicTexture.base.js +2 -0
  191. package/esm/Engines/Extensions/dynamicTexture/dynamicTexture.base.js.map +1 -0
  192. package/esm/Engines/Extensions/engine.extensions.d.ts +67 -0
  193. package/esm/Engines/Extensions/engine.extensions.js +49 -0
  194. package/esm/Engines/Extensions/engine.extensions.js.map +1 -0
  195. package/esm/Engines/Extensions/externalTexture/externalTexture.base.d.ts +16 -0
  196. package/esm/Engines/Extensions/externalTexture/externalTexture.base.js +2 -0
  197. package/esm/Engines/Extensions/externalTexture/externalTexture.base.js.map +1 -0
  198. package/esm/Engines/Extensions/multiRender/multiRender.base.d.ts +54 -0
  199. package/esm/Engines/Extensions/multiRender/multiRender.base.js +2 -0
  200. package/esm/Engines/Extensions/multiRender/multiRender.base.js.map +1 -0
  201. package/esm/Engines/Extensions/multiview/multiview.base.d.ts +67 -0
  202. package/esm/Engines/Extensions/multiview/multiview.base.js +79 -0
  203. package/esm/Engines/Extensions/multiview/multiview.base.js.map +1 -0
  204. package/esm/Engines/Extensions/query/query.base.d.ts +164 -0
  205. package/esm/Engines/Extensions/query/query.base.js +168 -0
  206. package/esm/Engines/Extensions/query/query.base.js.map +1 -0
  207. package/esm/Engines/Extensions/rawTexture/engine.rawTexture.base.d.ts +187 -0
  208. package/esm/Engines/Extensions/rawTexture/engine.rawTexture.base.js +2 -0
  209. package/esm/Engines/Extensions/rawTexture/engine.rawTexture.base.js.map +1 -0
  210. package/esm/Engines/Extensions/readTexture/readTexture.base.d.ts +9 -0
  211. package/esm/Engines/Extensions/readTexture/readTexture.base.js +2 -0
  212. package/esm/Engines/Extensions/readTexture/readTexture.base.js.map +1 -0
  213. package/esm/Engines/Extensions/renderTarget/renderTarget.base.d.ts +35 -0
  214. package/esm/Engines/Extensions/renderTarget/renderTarget.base.js +2 -0
  215. package/esm/Engines/Extensions/renderTarget/renderTarget.base.js.map +1 -0
  216. package/esm/Engines/Extensions/renderTargetCube/renderTargetCube.base.d.ts +12 -0
  217. package/esm/Engines/Extensions/renderTargetCube/renderTargetCube.base.js +2 -0
  218. package/esm/Engines/Extensions/renderTargetCube/renderTargetCube.base.js.map +1 -0
  219. package/esm/Engines/Extensions/storageBuffer/storageBuffer.base.d.ts +36 -0
  220. package/esm/Engines/Extensions/storageBuffer/storageBuffer.base.js +2 -0
  221. package/esm/Engines/Extensions/storageBuffer/storageBuffer.base.js.map +1 -0
  222. package/esm/Engines/Extensions/textureSampler/textureSampler.base.d.ts +11 -0
  223. package/esm/Engines/Extensions/textureSampler/textureSampler.base.js +2 -0
  224. package/esm/Engines/Extensions/textureSampler/textureSampler.base.js.map +1 -0
  225. package/esm/Engines/Extensions/textureSelector/textureSelector.base.d.ts +50 -0
  226. package/esm/Engines/Extensions/textureSelector/textureSelector.base.js +53 -0
  227. package/esm/Engines/Extensions/textureSelector/textureSelector.base.js.map +1 -0
  228. package/esm/Engines/Extensions/transformFeedback/engine.transformFeedback.base.d.ts +42 -0
  229. package/esm/Engines/Extensions/transformFeedback/engine.transformFeedback.base.js +2 -0
  230. package/esm/Engines/Extensions/transformFeedback/engine.transformFeedback.base.js.map +1 -0
  231. package/esm/Engines/Extensions/uniformBuffer/uniformBuffer.base.d.ts +48 -0
  232. package/esm/Engines/Extensions/uniformBuffer/uniformBuffer.base.js +2 -0
  233. package/esm/Engines/Extensions/uniformBuffer/uniformBuffer.base.js.map +1 -0
  234. package/esm/Engines/Extensions/videoTexture/videoTexture.base.d.ts +13 -0
  235. package/esm/Engines/Extensions/videoTexture/videoTexture.base.js +2 -0
  236. package/esm/Engines/Extensions/videoTexture/videoTexture.base.js.map +1 -0
  237. package/esm/Engines/Extensions/views/views.base.d.ts +85 -0
  238. package/esm/Engines/Extensions/views/views.base.js +33 -0
  239. package/esm/Engines/Extensions/views/views.base.js.map +1 -0
  240. package/esm/Engines/WebGL/Extensions/alpha/alpha.webgl.d.ts +8 -0
  241. package/esm/Engines/WebGL/Extensions/alpha/alpha.webgl.js +137 -0
  242. package/esm/Engines/WebGL/Extensions/alpha/alpha.webgl.js.map +1 -0
  243. package/esm/Engines/WebGL/Extensions/cubeTexture/cubeTexture.webgl.d.ts +11 -0
  244. package/esm/Engines/WebGL/Extensions/cubeTexture/cubeTexture.webgl.js +251 -0
  245. package/esm/Engines/WebGL/Extensions/cubeTexture/cubeTexture.webgl.js.map +1 -0
  246. package/esm/Engines/WebGL/Extensions/dynamicBuffer/dynamicBuffer.webgl.d.ts +5 -0
  247. package/esm/Engines/WebGL/Extensions/dynamicBuffer/dynamicBuffer.webgl.js +55 -0
  248. package/esm/Engines/WebGL/Extensions/dynamicBuffer/dynamicBuffer.webgl.js.map +1 -0
  249. package/esm/Engines/WebGL/Extensions/dynamicTexture/dynamicTexture.webgl.d.ts +5 -0
  250. package/esm/Engines/WebGL/Extensions/dynamicTexture/dynamicTexture.webgl.js +65 -0
  251. package/esm/Engines/WebGL/Extensions/dynamicTexture/dynamicTexture.webgl.js.map +1 -0
  252. package/esm/Engines/WebGL/Extensions/multiRender/multiRender.webgl.d.ts +10 -0
  253. package/esm/Engines/WebGL/Extensions/multiRender/multiRender.webgl.js +375 -0
  254. package/esm/Engines/WebGL/Extensions/multiRender/multiRender.webgl.js.map +1 -0
  255. package/esm/Engines/WebGL/Extensions/multiview/multiview.webgl.d.ts +6 -0
  256. package/esm/Engines/WebGL/Extensions/multiview/multiview.webgl.js +77 -0
  257. package/esm/Engines/WebGL/Extensions/multiview/multiview.webgl.js.map +1 -0
  258. package/esm/Engines/WebGL/Extensions/query/query.webgl.d.ts +21 -0
  259. package/esm/Engines/WebGL/Extensions/query/query.webgl.js +220 -0
  260. package/esm/Engines/WebGL/Extensions/query/query.webgl.js.map +1 -0
  261. package/esm/Engines/WebGL/Extensions/rawTexture/engine.rawTexture.webgl.d.ts +15 -0
  262. package/esm/Engines/WebGL/Extensions/rawTexture/engine.rawTexture.webgl.js +392 -0
  263. package/esm/Engines/WebGL/Extensions/rawTexture/engine.rawTexture.webgl.js.map +1 -0
  264. package/esm/Engines/WebGL/Extensions/readTexture/readTexture.webgl.d.ts +17 -0
  265. package/esm/Engines/WebGL/Extensions/readTexture/readTexture.webgl.js +133 -0
  266. package/esm/Engines/WebGL/Extensions/readTexture/readTexture.webgl.js.map +1 -0
  267. package/esm/Engines/WebGL/Extensions/renderTarget/renderTarget.webgl.d.ts +8 -0
  268. package/esm/Engines/WebGL/Extensions/renderTarget/renderTarget.webgl.js +199 -0
  269. package/esm/Engines/WebGL/Extensions/renderTarget/renderTarget.webgl.js.map +1 -0
  270. package/esm/Engines/WebGL/Extensions/renderTargetCube/renderTargetCube.webgl.d.ts +2 -0
  271. package/esm/Engines/WebGL/Extensions/renderTargetCube/renderTargetCube.webgl.js +62 -0
  272. package/esm/Engines/WebGL/Extensions/renderTargetCube/renderTargetCube.webgl.js.map +1 -0
  273. package/esm/Engines/WebGL/Extensions/textureSelector/textureSelector.webgl.d.ts +5 -0
  274. package/esm/Engines/WebGL/Extensions/textureSelector/textureSelector.webgl.js +28 -0
  275. package/esm/Engines/WebGL/Extensions/textureSelector/textureSelector.webgl.js.map +1 -0
  276. package/esm/Engines/WebGL/Extensions/transformFeedback/engine.transformFeedback.webgl.d.ts +11 -0
  277. package/esm/Engines/WebGL/Extensions/transformFeedback/engine.transformFeedback.webgl.js +45 -0
  278. package/esm/Engines/WebGL/Extensions/transformFeedback/engine.transformFeedback.webgl.js.map +1 -0
  279. package/esm/Engines/WebGL/Extensions/uniformBuffer/uniformBuffer.webgl.d.ts +9 -0
  280. package/esm/Engines/WebGL/Extensions/uniformBuffer/uniformBuffer.webgl.js +78 -0
  281. package/esm/Engines/WebGL/Extensions/uniformBuffer/uniformBuffer.webgl.js.map +1 -0
  282. package/esm/Engines/WebGL/Extensions/videoTexture/videoTexture.webgl.d.ts +4 -0
  283. package/esm/Engines/WebGL/Extensions/videoTexture/videoTexture.webgl.js +67 -0
  284. package/esm/Engines/WebGL/Extensions/videoTexture/videoTexture.webgl.js.map +1 -0
  285. package/esm/Engines/WebGL/Extensions/views/views.webgl.d.ts +18 -0
  286. package/esm/Engines/WebGL/Extensions/views/views.webgl.js +152 -0
  287. package/esm/Engines/WebGL/Extensions/views/views.webgl.js.map +1 -0
  288. package/esm/Engines/WebGL/engine.adapterHelpers.d.ts +43 -0
  289. package/esm/Engines/WebGL/engine.adapterHelpers.js +107 -0
  290. package/esm/Engines/WebGL/engine.adapterHelpers.js.map +1 -0
  291. package/esm/Engines/WebGL/engine.webgl.d.ts +1030 -0
  292. package/esm/Engines/WebGL/engine.webgl.js +4083 -0
  293. package/esm/Engines/WebGL/engine.webgl.js.map +1 -0
  294. package/esm/Engines/WebGPU/engine.adapterHelpers.d.ts +7 -0
  295. package/esm/Engines/WebGPU/engine.adapterHelpers.js +20 -0
  296. package/esm/Engines/WebGPU/engine.adapterHelpers.js.map +1 -0
  297. package/esm/Engines/WebGPU/engine.webgpu.constants.d.ts +391 -0
  298. package/esm/Engines/WebGPU/engine.webgpu.constants.js +2 -0
  299. package/esm/Engines/WebGPU/engine.webgpu.constants.js.map +1 -0
  300. package/esm/Engines/WebGPU/engine.webgpu.d.ts +277 -0
  301. package/esm/Engines/WebGPU/engine.webgpu.js +1281 -0
  302. package/esm/Engines/WebGPU/engine.webgpu.js.map +1 -0
  303. package/esm/Engines/engine.adapters.d.ts +32 -0
  304. package/esm/Engines/engine.adapters.js +27 -0
  305. package/esm/Engines/engine.adapters.js.map +1 -0
  306. package/esm/Engines/engine.base.d.ts +807 -0
  307. package/esm/Engines/engine.base.js +1235 -0
  308. package/esm/Engines/engine.base.js.map +1 -0
  309. package/esm/Engines/engine.constants.d.ts +735 -0
  310. package/esm/Engines/engine.constants.js +3 -0
  311. package/esm/Engines/engine.constants.js.map +1 -0
  312. package/esm/Engines/engine.extendable.d.ts +180 -0
  313. package/esm/Engines/engine.extendable.js +477 -0
  314. package/esm/Engines/engine.extendable.js.map +1 -0
  315. package/esm/Engines/engine.interfaces.d.ts +16 -0
  316. package/esm/Engines/engine.interfaces.js +9 -0
  317. package/esm/Engines/engine.interfaces.js.map +1 -0
  318. package/esm/Engines/engine.static.d.ts +215 -0
  319. package/esm/Engines/engine.static.js +345 -0
  320. package/esm/Engines/engine.static.js.map +1 -0
  321. package/esm/Engines/engine.tools.d.ts +20 -0
  322. package/esm/Engines/engine.tools.js +33 -0
  323. package/esm/Engines/engine.tools.js.map +1 -0
  324. package/esm/Engines/public.d.ts +1 -0
  325. package/esm/Engines/public.js +2 -0
  326. package/esm/Engines/public.js.map +1 -0
  327. package/esm/Engines/runtimeEnvironment.d.ts +37 -0
  328. package/esm/Engines/runtimeEnvironment.js +56 -0
  329. package/esm/Engines/runtimeEnvironment.js.map +1 -0
  330. package/package.json +2 -1
  331. package/scene.js +1 -1
  332. package/scene.js.map +1 -1
@@ -0,0 +1,735 @@
1
+ export declare const enum Constants {
2
+ /** Defines that alpha blending is disabled */
3
+ ALPHA_DISABLE = 0,
4
+ /** Defines that alpha blending is SRC ALPHA * SRC + DEST */
5
+ ALPHA_ADD = 1,
6
+ /** Defines that alpha blending is SRC ALPHA * SRC + (1 - SRC ALPHA) * DEST */
7
+ ALPHA_COMBINE = 2,
8
+ /** Defines that alpha blending is DEST - SRC * DEST */
9
+ ALPHA_SUBTRACT = 3,
10
+ /** Defines that alpha blending is SRC * DEST */
11
+ ALPHA_MULTIPLY = 4,
12
+ /** Defines that alpha blending is SRC ALPHA * SRC + (1 - SRC) * DEST */
13
+ ALPHA_MAXIMIZED = 5,
14
+ /** Defines that alpha blending is SRC + DEST */
15
+ ALPHA_ONEONE = 6,
16
+ /** Defines that alpha blending is SRC + (1 - SRC ALPHA) * DEST */
17
+ ALPHA_PREMULTIPLIED = 7,
18
+ /**
19
+ * Defines that alpha blending is SRC + (1 - SRC ALPHA) * DEST
20
+ * Alpha will be set to (1 - SRC ALPHA) * DEST ALPHA
21
+ */
22
+ ALPHA_PREMULTIPLIED_PORTERDUFF = 8,
23
+ /** Defines that alpha blending is CST * SRC + (1 - CST) * DEST */
24
+ ALPHA_INTERPOLATE = 9,
25
+ /**
26
+ * Defines that alpha blending is SRC + (1 - SRC) * DEST
27
+ * Alpha will be set to SRC ALPHA + (1 - SRC ALPHA) * DEST ALPHA
28
+ */
29
+ ALPHA_SCREENMODE = 10,
30
+ /**
31
+ * Defines that alpha blending is SRC + DST
32
+ * Alpha will be set to SRC ALPHA + DST ALPHA
33
+ */
34
+ ALPHA_ONEONE_ONEONE = 11,
35
+ /**
36
+ * Defines that alpha blending is SRC * DST ALPHA + DST
37
+ * Alpha will be set to 0
38
+ */
39
+ ALPHA_ALPHATOCOLOR = 12,
40
+ /**
41
+ * Defines that alpha blending is SRC * (1 - DST) + DST * (1 - SRC)
42
+ */
43
+ ALPHA_REVERSEONEMINUS = 13,
44
+ /**
45
+ * Defines that alpha blending is SRC + DST * (1 - SRC ALPHA)
46
+ * Alpha will be set to SRC ALPHA + DST ALPHA * (1 - SRC ALPHA)
47
+ */
48
+ ALPHA_SRC_DSTONEMINUSSRCALPHA = 14,
49
+ /**
50
+ * Defines that alpha blending is SRC + DST
51
+ * Alpha will be set to SRC ALPHA
52
+ */
53
+ ALPHA_ONEONE_ONEZERO = 15,
54
+ /**
55
+ * Defines that alpha blending is SRC * (1 - DST) + DST * (1 - SRC)
56
+ * Alpha will be set to DST ALPHA
57
+ */
58
+ ALPHA_EXCLUSION = 16,
59
+ /**
60
+ * Defines that alpha blending is SRC * SRC ALPHA + DST * (1 - SRC ALPHA)
61
+ * Alpha will be set to SRC ALPHA + (1 - SRC ALPHA) * DST ALPHA
62
+ */
63
+ ALPHA_LAYER_ACCUMULATE = 17,
64
+ /** Defines that alpha blending equation a SUM */
65
+ ALPHA_EQUATION_ADD = 0,
66
+ /** Defines that alpha blending equation a SUBSTRACTION */
67
+ ALPHA_EQUATION_SUBSTRACT = 1,
68
+ /** Defines that alpha blending equation a REVERSE SUBSTRACTION */
69
+ ALPHA_EQUATION_REVERSE_SUBTRACT = 2,
70
+ /** Defines that alpha blending equation a MAX operation */
71
+ ALPHA_EQUATION_MAX = 3,
72
+ /** Defines that alpha blending equation a MIN operation */
73
+ ALPHA_EQUATION_MIN = 4,
74
+ /**
75
+ * Defines that alpha blending equation a DARKEN operation:
76
+ * It takes the min of the src and sums the alpha channels.
77
+ */
78
+ ALPHA_EQUATION_DARKEN = 5,
79
+ /** Defines that the resource is not delayed*/
80
+ DELAYLOADSTATE_NONE = 0,
81
+ /** Defines that the resource was successfully delay loaded */
82
+ DELAYLOADSTATE_LOADED = 1,
83
+ /** Defines that the resource is currently delay loading */
84
+ DELAYLOADSTATE_LOADING = 2,
85
+ /** Defines that the resource is delayed and has not started loading */
86
+ DELAYLOADSTATE_NOTLOADED = 4,
87
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn */
88
+ NEVER = 512,
89
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */
90
+ ALWAYS = 519,
91
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value */
92
+ LESS = 513,
93
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value */
94
+ EQUAL = 514,
95
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value */
96
+ LEQUAL = 515,
97
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value */
98
+ GREATER = 516,
99
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value */
100
+ GEQUAL = 518,
101
+ /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value */
102
+ NOTEQUAL = 517,
103
+ /** Passed to stencilOperation to specify that stencil value must be kept */
104
+ KEEP = 7680,
105
+ /** Passed to stencilOperation to specify that stencil value must be zero */
106
+ ZERO = 0,
107
+ /** Passed to stencilOperation to specify that stencil value must be replaced */
108
+ REPLACE = 7681,
109
+ /** Passed to stencilOperation to specify that stencil value must be incremented */
110
+ INCR = 7682,
111
+ /** Passed to stencilOperation to specify that stencil value must be decremented */
112
+ DECR = 7683,
113
+ /** Passed to stencilOperation to specify that stencil value must be inverted */
114
+ INVERT = 5386,
115
+ /** Passed to stencilOperation to specify that stencil value must be incremented with wrapping */
116
+ INCR_WRAP = 34055,
117
+ /** Passed to stencilOperation to specify that stencil value must be decremented with wrapping */
118
+ DECR_WRAP = 34056,
119
+ /** Texture is not repeating outside of 0..1 UVs */
120
+ TEXTURE_CLAMP_ADDRESSMODE = 0,
121
+ /** Texture is repeating outside of 0..1 UVs */
122
+ TEXTURE_WRAP_ADDRESSMODE = 1,
123
+ /** Texture is repeating and mirrored */
124
+ TEXTURE_MIRROR_ADDRESSMODE = 2,
125
+ /** Flag to create a storage texture */
126
+ TEXTURE_CREATIONFLAG_STORAGE = 1,
127
+ /** ALPHA */
128
+ TEXTUREFORMAT_ALPHA = 0,
129
+ /** LUMINANCE */
130
+ TEXTUREFORMAT_LUMINANCE = 1,
131
+ /** LUMINANCE_ALPHA */
132
+ TEXTUREFORMAT_LUMINANCE_ALPHA = 2,
133
+ /** RGB */
134
+ TEXTUREFORMAT_RGB = 4,
135
+ /** RGBA */
136
+ TEXTUREFORMAT_RGBA = 5,
137
+ /** RED */
138
+ TEXTUREFORMAT_RED = 6,
139
+ /** RED (2nd reference) */
140
+ TEXTUREFORMAT_R = 6,
141
+ /** RG */
142
+ TEXTUREFORMAT_RG = 7,
143
+ /** RED_INTEGER */
144
+ TEXTUREFORMAT_RED_INTEGER = 8,
145
+ /** RED_INTEGER (2nd reference) */
146
+ TEXTUREFORMAT_R_INTEGER = 8,
147
+ /** RG_INTEGER */
148
+ TEXTUREFORMAT_RG_INTEGER = 9,
149
+ /** RGB_INTEGER */
150
+ TEXTUREFORMAT_RGB_INTEGER = 10,
151
+ /** RGBA_INTEGER */
152
+ TEXTUREFORMAT_RGBA_INTEGER = 11,
153
+ /** BGRA */
154
+ TEXTUREFORMAT_BGRA = 12,
155
+ /** Depth 24 bits + Stencil 8 bits */
156
+ TEXTUREFORMAT_DEPTH24_STENCIL8 = 13,
157
+ /** Depth 32 bits float */
158
+ TEXTUREFORMAT_DEPTH32_FLOAT = 14,
159
+ /** Depth 16 bits */
160
+ TEXTUREFORMAT_DEPTH16 = 15,
161
+ /** Depth 24 bits */
162
+ TEXTUREFORMAT_DEPTH24 = 16,
163
+ /** Depth 24 bits unorm + Stencil 8 bits */
164
+ TEXTUREFORMAT_DEPTH24UNORM_STENCIL8 = 17,
165
+ /** Depth 32 bits float + Stencil 8 bits */
166
+ TEXTUREFORMAT_DEPTH32FLOAT_STENCIL8 = 18,
167
+ /** Stencil 8 bits */
168
+ TEXTUREFORMAT_STENCIL8 = 19,
169
+ /** Compressed BC7 */
170
+ TEXTUREFORMAT_COMPRESSED_RGBA_BPTC_UNORM = 36492,
171
+ /** Compressed BC7 (SRGB) */
172
+ TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 36493,
173
+ /** Compressed BC6 unsigned float */
174
+ TEXTUREFORMAT_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 36495,
175
+ /** Compressed BC6 signed float */
176
+ TEXTUREFORMAT_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 36494,
177
+ /** Compressed BC3 */
178
+ TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT5 = 33779,
179
+ /** Compressed BC3 (SRGB) */
180
+ TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919,
181
+ /** Compressed BC2 */
182
+ TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT3 = 33778,
183
+ /** Compressed BC2 (SRGB) */
184
+ TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918,
185
+ /** Compressed BC1 (RGBA) */
186
+ TEXTUREFORMAT_COMPRESSED_RGBA_S3TC_DXT1 = 33777,
187
+ /** Compressed BC1 (RGB) */
188
+ TEXTUREFORMAT_COMPRESSED_RGB_S3TC_DXT1 = 33776,
189
+ /** Compressed BC1 (SRGB+A) */
190
+ TEXTUREFORMAT_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917,
191
+ /** Compressed BC1 (SRGB) */
192
+ TEXTUREFORMAT_COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916,
193
+ /** Compressed ASTC 4x4 */
194
+ TEXTUREFORMAT_COMPRESSED_RGBA_ASTC_4x4 = 37808,
195
+ /** Compressed ASTC 4x4 (SRGB) */
196
+ TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 37840,
197
+ /** Compressed ETC1 (RGB) */
198
+ TEXTUREFORMAT_COMPRESSED_RGB_ETC1_WEBGL = 36196,
199
+ /** Compressed ETC2 (RGB) */
200
+ TEXTUREFORMAT_COMPRESSED_RGB8_ETC2 = 37492,
201
+ /** Compressed ETC2 (SRGB) */
202
+ TEXTUREFORMAT_COMPRESSED_SRGB8_ETC2 = 37493,
203
+ /** Compressed ETC2 (RGB+A1) */
204
+ TEXTUREFORMAT_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37494,
205
+ /** Compressed ETC2 (SRGB+A1)*/
206
+ TEXTUREFORMAT_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37495,
207
+ /** Compressed ETC2 (RGB+A) */
208
+ TEXTUREFORMAT_COMPRESSED_RGBA8_ETC2_EAC = 37496,
209
+ /** Compressed ETC2 (SRGB+1) */
210
+ TEXTUREFORMAT_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 37497,
211
+ /** UNSIGNED_BYTE */
212
+ TEXTURETYPE_UNSIGNED_BYTE = 0,
213
+ /** UNSIGNED_BYTE (2nd reference) */
214
+ TEXTURETYPE_UNSIGNED_INT = 0,
215
+ /** FLOAT */
216
+ TEXTURETYPE_FLOAT = 1,
217
+ /** HALF_FLOAT */
218
+ TEXTURETYPE_HALF_FLOAT = 2,
219
+ /** BYTE */
220
+ TEXTURETYPE_BYTE = 3,
221
+ /** SHORT */
222
+ TEXTURETYPE_SHORT = 4,
223
+ /** UNSIGNED_SHORT */
224
+ TEXTURETYPE_UNSIGNED_SHORT = 5,
225
+ /** INT */
226
+ TEXTURETYPE_INT = 6,
227
+ /** UNSIGNED_INT */
228
+ TEXTURETYPE_UNSIGNED_INTEGER = 7,
229
+ /** UNSIGNED_SHORT_4_4_4_4 */
230
+ TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4 = 8,
231
+ /** UNSIGNED_SHORT_5_5_5_1 */
232
+ TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1 = 9,
233
+ /** UNSIGNED_SHORT_5_6_5 */
234
+ TEXTURETYPE_UNSIGNED_SHORT_5_6_5 = 10,
235
+ /** UNSIGNED_INT_2_10_10_10_REV */
236
+ TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV = 11,
237
+ /** UNSIGNED_INT_24_8 */
238
+ TEXTURETYPE_UNSIGNED_INT_24_8 = 12,
239
+ /** UNSIGNED_INT_10F_11F_11F_REV */
240
+ TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV = 13,
241
+ /** UNSIGNED_INT_5_9_9_9_REV */
242
+ TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV = 14,
243
+ /** FLOAT_32_UNSIGNED_INT_24_8_REV */
244
+ TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV = 15,
245
+ /** UNDEFINED */
246
+ TEXTURETYPE_UNDEFINED = 16,
247
+ /** 2D Texture target*/
248
+ TEXTURE_2D = 3553,
249
+ /** 2D Array Texture target */
250
+ TEXTURE_2D_ARRAY = 35866,
251
+ /** Cube Map Texture target */
252
+ TEXTURE_CUBE_MAP = 34067,
253
+ /** Cube Map Array Texture target */
254
+ TEXTURE_CUBE_MAP_ARRAY = 3735928559,
255
+ /** 3D Texture target */
256
+ TEXTURE_3D = 32879,
257
+ /** nearest is mag = nearest and min = nearest and no mip */
258
+ TEXTURE_NEAREST_SAMPLINGMODE = 1,
259
+ /** mag = nearest and min = nearest and mip = none */
260
+ TEXTURE_NEAREST_NEAREST = 1,
261
+ /** Bilinear is mag = linear and min = linear and no mip */
262
+ TEXTURE_BILINEAR_SAMPLINGMODE = 2,
263
+ /** mag = linear and min = linear and mip = none */
264
+ TEXTURE_LINEAR_LINEAR = 2,
265
+ /** Trilinear is mag = linear and min = linear and mip = linear */
266
+ TEXTURE_TRILINEAR_SAMPLINGMODE = 3,
267
+ /** Trilinear is mag = linear and min = linear and mip = linear */
268
+ TEXTURE_LINEAR_LINEAR_MIPLINEAR = 3,
269
+ /** mag = nearest and min = nearest and mip = nearest */
270
+ TEXTURE_NEAREST_NEAREST_MIPNEAREST = 4,
271
+ /** mag = nearest and min = linear and mip = nearest */
272
+ TEXTURE_NEAREST_LINEAR_MIPNEAREST = 5,
273
+ /** mag = nearest and min = linear and mip = linear */
274
+ TEXTURE_NEAREST_LINEAR_MIPLINEAR = 6,
275
+ /** mag = nearest and min = linear and mip = none */
276
+ TEXTURE_NEAREST_LINEAR = 7,
277
+ /** nearest is mag = nearest and min = nearest and mip = linear */
278
+ TEXTURE_NEAREST_NEAREST_MIPLINEAR = 8,
279
+ /** mag = linear and min = nearest and mip = nearest */
280
+ TEXTURE_LINEAR_NEAREST_MIPNEAREST = 9,
281
+ /** mag = linear and min = nearest and mip = linear */
282
+ TEXTURE_LINEAR_NEAREST_MIPLINEAR = 10,
283
+ /** Bilinear is mag = linear and min = linear and mip = nearest */
284
+ TEXTURE_LINEAR_LINEAR_MIPNEAREST = 11,
285
+ /** mag = linear and min = nearest and mip = none */
286
+ TEXTURE_LINEAR_NEAREST = 12,
287
+ /** Explicit coordinates mode */
288
+ TEXTURE_EXPLICIT_MODE = 0,
289
+ /** Spherical coordinates mode */
290
+ TEXTURE_SPHERICAL_MODE = 1,
291
+ /** Planar coordinates mode */
292
+ TEXTURE_PLANAR_MODE = 2,
293
+ /** Cubic coordinates mode */
294
+ TEXTURE_CUBIC_MODE = 3,
295
+ /** Projection coordinates mode */
296
+ TEXTURE_PROJECTION_MODE = 4,
297
+ /** Skybox coordinates mode */
298
+ TEXTURE_SKYBOX_MODE = 5,
299
+ /** Inverse Cubic coordinates mode */
300
+ TEXTURE_INVCUBIC_MODE = 6,
301
+ /** Equirectangular coordinates mode */
302
+ TEXTURE_EQUIRECTANGULAR_MODE = 7,
303
+ /** Equirectangular Fixed coordinates mode */
304
+ TEXTURE_FIXED_EQUIRECTANGULAR_MODE = 8,
305
+ /** Equirectangular Fixed Mirrored coordinates mode */
306
+ TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE = 9,
307
+ /** Offline (baking) quality for texture filtering */
308
+ TEXTURE_FILTERING_QUALITY_OFFLINE = 4096,
309
+ /** High quality for texture filtering */
310
+ TEXTURE_FILTERING_QUALITY_HIGH = 64,
311
+ /** Medium quality for texture filtering */
312
+ TEXTURE_FILTERING_QUALITY_MEDIUM = 16,
313
+ /** Low quality for texture filtering */
314
+ TEXTURE_FILTERING_QUALITY_LOW = 8,
315
+ /** Defines that texture rescaling will use a floor to find the closer power of 2 size */
316
+ SCALEMODE_FLOOR = 1,
317
+ /** Defines that texture rescaling will look for the nearest power of 2 size */
318
+ SCALEMODE_NEAREST = 2,
319
+ /** Defines that texture rescaling will use a ceil to find the closer power of 2 size */
320
+ SCALEMODE_CEILING = 3,
321
+ /**
322
+ * The dirty texture flag value
323
+ */
324
+ MATERIAL_TextureDirtyFlag = 1,
325
+ /**
326
+ * The dirty light flag value
327
+ */
328
+ MATERIAL_LightDirtyFlag = 2,
329
+ /**
330
+ * The dirty fresnel flag value
331
+ */
332
+ MATERIAL_FresnelDirtyFlag = 4,
333
+ /**
334
+ * The dirty attribute flag value
335
+ */
336
+ MATERIAL_AttributesDirtyFlag = 8,
337
+ /**
338
+ * The dirty misc flag value
339
+ */
340
+ MATERIAL_MiscDirtyFlag = 16,
341
+ /**
342
+ * The dirty prepass flag value
343
+ */
344
+ MATERIAL_PrePassDirtyFlag = 32,
345
+ /**
346
+ * The all dirty flag value
347
+ */
348
+ MATERIAL_AllDirtyFlag = 63,
349
+ /**
350
+ * Returns the triangle fill mode
351
+ */
352
+ MATERIAL_TriangleFillMode = 0,
353
+ /**
354
+ * Returns the wireframe mode
355
+ */
356
+ MATERIAL_WireFrameFillMode = 1,
357
+ /**
358
+ * Returns the point fill mode
359
+ */
360
+ MATERIAL_PointFillMode = 2,
361
+ /**
362
+ * Returns the point list draw mode
363
+ */
364
+ MATERIAL_PointListDrawMode = 3,
365
+ /**
366
+ * Returns the line list draw mode
367
+ */
368
+ MATERIAL_LineListDrawMode = 4,
369
+ /**
370
+ * Returns the line loop draw mode
371
+ */
372
+ MATERIAL_LineLoopDrawMode = 5,
373
+ /**
374
+ * Returns the line strip draw mode
375
+ */
376
+ MATERIAL_LineStripDrawMode = 6,
377
+ /**
378
+ * Returns the triangle strip draw mode
379
+ */
380
+ MATERIAL_TriangleStripDrawMode = 7,
381
+ /**
382
+ * Returns the triangle fan draw mode
383
+ */
384
+ MATERIAL_TriangleFanDrawMode = 8,
385
+ /**
386
+ * Stores the clock-wise side orientation
387
+ */
388
+ MATERIAL_ClockWiseSideOrientation = 0,
389
+ /**
390
+ * Stores the counter clock-wise side orientation
391
+ */
392
+ MATERIAL_CounterClockWiseSideOrientation = 1,
393
+ /**
394
+ * Nothing
395
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
396
+ */
397
+ ACTION_NothingTrigger = 0,
398
+ /**
399
+ * On pick
400
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
401
+ */
402
+ ACTION_OnPickTrigger = 1,
403
+ /**
404
+ * On left pick
405
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
406
+ */
407
+ ACTION_OnLeftPickTrigger = 2,
408
+ /**
409
+ * On right pick
410
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
411
+ */
412
+ ACTION_OnRightPickTrigger = 3,
413
+ /**
414
+ * On center pick
415
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
416
+ */
417
+ ACTION_OnCenterPickTrigger = 4,
418
+ /**
419
+ * On pick down
420
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
421
+ */
422
+ ACTION_OnPickDownTrigger = 5,
423
+ /**
424
+ * On double pick
425
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
426
+ */
427
+ ACTION_OnDoublePickTrigger = 6,
428
+ /**
429
+ * On pick up
430
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
431
+ */
432
+ ACTION_OnPickUpTrigger = 7,
433
+ /**
434
+ * On pick out.
435
+ * This trigger will only be raised if you also declared a OnPickDown
436
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
437
+ */
438
+ ACTION_OnPickOutTrigger = 16,
439
+ /**
440
+ * On long press
441
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
442
+ */
443
+ ACTION_OnLongPressTrigger = 8,
444
+ /**
445
+ * On pointer over
446
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
447
+ */
448
+ ACTION_OnPointerOverTrigger = 9,
449
+ /**
450
+ * On pointer out
451
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
452
+ */
453
+ ACTION_OnPointerOutTrigger = 10,
454
+ /**
455
+ * On every frame
456
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
457
+ */
458
+ ACTION_OnEveryFrameTrigger = 11,
459
+ /**
460
+ * On intersection enter
461
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
462
+ */
463
+ ACTION_OnIntersectionEnterTrigger = 12,
464
+ /**
465
+ * On intersection exit
466
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
467
+ */
468
+ ACTION_OnIntersectionExitTrigger = 13,
469
+ /**
470
+ * On key down
471
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
472
+ */
473
+ ACTION_OnKeyDownTrigger = 14,
474
+ /**
475
+ * On key up
476
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions#triggers
477
+ */
478
+ ACTION_OnKeyUpTrigger = 15,
479
+ /**
480
+ * Billboard mode will only apply to Y axis
481
+ */
482
+ PARTICLES_BILLBOARDMODE_Y = 2,
483
+ /**
484
+ * Billboard mode will apply to all axes
485
+ */
486
+ PARTICLES_BILLBOARDMODE_ALL = 7,
487
+ /**
488
+ * Special billboard mode where the particle will be biilboard to the camera but rotated to align with direction
489
+ */
490
+ PARTICLES_BILLBOARDMODE_STRETCHED = 8,
491
+ /**
492
+ * Special billboard mode where the particle will be billboard to the camera but only around the axis of the direction of particle emission
493
+ */
494
+ PARTICLES_BILLBOARDMODE_STRETCHED_LOCAL = 9,
495
+ /** Default culling strategy : this is an exclusion test and it's the more accurate.
496
+ * Test order :
497
+ * Is the bounding sphere outside the frustum ?
498
+ * If not, are the bounding box vertices outside the frustum ?
499
+ * It not, then the cullable object is in the frustum.
500
+ */
501
+ MESHES_CULLINGSTRATEGY_STANDARD = 0,
502
+ /** Culling strategy : Bounding Sphere Only.
503
+ * This is an exclusion test. It's faster than the standard strategy because the bounding box is not tested.
504
+ * It's also less accurate than the standard because some not visible objects can still be selected.
505
+ * Test : is the bounding sphere outside the frustum ?
506
+ * If not, then the cullable object is in the frustum.
507
+ */
508
+ MESHES_CULLINGSTRATEGY_BOUNDINGSPHERE_ONLY = 1,
509
+ /** Culling strategy : Optimistic Inclusion.
510
+ * This in an inclusion test first, then the standard exclusion test.
511
+ * This can be faster when a cullable object is expected to be almost always in the camera frustum.
512
+ * This could also be a little slower than the standard test when the tested object center is not the frustum but one of its bounding box vertex is still inside.
513
+ * Anyway, it's as accurate as the standard strategy.
514
+ * Test :
515
+ * Is the cullable object bounding sphere center in the frustum ?
516
+ * If not, apply the default culling strategy.
517
+ */
518
+ MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION = 2,
519
+ /** Culling strategy : Optimistic Inclusion then Bounding Sphere Only.
520
+ * This in an inclusion test first, then the bounding sphere only exclusion test.
521
+ * This can be the fastest test when a cullable object is expected to be almost always in the camera frustum.
522
+ * This could also be a little slower than the BoundingSphereOnly strategy when the tested object center is not in the frustum but its bounding sphere still intersects it.
523
+ * It's less accurate than the standard strategy and as accurate as the BoundingSphereOnly strategy.
524
+ * Test :
525
+ * Is the cullable object bounding sphere center in the frustum ?
526
+ * If not, apply the Bounding Sphere Only strategy. No Bounding Box is tested here.
527
+ */
528
+ MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION_THEN_BSPHERE_ONLY = 3,
529
+ /**
530
+ * No logging while loading
531
+ */
532
+ SCENELOADER_NO_LOGGING = 0,
533
+ /**
534
+ * Minimal logging while loading
535
+ */
536
+ SCENELOADER_MINIMAL_LOGGING = 1,
537
+ /**
538
+ * Summary logging while loading
539
+ */
540
+ SCENELOADER_SUMMARY_LOGGING = 2,
541
+ /**
542
+ * Detailed logging while loading
543
+ */
544
+ SCENELOADER_DETAILED_LOGGING = 3,
545
+ /**
546
+ * Constant used to retrieve the irradiance texture index in the textures array in the prepass
547
+ * using getIndex(Constants.PREPASS_IRRADIANCE_TEXTURE_TYPE)
548
+ */
549
+ PREPASS_IRRADIANCE_TEXTURE_TYPE = 0,
550
+ /**
551
+ * Constant used to retrieve the position texture index in the textures array in the prepass
552
+ * using getIndex(Constants.PREPASS_POSITION_TEXTURE_INDEX)
553
+ */
554
+ PREPASS_POSITION_TEXTURE_TYPE = 1,
555
+ /**
556
+ * Constant used to retrieve the velocity texture index in the textures array in the prepass
557
+ * using getIndex(Constants.PREPASS_VELOCITY_TEXTURE_INDEX)
558
+ */
559
+ PREPASS_VELOCITY_TEXTURE_TYPE = 2,
560
+ /**
561
+ * Constant used to retrieve the reflectivity texture index in the textures array in the prepass
562
+ * using the getIndex(Constants.PREPASS_REFLECTIVITY_TEXTURE_TYPE)
563
+ */
564
+ PREPASS_REFLECTIVITY_TEXTURE_TYPE = 3,
565
+ /**
566
+ * Constant used to retrieve the lit color texture index in the textures array in the prepass
567
+ * using the getIndex(Constants.PREPASS_COLOR_TEXTURE_TYPE)
568
+ */
569
+ PREPASS_COLOR_TEXTURE_TYPE = 4,
570
+ /**
571
+ * Constant used to retrieve depth index in the textures array in the prepass
572
+ * using the getIndex(Constants.PREPASS_DEPTH_TEXTURE_TYPE)
573
+ */
574
+ PREPASS_DEPTH_TEXTURE_TYPE = 5,
575
+ /**
576
+ * Constant used to retrieve normal index in the textures array in the prepass
577
+ * using the getIndex(Constants.PREPASS_NORMAL_TEXTURE_TYPE)
578
+ */
579
+ PREPASS_NORMAL_TEXTURE_TYPE = 6,
580
+ /**
581
+ * Constant used to retrieve albedo index in the textures array in the prepass
582
+ * using the getIndex(Constants.PREPASS_ALBEDO_SQRT_TEXTURE_TYPE)
583
+ */
584
+ PREPASS_ALBEDO_SQRT_TEXTURE_TYPE = 7,
585
+ /** Flag to create a readable buffer (the buffer can be the source of a copy) */
586
+ BUFFER_CREATIONFLAG_READ = 1,
587
+ /** Flag to create a writable buffer (the buffer can be the destination of a copy) */
588
+ BUFFER_CREATIONFLAG_WRITE = 2,
589
+ /** Flag to create a readable and writable buffer */
590
+ BUFFER_CREATIONFLAG_READWRITE = 3,
591
+ /** Flag to create a buffer suitable to be used as a uniform buffer */
592
+ BUFFER_CREATIONFLAG_UNIFORM = 4,
593
+ /** Flag to create a buffer suitable to be used as a vertex buffer */
594
+ BUFFER_CREATIONFLAG_VERTEX = 8,
595
+ /** Flag to create a buffer suitable to be used as an index buffer */
596
+ BUFFER_CREATIONFLAG_INDEX = 16,
597
+ /** Flag to create a buffer suitable to be used as a storage buffer */
598
+ BUFFER_CREATIONFLAG_STORAGE = 32,
599
+ /**
600
+ * Prefixes used by the engine for sub mesh draw wrappers
601
+ */
602
+ /** @internal */
603
+ RENDERPASS_MAIN = 0,
604
+ /**
605
+ * Constant used as key code for Alt key
606
+ */
607
+ INPUT_ALT_KEY = 18,
608
+ /**
609
+ * Constant used as key code for Ctrl key
610
+ */
611
+ INPUT_CTRL_KEY = 17,
612
+ /**
613
+ * Constant used as key code for Meta key (Left Win, Left Cmd)
614
+ */
615
+ INPUT_META_KEY1 = 91,
616
+ /**
617
+ * Constant used as key code for Meta key (Right Win)
618
+ */
619
+ INPUT_META_KEY2 = 92,
620
+ /**
621
+ * Constant used as key code for Meta key (Right Win, Right Cmd)
622
+ */
623
+ INPUT_META_KEY3 = 93,
624
+ /**
625
+ * Constant used as key code for Shift key
626
+ */
627
+ INPUT_SHIFT_KEY = 16,
628
+ /** Standard snapshot rendering. In this mode, some form of dynamic behavior is possible (for eg, uniform buffers are still updated) */
629
+ SNAPSHOTRENDERING_STANDARD = 0,
630
+ /** Fast snapshot rendering. In this mode, everything is static and only some limited form of dynamic behaviour is possible */
631
+ SNAPSHOTRENDERING_FAST = 1,
632
+ /**
633
+ * This is the default projection mode used by the cameras.
634
+ * It helps recreating a feeling of perspective and better appreciate depth.
635
+ * This is the best way to simulate real life cameras.
636
+ */
637
+ PERSPECTIVE_CAMERA = 0,
638
+ /**
639
+ * This helps creating camera with an orthographic mode.
640
+ * Orthographic is commonly used in engineering as a means to produce object specifications that communicate dimensions unambiguously, each line of 1 unit length (cm, meter..whatever) will appear to have the same length everywhere on the drawing. This allows the drafter to dimension only a subset of lines and let the reader know that other lines of that length on the drawing are also that length in reality. Every parallel line in the drawing is also parallel in the object.
641
+ */
642
+ ORTHOGRAPHIC_CAMERA = 1,
643
+ /**
644
+ * This is the default FOV mode for perspective cameras.
645
+ * This setting aligns the upper and lower bounds of the viewport to the upper and lower bounds of the camera frustum.
646
+ */
647
+ FOVMODE_VERTICAL_FIXED = 0,
648
+ /**
649
+ * This setting aligns the left and right bounds of the viewport to the left and right bounds of the camera frustum.
650
+ */
651
+ FOVMODE_HORIZONTAL_FIXED = 1,
652
+ /**
653
+ * This specifies there is no need for a camera rig.
654
+ * Basically only one eye is rendered corresponding to the camera.
655
+ */
656
+ RIG_MODE_NONE = 0,
657
+ /**
658
+ * Simulates a camera Rig with one blue eye and one red eye.
659
+ * This can be use with 3d blue and red glasses.
660
+ */
661
+ RIG_MODE_STEREOSCOPIC_ANAGLYPH = 10,
662
+ /**
663
+ * Defines that both eyes of the camera will be rendered side by side with a parallel target.
664
+ */
665
+ RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL = 11,
666
+ /**
667
+ * Defines that both eyes of the camera will be rendered side by side with a none parallel target.
668
+ */
669
+ RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED = 12,
670
+ /**
671
+ * Defines that both eyes of the camera will be rendered over under each other.
672
+ */
673
+ RIG_MODE_STEREOSCOPIC_OVERUNDER = 13,
674
+ /**
675
+ * Defines that both eyes of the camera will be rendered on successive lines interlaced for passive 3d monitors.
676
+ */
677
+ RIG_MODE_STEREOSCOPIC_INTERLACED = 14,
678
+ /**
679
+ * Defines that both eyes of the camera should be renderered in a VR mode (carbox).
680
+ */
681
+ RIG_MODE_VR = 20,
682
+ /**
683
+ * Defines that both eyes of the camera should be renderered in a VR mode (webVR).
684
+ */
685
+ RIG_MODE_WEBVR = 21,
686
+ /**
687
+ * Custom rig mode allowing rig cameras to be populated manually with any number of cameras
688
+ */
689
+ RIG_MODE_CUSTOM = 22,
690
+ /**
691
+ * Maximum number of uv sets supported
692
+ */
693
+ MAX_SUPPORTED_UV_SETS = 6,
694
+ /**
695
+ * GL constants
696
+ */
697
+ /** Alpha blend equation: ADD */
698
+ GL_ALPHA_EQUATION_ADD = 32774,
699
+ /** Alpha equation: MIN */
700
+ GL_ALPHA_EQUATION_MIN = 32775,
701
+ /** Alpha equation: MAX */
702
+ GL_ALPHA_EQUATION_MAX = 32776,
703
+ /** Alpha equation: SUBTRACT */
704
+ GL_ALPHA_EQUATION_SUBTRACT = 32778,
705
+ /** Alpha equation: REVERSE_SUBTRACT */
706
+ GL_ALPHA_EQUATION_REVERSE_SUBTRACT = 32779,
707
+ /** Alpha blend function: SRC */
708
+ GL_ALPHA_FUNCTION_SRC = 768,
709
+ /** Alpha blend function: ONE_MINUS_SRC */
710
+ GL_ALPHA_FUNCTION_ONE_MINUS_SRC_COLOR = 769,
711
+ /** Alpha blend function: SRC_ALPHA */
712
+ GL_ALPHA_FUNCTION_SRC_ALPHA = 770,
713
+ /** Alpha blend function: ONE_MINUS_SRC_ALPHA */
714
+ GL_ALPHA_FUNCTION_ONE_MINUS_SRC_ALPHA = 771,
715
+ /** Alpha blend function: DST_ALPHA */
716
+ GL_ALPHA_FUNCTION_DST_ALPHA = 772,
717
+ /** Alpha blend function: ONE_MINUS_DST_ALPHA */
718
+ GL_ALPHA_FUNCTION_ONE_MINUS_DST_ALPHA = 773,
719
+ /** Alpha blend function: ONE_MINUS_DST */
720
+ GL_ALPHA_FUNCTION_DST_COLOR = 774,
721
+ /** Alpha blend function: ONE_MINUS_DST */
722
+ GL_ALPHA_FUNCTION_ONE_MINUS_DST_COLOR = 775,
723
+ /** Alpha blend function: SRC_ALPHA_SATURATED */
724
+ GL_ALPHA_FUNCTION_SRC_ALPHA_SATURATED = 776,
725
+ /** Alpha blend function: CONSTANT */
726
+ GL_ALPHA_FUNCTION_CONSTANT_COLOR = 32769,
727
+ /** Alpha blend function: ONE_MINUS_CONSTANT */
728
+ GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_COLOR = 32770,
729
+ /** Alpha blend function: CONSTANT_ALPHA */
730
+ GL_ALPHA_FUNCTION_CONSTANT_ALPHA = 32771,
731
+ /** Alpha blend function: ONE_MINUS_CONSTANT_ALPHA */
732
+ GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_ALPHA = 32772,
733
+ /** URL to the snippet server. Points to the public snippet server by default */
734
+ SnippetUrl = "https://snippet.babylonjs.com"
735
+ }