06-01-2023, 11:19 AM
You could use metadata to define where each color should be, but for simplicity sake I prefer defining the vertex colors at the level of the BuildVolumeMesh module. In that module (in the Refresh method), you have access to the input Volume (instance of class CGVolume, assigned to the local variable "vol"). Thanks to it you get the relative distance of each vertex. You can use that to define vertex color by distance for example.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.