Compose planet surfaces from profiles
This commit is contained in:
parent
bcbf1b6515
commit
2f68515f33
19 changed files with 123 additions and 39 deletions
|
|
@ -96,7 +96,8 @@ static func planet_data_at_chunk(chunk: Vector2i) -> Dictionary:
|
|||
if gas_giant:
|
||||
planet_name = GAS_GIANT_NAMES[rng.randi() % GAS_GIANT_NAMES.size()]
|
||||
return {"local_pos": local_pos, "name": planet_name, "shape_seed": shape_seed,
|
||||
"planet_type": "gas_giant" if gas_giant else "rocky", "resource_type": "gas" if gas_giant else "ore"}
|
||||
"planet_type": "gas_giant" if gas_giant else "rocky", "resource_type": "gas" if gas_giant else "ore",
|
||||
"surface_profile_id": "gas" if gas_giant else "rocky"}
|
||||
|
||||
|
||||
static func biome_color(biome: int) -> Color:
|
||||
|
|
|
|||
Loading…
Reference in a new issue