Now the planet have water and can be populate:
Generate planets proceduraly. (Generate)
'Planet.cs' , 'PlanetData.cs' , 'Polygon.cs' , 'ColorHeight.cs' , 'GenerationData.cs'.
This scriptable object stores the information that will then be used to get the height of the map vertices (it uses perlin noise).
This scriptable object stores the information that will then be used to create a planet.
To add a planet to the list of planets that will be created, use the functtion:
Planet.AddPlanetToQueu();
To start the thread that will calculate the data for the mesh sphere generation and modification of the landscape (will only be executed after StartDataQueu has ended):
Planet.StartDataQueu();
Instantiate the planet into the scene:
Planet.InstantiateIntoWorld();
Wait until the planet data have been compute. Then load the chunks in range to the position.
Planet.HideAndShow(Vector3 position);
Both InstantiateIntoWorld and HideAndShow can be used at the same time. In that case InstantiateIntoWorld will generate the planet until it's fully generated and the will hide all the terrain that is not in range of the position.