It looks like you're new here. If you want to get involved, click one of these buttons!
How would I make grass, trees and other plants on a procedurally generated terrain in a performant way?
I am generating the terrain using marching cubes, and I don't know what the most performant way to make foliage is. It needs to generate it while the game is running. I have a few ideas myself, but I feel like they would be pretty performance heavy:
I need a lot of foliage for it to look good, so that's why I want a very performant method. Ideally I also want access to the normal vector of the terrain, so it doesn't place trees on the side of a cliff (I can do that with the raycast method and I think the vertex method). It would also be nice if it could be threaded, but it isn't necessary (you can't use raycasts from other threads for example). I will be really happy if someone can help😀. Thanks in advance!