alelievr / Mixture

Mixture is a powerful node-based tool crafted in unity to generate all kinds of textures in realtime
https://trello.com/b/2JiH2Vsp/mixture
MIT License
1.18k stars 124 forks source link

Terrain Topology Algorithms #47

Closed felixcantet closed 2 years ago

felixcantet commented 2 years ago

Implement algorithms from https://github.com/Scrawk/Terrain-Topology-Algorithms as a Mixture Node Library

Implemented nodes:

All this nodes comes with various settings and a very basic documentation.

These nodes are implemented as a large Compute Shader with multiple includes.

To support this nodes, I have added a "Terrain Input" node that provide a way to input a Terrain Data in the graph, so the terrain settings (Terrain Dimension, Terrain Height) could be give from an existing terrain.

There is a graph at Assets/Exemples/TestTerrainTopology.asset that demonstrate all the nodes in the Pull Request

felixcantet commented 2 years ago

Side note :

There are probably some things that could be optimized (the Terrain Flow Map specificaly), or some things that need to be cleaner. Let me know if there is anything you want me to modify !