Ants Projects Hub
← Vestige Engine

Changelog

Vestige Engine

Every release, newest first — 26 in total.

v0.1.76

0.1.76 — Menus, sound and a meadow with trees

Theme: Menus, sound and a meadow with trees

2026-10-12 Fixed — The downloaded meadow has its trees (3D_E-0754)

The Linux and Windows downloads showed the meadow with no trees, pond plants, shrubs, rocks or logs: those models lived only on the maintainer's machine, so release builds never got them.

  • The meadow's models now ship in assets/models/nature/gameready/. Pine, fir and maple trees and lotus plants (CC-BY 4.0, credited in ASSET_LICENSES.md and THIRD_PARTY_NOTICES.md), and Poly Haven plants, rocks and logs (CC0). A run with no local model overrides loads all nine tree species.

2026-10-10 Fixed — A sleeping cloth follows its pins (3D_E-0753)

Once a cloth had settled and gone to sleep, moving, adding or removing a pin moved only that pin; the rest of the cloth stayed frozen until a gust woke it.

  • Any pin edit (pinParticle, unpinParticle, setPinPosition) now wakes the cloth, on both the processor and graphics-card cloth. Locked by Cl10_PinEditWakesASleepingCloth in tests/test_cloth_cpu_gpu_parity.cpp.

2026-10-08 Added — GPU cloth settles like CPU cloth (Cl10)

The graphics-card cloth gained the three settle-down features the processor cloth already had. Each matches the CPU cloth to well under 1 % in tests/test_cloth_cpu_gpu_parity.cpp.

  • Rest-pose blending A cloth hanging from tethers drifts back toward its rest shape in calm air, inside cloth_velocity.comp.glsl.

  • Sleep A settled cloth goes to sleep and skips all GPU work until the wind returns. The GPU sums the kinetic energy (new cloth_velocity_stats.comp.glsl); the CPU reads back one value and decides.

  • Adaptive damping Opt-in, as on the CPU. Now on IClothSolverBackend with isSleeping().

2026-10-08 Fixed — Graphics-card cloth hangs and falls like the processor cloth (Cl10, 3D_E-0752)

The GPU cloth carried its velocity forward instead of working it out from how far each point moved, so gravity the constraints should have cancelled kept pulling it down: a draped cloth sagged about 0.67 m where the CPU cloth sags 0.18 m, and released cloth dropped too fast.

  • New end-of-substep velocity pass (cloth_velocity.comp.glsl) recovers velocity as the CPU does; the two now agree within 0.5 % of the cloth's size. (Cl10)

  • Pinning or unpinning GPU cloth on the SIMPLE or APPROXIMATE wind tier no longer snaps it back to an older shape. (3D_E-0752)

2026-10-02 Added — Graphics settings for players (3D_E-0035)

The game's Settings screen now has graphics options: a quality preset (Low, Medium, High, Ultra) plus render scale, anti-aliasing, ambient occlusion, bloom, volumetric fog, four detail levels, vertical sync and window mode. Changes show at once. Apply keeps them, and Revert or closing Settings undoes them. A hand-tuned "Custom" setup now survives a restart. Sliders and lists also respond to the Left and Right keys. Older settings files upgrade by themselves.

2026-10-02 Fixed — Menu text sits where it belongs (3D_E-0748, 3D_E-0749)

Words on buttons, dropdowns, checkboxes, sliders and key-binding rows are now centred in their boxes instead of hanging off the bottom, and the small key hints (Esc, F5) are readable, including on the gold button. When Settings opens over the pause menu, the pause menu's words no longer show on top of it.

2026-10-02 Fixed — The game's menus show, and work with the mouse (3D_E-0746, 3D_E-0747)

The in-game menus and heads-up display were never drawn: the graphics card skipped them as hidden back faces. They now appear. Menus also answer the mouse now: buttons click, checkboxes tick, sliders drag and dropdowns open and pick. The cursor shows while a menu is open, and disabled buttons stay inert. A new --player launch option plays the scene as a game would, with Esc opening the pause menu.

2026-10-02 Changed — Meadow sky has clouds, and the sun matches it (part of 3D_E-0034)

The meadow's clear, hazy sky photo is replaced with Poly Haven's Kloofendal 48d Partly Cloudy (CC0). The sun now points where the sun is in the photo, so shadows agree with the sky. Colour grading and water tuning are still to come.

2026-10-02 Added — The interface comes in French, German, Spanish, Italian and Brazilian Portuguese (3D_E-0024)

The main, pause and settings menus, the on-screen prompts, the frame counter, sliders and the framing of captions now follow the chosen language, and changing the language updates the screen that is open. Five languages are new and Greek, Hebrew and Latin are complete. Accented letters (é, ü, ñ, ç, ã) and dashes now display instead of a question mark. The translations were written by Claude and are listed in docs/localization/review.md for a native speaker to check.

2026-10-02 Fixed — Switching menu screens no longer leaves the keyboard on a vanished button (3D_E-0745)

After moving through a menu with the keyboard and switching screens, the next key press could act on a button that no longer existed. The selection is now cleared whenever a screen is replaced.

2026-10-02 Fixed — Menus show the real version and no invented session details (3D_E-0744)

The main and pause menus showed a wrong version number (0.6.2) and made-up details about a last visit, a save slot and times. They now show the real version and leave those details out until there is a save system to supply them.

2026-10-02 Added — 360-degree recordings stay in place as you look around (3D_E-S0099)

A 4-channel ambisonic recording, such as a forest or a cathedral captured in all directions, plays as a soundfield fixed in the world: turn your head and the sounds stay where they are, through headphones or speakers.

2026-10-02 Fixed — Surround and 360-degree sound files play correctly instead of as noise (3D_E-0743)

Sound files with more than two channels were treated as stereo and played as noise. 5.1 and 7.1 files now play as surround, 4-channel files as 360-degree (ambisonic) sound, and a layout the engine cannot play is refused with a message naming the ones it can.

2026-10-02 Added — Editor: place sound emitters and preview their sound (3D_E-S0022)

The Audio panel's Sources tab has an Add sound emitter button, which puts a new sound source in the scene to position like any object, and a Preview button on each source that plays its clip once so you can hear it while editing. Stop preview ends it, and never cuts off a different sound that has since taken over the same playback channel.

2026-10-02 Added — Scripts can play a spoken line, with its caption (3D_E-S0021)

A new Play Dialogue scripting node plays a voice clip as a spoken line: heard the same wherever the listener stands, never cut off to make room for other sounds, shown with its caption when one is written for the clip, and with the music lowered while it plays. Moving a character's mouth in time with the words is a separate, larger piece of work, recorded as 3D_E-0741.

2026-10-02 Fixed — Music ducks under every voice line, not only under scene sound sources (3D_E-0742)

The music dips while someone speaks, but the engine only noticed speech coming from sound sources placed in the scene. A line played by a script, and any other sound started directly, left the music at full volume. The engine now checks every sound that is playing.

2026-10-02 Added — Scripts can drive the adaptive music (3D_E-S0018)

The layered music could already blend from calm to combat, but nothing in a game could tell it to. Two new visual-scripting nodes do: Set Music Intensity moves the music between its calm and intense layers (and can fade it toward silence), and Play Music Stinger plays a short musical accent over it after an optional delay.

2026-10-02 Added — Ambient zones play background sound that fades with distance and time of day (3D_E-S0016)

A scene can now hold ambient zones: places with a looping background sound, such as wind, a stream or night insects, and optional random calls, such as a bird or a creak, scattered inside them. The sound fades in as you walk closer, a stronger zone of higher priority can drown out a weaker one, and each zone can be limited to dawn, day, dusk or night. Zones are placed and edited in the editor's Audio panel and saved with the scene. The panel also sets the time of day and how fast it runs. Zones used to exist only as an editor draft that was neither saved nor heard.

2026-10-02 Fixed — Music that briefly runs dry no longer falls silent for good (3D_E-0740)

If a music layer's stream ran dry for a moment, the engine's clean-up could treat its playback channel as finished: it threw away the audio queued on it and handed the channel to the next sound effect. The music then stayed silent until the layer was restarted. The clean-up now only reclaims channels the engine started itself, so the music player keeps its channel and resumes.

2026-10-02 Fixed — A sound cut off to make room no longer takes over the sound that replaced it (3D_E-0739)

When too many sounds played at once, the engine stopped a quieter one and gave its playback channel to the new sound. A scene's auto-play sound that was cut off this way kept steering that channel, moving the new sound to its own position and setting its volume. Each playback now carries a ticket that never repeats, and a sound only steers a channel whose ticket is still its own. A looping auto-play sound that is cut off starts again when a channel frees up.

2026-10-02 Fixed — Auto-play sounds play once, and background sounds set to loop do loop (3D_E-0738)

A sound set to play automatically when a scene opens restarted every time it finished, for as long as the scene was open. It now plays once. Unticking and re-ticking Auto Play in the editor plays it again. A non-positional sound set to loop played only once; it now loops.

2026-10-02 Added — Formula Workbench: fit a cheap formula to a different, expensive one (3D_E-S0004)

The Workbench's reference tests could only check that a formula recovers its own constants. A test may now name a second formula as the curve to match, so a fast approximation can be fitted against the exact formula it replaces and its error checked. A test that names a formula the library lacks, or a variable nothing sets, now reports a failure instead of stopping the run with an error.

2026-10-01 Fixed — The engine is told when a scene opens or is replaced (3D_E-0730)

