Originally created by: zezic
Related to [#153]
Dear @matinlotfali, thank you for this amazing effect!
Here is the explained idea for getting more natural shadows. I tried it partially by modifying the shaders and my experiments looks promising, but I'm not so good at shaders (I got good beautiful shadows, but broke corners geometry) so it would be cool if you could make the changes.
Basically, we want to draw the shadow like it's dropped by rectangle which is smaller by X (red arrow) units on all its sides and shifted down by Y (blue arrow) units. It would be cool to get these (X, Y) parameters adjustable in UI.
P.S. I know, it's still far from ideal natural shadow, but at least it's a good approximation.
Originally posted by: matinlotfali
@zezic From your image, if the outline radius is
r, can you tell me how long are the red and green arrows? Are they bothr?