Ending: the Director's call, flyovers into orbit, Earth turning green, credits
When the planet is mown the ending plays by itself: G.R.A.S.S.A. calls, the camera skims the stubble into the base, circles it and rises without a cut into orbit over the bald planet (title, the crew's results). Then a jump across space to a scorched, dried-out Earth: a rocket from Herbaria-7 passes the lens and lands in Africa, and the green spreads from there over the whole globe (seed pods, a glowing front, clouds and blue air coming back). The credits roll over the green Earth (PlayWay credited as publisher), then THE END and a card to keep mowing, leave a review or go to the menu. Space, Enter or Esc skips to the green Earth and the card. - EndingCinematic, EndingEarth (globe, air shell, rocket, seeds), SpaceSky (split out of the intro), EarthGlobe/EarthAir shaders and Earth maps in Resources/Ending - the far meadow shows as stubble once the planet is mown - "all of it" mown now means no sector with grass left (MowMap.Left); mown area summed in double - the crew's total pay and play time are counted and saved for the results - the "ending" cheat; -ending previews it in a test world; the -ending bot shoots every stage - loc for the new lines in all 11 languages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -43,6 +43,8 @@ Shader "GrassCutter/Ground"
|
||||
CBUFFER_END
|
||||
|
||||
float _GcSkyOn, _GcTime;
|
||||
// 1 once the whole planet is mown (EndingCinematic): the far meadow is stubble and soil, as the cut sectors are drawn
|
||||
float _GcBald;
|
||||
float4 _GcCam;
|
||||
float4x4 _GcSkyRot;
|
||||
float4 _GcIcoN[20], _GcIcoR0[20], _GcIcoR1[20], _GcIcoR2[20];
|
||||
@ -98,6 +100,8 @@ Shader "GrassCutter/Ground"
|
||||
// meadow floor: dark and dense near (the blades stand on it), lighter canopy colour far away
|
||||
float dist = length(p - _GcCam.xyz);
|
||||
float3 col = lerp(_Meadow.rgb, _MeadowFar.rgb, smoothstep(40, 150, dist)) * lerp(0.8, 1.15, n1) * lerp(0.9, 1.08, n3);
|
||||
float3 stubble = lerp(float3(0.46, 0.37, 0.12), float3(0.34, 0.25, 0.1), smoothstep(0.35, 0.65, n1) * 0.7) * lerp(0.86, 1.1, n3);
|
||||
col = lerp(col, stubble, _GcBald);
|
||||
// steep hillsides are rock
|
||||
float3 nrm = normalize(i.normalWS);
|
||||
float3 up = normalize(i.dir);
|
||||
|
||||
Reference in New Issue
Block a user