Opening a scene, starting a new one, applying a template or loading the demo never told the engine's systems that the scene had changed. So 2D physics never gave anything a body in the running app, and nothing tidied up after the old scene. Every way of replacing a scene now sends a notice before the old contents go and another once the new ones are in place, and each system reacts to both. The old rule that switched systems off when a scene lacked certain objects is gone, so every system keeps running whatever the scene holds.

2026-09-30 Fixed — Indoor lighting in the Tabernacle is sampled where it should be, with the sun's shadows (3D_E-0735, 3D_E-0731)

The soft, bounced light in the Tabernacle scene is worked out from sample points spread through the courtyard and tent. Two faults made it wrong. Every sample point was really looking out from the camera, so the whole scene got one flat colour of bounced light. And the samples ignored the sun's shadows, so the inside of the tent was treated as if it stood in full sun. Each point now sees its own surroundings with shadows in place: the tent interior is darker and takes its warm colour from the lamp, and the courtyard looks as it did.

2026-09-30 Changed — Releases go out when they are ready (3D_E-0734)

Vestige no longer publishes a test version every Wednesday. A new version is released when there are fixes or features worth having, and it becomes the latest download as soon as every file for it has been built and signed.

2026-09-30 Fixed — The title bar shows the real version (3D_E-0733)

The window title and the first line of the log said "v0.5.0", a number the project never had. Both now show the version the build really is: the release number on a released build, and the project's base version on a build made from source.

2026-09-30 Changed — Reeds grow right up to the pond's edge (3D_E-0702)

The meadow grass used to stop in a circle a little way back from the pond, leaving a bare strip of mud wherever the shore curved inward. The grass now follows the real waterline, and the blades nearest the water grow about half as tall again and stand more upright, like reeds, easing back into ordinary meadow grass a little way up the bank. Nothing grows under the water.

2026-09-29 Fixed — The engine's building blocks run in the real app (3D_E-0721)

Every engine system (weather and wind, audio following the camera, reverb, music, footsteps, UI toasts and more) had waited for a scene notice that is never sent, so none of them updated outside the tests. They now run from start-up. Measured cost: 0.05 ms a frame.

2026-09-29 Added — The editor can update itself and tells you what changed (part of 3D_E-0729)

After the first-run wizard, the editor asks once whether to check for new versions when it starts. Help → Check for Updates works either way, and Settings has an Updates tab. When a newer stable release exists, a window lists every CHANGELOG entry added since your version. Choose Later, Skip this version or Update now. The Linux AppImage and the Windows zip update in place and restart; the Linux tarball opens the download page. Every download is signed in the release pipeline and checked before anything is installed, and unsaved scene changes are offered for saving first. Updates work from the first release built with this change; earlier builds need one manual download.

2026-09-29 Fixed — Project rules can now be checked (3D_E-0688)

The 60 FPS rule names its measurement and a checker, tools/fps_floor.py. Audits file a report under docs/audits/. Workarounds carry a searchable Workaround: marker. A new test lists every shader function copied between files and fails when a copy drifts. The material preview now uses the scene's minimum roughness, so a perfectly smooth material keeps its highlight in the preview.

2026-09-29 Fixed — One slider drag in the inspector is one undo step (3D_E-0722)

Dragging a particle, water, rigid-body, cloth or emissive-light slider recorded one undo step per frame, so undoing a drag walked it back a frame at a time. The drag is now recorded once, when it ends, restoring the value from before it started. The unused EditorCommand::canMergeWith / mergeWith are removed; a command that overrode them must drop those methods.

2026-09-29 Removed — Unused ISystem::reportMetrics hook (3D_E-0723)

Nothing called it and no system overrode it; the system registry already times each system's update. A game system that declared it with override must drop that method.

2026-09-29 Fixed — Linked asset folders load again; --no-vsync works (3D_E-0726, 3D_E-0727)

  • The meadow's trees and props load again when their model folders are linked in from an asset library outside the project. (3D_E-0726) The asset-path safety check now treats a folder linked from inside the asset folder as part of it; .. still cannot climb out.

  • --no-vsync now actually uncaps the frame rate; the saved settings no longer switch vsync back on at startup. (3D_E-0727)

2026-09-29 Fixed — Camera, collision and underwater fixes (3D_E-0724; part of 3D_E-0725)

  • The fly-mode camera no longer passes through the ground (part of 3D_E-0725) It stops 0.15 m above the terrain under it, low enough for a rat's-eye view or a dive into the pond. Trees now block the camera (a trunk-sized box per tree).

  • Per-object "Blocks Movement" switch in the inspector (part of 3D_E-0725) Decide which objects the camera and player collide with. The meadow turns it off for lily pads, lotus, bushes and shore plants. Not yet saved in scene files (same as "Casts Shadow").

  • Underwater is now murky, matching the pond seen from above (3D_E-0724) The final image is tinted through the water column with the same absorption and colour the water surface uses.

  • GPU tests no longer crash when run after the input-binding tests test_input_bindings.cpp shut down GLFW, and with it the shared test graphics context; it now shuts down only what it started.

2026-09-29 Fixed — The physics collider overlay can be switched on (3D_E-0640)

The editor's View menu has a new Physics Colliders item. It draws a wireframe box around every physics body and a line for each joint, hidden behind scene geometry like the other editor overlays. The overlay code existed but nothing could turn it on, and it drew its lines a second time without scene depth; it now only queues them for the editor's own overlay pass.

2026-09-28 Changed — Local CI builds on GitHub's own system (3D_E-0719)

The pre-push check now runs its Linux builds, tests and code audit inside an Ubuntu 24.04 container with the same compiler and tool versions as GitHub's runner, from exactly the files git would push. Before, it used this machine's newer tools, and on 2026-09-28 two changes passed locally but failed on GitHub. The container reproduces that failure. The check also got faster (about 400 s warm, from about 580 s) and now covers GitHub's newest-CMake build too.

2026-09-28 Fixed — Readable engine error messages on Windows (3D_E-0717)

On Windows builds, some engine error messages came out as garbage characters. Jolt Physics exported a setting that makes the Microsoft C++ library keep a pointer to an error message instead of a copy, and that pointer outlived the text. Jolt is now built with exceptions on, so the setting is gone, and a configure-time check stops it coming back.

2026-09-28 Security — Secret scan no longer ignores a whole test file (3D_E-0712)

.gitleaks.toml excused all of tools/audit/tests/test_findings.py, so a real secret added there later would have passed. It now excuses only the exact strings tier4_complexity, tier4_cognitive_complexity and tier4_duplication, anchored so they cannot match a key.

2026-09-26 Added — Every shader is compiled by the reference GLSL compiler in CI (3D_E-0638)

Shader code had no automatic checking beyond its version line, and several real shader bugs were found only by hand. The test suite now compiles all shaders with glslangValidator and fails on any error.

  • tools/shader_lint.py --glslang Compiles every shader, taking its stage from the file name. A shader that fails to compile, or whose stage cannot be read from its name, fails the check.

  • Required in CI The Linux CI job installs glslang-tools and configures with VESTIGE_REQUIRE_GLSLANG=ON, as does scripts/local-ci.sh, so the check cannot silently disappear.

2026-09-26 Fixed — SMAA is now the real SMAA (3D_E-0631)

Selecting SMAA anti-aliasing used home-made lookup tables and home-made passes, so it was not SMAA. The mode now uses the reference SMAA 1x code at the HIGH preset, including diagonal search and corner rounding.

  • Reference lookup tables AreaTex and SearchTex are the upstream bytes, vendored in external/smaa (MIT). The search table was generated before but never read; the blend pass now reads it.

  • Reference shader code The three SMAA passes copy the upstream functions unchanged. tests/test_smaa.cpp fails if a copy drifts from external/smaa/SMAA.hlsl.

  • HDR input Edge detection compresses the linear HDR scene to [0,1] and gamma-encodes it first, as the reference requires gamma-space input. The blend itself stays in linear HDR.

2026-09-26 Added — Stutter-free demo videos: --demo-capture writes every frame at a fixed 1/30 s step (part of 3D_E-0696)

The first website video was choppy: about 3.5 new images per second. Vestige drew 52-62 fps, but demoreel's screen capture of a GPU-heavy OpenGL app on its private display kept only a few frames a second (reported to demoreel). --demo-capture DIR flies the same path, steps time by exactly 1/30 s per frame, and saves each frame as a PNG, so the video is smooth however fast the machine renders. Timer gained a fixed-step mode for this, and FrameDiagnostics::savePng writes one frame without the diagnostic report. The re-cut website video has 30 of 30 unique frames in every second of camera movement.

2026-09-26 Added — Formula Workbench: quadratic soft-knee bloom template for DOOM_Ants

New bloom_knee_quadratic template, the bloom extract weight DOOM_Ants carries in two shaders, so they can be one Workbench export. Threshold and knee are inputs, so the exported GLSL takes them as parameters and a caller can switch presets at runtime. Checked: the export compiles for Vulkan with glslangValidator, included twice.

2026-09-26 Added — Hands-free camera fly-through for demo videos (part of 3D_E-0696)

