I have been working on a script to create shadows for one of my game.
It’s a projected shadows script. This means that the shadow is a copy of an object that is projected on a plane to render shadow. And it works very well so far! No need of GLSL, so it should works on all graphic cards.
There is two version of the script.
Both of them handles:
- Multi light-sources
- Any kind of object, no matters its shape (concave, convex…)
- Textures or vertex-color for shadowsOne script use ray-casters to find the plane where the shadow should be projected.
The other one, simpler, handle one specific plane for one shadow. But you can create as many shadows as you want… so one for each plane…
Just look at the file I have uploaded just below.