@babylonjs/core 7.25.1 → 7.26.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 (171) hide show
  1. package/Collisions/gpuPicker.d.ts +5 -0
  2. package/Collisions/gpuPicker.js +34 -11
  3. package/Collisions/gpuPicker.js.map +1 -1
  4. package/Engines/Extensions/engine.prefilteredCubeTexture.d.ts +0 -1
  5. package/Engines/Extensions/engine.prefilteredCubeTexture.js +0 -1
  6. package/Engines/Extensions/engine.prefilteredCubeTexture.js.map +1 -1
  7. package/Engines/WebGPU/Extensions/engine.alpha.js +3 -3
  8. package/Engines/WebGPU/Extensions/engine.alpha.js.map +1 -1
  9. package/Engines/WebGPU/Extensions/engine.cubeTexture.js +5 -5
  10. package/Engines/WebGPU/Extensions/engine.cubeTexture.js.map +1 -1
  11. package/Engines/WebGPU/Extensions/engine.rawTexture.js +10 -10
  12. package/Engines/WebGPU/Extensions/engine.rawTexture.js.map +1 -1
  13. package/Engines/WebGPU/Extensions/engine.readTexture.js +3 -3
  14. package/Engines/WebGPU/Extensions/engine.readTexture.js.map +1 -1
  15. package/Engines/WebGPU/Extensions/engine.renderTarget.js +6 -6
  16. package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
  17. package/Engines/WebGPU/Extensions/engine.renderTargetCube.js +2 -2
  18. package/Engines/WebGPU/Extensions/engine.renderTargetCube.js.map +1 -1
  19. package/Engines/WebGPU/Extensions/engine.renderTargetTexture.js +2 -2
  20. package/Engines/WebGPU/Extensions/engine.renderTargetTexture.js.map +1 -1
  21. package/Engines/WebGPU/webgpuRenderTargetWrapper.d.ts +2 -2
  22. package/Engines/WebGPU/webgpuRenderTargetWrapper.js.map +1 -1
  23. package/Engines/abstractEngine.d.ts +2 -0
  24. package/Engines/abstractEngine.js +2 -2
  25. package/Engines/abstractEngine.js.map +1 -1
  26. package/Engines/constants.d.ts +3 -3
  27. package/Engines/constants.js +3 -3
  28. package/Engines/constants.js.map +1 -1
  29. package/Engines/engine.d.ts +5 -5
  30. package/Engines/engine.js +5 -0
  31. package/Engines/engine.js.map +1 -1
  32. package/Engines/thinEngine.js +6 -2
  33. package/Engines/thinEngine.js.map +1 -1
  34. package/Engines/thinWebGPUEngine.d.ts +66 -0
  35. package/Engines/thinWebGPUEngine.js +120 -0
  36. package/Engines/thinWebGPUEngine.js.map +1 -0
  37. package/Engines/webgpuEngine.d.ts +9 -58
  38. package/Engines/webgpuEngine.js +9 -108
  39. package/Engines/webgpuEngine.js.map +1 -1
  40. package/Materials/Node/Blocks/Fragment/prePassOutputBlock.d.ts +10 -10
  41. package/Materials/Node/Blocks/Fragment/prePassOutputBlock.js +22 -20
  42. package/Materials/Node/Blocks/Fragment/prePassOutputBlock.js.map +1 -1
  43. package/Materials/Node/Blocks/Input/prePassTextureBlock.d.ts +9 -9
  44. package/Materials/Node/Blocks/Input/prePassTextureBlock.js +41 -32
  45. package/Materials/Node/Blocks/Input/prePassTextureBlock.js.map +1 -1
  46. package/Materials/Node/Blocks/PBR/clearCoatBlock.js +0 -5
  47. package/Materials/Node/Blocks/PBR/clearCoatBlock.js.map +1 -1
  48. package/Materials/Node/Blocks/colorConverterBlock.d.ts +36 -0
  49. package/Materials/Node/Blocks/colorConverterBlock.js +192 -0
  50. package/Materials/Node/Blocks/colorConverterBlock.js.map +1 -0
  51. package/Materials/Node/Blocks/index.d.ts +1 -0
  52. package/Materials/Node/Blocks/index.js +1 -0
  53. package/Materials/Node/Blocks/index.js.map +1 -1
  54. package/Materials/Node/nodeMaterial.d.ts +2 -2
  55. package/Materials/Node/nodeMaterial.js +7 -4
  56. package/Materials/Node/nodeMaterial.js.map +1 -1
  57. package/Materials/Node/nodeMaterialBuildState.d.ts +1 -1
  58. package/Materials/PBR/pbrBaseMaterial.d.ts +2 -2
  59. package/Materials/PBR/pbrBaseMaterial.js +2 -2
  60. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  61. package/Materials/Textures/Filtering/hdrFiltering.d.ts +0 -1
  62. package/Materials/Textures/Filtering/hdrFiltering.js +0 -1
  63. package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
  64. package/Materials/Textures/Loaders/basisTextureLoader.d.ts +0 -1
  65. package/Materials/Textures/Loaders/basisTextureLoader.js +0 -1
  66. package/Materials/Textures/Loaders/basisTextureLoader.js.map +1 -1
  67. package/Materials/Textures/Loaders/ddsTextureLoader.d.ts +0 -1
  68. package/Materials/Textures/Loaders/ddsTextureLoader.js +0 -1
  69. package/Materials/Textures/Loaders/ddsTextureLoader.js.map +1 -1
  70. package/Materials/Textures/Loaders/ktxTextureLoader.d.ts +0 -1
  71. package/Materials/Textures/Loaders/ktxTextureLoader.js +0 -1
  72. package/Materials/Textures/Loaders/ktxTextureLoader.js.map +1 -1
  73. package/Materials/Textures/Procedurals/proceduralTexture.d.ts +0 -2
  74. package/Materials/Textures/Procedurals/proceduralTexture.js +0 -2
  75. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  76. package/Materials/Textures/baseTexture.d.ts +0 -1
  77. package/Materials/Textures/baseTexture.js +0 -1
  78. package/Materials/Textures/baseTexture.js.map +1 -1
  79. package/Materials/Textures/colorGradingTexture.d.ts +0 -1
  80. package/Materials/Textures/colorGradingTexture.js +0 -2
  81. package/Materials/Textures/colorGradingTexture.js.map +1 -1
  82. package/Materials/Textures/cubeTexture.d.ts +0 -1
  83. package/Materials/Textures/cubeTexture.js +0 -1
  84. package/Materials/Textures/cubeTexture.js.map +1 -1
  85. package/Materials/Textures/equiRectangularCubeTexture.d.ts +0 -1
  86. package/Materials/Textures/equiRectangularCubeTexture.js +0 -1
  87. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  88. package/Materials/Textures/hdrCubeTexture.d.ts +0 -1
  89. package/Materials/Textures/hdrCubeTexture.js +0 -1
  90. package/Materials/Textures/hdrCubeTexture.js.map +1 -1
  91. package/Materials/Textures/rawCubeTexture.d.ts +0 -1
  92. package/Materials/Textures/rawCubeTexture.js +0 -1
  93. package/Materials/Textures/rawCubeTexture.js.map +1 -1
  94. package/Materials/Textures/rawTexture.d.ts +0 -1
  95. package/Materials/Textures/rawTexture.js +0 -1
  96. package/Materials/Textures/rawTexture.js.map +1 -1
  97. package/Materials/Textures/rawTexture2DArray.d.ts +0 -1
  98. package/Materials/Textures/rawTexture2DArray.js +0 -1
  99. package/Materials/Textures/rawTexture2DArray.js.map +1 -1
  100. package/Materials/Textures/rawTexture3D.d.ts +0 -1
  101. package/Materials/Textures/rawTexture3D.js +0 -1
  102. package/Materials/Textures/rawTexture3D.js.map +1 -1
  103. package/Materials/Textures/renderTargetTexture.d.ts +0 -3
  104. package/Materials/Textures/renderTargetTexture.js +0 -3
  105. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  106. package/Materials/material.detailMapConfiguration.d.ts +2 -2
  107. package/Materials/material.detailMapConfiguration.js.map +1 -1
  108. package/Materials/materialHelper.functions.js +2 -2
  109. package/Materials/materialHelper.functions.js.map +1 -1
  110. package/Materials/standardMaterial.d.ts +2 -2
  111. package/Materials/standardMaterial.js +2 -2
  112. package/Materials/standardMaterial.js.map +1 -1
  113. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +6 -0
  114. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +32 -7
  115. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  116. package/Meshes/geometry.d.ts +2 -1
  117. package/Meshes/geometry.js +3 -2
  118. package/Meshes/geometry.js.map +1 -1
  119. package/Meshes/mesh.d.ts +2 -1
  120. package/Meshes/mesh.js +5 -3
  121. package/Meshes/mesh.js.map +1 -1
  122. package/Misc/basis.d.ts +3 -3
  123. package/Misc/basis.js.map +1 -1
  124. package/Misc/dds.d.ts +0 -1
  125. package/Misc/dds.js +0 -1
  126. package/Misc/dds.js.map +1 -1
  127. package/Misc/environmentTextureTools.d.ts +0 -2
  128. package/Misc/environmentTextureTools.js +0 -2
  129. package/Misc/environmentTextureTools.js.map +1 -1
  130. package/Misc/minMaxReducer.d.ts +0 -1
  131. package/Misc/minMaxReducer.js +0 -1
  132. package/Misc/minMaxReducer.js.map +1 -1
  133. package/Misc/rgbdTextureTools.d.ts +0 -2
  134. package/Misc/rgbdTextureTools.js +5 -10
  135. package/Misc/rgbdTextureTools.js.map +1 -1
  136. package/Misc/screenshotTools.d.ts +0 -1
  137. package/Misc/screenshotTools.js +0 -1
  138. package/Misc/screenshotTools.js.map +1 -1
  139. package/Particles/particleSystem.js.map +1 -1
  140. package/Particles/thinParticleSystem.js.map +1 -1
  141. package/PostProcesses/anaglyphPostProcess.d.ts +2 -2
  142. package/PostProcesses/anaglyphPostProcess.js.map +1 -1
  143. package/PostProcesses/highlightsPostProcess.d.ts +2 -2
  144. package/PostProcesses/highlightsPostProcess.js.map +1 -1
  145. package/PostProcesses/postProcess.d.ts +0 -1
  146. package/PostProcesses/postProcess.js +0 -1
  147. package/PostProcesses/postProcess.js.map +1 -1
  148. package/PostProcesses/stereoscopicInterlacePostProcess.d.ts +3 -3
  149. package/PostProcesses/stereoscopicInterlacePostProcess.js.map +1 -1
  150. package/PostProcesses/tonemapPostProcess.d.ts +2 -2
  151. package/PostProcesses/tonemapPostProcess.js.map +1 -1
  152. package/Rendering/IBLShadows/iblShadowsAccumulationPass.js +2 -2
  153. package/Rendering/IBLShadows/iblShadowsAccumulationPass.js.map +1 -1
  154. package/Rendering/IBLShadows/iblShadowsRenderPipeline.js +2 -2
  155. package/Rendering/IBLShadows/iblShadowsRenderPipeline.js.map +1 -1
  156. package/Rendering/IBLShadows/iblShadowsVoxelTracingPass.js.map +1 -1
  157. package/Rendering/prePassRenderer.js +5 -4
  158. package/Rendering/prePassRenderer.js.map +1 -1
  159. package/Shaders/ShadersInclude/pbrBlockClearcoat.js +0 -5
  160. package/Shaders/ShadersInclude/pbrBlockClearcoat.js.map +1 -1
  161. package/Shaders/default.fragment.js +4 -4
  162. package/Shaders/default.fragment.js.map +1 -1
  163. package/Shaders/pbr.fragment.js +5 -9
  164. package/Shaders/pbr.fragment.js.map +1 -1
  165. package/ShadersWGSL/ShadersInclude/pbrBlockClearcoat.js +0 -5
  166. package/ShadersWGSL/ShadersInclude/pbrBlockClearcoat.js.map +1 -1
  167. package/ShadersWGSL/default.fragment.js +4 -4
  168. package/ShadersWGSL/default.fragment.js.map +1 -1
  169. package/ShadersWGSL/pbr.fragment.js +5 -9
  170. package/ShadersWGSL/pbr.fragment.js.map +1 -1
  171. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import type { TextureSize } from "../../Materials/Textures/textureCreationOptions";
