Zylann / godot_heightmap_plugin

HeightMap terrain for Godot implemented in GDScript
Other
1.73k stars 160 forks source link

Detail layer per texture #177

Open ghost opened 4 years ago

ghost commented 4 years ago

I was wondering if you could add a feature to the addon to immediately add a detail layer of planes (like when painting it) to everywhere on the map that has a certain texture on it?

For example, let's say I paint grass (G channel), and later decide to add a detail layer. Can there be an option to generate planes everywhere where the grass texture is painted without manually having to paint it in?

Zylann commented 4 years ago

That could be added eventually. There are several ways, which I'm not sure which to add:

ghost commented 4 years ago

All of them would be great! If I were ton pick one, I would pick the third option. The main reason why is because it gives the developer more control of where to paint the detail layer.

For example, let's say the dev wants foliage only on the grass texture, but he/she doesn't want the detail to be throughout the whole map wherever grass is painted, he can simply paint only patches of grass on the grass texture channel without worrying that the details go past the grass texture onto the dirt or rock texture.