I am trying to render fire using particle system. This is what i get so far.
Now i want to add shadows to the floor due to fire particles but when I try to use the shadowGenerator, like this
var shadowGenerator = new BABYLON.ShadowGenerator(1024, light);
shadowGenerator.useBlurExponentialShadowMap = true;
shadowGenerator.addShadowCaster(firePS);
shadowGenerator.setDarkness(0.5);
it fails giving me this error.
rendererComponent.tsx:378
TypeError: e.getChildMeshes is not a function
at e.addShadowCaster (shadowGenerator.ts:740:42)
at createScene (<anonymous>:77:18)
at window.initFunction (<anonymous>:97:16)
at async O._compileAndRunAsync (rendererComponent.tsx:313:17) 'Retrying if possible. If this error persists please notify the team.'
So my question is does the shadow generator work with particle system or its only for meshes?