Ending: rail camera, stable far planet, green bursts from a US landing

Flights run on rails at even speed along the spline with eased ends and
smooth zoom pushes, no hand-held shake. Grass fur, sector lines and
shadows fade out as the camera climbs, and above 250 m the ground swaps
to an even cube-sphere skin so the relief no longer pops while orbiting.
Per-shot FOV, motion blur, slamming titles and a warp to Earth; the
rocket now lands in Kansas and the green bursts straight out of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bonchellon
2026-12-01 16:30:08 +03:00
parent a3e4f00282
commit d4dff6ea99
6 changed files with 289 additions and 41 deletions

View File

@ -25,6 +25,8 @@ namespace GrassCutter
public bool Landed => _seeds.Count > 0;
/// <summary>0 dead … 1 green all over: the air, the clouds.</summary>
public float Life { get; private set; }
/// <summary>The rocket goes by the lens / comes down: the film hits the lens for them.</summary>
public System.Action OnPass, OnLand;
readonly GameObject _root;
readonly Transform _ball;
@ -197,8 +199,8 @@ namespace GrassCutter
static float Spread(Seed s)
{
float k = Mathf.Clamp01(s.age / s.grow);
// under way at once, quickest half way, easing into its last stretch
return s.full * Mathf.Max(0.5f - 0.5f * Mathf.Cos(Mathf.PI * k), Mathf.Min(k * 0.6f, 0.05f));
// out from the point at once, quickest at the start, slowing as it wraps round the ball
return s.full * (1f - Mathf.Pow(1f - k, 1.7f));
}
void Apply()
@ -355,11 +357,11 @@ namespace GrassCutter
var at = Vector3.Lerp(prev, pos, (i + 1f) / n);
// close by the lens a small flame and no smoke: left in the air there, it would fill the frame
float flame = Mathf.Min(s * Random.Range(2.2f, 3.2f), 0.4f + far * 0.035f);
Emit(_glow, at - dir * s * 0.4f, -dir * s * 6f, flame, new Color(1f, 0.62f, 0.25f, 0.95f), 0.22f);
Emit(_glow, at - dir * s * 0.4f, -dir * s * 6f, flame, new Color(1f, 0.62f, 0.25f, 0.95f), far < 45f ? 0.05f : 0.22f);
if (i % 2 == 0 && far > 45f)
Emit(_glow, at - dir * s * 1.2f, Random.insideUnitSphere * s * 0.6f, s * Random.Range(2.6f, 3.8f), new Color(0.92f, 0.9f, 0.86f, 0.55f), 2.4f);
}
if (!whoosh && Vector3.Dot(pos - ln.position, ln.forward) > 0f) { whoosh = true; Sfx.Play("meteor_whoosh", 0.6f, 0.95f, 0f); }
if (!whoosh && Vector3.Dot(pos - ln.position, ln.forward) > 0f) { whoosh = true; Sfx.Play("meteor_whoosh", 0.6f, 0.95f, 0f); OnPass?.Invoke(); }
prev = pos;
yield return null;
}
@ -370,6 +372,7 @@ namespace GrassCutter
Sfx.Play("rocket_land", 0.7f, 0.8f, 0f);
Sfx.Play("buff_shimmer", 0.5f, 0.9f, 0f);
Land(landOS, lens().position - Center);
OnLand?.Invoke();
}
}