Terrain Grass Textures have borders

I’ve fixed this on 2 of my 3 grass types in my scene, but I have no idea how. What are the guidelines for creating textures that don’t suffer this problem?

I had the same issue. The alpha maps actually have color assosciated with them, and if the color is white then you get that wierd edge. If the alpha color is black it is gone. I don’t know how to fix this in PS, I used a different program to fix it…

There are no white lines on my alpha mask in Photoshop. I’m not sure what you’re working in, but Photoshop and Unity both use single-channel alphas. I’m still not finding anything in the actual file that could be causing this, I’ve cropped out the image at the exact size to make sure that there’s no extra stuff outside the document, I’ve rebuilt the alpha channel completely, and I’ve fiddled with the mip-map settings. Nothing’s working on this bugger. Sad part is its my favorite grass.

Is the bottom border of the alpha channel white? Make sure non of the borders have white on them for a few pixels.

Textures for grass and skyboxes should be set to “Clamp”, not “Repeat”

1 Like

No white borders anywhere, top, bottom and sides all have 5-10 pixel clearance. All grasses are set to clamp. Anything else that might be causing this?

All Terrain Detail textures get atlased into a single texture so make sure none of them have white along the borders.

Awesome. Now I’ve got an idea of what to look for. So, what about textures that go to the edge on one detail mesh? should I just avoid that completely then?

AWESOME. Got it working. Good call. I’d have never thought of that. I ended up tricking it since I was using one of my other textures, but it works fine now.

Can you share how you did it?

When you have created your Vegetation texture, with a Coloured background and alpha channel, be sure in unity to click refresh in the terrain editor if you replace any textures you have just edited; This will make Unity re atlas your textures, as you wont notice the change at first.