- Home /
Weird Light Projector Rendering on 2D Sprite
Hello ! I am making a 2D game and looked many option to get Lighting and Shadows without killing FPS in the game and found that Projectors are very useful for that.
So, Im liking alot the result I get using the Light Prefab Projector from Unity Standard Assets, but it has a weak point :
As you see, everything is fine on tiles, but when the light go on the gun, it creates an ugly white border thats disgusting. If I understand properly, Unity is rendering the Light over hidden Transparent pixels included in Sprite Triangles Mesh and that creates that white.
Do you have any trick or solution for me (shader, texture) to get rid of this ?
Thanks
EDIT : Sadly my guess is confirmed in Wireframe...
Answer by amimox · Dec 07, 2016 at 12:56 AM
Or if you can't answer for projector, is there a program to get my sprites mesh triangles tight so there is no overdraw ?