So I am working on a moss shader for a project I’m working on.
The purpose is that have the moss show up on the Z-Axis in world-space, so that when I rotate my mesh, the moss only appears on the very top of the mesh. The problem I am having is adjusting the falloff.
The following screenshot shows the current falloff that I am able to set up in the engine. As you can see, the blend goes from top to middle in a perfect gradient.
That results in the shittiness that is this:
Because my rocks are at a slight angle, they show up as completely covered in moss. I need to find a way to tighten that falloff, to something similar as the following screenshot. I want the moss to show up only at the very tip of the top of the mesh.
Ideally, I’m after a result similar to this paintover I did:
How do you think I could go about doing something like that?