Hey, guys.
Could you suggest a best way of the cube’s dynamic shadow simulation?
First and most direct way is to use DirectionalLight, but it too costly for me 0 I’m working on mobile project and wish it to run on devices like iPad1.
When I thought about TextureProjector, but looks like it currently doesn’t work (I filled an issue on GitHub).
I have cubes grid with small padding and one cube above all that cubes. Some cubes from grid can move along the Y axes (up\down). Cube above the grid could move along the X and Z axes (left\right\front\back), along the grid itself.
So I wonder how can I simulate the shadow dropped by the moving cube to the cubes grid.
Moving cube doesn’t rotates, so the shadow will be the square all the time.
I’d glad to know how can I simulate the square shadow most efficiently.
Thanks!