WebGPU uncaptured error : Version 9.5 seems to break. I don't have any more scenes that start

Since I updated to version 9.5, my scene no longer starts. If I go back to the previous version, it works.
I don’t know how to reproduce it, because I don’t know what it is, but the previous version works at home.

I specify that it works if I use WebGL, but not with WebGPU.

Here’s what I have in the console. (But not put the complete console, because it is much tromp long)

babylon.js?1777731799:1 BJS - [16:23:20]: Babylon.js v9.5.0 - WebGPU1 engine
babylon.js?1777731799:1 BJS - [16:23:21]: [Frame 17] WebGPU uncaptured error (1): [object GPUValidationError] - Error while parsing WGSL: :166:36 error: unresolved value ‘scene’
vertexOutputs.vPositionFromCamera1=scene.view*worldPos;
^^^^^

  • While calling [Device “BabylonWebGPUDevice0”].CreateShaderModule([ShaderModuleDescriptor ““vertex””]).

e._LogEnabled @ babylon.js?1777731799:1
index.php?project=Sandbox:1 Error while parsing WGSL: :166:36 error: unresolved value ‘scene’
vertexOutputs.vPositionFromCamera1=scene.view*worldPos;
^^^^^

  • While calling [Device “BabylonWebGPUDevice0”].CreateShaderModule([ShaderModuleDescriptor ““vertex””]).

babylon.js?1777731799:1 BJS - [16:23:21]: [Frame 18] WebGPU uncaptured error (2): [object GPUValidationError] - [Invalid ShaderModule “vertex”] is invalid due to a previous error.

  • While validating vertex stage ([Invalid ShaderModule “vertex”], entryPoint: “main”).
  • While validating vertex state.
  • While calling [Device “BabylonWebGPUDevice0”].CreateRenderPipeline([RenderPipelineDescriptor "“RenderPipeline_bgra8unorm_depth24plus-stencil8_samples4_textureState1"”]).

index.php?project=Sandbox:1 Error while parsing WGSL: :168:36 error: unresolved value ‘scene’
vertexOutputs.vPositionFromCamera1=scene.view*worldPos;

  • While calling [Device “BabylonWebGPUDevice0”].CreateShaderModule([ShaderModuleDescriptor ““vertex””]).

index.php?project=Sandbox:1 [Invalid ShaderModule “vertex”] is invalid due to a previous error.

  • While validating vertex stage ([Invalid ShaderModule “vertex”], entryPoint: “main”).
  • While validating vertex state.
  • While calling [Device “BabylonWebGPUDevice0”].CreateRenderPipeline([RenderPipelineDescriptor "“RenderPipeline_rgba8unorm_depth24plus-stencil8_samples4_textureState1"”]).

Thanks for the report! I found a repro and opened a fix PR.

This is a WebGPU WGSL regression in the cascaded shadow vertex include. The CSM path can emit scene.view, but some material shader paths don’t declare the scene uniform buffer and expose the view matrix as uniforms.view instead. That matches the unresolved value 'scene' error you are seeing.

Repro: https://playground.babylonjs.com/?webgpu#ARKTK1#0
Fix PR: Fix WebGPU CSM shader view uniform fallback by Popov72 · Pull Request #18409 · BabylonJS/Babylon.js · GitHub

The fix keeps scene.view when SCENE_UBO is declared, and falls back to uniforms.view for the other WGSL paths.

Thank you very much Evgeni for your speed and for the explanation of the problem.