0 votes

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.

asked Sep 3, 2019 in Engine by gmaps (692 points)

2 Answers

0 votes

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

answered Apr 23 by I AmTired (27 points)
0 votes

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.

answered Apr 23 by I AmTired (27 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.