Add interactive dome view and five-chapter story

This commit is contained in:
josh
2026-12-04 20:52:05 -05:00
parent bd48847a5b
commit b883ff858d
12 changed files with 1402 additions and 96 deletions

View File

@@ -162,6 +162,32 @@ namespace DomeShift
internal float SurfaceY(Vector2 point) => biomes.SurfaceY(point);
internal void SetCutaway(bool cutaway) => architecture.SetCutaway(cutaway);
internal bool ApplyViewportSettings(float newWidth, float newDepth, float newRoofHeight, int newBays,
float newGlass, float newDensity, float newRelief, int newSeed)
{
newWidth = Mathf.Clamp(newWidth, 68f, 126f);
newDepth = Mathf.Clamp(newDepth, 52f, 96f);
newRoofHeight = Mathf.Clamp(newRoofHeight, 10f, 22f);
newBays = Mathf.Clamp(newBays, 4, 12);
newGlass = Mathf.Clamp(newGlass, 0.06f, 0.4f);
newDensity = Mathf.Clamp(newDensity, 0.3f, 1.5f);
newRelief = Mathf.Clamp(newRelief, 0f, 1.6f);
if (width == newWidth && depth == newDepth && roofHeight == newRoofHeight && roofBays == newBays
&& glazingOpacity == newGlass && vegetationDensity == newDensity && terrainRelief == newRelief && seed == newSeed)
return false;
width = newWidth;
depth = newDepth;
roofHeight = newRoofHeight;
roofBays = newBays;
glazingOpacity = newGlass;
vegetationDensity = newDensity;
terrainRelief = newRelief;
seed = newSeed;
return true;
}
private Transform Build(bool preview)
{
Clear();