If you are planning on using GODOT in compatability mode, you will not be able to use certain features. Like Decals.
This script will give you a similar effect to decals using a 3D Sprite. There are probably other ways to do this, but this works well for me.
- Create a Sprite 3D node and attach the script to it. This script works as a blob shadow for the player. I set the TARGET to the player.
- Create a simple shadow graphic. Depending on what you are trying to achieve, you may want to go for a perfect circle. For my game, an oval was best.
- Add transparncy via modulation. You can skip this step if your texture is already transparent.
- Set to Y-Axis
- Under "FLAGS" set the billboard to Y-Billboard.
- Make sure your SHADOW node is not a child of the player/TARGET node.
- If you have any questions: [email protected]