Transparency overlapping issue

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gmaps

I have the next problem: I added a fog of war plane in front of camera that changes the albedo based on location of units. Everything works fine in the opaque world, when the tree leaves are drawn with alpha scissors (image 1)

Image1

But it looks ugly, especially in the distance.
If I use transparency, trees look nicer. But there’s that depth issue. Because it’s transparent it goes to transparent pipeline instead of opaque and the depth is not right. Leaves are either visible everywhere even in the black fog area, or if i change the render priority they aren’t visible if there is a black background (image2, if leaves are opaque, they are visible when black background, which is right - image1).

image2
So my question is: how could I achieve that transparent trees are visible on the black background, or if it’s impossible, how could I make the alpha scissor trees look nicer (e.g. smooth them a little bit)

PS: the images are older, I switched on alpha prepass for the trees, so they cast shadows now, but it didn’t help my issue.

:bust_in_silhouette: Reply From: I AmTired

I also need to know the answer to this question so can someone please answer? if not i will just repost a new one. . .

:bust_in_silhouette: Reply From: I AmTired

I also need to know the answer to this question so can someone please answer? if not i will just repost a new one. . . I have been told to use alpha scissor, change rendor priority none of them work for me.