- Home /
Unable to remove white outline for billboards
For over a week now I have been fighting with unity's billboards having a white outline around the outside once it gets dark in my game. The issue is essentially I have a tree (from unity terrain system that was painted on) having white outlines around itself at night.
I did my research and originally thought it was just the textures on my end, but after learning about alpha channels and verifying - I am confident my textures are correct.
When I looked around, I only found one other post with someone claiming to resolve the issue and even then it contained some people saying it didnt work. This seems like such a minor and trivial thing to over look - so there has to be a solution!
Has anyone ever dealt or solved white outlines around a billboard? Is it shader related? Is it import settings related? I am pretty desperate at this point to try anything - as I have played around quite a bit now and still have not gotten anywhere.
Thanks.
Answer by AlwaysSunny · Mar 23, 2015 at 09:07 AM
Without pictures, it's hard to know what you're talking about. Does this happen to all of your vegetation? Just leaves on trees? Just your textures, or stock Unity textures too? Screenshots are almost mandatory for visual issues.
If you mean the quad itself has an unwanted outline, that's one thing. If the outline is around the "cutout" portion of the image, that's another.
In the case of quad outlines, try setting the relevant textures' import settings to "Clamp" mode instead of "Repeat". Ensure your textures' alpha channels are clean and free from any artifacts. If the problem persists it may be a compression or atlasing issue, and you might attempt to increase the project's quality settings, or the maximum allowed quality for that texture in its import settings. (Basically just tinker with all that jazz and see what happens, heh.) If all this fails, try bumping the contents of your vegetation textures "up" a pixel, leaving a black strip at the bottom of the alpha channel.
If your unwanted outline is around the cutout of the veggie, play with the cutout parameter on the material. Ensure you have the cleanest alpha channels you can possibly make. Be aware that with cutout shaders like the veggie shader(s), you won't achieve a perfect cutout, and you may need to make a concession by reducing the size of the white areas on the alpha channel by a pixel or so, e.g. select layer contents, reduce selection by 1 pixel, invert selection, delete key.
Your answer
![](https://koobas.hobune.stream/wayback/20220613191004im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Terrain Tree Billboard have bright outline against dark background 6 Answers
How to make billboard grass drop shadows in Unity 5? 0 Answers
Terrain system trees slightly sharpen and blur depending on camera rotation 2 Answers
Particles are rendered in front of tree billboards 1 Answer
Vertex Billboard Shader Depth? 1 Answer