--demo-flythrough flies the meadow camera along a built-in smooth path with no input, then quits, so a demo video can be recorded on a virtual display. There is no script file yet: the path is built in code next to the meadow's visual-test viewpoints. Building it exposed a SplinePath bug, fixed below.

  • Added: --demo-flythrough CLI flag and DemoFlythrough (eye and look-at splines, eased start and stop, ground clearance). (part of 3D_E-0696)

  • Fixed: SplinePath's first and last segments swung tens of metres off the curve The end segments reuse the end point as their outer neighbour, so the centripetal formula divided by a near-zero guard and the float weights stopped cancelling: a straight 60 m path measured 281 m. A mirrored phantom end point is used instead. Affects every SplinePath user.

2026-09-25 Changed — Dependency updates: GLM 1.0.3, OpenAL Soft 1.25.2, enkiTS v1.12, GoogleTest v1.18.0; GLFW held at 3.4 (3D_E-0673)

Four of the five surveyed bumps land. OpenAL Soft 1.25.2 fixes an STL-hardening assertion in the reverb effect the engine uses. GLFW 3.5.1 is held back. It now unloads libXext at shutdown, and LeakSanitizer then reports the memory libXext still held as leaked, which fails the Debug test gate even though every test passes. The hold, its evidence and its re-test trigger are in DEPENDENCY_STANDARDS.md §4, the project's Breaking-Version Registry. The enkiTS CMake policy workaround is removed, since v1.12 declares CMake 3.16. GLM and enkiTS are added to the audit tool's CVE watch list.

2026-09-25 Fixed — Selecting an object no longer raises a Dear ImGui error; ImGuizmo updated to 1.10 (3D_E-0674)

The editor's move gizmo came from an ImGuizmo commit that passed a hard-coded true where Dear ImGui 1.92.8 expects draw flags. ImGui rejected the call with "Did you swap 'thickness' and 'flags'?" and the gizmo's plane handles did not draw. ImGuizmo is now pinned to its latest release tag, 1.10, which uses the new call order. The ImPlot pin is unchanged; its written reason was false and now says why it stays past v1.0 (a commit adapting it to the same ImGui change).

2026-09-25 Fixed — The editor's ground grid no longer shows through terrain and grass (3D_E-0699)

Debug lines were drawn into the editor's output image, whose depth buffer never holds the scene's depth, so the grid drew over everything as a dark striped band. DebugDraw::flush now takes the resolved scene depth, and the line shader hides what the scene is in front of. The grid still shows on flat floors. Covered by tests/test_debug_draw_occlusion.cpp.

2026-09-25 Fixed — Saved scenes record the real engine version (3D_E-0683)

Scene files stamped engine_version "0.5.0", a version Vestige has never been. They now record the version of the build that saved them. Release builds stamp their tag's version via -DVESTIGE_VERSION_STAMP, and other builds stamp project(VERSION). The root VERSION file had drifted to 0.1.60. It is synced to 0.1.70 and now bumped by the release recipe. Scenes still load by format_version; the stamp is informational.

2026-09-25 Fixed — Formula Workbench GLSL export can be included more than once (3D_E-0693)

The prelude and each generated function now sit in their own #ifndef guard, so a shader may include formulas.glsl twice or mix it with single-formula files without redefinition errors. Requested by the DOOM_Ants path tracer (DOOM-0407).

v0.1.76-rc.1Pre-release

This release shipped without written notes.

v0.1.75

2026-09-21 Security — tinyexr raised to v1.0.13, taking two upstream memory-safety fixes (3D_E-0669)

EXR loading was pinned below two fixes upstream had already published: a double-free in FreeEXRImage when chunk decoding fails, and a heap-buffer-overflow in B44/B44A pixel decoding with mixed channel types. EXR parsing is reachable whenever an asset comes from outside the repository, so this was a real exposure rather than hygiene.

v1.0.13 is the top of the 1.x line and a patch-level move within the same API. v3.x was deliberately not taken: it restructures the API and must not ride along with a security patch (3D_E-0670 owns that migration).

A cold review located copies of both versions and diffed them rather than inferring: LoadEXR, TINYEXR_SUCCESS and FreeEXRErrorMessage are byte-identical, and the malloc/free ownership contract is unchanged, so the caller's free() stays correct. The new spectral-EXR and compiler-FP16 surface is inert here because nothing defines a TINYEXR_* macro. Full local CI green across all seven jobs.

The review left the decode internals unaudited and found that no test loads an EXR at all — filed as 3D_E-0686. ["ok", "category", "line"]

2026-09-21 Fixed — Bloom stopped responding to brightness (3D_E-0638)

The third of the four shader defects from the GLSL cold read, and the one that says the most about why the others survived.

  • Bright lights and dim ones glowed the same amount (3D_E-0638) bloom_downsample.frag.glsl squashed its bright-pass contribution through contrib / (contrib + 1.0), which saturates: any luminance more than about 1 above the threshold produced the same contribution, so a lamp and a blazing highlight bloomed identically and bloom stopped responding to brightness altogether. The line was undocumented and contradicted the function's own description, which mentions only the rescale. Replaced with a standard quadratic knee (Unity's Bloom; Jimenez, CoD:AW SIGGRAPH 2014): nothing blooms below threshold - knee, the response ramps quadratically across the 2 * knee band so a light fades in rather than popping as it crosses, and above the band it is linear in luma - threshold so brighter things bloom brighter. Expect HDR highlights to bloom considerably more than before; that difference is the defect being removed.

  • Added: a bloom test that checks the formula is right, not just that two copies agree (3D_E-0638) The defect had a parity test over it the whole time and the test passed. The reason is worth recording: the CPU side of that test is a deliberate mirror of the shader, so it binds the two implementations to each other and says nothing about whether the shared formula is correct -- it agreed with the saturating version perfectly. A parity test is not a correctness test. The new SoftThresholdScalesWithBrightness asserts a property instead: contribution must rise strictly across three decades of brightness, and the gaps must widen rather than flatten, which is the specific signature of the old saturation. It also pins that the knee starts before the threshold and meets the linear response exactly at the top of its band, so a mis-scaled knee cannot pass. Proved red against the restored old formula before being kept.

2026-09-21 Fixed — Two shader defects from the GLSL cold read (3D_E-0638)

Two of the four defects the shaders-glsl review lane left open. Both were found by hand because nothing statically analyses GLSL; that gap is the rest of the item and is still open.

  • Terrain was about PI times brighter than every other surface (3D_E-0638) terrain.frag.glsl shaded diffuse as albedo * NdotL * lightColor -- no 1/PI normalisation and no kD split -- while shading specular with full Cook-Torrance GGX. So the two halves did not share an energy budget, and the ground sat on a different scale from every surface lit by scene.frag.glsl, which applies both. A comment directly above claimed the textured path "matches every other surface exactly"; that was true of the specular and false of the diffuse. Now (kD * albedo / PI) * NdotL * lightColor, with kD = 1 - F since ground is dielectric -- the same form scene.frag.glsl and material_preview.frag.glsl already use. The flat-colour fallback keeps its legacy Blinn-Phong specular untouched and takes the 1/PI with kD at 1, because that path was equally over-bright. Expect terrain to render noticeably darker; the old brightness was the defect, but a scene tuned around it may want its light intensity revisited.

  • Water on the weak-hardware tier tilted instead of rippling (3D_E-0638) The SIMPLE tier perturbed the world Z normal with texNormal.z -- the blue channel of a tangent-space normal map, which is ~1.0 for a flat normal. So it added a near-constant tilt across the whole surface and discarded the green channel, which is the one that actually encodes slope in that direction. Now uses texNormal.y, matching the FULL branch directly above, which perturbs X and Z with two different components of its distortion vector. Only the SIMPLE tier was affected, so this was invisible on hardware that selects FULL.

2026-09-21 Fixed — Controls settings and key rebinding now reach the game (3D_E-0628)

Three defects in one surface, all of which made the Controls tab a set of widgets that changed nothing. Two halves were missing rather than one: the settings had no consumer, and the action map the rebind system writes into held no movement verbs for anything to read.

  • Mouse sensitivity, invert-Y and gamepad deadzones now actually do something (3D_E-0628) The sliders were serialised, clamped and driven by live widgets while reaching no code: the controller read ControllerConfig::mouseSensitivity and Settings wrote ControlsSettings::mouseSensitivity, two different fields nothing connected. New ControlsApplySink + applyControls in core/settings_apply.h, with ControllerControlsApplySink wrapping the live FirstPersonController, following the same shape as the seven existing apply-sinks. Engine wires it into SettingsEditor::ApplyTargets, so forceLiveApply() also pushes persisted values in at boot rather than only on an edit. Invert-Y is new to ControllerConfig and applies to mouse look and the gamepad right stick alike. The single gamepadDeadzone splits into left and right to match the two values Settings already persisted, and applyDeadzone now clamps its own deadzone so a value of 1.0 cannot divide by zero on the path that does not go through Settings::validate.

  • Rebinding a movement key now changes how the game moves (3D_E-0628) InputManager::isActionDown had no production callers at all, and the controller polled isKeyDown(GLFW_KEY_W) and friends at 14 sites, so every rebind was inert and non-QWERTY layouts got the wrong physical keys. The engine's InputActionMap also held only four F-key demo actions, so there was nothing to poll through even in principle. Engine::initialize now registers seven Movement actions as scancodes, so the physical keys survive a layout switch, and the controller reads all of them through isActionDown. The ids are shared constants named by both sides, because a controller polling an id nobody registered gets a permanent false and the key just stops working with nothing logged. There is deliberately no raw-key fallback: the controller builds its own default map at construction, so an embedder without an Engine still gets working WASD through the binding layer rather than around it.

  • A rebind is no longer discarded the moment it is made (3D_E-0628) The rebind modal wrote the binding into the live map and then called SettingsEditor::mutate with an empty mutator. That left m_pending == m_applied, so Apply stayed greyed out -- and because the editor pushes applyInputBindings on every mutation, the stale wire list overwrote the new binding on that very call, not merely on the next settings edit as previously recorded. The panel now extracts the whole map into the pending Settings, which makes the editor dirty and the push idempotent. The unbind path had the same bug plus an ordering error, mutating before editing the map, and now persists after.

  • Added: an input-poll audit gate, so this cannot regress quietly (3D_E-0628) tools/input_poll_audit.py, wired into ctest as InputPollAudit. It automates the two greps the input spec's accessibility section specifies, which that section deliberately left unwired because one of them failed by design until this item landed. That grep went from 14 hits to 0. Four fixtures pin that the audit can bite: two violations it must catch, one near-miss filename proving the exemption prefix is exact rather than swallowing any similarly-named file, and one genuinely exempt module it must pass -- a check that flagged everything would look identical to a correct one from the green side.

