So I want to make a 2d game with dynamic-ish lighting, but as the angle is top down offset a little, the shadows aren’t working for me so I need an alternative. Like in the picture, I want to use a black sprite as a shadow. The problem with this is that I need it to be ‘stapled’ so to say by the feet and warp away from the light. I know I may be asking a lot, but any help would be appreciated. I have very little knowledge of Unity or C#, and don’t know if what I’m asking is possible, or if there is another way. Will give any additional information if needed. Thanks in advance!
There is another method I have tried, but only works when the light is below or to the left of the sprite. I have placed an offset sprite perpendicular to the actual sprite.
Problems:
If I use LookAt in a script, the base of the image (feet) will move, resulting in an unnatural shadow.
The sprite is still visible. I’m not sure how to make the sprite invisible but still have it cast shadows.
An alternative, is draw the shadow as a png and make it a child of the player, it’s a bit more of a pain if you want individual shadows displayed for each direction but you could work it out, usually 2D game don’t use a light source not that I’m saying you could do it that way, I’m also assuming that it’s a 3D object in a 2D scene, unless your using a form of shader I think.
I would suggest using something from the asset store, there are many 2d lighting assets ( it will save you a lot of time )
If you fancy doing shaders, you can use this: Xoilac TV trực tiếp bóng đá Euro | Xem trực tuyến Xôi Lạc 90phut
One of the more popular assets, 2DDLS, as far as I can tell, would only produce a realistic effect in a top down application. Seeing as I was looking for an offset camera angle (not completely top down) I don’t believe it would produce a realistic effect. If anyone has used it, can it be used for anything other than top down?
This is exactly what I was looking for! However, how would I go about implementing the code on this page, I have no knowledge of shaders unfortunately.
Unfortunately shaders are quite a bit confusing. If you want to learn them, I recommend some tutorials and beginners stuff first, then you will understand. Implementation from that webpage isn’t that far from how it would look in unity, but you still need to know what you are doing. If you don’t want to learn shaders, you are left with premade assets.

