I have multiple objects on the ground right like this.
I’m wanting the cube itself to give off shadows such as behind it like this.
It does however give shadows off onto the wall when its right on it however it does not do it on the floor neither when its a little distance from any other object like so.
The walls project light onto the floor like u can see on my game however on smaller objects it does not. I have no idea how it doesn’t and would like it to be how it is in the second screenshot
At the moment in my code I am doing this.
var ligh = new BABYLON.DirectionalLight(“DirectionalLight”, new BABYLON.Vector3(1, -1, 1), scene);
ligh.diffuse = new BABYLON.Color3.FromHexString(light);
ligh.position = new BABYLON.Vector3(0, 0, 0);
ligh.intensity = 1;
this.shadowGenerator = new BABYLON.ShadowGenerator(7000, ligh);
this.shadowGenerator.usePoissonSampling = true;
this.shadowGenerator.bias = 0.000001;
this.shadowGenerator.useContactHardeningShadow = true;
this.shadowGenerator.transparencyShadow = true
this.shadowGenerator.depthScale = 20000;
box.receiveShadows = true;