Hey Guys,
I am trying to make a night scene. The billboarded trees in the distance get this white outline which makes it look improper.

Any ideas how to fix this?
Hey Guys,
I am trying to make a night scene. The billboarded trees in the distance get this white outline which makes it look improper.

Any ideas how to fix this?
I’m guessing the billboard trees are alpha mapped but the images background is white rather than black,
so as the alpha gets mip-mapped and/or pre-multiplied the background images white color becomes apparent at the edges.
solution: in your texture map all the pixels that are alphad out(transparent) paint them black.
this following tutorial explains the basic principle(notice it shows that even black can be problematic):
http://www.cgtextures.com/content.php?action=tutorial&name=alphabg
hope this helps, if not then this has got to be some problem with the shader, I’d imagine,
so you might get more help at the shaderlab forum. ![]()
Thank you for the reply ![]()
I checked the textures. These are the default trees in the Standard Asset Pack by the way. They don’t seem to have white backgrounds.
Its the Banya and ScotsPine trees.
So then you think it is a shader issue?

Hi Alex
This may or may not help.
In the inspector if you set your texture shader to Transparent/Cutout/Diffuse
you should see a Alpha cutoff slider.
Regards
Thor
Hi Thor,
Using that shader caused the billboard not to show up with that texture. I ended up having leaf less trees as my billboards ![]()
Thanks though,
Alex