Skip to content

Conversation

@Popov72
Copy link
Contributor

@Popov72 Popov72 commented Nov 2, 2025

In this PR:

  • Added a new FrameGraphComputeShaderTask (+ NodeRenderGraphComputeShaderBlock) class to simplify the management of compute shaders in frame graphs
  • Added a new customIsReady property in FrameGraphExecuteTask
  • Fixed directional and point shadows not working with frame graphs in some cases
  • Fixed Mesh.ignoreCameraZ not working with frame graphs
    • Regarding this one, making Mesh.ignoreCameraMaxZ work in ObjectRenderer may be difficult (it wasn't supported when the feature has been implemented a few years ago) and bad for performance, because it means the view/projection matrix changes during rendering, forcing us to update the scene ubo, which is bad in WebGPU.
    • Instead, I added a ignoreCameraMaxZ property in the Camera class. I feel it's the right place to put it, and there's no performance penalty to put it there. The catch is that all meshes rendered by the camera will ignore maxZ when the property is set. That shouldn't be a problem, though. What do you think? cc @sebavan, @deltakosh
  • Fixed crashes in NRGE in some cases

Don't review it yet, it may not be complete! Ready for review!

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17381/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/?snapshot=refs/pull/17381/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 2, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17381/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/?snapshot=refs/pull/17381/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 3, 2025

@deltakosh
Copy link
Contributor

Fine by me for the ignoreCameraMaxZ

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17381/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/?snapshot=refs/pull/17381/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17381/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17381/merge/?snapshot=refs/pull/17381/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@Popov72 Popov72 marked this pull request as ready for review November 4, 2025 18:20
@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 4, 2025

@deltakosh deltakosh merged commit 927bcc0 into BabylonJS:master Nov 4, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants