@babylonjs/core 8.40.1 → 8.41.1

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 (69) hide show
  1. package/Engines/Extensions/engine.computeShader.d.ts +2 -3
  2. package/Engines/Extensions/engine.computeShader.js.map +1 -1
  3. package/Engines/ICanvas.d.ts +3 -3
  4. package/Engines/ICanvas.js.map +1 -1
  5. package/Engines/abstractEngine.js +2 -2
  6. package/Engines/abstractEngine.js.map +1 -1
  7. package/Engines/webgpuEngine.js +2 -2
  8. package/Engines/webgpuEngine.js.map +1 -1
  9. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.d.ts +3 -0
  10. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js +29 -14
  11. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js.map +1 -1
  12. package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.d.ts +12 -41
  13. package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.js +106 -184
  14. package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.js.map +1 -1
  15. package/FrameGraph/Node/nodeRenderGraphBlock.js +4 -0
  16. package/FrameGraph/Node/nodeRenderGraphBlock.js.map +1 -1
  17. package/FrameGraph/Passes/renderPass.js +3 -1
  18. package/FrameGraph/Passes/renderPass.js.map +1 -1
  19. package/FrameGraph/Tasks/Misc/lightingVolumeTask.d.ts +1 -0
  20. package/FrameGraph/Tasks/Misc/lightingVolumeTask.js.map +1 -1
  21. package/FrameGraph/Tasks/PostProcesses/volumetricLightingBlendVolumeTask.d.ts +1 -2
  22. package/FrameGraph/Tasks/PostProcesses/volumetricLightingBlendVolumeTask.js +10 -2
  23. package/FrameGraph/Tasks/PostProcesses/volumetricLightingBlendVolumeTask.js.map +1 -1
  24. package/FrameGraph/Tasks/PostProcesses/volumetricLightingTask.d.ts +1 -4
  25. package/FrameGraph/Tasks/PostProcesses/volumetricLightingTask.js +7 -4
  26. package/FrameGraph/Tasks/PostProcesses/volumetricLightingTask.js.map +1 -1
  27. package/FrameGraph/Tasks/Rendering/geometryRendererTask.d.ts +17 -58
  28. package/FrameGraph/Tasks/Rendering/geometryRendererTask.js +112 -122
  29. package/FrameGraph/Tasks/Rendering/geometryRendererTask.js.map +1 -1
  30. package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +11 -0
  31. package/FrameGraph/Tasks/Rendering/objectRendererTask.js +62 -26
  32. package/FrameGraph/Tasks/Rendering/objectRendererTask.js.map +1 -1
  33. package/FrameGraph/Tasks/Texture/clearTextureTask.js +18 -8
  34. package/FrameGraph/Tasks/Texture/clearTextureTask.js.map +1 -1
  35. package/FrameGraph/frameGraph.d.ts +1 -2
  36. package/FrameGraph/frameGraph.js +2 -2
  37. package/FrameGraph/frameGraph.js.map +1 -1
  38. package/FrameGraph/frameGraphContext.js +2 -2
  39. package/FrameGraph/frameGraphContext.js.map +1 -1
  40. package/FrameGraph/frameGraphRenderContext.js +3 -3
  41. package/FrameGraph/frameGraphRenderContext.js.map +1 -1
  42. package/FrameGraph/frameGraphTask.d.ts +1 -1
  43. package/FrameGraph/frameGraphTask.js +2 -2
  44. package/FrameGraph/frameGraphTask.js.map +1 -1
  45. package/FrameGraph/frameGraphUtils.d.ts +2 -2
  46. package/FrameGraph/frameGraphUtils.js +6 -6
  47. package/FrameGraph/frameGraphUtils.js.map +1 -1
  48. package/Lights/lightingVolume.d.ts +1 -0
  49. package/Lights/lightingVolume.js +14 -13
  50. package/Lights/lightingVolume.js.map +1 -1
  51. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  52. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +2 -0
  53. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  54. package/Materials/Node/Blocks/triPlanarBlock.d.ts +1 -0
  55. package/Materials/Node/Blocks/triPlanarBlock.js +33 -4
  56. package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
  57. package/Materials/materialHelper.geometryrendering.d.ts +5 -1
  58. package/Materials/materialHelper.geometryrendering.js +11 -2
  59. package/Materials/materialHelper.geometryrendering.js.map +1 -1
  60. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +1 -1
  61. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  62. package/Rendering/objectRenderer.d.ts +6 -2
  63. package/Rendering/objectRenderer.js +69 -63
  64. package/Rendering/objectRenderer.js.map +1 -1
  65. package/Shaders/gaussianSplatting.vertex.js +2 -2
  66. package/Shaders/gaussianSplatting.vertex.js.map +1 -1
  67. package/ShadersWGSL/gaussianSplatting.vertex.js +3 -3
  68. package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
  69. package/package.json +1 -1
@@ -2432,7 +2432,7 @@ export class WebGPUEngine extends ThinWebGPUEngine {
2432
2432
  const colorMSAATextureView = gpuMSAATexture?.createView(msaaViewDescriptor);
2433
2433
  colorAttachments.push({
2434
2434
  view: colorMSAATextureView ? colorMSAATextureView : colorTextureView,
2435
- resolveTarget: gpuMSAATexture && !rtWrapper.disableAutomaticMSAAResolve ? colorTextureView : undefined,
2435
+ resolveTarget: gpuMSAATexture && !rtWrapper.disableAutomaticMSAAResolve && rtWrapper.resolveMSAAColors ? colorTextureView : undefined,
2436
2436
  depthSlice: mrtTexture.is3D ? (rtWrapper.layerIndices?.[i] ?? 0) : undefined,
2437
2437
  clearValue: index !== 0 && mustClearColor ? (isRtInteger ? clearColorForIntegerRt : clearColor) : undefined,
2438
2438
  loadOp: index !== 0 && mustClearColor ? "clear" /* WebGPUConstants.LoadOp.Clear */ : "load" /* WebGPUConstants.LoadOp.Load */,
@@ -2460,7 +2460,7 @@ export class WebGPUEngine extends ThinWebGPUEngine {
2460
2460
  const isRtInteger = internalTexture.type === 7 || internalTexture.type === 5;
2461
2461
  colorAttachments.push({
2462
2462
  view: colorMSAATextureView ? colorMSAATextureView : colorTextureView,
2463
- resolveTarget: gpuMSAATexture && !rtWrapper.disableAutomaticMSAAResolve ? colorTextureView : undefined,
2463
+ resolveTarget: gpuMSAATexture && !rtWrapper.disableAutomaticMSAAResolve && rtWrapper.resolveMSAAColors ? colorTextureView : undefined,
2464
2464
  depthSlice,
2465
2465
  clearValue: mustClearColor ? (isRtInteger ? clearColorForIntegerRt : clearColor) : undefined,
2466
2466
  loadOp: mustClearColor ? "clear" /* WebGPUConstants.LoadOp.Clear */ : "load" /* WebGPUConstants.LoadOp.Load */,