2026-09-21 Fixed — Editor work that was silently lost, a tool that measured nothing, and GPU cloth that ignored mass (3D_E-0630, 3D_E-0632, 3D_E-0639)

Five fixes from a review backlog, four of them things that failed quietly — the kind where the app looks like it worked and the work is gone.

  • Cutting a door or window can be undone, and no longer loses work silently (3D_E-0632) The cutout tool changed the wall in place with no undo entry. Because the editor decides whether a scene has unsaved changes by looking at the undo history, a cut door also left the scene marked as saved — so quitting discarded it with no warning.

  • Painted foliage density masks are saved with the scene (3D_E-0632) A painted mask was held by the editor panel rather than by the scene, so it was silently discarded on every save. It now belongs to the scene's foliage data and is written and restored with it.

  • Entity rows in the hierarchy can be dragged and right-clicked anywhere along the row (3D_E-0632) Drag-to-reparent and the entity right-click menu were reachable only through the small lock icon at the right-hand end of a row, because those handlers attached to the last button drawn rather than to the row itself.

  • The Ruler / Measure tool now measures (3D_E-0639) The menu item switched the tool on and reported its own state, and no click ever reached it. The distance read-out already existed; only the connection between the two was missing.

  • GPU cloth respects particle mass, and refuses the configurations the CPU refuses (3D_E-0630) Cloth simulated on the GPU ignored the particle-mass setting entirely, so the same cloth behaved differently depending on which solver the engine picked — and it picks automatically by size. The GPU path also accepted grid sizes and values the CPU path rejects, including one large enough to overflow an internal size calculation and write outside its own buffers.

2026-09-03 Fixed — Clang-based analysis no longer trips over the GCC precompiled header (3D_E-0637)

The build precompiles its headers with GCC. Clang cannot read a GCC PCH, and the resulting diagnostic carries no source location, so nothing downstream could see it.

  • The audit analyses against a PCH-free copy of the compile database (3D_E-0637) The two flags CMake emits for a precompiled header are dropped into a derived database under the build directory; a forced include of a real header is kept. This is the root-cause fix rather than suppressing the warning, and it helps any clang-based tool pointed at that directory.

  • An analyser that gave up now reports a finding instead of nothing (3D_E-0637) The diagnostic has no file:line:col: prefix, so the parser never matched it and a run that analysed nothing looked exactly like a clean one. Both failure shapes are now detected and raised.

  • Correction to what the original report claimed (3D_E-0637) Measured on LLVM 22.1.8, clang-tidy was not in fact reporting zero: it analysed normally and exited non-zero. It is clazy that emitted only the error and still exited clean. The defect was real; the tool it was attributed to was not.

2026-09-03 Fixed — GPU particles now initialise, and their transparency sort actually runs (3D_E-0629, 3D_E-0682)

The GPU particle path had not started up since its emit shader was written, which is why the three defects underneath it went unseen.

  • A GLSL reserved word stopped the whole subsystem initialising (3D_E-0682) particle_emit.comp.glsl named a parameter input, reserved in GLSL 4.5. It is the first shader the system loads, so init returned false and no GPU emitter ever ran. The failure was a log line, not a crash, and no test reached the path.

  • The transparency sort was never dispatched (3D_E-0629) The renderer held an empty block whose comment asserted the sort had already happened during update -- which it could not have, since the emitter update takes only a delta time and the sort needs a view matrix. The dispatch now runs in the renderer, before the draw reads the key buffer and before the iteration binds its textures.

  • The key buffer was narrower than the network it feeds (3D_E-0629) The bitonic network dispatches over the next power of two, while the buffer was sized to the particle count, so the padding lanes read and wrote past the end. The buffer now spans the network width and the padding is seeded with the sentinel key.

  • The bitonic compare direction is taken from the stage, not the step (3D_E-0629) The stage uniform was set by the CPU and never read; the direction was derived from the step instead, which flips it at the wrong granularity, so the network did not sort. With that defect restored in isolation, six of eight slots hold the wrong particle while the output is still a valid permutation -- which is why it survived review.

  • Sort keys are ordered so the sentinel means "draw last" (3D_E-0629) The network sorts ascending and the dead/padding sentinel is the maximum key, so the live key is now the complement of the depth ordering. Live particles come out farthest-first and dead ones park behind them, which is what the indirect draw's aliveCount indexing requires.

  • The sort is covered by a GL test that runs the real shader (3D_E-0629) tests/test_gpu_particle_sort.cpp dispatches the compute shader on a GL context and reads the keys back, asserting the draw order, the parked tail, the buffer width and that the result is a permutation. Verified on Mesa 26.2.1 / RX 6600.

2026-09-03 Fixed — Skinned meshes no longer snap to bind pose when a one-shot clip ends (3D_E-0634)

Two animation defects from the whole-tree review, both in the same lane.

  • hasBones() is no longer gated on playback (3D_E-0634) A non-looping clip stops playing the moment it completes, but the bone matrices it left behind are still valid. Because the scene gates RenderItem::boneMatrices on hasBones(), the renderer stopped receiving them and drew the mesh at bind pose -- a visible pop at the end of every one-shot animation, including the Tabernacle veil draw. The held pose is now the clip's last frame.

  • A sprite frame duration is clamped at ingest (3D_E-0634) A looping clip whose frames all carried a non-positive duration made tick() loop forever: every frame took the degenerate-frame branch, which advances without consuming elapsed time. addClip now clamps each frame to Aseprite's own one-millisecond minimum, so an asset-authoring slip can no longer hang the engine. The clamp is written to catch NaN as well as zero and negatives.

2026-09-02 Fixed — The fog GPU benchmark can reproduce its own verdict (3D_E-0626)

The three fog performance gates ran three warm-up frames and asserted the median of eight, which sampled inside the GPU's start-up transient. The same binary on the same box returned 549.8 to 1199.9 us for the god-ray pass across five runs -- a 76% spread, against budgets policed to a few per cent.

  • Warm-up is now bounded by time, not by frames (3D_E-0626) Measured over 600-frame series: the RX 6600 settles about fifteen frames in, while the GTX 1050 ramps its clocks under sustained load for roughly half a second. A frame count that reaches steady clocks on one is wasteful on the other.

  • The gated statistic is the uncontended cost, not a median or a high percentile (3D_E-0626) Even in steady state a fraction of frames run several times the median because the compositor preempts the GPU. Across five runs the spread is 1.9% on the minimum, 4.7% on a median and 67.7% on a p90, so a high percentile would gate on the interference rather than on the pass. Every gate now logs min, median and max.

  • One timing helper replaces three copies of the loop (3D_E-0626) Under llvmpipe or in Debug, where every gate skips its assertion anyway, it keeps the short sample -- so CI time is unchanged. Measured spread after the change, six runs each: god rays 3.9% on the GTX 1050 and 2.3% on the RX 6600, volumetric 1.0% and 4.0%.

  • The god-ray pass does have headroom at Low and Medium after all (3D_E-0625) Re-measured on the GTX 1050 at Medium: 1391.7 to 1447.0 us against the 1750 us budget, red on none and about 20% inside the ceiling, where the old harness read a 2% margin and went red on 2 runs of 6. The budget is unchanged and is still not to be raised.

2026-08-31 Fixed — Whole-tree code review remediation — 19 verified defects across renderer, physics, editor, loaders and shaders

A review-code sweep over the whole tree (18 subsystem lanes) verified 19 CRITICAL/HIGH defects against source and fixed them. Deferred MEDIUM/LOW/INFO items are filed as 3D_E-0627..0638.

  • Engine start-up no longer aborts on a Window construction failure Window's constructor throws on GLFW init, monitor query or context creation failure, and nothing in app/ caught it — a missing display terminated via std::terminate with no log line. main() now wraps the run in try/catch, logs a fatal and flushes the log file.

  • Asset path sandbox is now installed at start-up ResourceManager::setSandboxRoots, CubeLoader::setSandboxRoots and AudioEngine::setSandboxRoots existed with zero callers, so every path check they gate was inert. Engine::initialize now canonicalises the asset roots and installs them on all three.

  • Depth attachment is no longer invalidated before the blit that reads it glInvalidateFramebuffer(GL_DEPTH_ATTACHMENT) ran eleven lines ahead of the depth resolve, so the resolve read a buffer the driver had been told to discard. Moved after the blit.

  • Instanced shadow casters set u_hasBones The uniform was set only on the non-instanced branch, so an instanced draw inherited whatever the previous draw left — skinned geometry could be sampled with stale bone matrices in the shadow pass.

  • Auto-exposure survives a NaN luminance sample std::max(avgLuminance, 0.001f) returns its first argument when the comparison is false, so a NaN passed straight through and latched m_exposure permanently — the screen stayed black until restart. Now guarded with std::isfinite, with a warning.

  • Fourth texture upload path sets GL_UNPACK_ALIGNMENT Three of the four upload paths bracketed the upload with the alignment reset; the fourth did not, and generateNormalFromHeight feeds it three-channel data — the exact diagonal-banding shape recorded against the terrain normal map.

  • Framebuffer resize no longer leaks the fourth colour attachment cleanup() deleted attachments 0-2 and not m_colorAttachment3 — about 16.6 MB per resize at 1080p.

  • glTF loader bounds-checks buffer views, joints and sampler outputs A crafted or truncated .gltf could read past the end of its buffer: the byteOffset + byteLength test could overflow, and skin.joints[i] and sampler.output were dereferenced without checking the index against the accessor count.

  • Model node instantiation is depth-limited A glTF node graph containing a cycle drove instantiateNode into unbounded recursion and a stack overflow. Capped at MAX_NODE_DEPTH = 128.

  • CDLOD terrain node selection compares against the child range The selection test compared the camera distance against the node's own LOD range rather than its children's, so a node subdivided one level later than intended across the whole tree.

  • UI signal emission survives a slot that destroys its owner A menu button whose slot deletes the UIElement owning the signal left emit() iterating a freed vector. The slot list is now copied before dispatch.

  • Paint tools no longer double their first stroke CommandHistory::execute() calls execute() on push, and the foliage, scatter and tree paint commands had already applied their instances in the constructor — so every first stroke landed twice. All three now guard with an m_applied flag.

  • GPU cloth friction is no longer arithmetically inert applyFriction derived its normal impulse from the velocity along the normal, and all three call sites zero that component before calling it — so the friction term was always zero. The impulse is now captured before the zeroing and passed in.

  • TAA history rejects a degenerate previous-frame normal normalize(nPrev) on a zero vector yields NaN, which the history buffer then carries forever. Both normals are length-checked before the comparison.

  • Curve fitter no longer stalls on coefficients far from unity The central-difference Jacobian used one absolute step for every coefficient, so a coefficient of large magnitude produced a step that vanished into its own floating-point ulp and a column of zeroes. The step now falls back to a relative one only where the absolute step genuinely underflows.

  • C++ codegen sanitises comment text from formula library JSON formula.description and formula.source were spliced verbatim into /// comments, so a library entry containing a newline or a comment terminator injected arbitrary C++ into the generated header. Uses the same sanitiser the GLSL backend already had.

  • Scene transforms are resolved before the probe and radiosity bakes scene->update(0.0f) ran after the bakes, so both baked against un-propagated transforms — every child entity was lit at its parent-relative position.

  • Anti-aliasing hotkey cycles all five modes The cycle was modulo 4 over a five-value enum, so one mode was unreachable from the keyboard.

  • Audit tool config no longer corrupts its own defaults _deep_merge shallow-copied the base dict, so _detect_tools mutated the module-level DEFAULTS in place and every later call in the same process saw the previous project's tool set. This was also the suite's one failing test (tools/audit: 869 passed / 1 failed → 870 passed).

2026-08-31 Security — CI workflows hardened against template injection and over-broad tokens

A whole-tree static-analysis sweep ran zizmor over the four workflows for the first time — CI runs actionlint, which does not audit workflow security, so none of this had been looked at. It reported 27 findings; 23 are now fixed and the remaining 4 are recorded with their reasons.

  • Dispatch inputs no longer reach a shell as code (4 sites) release.yml interpolated ${{ inputs.tag }} and ${{ inputs.version }} directly into two run: blocks. A ${{ }} expansion is substituted before the shell parses the script, so a crafted workflow_dispatch input executed as shell in the release job. Both blocks now receive the values through env: and read $INPUT_TAG / $INPUT_VERSION, which the shell treats as data.

  • contents: write moved from workflow scope to the jobs that need it release.yml and release-cadence.yml both granted it at workflow level, so every job inherited it — including any added later. Each workflow now defaults to permissions: {} and each job requests its own. ci.yml and audit-full.yml gained an explicit contents: read, having previously run on the implicit default.

  • Checkout credentials no longer persist in jobs that never push (9 of 10 steps) actions/checkout leaves the token in .git/config by default, where anything the job later runs or uploads can read it. Nine steps across ci.yml, audit-full.yml and release.yml now set persist-credentials: false. The tenth, in release-cadence.yml, deliberately keeps it: that job pushes the cadence tags and branches with exactly those credentials, and the reason is now recorded at the step.

2026-08-21 Changed — God rays get a derived Low/Medium budget and a preset-aware gate (3D_E-0624)

The GPU benchmark for screen-space god rays previously asserted only on High and Ultra — the two presets that never run the pass — and reported a bare median on Low and Medium, which are the only tiers that do. It now carries two budgets and picks between them.

The Low/Medium budget is derived from what a 60 FPS frame can afford rather than fitted to any machine: 16.6 ms per frame at every tier, of which the fog stack is allowed 2.0 ms (~12%), less the three always-on analytic layers' 0.25 ms ceiling — 1.75 ms. Deriving it first is what lets a measurement fail it.

It very nearly does. On a GTX 1050 at Medium the pass medians 1716 µs against that 1750 µs budget, and exceeds it on two runs in six. Filed as 3D_E-0625 (the pass has no headroom on the tier it exists for) and 3D_E-0626 (the harness cannot reproduce its own verdict).

  • Two budgets, selected three ways on VESTIGE_QUALITY_PRESET (3D_E-0624) Low/Medium assert the 1.75 ms tier row at that preset's own render scale; High/Ultra — and an unset or unrecognised value — assert the 1.2 ms RX 6600 reference row at full scale; Custom reports its median. budgetsApplyToThisMachine is untouched and keeps its hardware-class meaning, so the volumetric and GI gates are unmoved.

  • The gate times the resolution the tier actually renders, sources included (3D_E-0624) The render scale is read back from the shipped applyQualityPreset rather than copied, so a preset-table change moves the benchmark with it. The gather's source textures scale too, not just the draw targets — this pass is texture-bandwidth-bound on what it samples, so a scaled gather against 1080p sources would carry a working set no tier draws.

  • Corrected: the always-on fog layers were under-counted by 0.05 ms (3D_E-0624) The § 8 budget table had merged research § 7's distance and height rows and kept only the height row's ceiling. Split back into three rows totalling 0.25 ms.

  • Corrected: the Tier-1 preset design quoted a superseded god-ray figure (3D_E-0624) Its § 4.1 still cited 0.3–0.6 ms while naming the fog design as owner — a 3× contradiction that would have produced a 600 µs constant. The copy is deleted rather than updated; that table now points at the owning row.

  • The god-ray benchmark now reports its median on every path (3D_E-0624) A passing EXPECT_LE was silent, so a green run said nothing about how close it came. That silence is what hid the flap.

2026-08-21 Added — Screen-space god rays are benchmarked, and their published budget was wrong (3D_E-0616)

The god-ray pass had no benchmark of any kind — fog design § 5.8 said so outright, on the grounds that the pass has no standalone subsystem class. That left the one fog technique the Low and Medium presets actually run with no performance gate at all. Writing the gate turned up a defect in the budget it was meant to gate against.

  • GodRayPassUnderBudget times the shipped pair of draws (3D_E-0616) Reconstructs the shipped half-res 64-tap gather plus the full-res additive combine from the same two fragment shaders and screen-quad vertex stage the renderer links, so a GLSL regression shows up as a budget failure. Times the all-sky worst case, where every tap pays both texture fetches. Proven non-vacuous: mutating NUM_SAMPLES to its 128-tap ceiling measures 1.21 ms against the 1.2 ms budget and goes red.

  • Fog design § 8's god-ray budget described a different shader than the one that shipped (3D_E-0616) Research § 7 estimated 0.3-0.6 ms for "64-128 samples x ONE tap each" — the classic two-pass Mitchell shape, where a pre-pass builds the occlusion buffer. Design § 5.2 deliberately folds the light buffer into the gather instead, so every tap costs TWO samples. The row is corrected to 0.6-1.2 ms. Measured on the RX 6600 at 1080p: 0.69 ms all-sky, 0.48-0.55 ms with no sky in view, harness sync overhead 10.6 us.

  • Two sections described the god-ray gate in the form 3D_E-0617 removed (3D_E-0616) Design § 5.6 and § 10 both gave the two-term volumetricFogEnabled && isInitialized() gate — the exact defect 3D_E-0617 fixed, where the fallback was suppressed on every tier below High. Both now name the shipped three-term predicates. § 5.6 also called the preset-to-quality mapping "future" when settings_apply.cpp ships it, and claimed safeDefaults() may leave god rays on when it sets them off.

  • The fog design listed four shipped slices as remaining work (3D_E-0616) Slices 11.5, 11.8, 11.10 and 11.11 have all shipped, but § Scope, § 0, § 1 and § 3 still listed them as work to do. An implementer following § 3's stated order would have built a second screen-space god-ray pass — the double shafts § 5.6's gate exists to prevent. Found independently by two cold review lanes in both loops.

  • Weak hardware still has no god-ray gate, and the benchmark does not check gather resolution (3D_E-0624) Recorded rather than papered over. Every budget in the file is an RX 6600 figure, so the gate asserts only on that hardware class — which is the opposite of the Low/Med presets that actually run god rays. And the test hard-codes the gather resolution as a copy of renderer.cpp's godRaysConfig, so a full-res regression would stay green. Both stated in design § 8 and in the test header; the weak-GPU reference point is filed as 3D_E-0624.

