This tutorial explains how to make a shader that blend object with the ground by extracting the ground texture and applying it to the object. Here is an exemple:
The blending is done with a color ramp creating a gradient along the Z axis
I would like to use it in combination with a displacement modifier to increase realism. Turns out the gradient along the Z axis is not affected by the displacement (he remain straight) as you can see.
Here is how the gradient is created in the shader
Is there a way to get this gradient affected by the displacement map in order to achieve a nice blend between ground and object (blend follows geometry) or any other solution to get a nice blend with an uneven ground, some geometry node maybe ?
here is the file for those who want to have a look:
Here are more tutorial related to the blending between floor and meshes: https://www.youtube.com/watch?v=6auecD4Rhx4&ab_channel=LOLDOBLENDER https://www.youtube.com/watch?v=5xYo0rE0aIM&ab_channel=PalurdasArts https://www.youtube.com/watch?v=4BTM4YPAeh0&ab_channel=Crompwell