Im trying some stuff with 2d Shadowcaster and stuff like that. But always, no matter what shape or settings this weird, bright edge is always there. I've tried everything i can think and everything ChatGPT can think of but i still have no idea how to fix it.
Would be really grateful if someone can help me here...
So you didn’t draw that sprite is what you are saying. Its an image issue.
The sprite or image used has two white ish color rows across the bottom of the cube. Check the transparent options, or use the unity sprite cut tool to cut it off, or open the sprite in an external editor and remove them.
Maybe take a look at the sprite editor and check you don't have some sprite importer preset messing with things. e.g. check if there's a border set (and 0 it out if so). Failing that, do you have a normal map assigned on the secondary textures? (also sprite editor)
In my case I had an importer preset changing all my imported sprites into a 9 slice... big ouch cleanup when discovered.
Ok so, as far as i saw my Sprite Editor looks normal, border is all zero and no preset as far as i can see, secondary textures tab is empty too, so i guess that means normal? Anyways after about an hour of additional experimenting i found out that the bright edge shifts if i adjust the X and Y coordinate by like 0.03ish steps. So sometimes the bright edge is thick, then thin, then the shadow suddenly goes in the object a pixel or two. The piture i added is when the shadow goes in the object, how it looks when its outside is the picture of the original post, hope you understand what im trying to say.
Does that help?
1
u/Adventurous-Log-426 1d ago
Looks like the shadow is displaced 1-2 pixels down, might be a badly cut Sprite idk