How to make terrain blending shader

https://www.reddit.com/r/Unity3D/comments/hbjl57/terrain_blending_shader/

How to make shader that would blend terrain or two meshes together, do i do it with camera depth, or SDF. What would be the shader graph solution to it? Is it possible in URP

1 Like

Lux URP has 2 shaders like that - terrain blend and versatile blend.

The versatile blend can blend with any non-transparent material, but as it is painted in the transparent pass it doesn’t work if behind a transparent material that uses the opaque layer, such as a water shader.
The terrain blend shader on the other hand doesn’t have that limitation, at the cost of each material having to be tailored to a specific terrain.
I don’t know how visible it is, but this rock blends with the bottom of the pond, while still showing up correctly under water.

1 Like