I'm working in Unity and thus coding in C#, but any idea or a place to start is welcome.
I don't really know how to describe my problem, and if there is a 'simple' solution for it, but I'll try. I have an object (probably going to limit myself to simple shapes) that casts 2 shadows. I'd like to generate a mesh that is the shape of that shadow. As you can see on the image below, I drew the desired meshes in green.
I've messed around with altering the vertices of my initial mesh, and in some specific cases (objects with no rotation) found a solution, but I haven't found one that's works well enough. Does anyone have an idea that could work?
Thanks in advance, Bart