2
- import type { WebGPUEngine } from "../webgpuEngine";
3
2
  import { RenderTargetWrapper } from "../renderTargetWrapper";
4
3
  import { WebGPUPerfCounter } from "./webgpuPerfCounter";
4
+ import type { ThinWebGPUEngine } from "../thinWebGPUEngine";
5
5
  /**
6
6
  * Specialized class used to store a render target of a WebGPU engine
7
7
  */
@@ -21,5 +21,5 @@ export declare class WebGPURenderTargetWrapper extends RenderTargetWrapper {
21
21
  * @param engine engine used to create the render target
22
22
  * @param label defines the label to use for the wrapper (for debugging purpose only)
23
23
  */
24
- constructor(isMulti: boolean, isCube: boolean, size: TextureSize, engine: WebGPUEngine, label?: string);
24
+ constructor(isMulti: boolean, isCube: boolean, size: TextureSize, engine: ThinWebGPUEngine, label?: string);
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"webgpuRenderTargetWrapper.js","sourceRoot":"","sources":["../../../../../dev/core/src/Engines/WebGPU/webgpuRenderTargetWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,mBAAmB;IAU9D;;;;;;;OAOG;IACH,YAAY,OAAgB,EAAE,MAAe,EAAE,IAAiB,EAAE,MAAoB,EAAE,KAAc;QAClG,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE5C,IAAI,MAAM,CAAC,2BAA2B,EAAE;YACpC,IAAI,CAAC,cAAc,GAAG,IAAI,iBAAiB,EAAE,CAAC;SACjD;IACL,CAAC;CACJ","sourcesContent":["import type { TextureSize } from \"../../Materials/Textures/textureCreationOptions\";\r\nimport type { WebGPUEngine } from \"../webgpuEngine\";\r\nimport { RenderTargetWrapper } from \"../renderTargetWrapper\";\r\nimport { WebGPUPerfCounter } from \"./webgpuPerfCounter\";\r\n\r\n/**\r\n * Specialized class used to store a render target of a WebGPU engine\r\n */\r\nexport class WebGPURenderTargetWrapper extends RenderTargetWrapper {\r\n /** @internal */\r\n public _defaultAttachments: number[];\r\n\r\n /**\r\n * Gets the GPU time spent rendering this render target in the last frame (in nanoseconds).\r\n * You have to enable the \"timestamp-query\" extension in the engine constructor options and set engine.enableGPUTimingMeasurements = true.\r\n */\r\n public readonly gpuTimeInFrame?: WebGPUPerfCounter;\r\n\r\n /**\r\n * Initializes the render target wrapper\r\n * @param isMulti true if the wrapper is a multi render target\r\n * @param isCube true if the wrapper should render to a cube texture\r\n * @param size size of the render target (width/height/layers)\r\n * @param engine engine used to create the render target\r\n * @param label defines the label to use for the wrapper (for debugging purpose only)\r\n */\r\n constructor(isMulti: boolean, isCube: boolean, size: TextureSize, engine: WebGPUEngine, label?: string) {\r\n super(isMulti, isCube, size, engine, label);\r\n\r\n if (engine.enableGPUTimingMeasurements) {\r\n this.gpuTimeInFrame = new WebGPUPerfCounter();\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"webgpuRenderTargetWrapper.js","sourceRoot":"","sources":["../../../../../dev/core/src/Engines/WebGPU/webgpuRenderTargetWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,mBAAmB;IAU9D;;;;;;;OAOG;IACH,YAAY,OAAgB,EAAE,MAAe,EAAE,IAAiB,EAAE,MAAwB,EAAE,KAAc;QACtG,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE5C,IAAI,MAAM,CAAC,2BAA2B,EAAE;YACpC,IAAI,CAAC,cAAc,GAAG,IAAI,iBAAiB,EAAE,CAAC;SACjD;IACL,CAAC;CACJ","sourcesContent":["import type { TextureSize } from \"../../Materials/Textures/textureCreationOptions\";\r\nimport { RenderTargetWrapper } from \"../renderTargetWrapper\";\r\nimport { WebGPUPerfCounter } from \"./webgpuPerfCounter\";\r\nimport type { ThinWebGPUEngine } from \"../thinWebGPUEngine\";\r\n\r\n/**\r\n * Specialized class used to store a render target of a WebGPU engine\r\n */\r\nexport class WebGPURenderTargetWrapper extends RenderTargetWrapper {\r\n /** @internal */\r\n public _defaultAttachments: number[];\r\n\r\n /**\r\n * Gets the GPU time spent rendering this render target in the last frame (in nanoseconds).\r\n * You have to enable the \"timestamp-query\" extension in the engine constructor options and set engine.enableGPUTimingMeasurements = true.\r\n */\r\n public readonly gpuTimeInFrame?: WebGPUPerfCounter;\r\n\r\n /**\r\n * Initializes the render target wrapper\r\n * @param isMulti true if the wrapper is a multi render target\r\n * @param isCube true if the wrapper should render to a cube texture\r\n * @param size size of the render target (width/height/layers)\r\n * @param engine engine used to create the render target\r\n * @param label defines the label to use for the wrapper (for debugging purpose only)\r\n */\r\n constructor(isMulti: boolean, isCube: boolean, size: TextureSize, engine: ThinWebGPUEngine, label?: string) {\r\n super(isMulti, isCube, size, engine, label);\r\n\r\n if (engine.enableGPUTimingMeasurements) {\r\n this.gpuTimeInFrame = new WebGPUPerfCounter();\r\n }\r\n }\r\n}\r\n"]}
@@ -596,6 +596,8 @@ export declare abstract class AbstractEngine {
596
596
  * @internal
597
597
  */
598
598
  abstract _uploadDataToTextureDirectly(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number, babylonInternalFormat?: number, useTextureWidthAndHeight?: boolean): void;
599
+ /** @internal */
600
+ abstract _unpackFlipY(value: boolean): void;
599
601
  /**
600
602
  * Reads pixels from the current frame buffer. Please note that this function can be slow
601
603
  * @param x defines the x coordinate of the rectangle where pixels must be read
@@ -741,13 +741,13 @@ export class AbstractEngine {
741
741
  */
742
742
  // Not mixed with Version for tooling purpose.
743
743
  static get NpmPackage() {
744
- return "babylonjs@7.25.1";
744
+ return "babylonjs@7.26.0";
745
745
  }
746
746
  /**
747
747
  * Returns the current version of the framework
748
748
  */
749
749
  static get Version() {
750
- return "7.25.1";
750
+ return "7.26.0";
751
751
  }
752
752
  /**
753
753
  * Gets the HTML canvas attached with the current webGL context