So I’m trying to get a shadow to blur and I got this far:
This is the first time I’ve messed around with ShadowGenerator. I just copy pasted what worked in a playground scene from the documentation in Background Materials (https://playground.babylonjs.com/#G3HSAW#330) , but applying it within ImportMesh to the boombox asset.
When I uncomment out lines 21-25 though, the shadow disappears. These would be the lines
// shadowGenerator.useBlurCloseExponentialShadowMap = true;
// shadowGenerator.useKernelBlur = true;
// shadowGenerator.blurScale = 4;
// shadowGenerator.blurKernel = 0;
// shadowGenerator.depthScale = 0;
It’s actually just the line with the useBlurCloseExponentialShadowMap that makes the shadow disappear. If i comment that line out, the shadow reappears but without the other lines creating any blurring effects. I’d normally just look at the API, but I’m not really sure what it means.
Straightforward I think, for whoever knows, thanks.