Just a demo for my terrain and please test this but do not use this in your project yet do that if you know what you are doing
Video explain about how to use this: https://www.youtube.com/watch?v=aoGKVMjWz9I
Video about the terrain Algorithm: https://www.youtube.com/watch?v=Z8wHAa4RvxE