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)
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).
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.