2026-08-21 Fixed — local-ci.sh now mirrors every CI job, and a pre-push hook runs it (3D_E-0622)

Two gaps sat between the local mirror and the pipeline it claims to reproduce: one job had no local stage, and nothing made the mirror run before a push at all.

The cmake-compat job was the uncovered one. Its deferral was deliberate and recorded -- a second CMake install was judged more than a pre-push gate warranted -- but that job guards this repo's declared cmake_minimum_required(VERSION 3.21), and FetchContent and policy semantics have tightened here before (CMP0169). A configure that succeeds on a host cmake 4.x is not evidence about 3.21.

There were also no git hooks in this repository at all, and none configured globally, so running the mirror was a habit rather than a gate -- and a habit is what fails on the push that needed it.

  • Mirror the cmake-compat job's 3.21.0 leg as local-ci stage 7 Downloads the pinned Kitware 3.21.0 binary into the gitignored .ci-tools/ on first use, sha256-verified before extraction, then runs that job's Configure+Build+Test verbatim with its own build dir and its own ctest. The job's other matrix leg, latest, needs no stage: stage 2 already builds that Release config with the host cmake, and preflight prints both versions so the assumption is visible rather than implied. Skips cleanly when the download is unavailable offline.

  • Add .githooks/pre-push, which runs the full mirror before anything reaches origin Enable per clone with git config core.hooksPath .githooks. Documentation-only pushes skip it: no job in ci.yml builds, tests or lints prose, so a push touching only *.md, docs/, LICENSE, .gitignore or CODEOWNERS cannot change a CI outcome, and charging it a multi-config build is what teaches people to reach for --no-verify. A single unrecognised path arms the gate, so a new file type is gated by default rather than silently exempt. VESTIGE_SKIP_LOCAL_CI=1 is the greppable bypass; --no-verify remains the blunt one.

  • Give a PARTIAL local-ci mirror its own exit code (2) A skipped stage or a missing clang-tidy was already reported as "NOT push-verified" in prose, but it exited 0, so a caller could not tell it from a verified green -- and the new hook is exactly such a caller. It now warns and allows on 2 rather than blocking, since a box that merely lacks msvc-wine should not be stuck. No script branched on this exit code, so nothing downstream changed.

  • Correct the local-ci.sh header, which listed five stages when six existed actionlint had shipped as stage 6 without being added to the list, while ci.yml's workflow-lint job cites "local-ci.sh stage 6" by number. The header now lists all seven and states that the only remaining divergence from CI is the runner image -- local static-analysis tools are newer than ubuntu-24.04's, so a clean local audit stays a strong signal rather than a guarantee.

2026-08-19 Fixed — CI no longer depends on a package-install action that installs nothing (3D_E-0618, 3D_E-0619)

release.yml was moved off awalsh128/cache-apt-pkgs-action on 2026-07-22 because on ubuntu-24.04 its manifest parser errors, installs 0 packages, and then caches the empty result. The other workflows still called it. They passed only because they were riding an older healthy cache, and would have gone red on the first eviction with a symptom that does not name the cause -- GLFW configuring with no development libraries present, surfacing as a missing wayland-scanner or a missing X11 and shifting between runs.

  • Convert every remaining cache-apt-pkgs-action call site to a bounded, retrying apt install (3D_E-0618) Four sites, not the three the roadmap bullet counted: ci.yml's Linux build, its Tier-1 audit job and its cmake-compat job, plus a fourth in audit-full.yml that the bullet missed. Each package set is byte-identical to the list it replaces, and no workflow in this repository uses the action any more.

    The first attempt simply copied release.yml's plain apt-get, and that hung: with the runner's Azure mirror unreachable, apt fell back and then produced no output for 26 minutes, because it applies no network timeout by default. The shipped fix is a composite action at .github/actions/apt-install -- explicit Acquire timeouts so a stalled mirror fails in bounded time instead of hanging, three retries with backoff so a transient failure passes, and a per-step ceiling as the outer bound. One implementation shared by all four call sites.

  • Send CI's package downloads to archive.ubuntu.com rather than the runner's Azure mirror (3D_E-0621) Those timeouts catch a package server that goes silent. They cannot catch one that merely goes slow, because a steady trickle of bytes never trips an inactivity timeout -- an 11 MB download took five minutes and the job hit its ceiling instead. CI now drops the Azure mirror in favour of archive.ubuntu.com, which was fast on every run either side of the failure. Guarded, so it can never leave the mirror list empty. Verified on a green run: 351 package fetches from archive.ubuntu.com, none from Azure.

    What this does not do is survive a slow mirror -- it avoids the one that was slow. If archive.ubuntu.com ever degrades the same way, the per-step ceiling is the only remaining defence, and the run fails bounded rather than passing.

  • Correct release.yml's header comment, which denied the AppImage the same file builds (3D_E-0619) The header listed only the tarball and the Windows zip, and proposed building an AppImage with linuxdeploy as future work -- which the workflow's own Build AppImage step has been doing. It now lists all four published artifacts and describes the step as it stands.

v0.1.75-rc.1Pre-release

This release shipped without written notes.

v0.1.74-rc.1Pre-release

This release shipped without written notes.

v0.1.73-rc.1Pre-release

This release shipped without written notes.

v0.1.72-rc.1Pre-release

This release shipped without written notes.

v0.1.71-rc.1Pre-release

This release shipped without written notes.

v0.1.70

Vestige 0.1.70 — first release with a complete changelog section since 0.1.5.

Downloads

Your system File How to run it
Windows 10/11 (64-bit) vestige-0.1.70-windows-x86_64.zip unzip anywhere, run vestige.exe
Linux (easiest) Vestige-0.1.70-x86_64.AppImage mark it executable, then double-click
Linux (plain archive) vestige-0.1.70-linux-x86_64.tar.gz extract, run ./vestige-editor

Press Esc to enter the walkthrough, W A S D + mouse to move, Esc to return to the editor.

Needs an OpenGL 4.5 driver. Windows will show a SmartScreen warning — the build is not code-signed; click More info → Run anyway. macOS is not supported (Apple caps OpenGL at 4.1).

Notable in this release

  • Light shafts restored on the Low and Medium quality presets. Below the High preset the engine had been rendering no light shafts at all: the screen-space god rays checked a stale copy of "is volumetric fog running", concluded it was, and switched themselves off — while the fog was in fact disabled at those tiers by design. Weak hardware got neither effect.
  • Fog and GI performance budgets are now tied to the quality preset they were measured for, so a machine running below High is no longer held to dev-rig numbers.
  • The Windows test suite passes on real hardware for the first time — 3725 tests on a GTX 1050.
  • The README is rewritten to be readable without a C++ background, with a no-build "just want to look around?" section.

About the changelog section

CHANGELOG.md's [0.1.70] section covers 2026-04-18 to 2026-08-19, not this release alone. Tags v0.1.6 through v0.1.69-rc.1 were cut by the weekly release automation without their [Unreleased] content ever being promoted into a dated section, so many entries there describe work that reached users through those earlier tags. Rather than guess retroactively which entry belongs to which tag, the whole record is published as one honestly-dated section. Releases from here on carry their own.

v0.1.69-rc.1Pre-release

This release shipped without written notes.

v0.1.68-rc.1Pre-release

This release shipped without written notes.

v0.1.67-rc.1Pre-release

This release shipped without written notes.

v0.1.66-rc.1Pre-release

This release shipped without written notes.

v0.1.65

This release shipped without written notes.

v0.1.64-rc.1Pre-release

This release shipped without written notes.

v0.1.62

This release shipped without written notes.

v0.1.61

This release shipped without written notes.

0.1.5

Fixed — completes 2026-04-16 strict-aliasing sweep

One actionable finding from the 2026-04-18 full audit (5,149 raw findings, 1 actionable = 0.02% post-triage). Closes out the morph- target sites that were missed in engine 0.1.4 (commit 1f6fd24).

  • engine/utils/gltf_loader.cpp (lines 770, 790, 810): strict- aliasing UB in morph-target delta loading. The 0.1.4 sweep fixed the matching pattern in nav_mesh_builder.cpp but left three identical sites in the glTF morph-target POSITION/NORMAL/TANGENT loops unpatched. glTF byteStride is not required to preserve 4-byte alignment, and reinterpret_cast<const float*> on an unsigned char* is a strict-aliasing violation regardless of alignment — -O2 is free to reorder or elide the loads. Replaced each cast with float fp[3]; std::memcpy(fp, data + stride*i, sizeof(fp)); — same AMD64 codegen, portable under strict-aliasing. cppcheck: invalidPointerCast (portability) × 3.

Tooling

  • .gitleaksignore: added docs/AUTOMATED_AUDIT_REPORT_* so gitleaks stops re-emitting 3,500+ false-positive generic-api-key hits on every audit. The hits are our own audit tool's JSON results sidecars — rule IDs and short hashes tripping the generic-API-key regex. No real secrets in repo.

0.1.4

Fixed — cppcheck audit cycle

