You should be able to do this with a height-and-slope sensitive terrain shader, and a landscape layer that sources height from a virtual height field.
https://docs.unrealengine.com/4.26/en-US/API/Plugins/VirtualHeightfieldMesh/
You should be able to do this with a height-and-slope sensitive terrain shader, and a landscape layer that sources height from a virtual height field.
https://docs.unrealengine.com/4.26/en-US/API/Plugins/VirtualHeightfieldMesh/