- Home /
White outline on trees in Unity 5
Hello, I am having this problem the trees in Unity 5 appear with a white outline when a tree is behind an object with certain material the white disappears but 95% of the time this is what I get. Have you faced this , is there a solution ? 
I've seen the same problem. Didn't get around to finding a fix.
I also have the same problem. I "fixed" it be changing the Camera Background color to (0,0,0,0).
Answer by Leirlux · May 04, 2015 at 10:38 AM
Tell me a thing: try to create a new project with its new scene and the same materials and create it from zero. What @bobin115 said could probably fix your problem, it's probably because you have selected a "standard" shader for a "cutout" one. Try selecting another shader, such as Transparent > Cutout > BumpedSpecular. And tell us the result. Also, check that the tiling of the texture of those trees are 1 on both X and Y.
Answer by Afassolas · May 04, 2015 at 01:26 PM
I solved this by changing in Player settings, Rendering path from Deferred to Forward.
Was it that easy to fix? So deferred lighting is not as good as it seemed ... :(
Answer by Skirbyl · May 20, 2015 at 10:56 AM
Hi, I was going fine in my unity project until I came across this problem, after troubleshooting and trying several work arounds, I came across a solution which seemed to be the only way it would work, it seems like a legitimate solution.
Instructions: 1. Import your texture of a tree branch with Transparent background (PNG Format) 2. Apply These Settings : Texture type: Texture Alpha from Grayscale unticked Alpha Is transparent ticked Wrap Mode:Clamp Filter Mode: Bilinear (Does not matter as far as I've tried) Aniso Level: 0-16 (Does not matter as far as I've tried)
Create New Material and apply these settings: Shader:Legacy Shaders/Transparent/Diffuse Apply your PNG Tree Branch Image
Now, apply this material to the leaves of your tree, you will recieve the warning that you must have a nature shader applied, hit apply. Voila! Hopefully..
Anyway, from experimenting, this works everytime for me, and as far as I've experimented, you can use different transparent shaders with your branch material before essentially "converting" it through the tree creator.
I really hope this sums up this solution for everybody, it seems to be a real frustration.
Lemme know if it works too! I'm interested to know if this was a purposeful procedure or whether it is a bug they are still trying to iron out.
Answer by E2R_Ben · Jun 03, 2015 at 08:16 PM
It also seems to work in deffered if you turn off "receive shadows"
turn off "receive shadows" where ? Is this thing a bug? It practically cancels the use of Unity trees in ver 5
Your answer