Testing a way to blend objects with the terrain. All terrain virtual textures can be sampled by per-pixel world position of any object. In addition, the terrain normal is also computed at the location and blended with the object normal. This is achieved by making a data structure that can look up a chunk's bounds and height at any world space location inside the shader.
Website: https://wickedengine.net
Forum: https://wickedengine.net/forum/
Become a supporter on Patreon for some exclusive content: / wickedengine
Get the source code from Github: https://github.com/turanszkij/WickedE...
Get it from Steam: https://store.steampowered.com/app/19...
Get it from Microsoft Store: https://www.microsoft.com/store/produ...
Follow me on Twitter: / turanszkij