GaussianSplattingMaterial shader edit for camera view distance culling

I am creating an editor for 3D Gaussian Splatting and to optimize it I need to edit gaussian splatting shader to cull the splats outside the frustum of the camera.

Is there any way to edit the gaussian splatting shader? Or does the babylon exposes the gaussian splatting shader in any way?

@Cedric

There is this thread about injecting code into the shader (like material shader plugin): What would be the best way to inject shader code into the GaussianSplattingMaterial?

Is this something that would help?