Hey everyone!
I’ve been banging my head about this for a while with no success, well partial success, but it’s not what I want to achieve.
Basically, I want to simulate shadows for top-down paper2D game with sprites. I create a duplicated sprite with translucent material, that receives a light location, its radius and calculate opacity.
I’ve managed to make simple blob shadows with WPO, that stretches (scales) from the light source along an axis, but it utilizes rotation. So it doesnt work well with more complicated sprites.
What I want is to strech (scale) a sprite towards given direction without being rotated.
And I’m very bad at this shader stuff