Repository navigation
Observer: sun path and seasonal foliage [LIFE17-Sky-077] - #96
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The observer now draws the year. This is observer only: the engine is untouched, and trajectories and fingerprints are unchanged.
Sun
Leaves and grass
Changes
src/valleyView/seasonLook.ts, with 6 unit tests.valleyScene.tsdrives the sun, sky and leaves from it.tiledInstances.tsgains per-instance colour and a custom depth material.daylightAtandsunAtare removed fromdisplay.ts.[LIFE17-Sky-077].Left for later: people still work from
dawnHourtoduskHourall year, so in midsummer they sleep in daylight. Making them follow the sun changes trajectories and needs its own step.Validation:
npm run agent:checkpasses (lint, typecheck, tests and build). The visuals were checked in the browser on the Life 18 branch; this port only changes where the year starts.Note: Life 18 (
life18-seasons, not yet opened as a PR) uses[LIFE18-Seasons-076]and carries these same visuals with its arrival offset. It will rebase over this.