Eight actionable cppcheck findings from the 2026-04-16 audit run (1 portability bug, 7 performance hits) against a noise baseline of ~300 raw findings. Triage kept local per AUDIT_STANDARDS.md.

  • engine/navigation/nav_mesh_builder.cpp: strict-aliasing UB in scene-geometry collection. reinterpret_cast<const float*> on a uint8_t* VBO buffer violated the strict-aliasing rule; -O2 is free to reorder or elide such loads, so the UB was latent rather than visibly buggy. Switched to std::memcpy into a local float[3] — the standard-blessed way to reinterpret bytes as a different trivially-copyable type. Compiles to the same load on AMD64; portable under strict-aliasing. cppcheck: invalidPointerCast (portability).

  • engine/formula/lut_generator.cpp: redundant map lookup in default-variable insertion. vars.find(name) == end() followed by vars[name] = default is now vars.try_emplace(name, default) — one traversal instead of two. cppcheck: stlFindInsert.

  • engine/formula/node_graph.cpp: redundant set probe in cycle-detection frontier. visited.count(target) == 0 followed by visited.insert(target) is now if (visited.insert(target).second) — insert returns {iter, inserted}, so a single call replaces the count-then-insert pair. cppcheck: stlFindInsert.

  • engine/utils/cube_loader.cpp + tests/test_color_grading.cpp: line.find(x) == 0 → line.rfind(x, 0) == 0. The rfind(x, 0) overload only searches at position 0 so it short-circuits as soon as the prefix matches or fails; the find(x) == 0 form scans the whole string before reporting the position. C++17-compatible equivalent of starts_with() (which is C++20). Seven call sites updated. cppcheck: stlIfStrFind.

v0.1.3-previewPre-release

Vestige 0.1.3-preview — first public release

Vestige 0.1.3-preview — open-sourced.

C++17 / OpenGL 4.5 / GLFW / Jolt. Subsystem + event-bus architecture. Solo-maintained, MIT, transparently AI-assisted (Claude Code).

What works today (Phases 1-8): forward + PBR rendering, cascaded and point shadows, IBL, SSAO, bloom, TAA, GPU particles, skeletal animation, Jolt physics + cloth, dockable editor with gizmos and undo/redo, Formula Workbench for numerical design. 1770 unit tests. 60 FPS minimum is a hard requirement.

What's next: scripting/gameplay (Phase 9+), Vulkan backend, full global illumination, chunked terrain streaming. See ROADMAP.md.

Expectations: API is unstable until 1.0. Response time is variable — one pass per week is the intended cadence. Questions in Discussions, bugs in Issues, security via SECURITY.md.

Assets: the engine ships with a small CC0 demo asset set (Poly Haven 2K textures, Khronos glTF sample models, Arimo font). A larger 4K asset pack will land in a sibling repo closer to v1.0.0 once every file has been re-audited for redistributability — today's clone builds and runs cleanly without it.

0.1.3

Changed — launch-prep: VESTIGE_FETCH_ASSETS default → OFF

  • Default changed in external/CMakeLists.txt: fresh clones no longer attempt to pull the milnet01/VestigeAssets CC0 asset pack. The sibling repo stays private until ~v1.0.0 pending a final redistributability audit of every 4K texture and .blend.zip archive. The engine's demo scene renders correctly against the in-engine 2K CC0 set shipped in assets/ (Poly Haven plank / brick / red_brick, glTF sample models, Arimo font) — no asset download is required. Maintainers with access to the private sibling repo can opt in with -DVESTIGE_FETCH_ASSETS=ON.

  • Public docs updated to reflect the new default and the private-assets-repo status: README.md, ASSET_LICENSES.md, SECURITY.md, THIRD_PARTY_NOTICES.md, ROADMAP.md. CI comments in .github/workflows/ci.yml rewritten: the -DVESTIGE_FETCH_ASSETS=OFF flag is now an explicit default-match (testing the fresh-public-clone path), not a temporary stopgap.

  • Launch-sweep script (scripts/final_launch_sweep.sh) end-of-run message updated: no "remove the flag" step, single-repo flip only.

When VestigeAssets later goes public the flip is a single commit that sets the default back to ON, drops the explicit flag from CI, and re-links the sibling repo in README.md.

Changed — launch-prep: Timer → std::chrono::steady_clock

  • engine/core/timer.cpp no longer depends on GLFW. Switched the time source from glfwGetTime() to std::chrono::steady_clock via a private elapsedSecondsSince(origin) helper. Public API is unchanged — callers still see the same update() / getDeltaTime() / getFps() / getElapsedTime() semantics. The only observable behavioural difference is getElapsedTime()'s epoch: previously "seconds since GLFW init", now "seconds since Timer construction". The sole non-test caller (wind animation in engine::render) only uses rate-of-change, so the epoch shift is invisible.

  • tests/test_timer.cpp is now a pure unit test. Removed glfwInit() / glfwTerminate() from SetUp/TearDown. Added two new tests: ElapsedTimeAdvancesWithWallClock (verifies monotonic advance across a 10 ms sleep_for) and FrameRateCapRoundTrip (verifies the uncapped/capped/uncapped setter round-trip).

  • Root cause for the test-suite flakiness surfaced by scripts/final_launch_sweep.sh. glfwInit() pulled in libfontconfig / libglib global caches, which LeakSanitizer flagged as an 88-byte leak at process exit under parallel ctest -j nproc. The test logic itself always passed, but the LSan leak tripped the harness's exit code — giving flaky 1-3 test failures across back-to-back sweep runs, which in turn cascaded into launch-sweep "regressions" (tests_failed contributes to the audit HIGH count). Removing the GLFW init removes the whole libglib/libfontconfig lifecycle from vestige_tests (it was the only test that called glfwInit). Five consecutive parallel runs now pass 100%.

0.1.2

Fixed — §H18 + §H19 divergent SH grid radiosity bake

Post-audit follow-up. User reported every textured surface looked like an emissive light after the §H14 SH basis correction landed; bisection via the new --isolate-feature CLI flag localised it to the IBL diffuse path, specifically the SH probe-grid contribution. Two real bugs, neither addressed by §H14 / §M14:

  • §H19 SH grid irradiance was missing the /π conversion — the real cause. evaluateSHGridIrradiance returns Ramamoorthi-Hanrahan irradiance E (∫ L(ω) cos(θ) dω); the diffuse-IBL formula at the call site is kD * irradiance * albedo, which assumes the pre-divided value E/π that LearnOpenGL's pre-filtered irradiance cubemap stores (PI is multiplied in during the convolution, then implicitly divided back out via (1/nrSamples) * PI). Without the /π division, the SH grid path produced a diffuse contribution π × the correct value, so the radiosity transfer factor became π × albedo. For any albedo ≥ 1/π ≈ 0.318 — i.e. all common materials — that's > 1, and the multi-bounce bake series diverged instead of converging. Observed energy growth ~1.7× per bounce matched π × scene-average-albedo ≈ π × 0.54 exactly. Fix: divide the SH evaluation result by π so it matches the cubemap convention. Bake now converges geometrically (Tabernacle scene: 5.47 → 6.16 → 6.49, deltas 0.69 → 0.33).

  • §H18 skybox vertex shader was Z-convention-blind — masked the §H19 bug below the surface. The shader hard-coded gl_Position.z = 0, which is the far plane in reverse-Z (main render path) but the middle of the depth buffer in forward-Z (capture passes used by captureLightProbe and captureSHGrid). Without this fix, the §M14 workaround had to gate the skybox out of capture passes entirely, leaving the SH probe-grid bake without any sky direct contribution and forcing it to feed off pure inter-geometry bounce — the exact configuration where §H19's missing /π factor blew up. The shader now reads u_skyboxFarDepth and emits z = u_skyboxFarDepth * w, so z/w = u_skyboxFarDepth after the perspective divide. The renderer sets the uniform per pass: 0 for reverse-Z main render, 0.99999 for forward-Z capture (close-but-not-equal-to-1.0 so GL_LESS still passes against the cleared far buffer). The §M14 && !geometryOnly gate is removed since the skybox now draws correctly in both Z conventions. Sky direct light is back in the SH grid bake.

  • Diagnostic CLI flag --isolate-feature=NAME retained for future regression bisection. Recognised values: motion-overlay, bloom, ssao, ibl, ibl-diffuse, ibl-specular, sh-grid. Each disables one specific renderer feature so a --visual-test run's frame reports can be diff-mechanically compared against a baseline to identify the offending subsystem. Used to find §H18+§H19 in 5 short visual-test passes — without it the bisection would have required either reverting commits or interactive shader editing.

0.1.1

Fixed — §H17 SystemRegistry destruction lifetime

Post-audit follow-up to the 0.1.0 audit cycle. The §H16 fix (gated SaveSettings during ed::DestroyEditor) closed one shutdown SEGV but a second, independent SEGV remained, surfacing as ASan "SEGV on unknown address (PC == address)" + nested-bug abort immediately after the "Engine shutdown complete" log line.

  • §H17 SystemRegistry destruction lifetime: root cause was structural, not the §H16 ImGui-node-editor race: SystemRegistry::shutdownAll() called each system's shutdown() but left the unique_ptr<ISystem> entries in the vector. The systems' destructors therefore ran during ~Engine member cleanup — after m_renderer.reset() and m_window.reset() had already destroyed the renderer and torn down the GL context — so any system dtor that touched a cached Renderer*/Window* or freed a GL handle dereferenced freed memory or called a dead driver function pointer. New SystemRegistry::clear() destroys the systems in reverse registration order; Engine::shutdown() calls it immediately after shutdownAll() so destruction happens while shared infrastructure is still alive. Closes the §H16 runtime-verification deferral — §H16 (ed::DestroyEditor SaveSettings race) was correct as far as it went; §H17 was the second, independent shutdown path that masked the §H16 fix's success. Six new unit tests in tests/test_system_registry.cpp pin the contract: destructors run in reverse order inside clear(), the registry empties, clear() is idempotent, and the canonical shutdownAll() → clear() sequence produces the expected eight-event log.

0.1.0

Initial changelog entry. Prior history captured in ROADMAP.md Phase notes and docs/PHASE*.md design documents.

Subsystems in place as of this release:

  • Core (engine/window/input/event-bus/system-registry)
  • Renderer (OpenGL 4.5 PBR forward, IBL, TAA, SSAO, bloom, shadows, SH probe grid)
  • Animation (skeleton, IK, morph, motion matching, lip sync)
  • Physics (rigid body, constraints, character controller, cloth)
  • Scripting (Phase 9E visual scripting, 60+ node types)
  • Formula (template library, Levenberg-Marquardt curve fitter, codegen)
  • Editor (ImGui dock-based; Phase 9E-3 node editor panel in progress)
  • Scene / Resource / Navigation / Profiler / UI / Audio

Security — audit cycle

  • Flask web UI of the audit tool hardened against path-traversal and shell-injection (affects local-dev setups that ran the web UI only; no public deployment). Details in tools/audit/CHANGELOG.md v2.0.1–2.0.6.
  • Formula codegen injection hardened (AUDIT.md §H11). ExprNode::variable/binaryOp/unaryOp factories + fromJson now validate identifiers against [A-Za-z_][A-Za-z0-9_]* and operators against an allowlist. Codegen (C++ + GLSL) throws on unknown op instead of raw-splicing. A crafted preset JSON like {"var": "x); system(\"rm -rf /\"); float y("} is now rejected at load time, well before any generated header is compiled.

Fixed — audit cycle

Scripting (§H5–§H9, §M5–§M8)

  • §H5 UB &ref == 0 guards: Engine& m_engine → Engine*. reinterpret_cast<uintptr_t>(&m_engine) == 0 was undefined behavior that -O2 could fold to false, crashing release builds on paths that rely on the guard.
  • §H6 Blackboard fromJson cap bypass: fromJson now routes through set(), enforcing MAX_KEYS = 1024 and MAX_STRING_BYTES = 256.
  • §H7/§H8 pure-node memoization opt-out: NodeTypeDescriptor::memoizable flag; GetVariable, FindEntityByName, HasVariable are marked non-memoizable so loop bodies see fresh reads after SetVariable. WhileLoop.Condition now works — previously froze at its first value.
  • §H9 latent-action generation token: ScriptInstance::generation() bumps on every initialize(); Timeline onTick lambdas capture and validate, dropping stale callbacks across the editor test-play cycle instead of dereferencing nodeIds from a rebuilt graph.
  • §M5 ScriptGraph::addConnection now clampStrings pin names (matches the on-disk load path).
  • §M6 isPathTraversalSafe rejects absolute paths, tilde paths, and empty strings, not just .. components.
  • §M7 subscribeEventNodes warns on unknown eventTypeName (known-not-yet-wired types exempted), surfacing typos that used to produce silent non-firing nodes.
  • §M8 Quat JSON order documented as [w, x, y, z] on both serializer and deserializer.

Formula pipeline (§H12, §H13, §M9, §M10, §M12)

  • §H12 Evaluator↔codegen safe-math parity: new engine/formula/safe_math.h centralises safeDiv, safeSqrt, safeLog. Evaluator, C++ codegen, and GLSL codegen (via a prelude) all share the same semantics, so the LM fitter's coefficients no longer validate against one set of math and ship a different one.
  • §H13 curve-fitter non-finite residuals (already landed in d007349): LM bails on NaN/Inf initial residuals with an explanatory message; rejects non-finite trial steps; accumulators are double.
  • §H14 SH basis constant (already landed in 553277d): assets/shaders/scene.frag.glsl:553 changed from c3 = 0.743125 to c1 = 0.429043 on the L_22·(x²−y²) band-2 term (Ramamoorthi-Hanrahan Eq. 13). Removes a ~1.73× over-weight that tilted chromatic response on indoor ambient bakes.
  • §M9 NodeGraph::fromJson throws on duplicate node IDs; m_nextNodeId is recomputed as max(id)+1 regardless of the serialised counter.
  • §M10 fromExpressionTree CONDITIONAL now logs a warning on the import-time logic loss (collapse to literal(0) with orphaned branch sub-trees). Root-cause fix tracked in ROADMAP.md §Phase 9E "Deferred".
  • §M12 ExprNode::toJson guards against null children so malformed in-memory trees emit a null placeholder instead of crashing the save path.

Renderer + shaders (§H15, §M13–§M18, §L4, §L5)

  • §H15 per-object motion vectors: new overlay pass after the full-screen camera-motion pass. New shaders motion_vectors_object.{vert,frag}.glsl take per-draw u_model / u_prevModel matrices; Renderer tracks m_prevWorldMatrices keyed by entity id. TAA reprojection on dynamic / animated objects now reproduces their real motion instead of ghosting. TAA motion vector FBO gained a depth attachment so the overlay depth-tests against its own geometry.
  • §M13 BRDF LUT left column (NdotV=0) clamped to 1e-4 at entry so the LUT is Fresnel-peaked, not black. Fixes dark rim on rough dielectrics under IBL.
  • §M14 Skybox pass explicitly gated on !geometryOnly + hardening comment. Light-probe / SH-grid capture paths use forward-Z; skybox's gl_FragDepth = 0 would have passed GL_LESS if the gate ever went away.
  • §M15 Bloom bright-extraction epsilon raised to 1e-2 and output clamped to vec3(256.0). Saturated-hue pixels no longer amplify up to 10000× into the blur chain.
  • §M16/§M18 SSR and contact-shadow normals use four-tap central differences with gradient-disagreement rejection. No more silhouette halos at depth discontinuities.
  • §M17 Point-shadow slope-scaled bias scaled by farPlane so the same shader behaves correctly at Tabernacle-scale (~5m) and outdoor-scale (~100m) farPlanes — no more Peter-Panning indoors.
  • §L4 SH probe grid 3D-sampler fallbacks (units 17–23) rebound after both captureLightProbe and captureSHGrid. Prevents stale 3D texture reads on subsequent captures.
  • §L5 TAA final resolve max(result, 0.0) — cheap NaN clamp before history accumulation.

Editor (§H16, §M1–§M4)

  • §H16 imgui-node-editor shutdown SEGV root-caused. NodeEditorWidget routes Config::SaveSettings/LoadSettings through free-function callbacks gated on an m_isShuttingDown flag so ed::DestroyEditor no longer runs a save that dereferences freed ImGui state. Canvas layout persistence re-enabled at ~/.config/vestige/NodeEditor.json.
  • §M1 ScriptEditorPanel::makePinId widened from 16-bit to 32-bit nodeId and 31-bit pinIndex. Eliminates collisions on generated/procedural graphs. Static-asserts 64-bit uintptr_t.
  • §M2 ScriptEditorPanel::open(path) preserves the existing graph on load failure (matches the header contract).
  • §M3 NodeTypeDescriptor::inputIndexByName/outputIndexByName populated at registerNode time; editor renders connections in O(1) instead of linear scans per frame.
  • §M4 Unknown pin names → skip connection + Logger::warning instead of silent "draw to pin 0".

Misc (§L1–§L9 tail)

  • §L1 ScriptingSystem::initialize/shutdown idempotency contract documented on the header.
  • §L2 Formula Workbench file-dialog popen now reads full output (was truncated at 512 bytes).
  • §L3 Curve fitter RMSE accumulators already moved to double in §H13 — noted in the CHANGELOG for audit completeness.
  • §L8 NodeEditor.json added to .gitignore (runtime layout artifact).
  • §L9 Audit tool --keep-snapshots N flag; docs/trend_snapshot_*.json gitignored.

Added — infrastructure

  • §I1 GitHub Actions CI (.github/workflows/ci.yml): Linux Debug+Release matrix, build + ctest under xvfb, separate audit-tool Tier 1 job.
  • §I2 .clang-format at repo root mirroring CODING_STANDARDS.md §3 (Allman braces, 4-space indent, 120-column limit, pointer-left alignment). Not a hard gate — opportunistic enforcement.
  • §I3 Repo-level VERSION (0.1.0) + this CHANGELOG.md (already in place).
  • §I4 .pre-commit-config.yaml + scripts/check_changelog_pair.sh. Local git hook that fails commits touching tools/audit/, tools/formula_workbench/, or engine/ without also touching the respective CHANGELOG.md (and VERSION if present). Bypassable with --no-verify for trivial fixes.

Deferred to ROADMAP

Three known gaps documented in ROADMAP.md:

  • Per-object motion vectors via MRT (eliminates the overlay pass; enables skinned/morphed motion) — Phase 10 rendering enhancements.
  • NodeGraph CONDITIONAL node type (preserves ExprNode conditional round-trip) — Phase 9E visual scripting.
  • imgui-node-editor shutdown SEGV visual confirmation — Phase 9E-3 step-4 acceptance (code-level race is closed; needs one editor launch to verify).