I want to add a bit of detail to chunk heightmaps on a terrain I'm working on, but I don't have a clue how I can distribute a decal texture to random positions on my heigtmap. I use a perlin noise function to generate a heightmap for my every chunk, but how can i distribute decals ( a crater texture for example) on my heightmap so that they don't just get cut of at the end of a chunk and are randomly splattered?
↧