Hi all -
I’ve got a peculiar problem where shadows aren’t showing up when a mesh is small - but are showing up fine if mesh is big.
In screenshot, all i’ve done is adjust the scaling of the player in the inspector - and as you can see, the larger character is casting a shadow, but the little one is not.
Where shadow generator is:
this.shadowGenerator = new BABYLON.ShadowGenerator(1024, this.light_dir); this.shadowGenerator.usePercentageCloserFiltering = true; this.shadowGenerator.setDarkness(0.02); this.shadowGenerator.bias = 0.0005;
Is there a some setting that enables smaller objects to cast shadows?
PG: set scaling of player1 to 1 to see shadow: