Repository navigation
Comparing changes
Open a pull request
base repository: Ashscript-Game/ashscript
base: main
head repository: Ashscript-Game/ashscript
compare: solis2d-lighting
- 12 commits
- 174 files changed
- 2 contributors
Commits on Jun 13, 2026
-
feat(client): migrate to Bevy 0.18
Upgrade bevy 0.14 -> 0.18 (and align bevy_egui 0.39, bevy-inspector-egui 0.36, bevy_hanabi 0.18) against an in-org fork of bevy_magic_light_2d ported to 0.18. Adapt the client to the new APIs: bundles -> required components for cameras, sprites and 2D meshes; buffered Event -> Message; Query::single -> Result; relocated import paths; and glam-version bridging for hexx interop. Restore the F3 egui world inspector, now that bevy_egui and bevy-inspector-egui are version-aligned.
Configuration menu - View commit details
-
Copy full SHA for 808837c - Browse repository at this point
Copy the full SHA 808837cView commit details
Commits on Jun 14, 2026
-
Configuration menu - View commit details
-
Copy full SHA for fa1e9e4 - Browse repository at this point
Copy the full SHA fa1e9e4View commit details -
fix(client): make the scene visible after the Bevy 0.18 port
Render the scene cameras (order 0) before the post-processing camera that composites them, matching the magic-light examples. Raise the global skylight from a near-black 0.025 to a tunable day/night pair, and give each terrain tile a small deterministic grey variation so adjacent hexes are distinguishable.
Configuration menu - View commit details
-
Copy full SHA for fba9206 - Browse repository at this point
Copy the full SHA fba9206View commit details -
feat(server): add production chain, unit lifecycle, shields, and scen…
…ario presets Resource extraction, assembler smelting, distributor pushing, energy costs for move/attack, aging+death-to-scrap, shields absorbing damage, and fabricate-spawn. Adds ASHSCRIPT_PRESET (basic|production_line|combat). Also bounds bot A* to the map (an unreachable target previously searched the infinite plane) and fixes the turret-repair target lookup.
Configuration menu - View commit details
-
Copy full SHA for 71e7a86 - Browse repository at this point
Copy the full SHA 71e7a86View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4d544a - Browse repository at this point
Copy the full SHA c4d544aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b90d12e - Browse repository at this point
Copy the full SHA b90d12eView commit details -
feat(server): allow selecting a scenario preset by CLI argument
Positional arg (`mono-server <preset>`) takes precedence over ASHSCRIPT_PRESET, then falls back to basic.
Configuration menu - View commit details
-
Copy full SHA for 2a8f882 - Browse repository at this point
Copy the full SHA 2a8f882View commit details -
chore: snapshot in-progress working tree as solis2d-lighting baseline
Mirrors the user's current uncommitted bevy-client + server work at the time the solis_2d lighting migration began, so the migration commits are cleanly separable and the user's WIP is preserved in this isolated worktree. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8126aae - Browse repository at this point
Copy the full SHA 8126aaeView commit details -
feat(client): replace magic_light GI with solis_2d radiance cascades
Swaps the deferred SDF + screen-space-probe lighting engine (bevy_magic_light_2d) for our Bevy 0.18 fork of solis_2d's radiance-cascade GI. The client builds with no errors. Architecture change: magic_light split the scene across three off-screen render-layer cameras (floor/walls/objects) composited by a post-processing camera. solis lights the camera's own view in-place via a render-graph node, so the client now renders the whole world through a single HDR Camera2d carrying a tuned night RadianceConfig; GI happens in-place to the window. - Cargo: client depends on the local solis_2d fork (absolute path for this deep verification worktree; see the in-file note for the real-checkout relative path). Removed the bevy-magic-light-2d [patch] from the workspace root and the magic_light git dependency from the client. - New crate::lighting module: * LightingPlugin now registers SolisPlugin. * night_radiance_config(): permanent-night cascade config; the old SkylightLight2D ambient is folded into RadianceConfig.modulate (cool dim tint) since solis has no separate ambient term. * omni_light(intensity,color,falloff) / wall_occluder(h_size): map the game's legacy point-light / occluder params onto solis Emitters. * SpriteCamera marker + CAMERA_LAYER_* / ALL_LAYERS shims (all -> layer 0) so the many historical call sites compile unchanged. - game.rs: three scene cameras + CameraTargets -> one lit world camera. - minimap.rs: three off-screen-target cameras -> one zoomed viewport camera. - main.rs: drop BevyMagicLight2DPlugin, BevyMagicLight2DSettings and the magic_light register_type calls. - All OmniLightSource2D{..} literals -> omni_light(..); the wall LightOccluder2D{..} -> wall_occluder(..); magic_light imports across unit/structure/projectile/engine/debug swapped to crate::lighting. Known visual tuning the user must verify in-app (see HANDOFF.md): emitter radius/intensity scale, the night modulate tint, and that walls occlude correctly with a Rect (not hex) SDF. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>Configuration menu - View commit details
-
Copy full SHA for 46b46a0 - Browse repository at this point
Copy the full SHA 46b46a0View commit details -
fix(client): correct wall occluder half-extents and soften night modu…
…late From adversarial review: - engine/resources.rs: `wall_occluder` takes RECT HALF-EXTENTS, but the call site passed the full hex width (Vec2::splat(HEX_SIZE.x)=(64,64)), producing a 128x128 occluder ~2x too large that overhung the wall sprite and leaked shadow into vertical neighbours. Pass half the sprite footprint (HEX_SIZE.x, HEX_SIZE.x*sqrt(3)/2). Also replaced the stale comment that referenced a non-existent hex SDF / gi_sdf.wgsl. - lighting/plugin.rs: documented wall_occluder's half-extent contract and softened the night `modulate` from (0.30,0.40,0.52) to (0.45,0.55,0.68) so lit sprites stay legible (the composite multiplies main+light by modulate, dimming lit areas too). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e09a752 - Browse repository at this point
Copy the full SHA e09a752View commit details -
docs: add HANDOFF.md for the solis_2d lighting migration
Documents what builds, the full magic_light->solis API mapping, the 0.15->0.18 port deltas, RC improvements made vs. remaining (with exact shader locations), the required in-app visual verification, and how to land this on the real checkout. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0364670 - Browse repository at this point
Copy the full SHA 0364670View commit details
Commits on Oct 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 26bb04e - Browse repository at this point
Copy the full SHA 26bb04eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...solis2d-lighting