https://cgian.com/2022/07/render-transparent-background-with-shadow-in-blender/
How to render transparent background with shadows in Blender