Now you need to get it through setTimeout
The material is created the first time render is called:
render
You can probably use gs.onAfterRenderObservable.addOnce to get the material after creating the gaussian splatting mesh
gs.onAfterRenderObservable.addOnce
This works: