Question about fading opacity.

Hi,

I’m trying to create an effect where grass will fade out near the ground, so I don’t have the hard edges where the grass meets the ground.

Here is the opacity mask for the grass, which hopefully shows what im trying to do.

I’m not sure how to get this to work, as the masked blend mode can only be black or white so the gradient doesn’t work, and when using the translucent blend mode I get some very weird rendering issues - [Seen here][2]

Thanks!

Weird result with translucent blendmode are caused by depth sorting issues. Translucent isn’t ideal for grass.
As for masked grass, true, you can have only opaque or transparent pixels. But you can apply dithering.

But commonly, grass/terrain blend is achieved in a different way, by matching color, normal, roughness and specular of grass bottom part with terrain below.

Translucency looks buggy, because there is no reliable way to tell which part of translucent object is infront of the the other parts. Engine handles that by comparing object’s positions instead. With grass, it is clustered in large chunks which are treated as single object, hence the problem.

Thx for the info,i always wonder why my translucency looks so buggy,hope they can fix it,it was a really helpful technique.