Hello, everyone. So I am stuck on this issue with the trees. I have essentially painted on tree’s on the terrain and I am encountering this white outline around the trees. I am only encountering this issue when all the trees are all bunched up together (for example in the forest that I am creating). Individually dropping the trees doesn’t seem to cause this issue, only using the tree paint tool on the terrain. It might be hard to see in the image, but it’s happening further down the path.
I have tried
- changing the rendering paths from deferred to forwards
- changing my graphics emulation
- alpha cutout on the prefab
All the ‘Solutions’ are from about 2 years ago and so I haven’t seen this issue addressed recently. I am running 5.5.1p2. If anyone could help that would be great!
These trees are flat quads with tree textures on them?
I think the cutout shader assumes you’re going to be giving it an unpremultiplied alpha image and looks like you’re giving it a premultiplied texture? If this is the case you need to unpremultiply your tree texture.
I’m still pretty new to Unity so I don’t know what’s easy or hard to do yet, but another option would be to adjust the shader so that the value for the alpha cutoff is something like .999 instead of .5 or whatever it defaults to. This would make the tree borders shrink by ~half a pixel but probably not that big of a deal.
I actually found a solution. In the terrain settings, changing the billboard settings and tree distance settings has resolved this issue. Unfortunately increasing these settings also takes a big hit on the performance level (especially for a forest). So it’s more or less choosing performance over graphics and finding a balance. I will play around with the LOD and hopefully, find a mix that works well.