@babylonjs/core 8.50.1 → 8.50.3

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 (50) hide show
  1. package/Cameras/Inputs/geospatialCameraPointersInput.d.ts +16 -0
  2. package/Cameras/Inputs/geospatialCameraPointersInput.js +19 -3
  3. package/Cameras/Inputs/geospatialCameraPointersInput.js.map +1 -1
  4. package/Cameras/Limits/geospatialLimits.d.ts +0 -6
  5. package/Cameras/Limits/geospatialLimits.js +0 -6
  6. package/Cameras/Limits/geospatialLimits.js.map +1 -1
  7. package/Cameras/geospatialCamera.d.ts +5 -0
  8. package/Cameras/geospatialCamera.js +38 -10
  9. package/Cameras/geospatialCamera.js.map +1 -1
  10. package/Engines/abstractEngine.d.ts +2 -2
  11. package/Engines/abstractEngine.js +2 -2
  12. package/Engines/abstractEngine.js.map +1 -1
  13. package/Engines/webgpuEngine.d.ts +1 -4
  14. package/Engines/webgpuEngine.js +8 -6
  15. package/Engines/webgpuEngine.js.map +1 -1
  16. package/FrameGraph/frameGraphContext.js +1 -1
  17. package/FrameGraph/frameGraphContext.js.map +1 -1
  18. package/FrameGraph/frameGraphRenderContext.js +2 -2
  19. package/FrameGraph/frameGraphRenderContext.js.map +1 -1
  20. package/Lights/Shadows/cascadedShadowGenerator.js +1 -1
  21. package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
  22. package/Lights/Shadows/shadowGenerator.js +1 -1
  23. package/Lights/Shadows/shadowGenerator.js.map +1 -1
  24. package/Lights/lightingVolume.js +1 -1
  25. package/Lights/lightingVolume.js.map +1 -1
  26. package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +2 -1
  27. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +19 -1
  28. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  29. package/Materials/Textures/Procedurals/proceduralTexture.js +1 -1
  30. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  31. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +1 -1
  32. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +5 -6
  33. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  34. package/Physics/v2/Plugins/havokPlugin.d.ts +75 -2
  35. package/Physics/v2/Plugins/havokPlugin.js +243 -52
  36. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  37. package/Probes/reflectionProbe.js +1 -1
  38. package/Probes/reflectionProbe.js.map +1 -1
  39. package/Rendering/depthRenderer.js +3 -2
  40. package/Rendering/depthRenderer.js.map +1 -1
  41. package/Shaders/gaussianSplattingDepth.vertex.js +16 -2
  42. package/Shaders/gaussianSplattingDepth.vertex.js.map +1 -1
  43. package/ShadersWGSL/gaussianSplattingDepth.vertex.js +16 -2
  44. package/ShadersWGSL/gaussianSplattingDepth.vertex.js.map +1 -1
  45. package/XR/features/WebXRHandTracking.js +2 -1
  46. package/XR/features/WebXRHandTracking.js.map +1 -1
  47. package/package.json +1 -1
  48. package/scene.d.ts +0 -3
  49. package/scene.js +18 -5
  50. package/scene.js.map +1 -1
@@ -897,10 +897,7 @@ export declare class WebGPUEngine extends ThinWebGPUEngine {
897
897
  * @param resolveColors If true, resolve the color textures (default: true) - still subject to texture.resolveMSAAColors
898
898
  */
899
899
  resolveFramebuffer(texture: RenderTargetWrapper, resolveColors?: boolean): void;
900
- /**
901
- * Unbind the current render target
902
- */
903
- restoreDefaultFramebuffer(): void;
900
+ restoreDefaultFramebuffer(unbindOnly?: boolean): void;
904
901
  /**
905
902
  * @internal
906
903
  */
@@ -2768,15 +2768,17 @@ export class WebGPUEngine extends ThinWebGPUEngine {
2768
2768
  this._textureHelper.resolveMSAADepthTexture(gpuTextureWrapper.getMSAATexture(texture.samples), gpuTextureWrapper.underlyingResource, this._renderEncoder);
2769
2769
  }
2770
2770
  }
2771
- /**
2772
- * Unbind the current render target
2773
- */
2774
- restoreDefaultFramebuffer() {
2771
+ restoreDefaultFramebuffer(unbindOnly) {
2775
2772
  if (this._currentRenderTarget) {
2776
2773
  this.unBindFramebuffer(this._currentRenderTarget);
2777
2774
  }
2778
- else if (this._currentRenderPass) {
2779
- this._endCurrentRenderPass();
2775
+ else {
2776
+ if (!this._currentRenderPass && !unbindOnly) {
2777
+ this._startMainRenderPass(false);
2778
+ }
2779
+ else {
2780
+ this._endCurrentRenderPass();
2781
+ }
2780
2782
  }
2781
2783
  if (this._cachedViewport) {
2782
2784
  this.setViewport(this._cachedViewport);