I'm trying to map in real time the position of a shadow of an object cast on a plane. I'm using as a light source a sun lamp and rendering in eevee.
The plane has a simple shader:
I would like to have a sort of array that stores the shadow's position such as:
[(0,0,0),(0,1,0), ..., (x,y,z)]
Is there a way to do this with the Python API without shadow baking? I need it to be done only in eevee and with a sun lamp. I found similar questions with answers such as:
But I don't want to use particles and the raycasting method doesn't work well with a sun lamp since the position of the point is not important for the light direction.