Incremental progress
Not much visually different, but improved the code base a bit. Most notably having the engine automatically run model generation scripts (rather than manually running scripts to create static assets) and improved logging.
Changes
➕ Split model definition YAML from generator script JS
➕ Landscape generator takes grid size as an optional parameter
➕ Improved logging output
➕ Default camera now set based on scene bounds
➕ Added id
and generation
to models to detect cache staleness
➕ Added BoundingBox
🗄️ Split files for better organization
➕ git status alias not provides links to diffs on GitHub so summary changelogs like this are easier to create
Potential next steps
🔮 Hot reloading of the module when the script or model file changes
The above is a bit tricky as it creates a dependency between the loading code, an async file watcher, and the main render loop. I don't yet have a clear vision for how to connect those in a non-intrusive manner, but otherwise would like to add "hot reloading" as a core piece of functionality to make development easier and faster.