Revert "feat(sky): the night sky wheels with the Dereth clock; uniform time fade with a scoped twilight band"
This reverts commit 0dac024cdb.
This commit is contained in:
parent
0dac024cdb
commit
9fcc3f4870
10 changed files with 15 additions and 98 deletions
|
|
@ -333,18 +333,6 @@ internal sealed class FrameRootCompositionPhase
|
|||
skyForNightSky.EnhancedNightSkyActive = () =>
|
||||
nightSkyController.ActiveRuntime?.Descriptor.Id
|
||||
== AcDream.App.Rendering.Packs.BuiltInAtmosphericRenderPack.Id;
|
||||
// The starfield wheels with the Dereth clock: one turn per
|
||||
// day about the celestial pole plus ~1 degree/night of
|
||||
// seasonal drift (dayOfYear/360) — sky.frag's rotation block.
|
||||
var nightSkyTime = d.WorldTime;
|
||||
skyForNightSky.NightSkyRotationTurns = () =>
|
||||
{
|
||||
var cal = nightSkyTime.CurrentCalendar;
|
||||
int dayOfYear = (int)cal.Month
|
||||
* AcDream.Core.World.DerethDateTime.DaysInAMonth
|
||||
+ (cal.Day - 1);
|
||||
return (float)(nightSkyTime.DayFraction + dayOfYear / 360.0);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue