From 772e8924ed7ee64f968128296b1e0b76712c1b4d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 15 Jul 2026 21:54:11 +0100 Subject: [PATCH] Advertise viewport-derived volume texture scale --- Aetheria.State.Daemon.Smoke/Program.cs | 4 +++- Aetheria.Unity/Packages/manifest.json | 2 +- Aetheria.Unity/Packages/packages-lock.json | 4 ++-- .../AetheriaRuntimeDaemonGameSurfaceBuilder.cs | 2 +- docs/aetheria-perfect-machine-map.md | 12 +++++++----- docs/original-game-migration-matrix.md | 2 +- 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Aetheria.State.Daemon.Smoke/Program.cs b/Aetheria.State.Daemon.Smoke/Program.cs index 70f4b5bcd..6cecfee38 100644 --- a/Aetheria.State.Daemon.Smoke/Program.cs +++ b/Aetheria.State.Daemon.Smoke/Program.cs @@ -220,7 +220,9 @@ internal sealed class AetheriaDaemonYmirSmokeChecks AetheriaRuntimeDaemonCommandBoundaryDocument.Create("daemon")); var volume = Flatten(surface.Surface.Root).Single(node => node.Kind == "field.volume3d"); Require(volume.Props.Values.All(value => value == null || !value.Contains("_Nebula", StringComparison.Ordinal)) && - volume.Props["layerBindings"].Contains("gravity.height=surfaceHeight", StringComparison.Ordinal), + volume.Props["layerBindings"].Contains("gravity.height=surfaceHeight", StringComparison.Ordinal) && + volume.Props["viewportTextureScaleBindings"] == "ditherCoordinates=dither" && + !volume.Props.ContainsKey("vectorParameters"), "portable Eve volume surfaces must name logical ports rather than Unity shader properties"); var shader = AetheriaRuntimeAssets.ProjectManifest(null).Assets.Single(asset => diff --git a/Aetheria.Unity/Packages/manifest.json b/Aetheria.Unity/Packages/manifest.json index b734ec98b..881894d65 100644 --- a/Aetheria.Unity/Packages/manifest.json +++ b/Aetheria.Unity/Packages/manifest.json @@ -9,6 +9,6 @@ "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.13", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.0", "org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.2", - "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.39" + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.40" } } diff --git a/Aetheria.Unity/Packages/packages-lock.json b/Aetheria.Unity/Packages/packages-lock.json index 9c932b706..5de21def7 100644 --- a/Aetheria.Unity/Packages/packages-lock.json +++ b/Aetheria.Unity/Packages/packages-lock.json @@ -144,7 +144,7 @@ "hash": "140e1bd963a0033e66777a3b2c5fe6e9c97dfe32" }, "org.gamecult.eve.unity-scene": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.39", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.40", "depth": 0, "source": "git", "dependencies": { @@ -154,7 +154,7 @@ "com.unity.mathematics": "1.3.2", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "35ff288aabc03130a61228579f1b09bac4345b5c" + "hash": "3c8d127ef8d0d8e6c9a45f92a8bbd553d87e6a07" }, "com.unity.modules.assetbundle": { "version": "1.0.0", diff --git a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs index 328157b2b..56d388875 100644 --- a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs +++ b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs @@ -698,7 +698,7 @@ namespace GameCult.Aetheria.State.Verse ["downsample"] = "0", ["layerBindings"] = "gravity.height=surfaceHeight;fog.patch_height=patchHeight;fog.patch=patch;fog.tint=tint", ["assetTextureBindings"] = "texture.environment.volume-dither=dither", - ["vectorParameters"] = "ditherCoordinates=0,0,0,0", + ["viewportTextureScaleBindings"] = "ditherCoordinates=dither", ["floatParameters"] = "fillDensity=0.000000001;fillDistance=120;fillExponent=5;fillOffset=70;" + "patchDensity=0.35;floorOffset=-20;floorBlend=10;patchBlend=25;luminance=1;extinction=0.5;" + "tintLodExponent=-0.45;safetyDistance=30;flowScale=512;flowAmplitude=15;flowPeriod=8;" + diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 927042e6a..9e78d13ed 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -889,15 +889,16 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. provider shader asset. Eve Fields owns the portable splat document and `field.volume3d` logical ports. EveUnity owns only the native render lifecycle. - Inputs: the canonical viewport splat document, logical surface-height, - patch-height, patch, tint, scalar/vector parameters, provider asset reference, - and the selected runtime asset variant's native program metadata. + patch-height, patch, tint, scalar parameters, viewport-to-texture scale + relations, provider asset reference, and the selected runtime asset variant's + native program metadata. - Outputs: the generic runtime rasterizes logical field layers, executes the advertised raymarch, optional temporal-history, and composite passes, and presents pixels. No pass can emit gameplay state or commands. - Derived state: Unity materials, shader-property names, pass indices, keywords, raymarch targets, ping-pong history textures, previous camera matrices, and - composite counters are runtime projections. They are neither daemon truth nor - portable Eve state. + viewport-derived texture scales and composite counters are runtime projections. + They are neither daemon truth nor portable Eve state. - Forbidden writers: the old `VolumeSampling`/`VolumeCloudRenderer` presentation path, shader code, Unity cameras, and generic lowerers cannot calculate gravity, move bodies, or publish world truth. EveUnity may not import an Aetheria assembly @@ -905,7 +906,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. - Shared paths: first frame, camera motion, reconnect, viewport resize, and warm asset reuse all enter the same generic volume lifecycle. History resets on a new node, program, or render size. A provider that advertises a temporal pass - without all required history ports fails closed. + without all required history ports, or a viewport scale relation with an + unresolved logical port or texture, fails closed. - Cut line: the portable surface contains logical field and parameter names only. `_Nebula*`, `_PrevVP`, `_ResetHistory`, shader keywords, and pass indices live exclusively in the provider's Unity asset-variant metadata. diff --git a/docs/original-game-migration-matrix.md b/docs/original-game-migration-matrix.md index c23f16cb7..e4d963935 100644 --- a/docs/original-game-migration-matrix.md +++ b/docs/original-game-migration-matrix.md @@ -34,7 +34,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity. | Pilot camera | ARPG follow/dock cameras | Eve view semantics + runtime | camera rig and semantic view id | EveUnity camera rig | daemon dock state now selects distinct contracts instead of collapsing both fossil cameras: undocked flight advertises the entity-forward `Third Person Rig` framing (distance 30, screen 0.64/0.81, FOV 60, lens 1-4096), while the retained dock projection remains separate; EveUnity lowers entity-forward framing without provider types | reproduce the dock camera's separate follow/look-at subjects, blend timeline, noise, and reconnect state | | Render channels | Unity layers/culling masks | provider surface policy + runtime asset variant | semantic channel exclusions | EveUnity native layer mapping | wired, exclusive, and lowered: the pilot surface excludes the semantic `map` channel; the Unity asset variant maps `map` to its authored native layer; EveUnity subtracts that layer from the configured camera mask; portable state contains no Unity layer or mask; package tests and the clean-client dependency verifier pass | live pilot capture proving no map glyphs while the map camera retains them | | Minimap/tactical map | `ZoneRenderer`, map cameras | daemon world facts | explicit map projections | Unity and Electron | facts fragmented; generic lowerers absent | same state in both runtimes | -| Fields/fog/gravity | zone renderer and shaders | daemon/plugin semantics | Fields plugin documents | EveUnity fields lowerer | daemon publishes four canonical gravity/fog splat layers through `field.volume3d`; the provider asset variant owns the fossil shader, native ports, quality/features, and raymarch/temporal/composite pass graph; released EveUnity `0.3.39` lowers the optional temporal-history lifecycle generically and fails closed on partial native programs; the warm released witness executes the provider bundle, four layers, and repeated composites without importing Aetheria code; correcting the fossil flight camera removed the false top-down disk, but the raymarch remains a nearly uniform saturated orange horizon rather than the authored blue fog sea, so visual composition parity is explicitly absent | derive the advertised dither sampling coordinates from render-target and texture dimensions, then inspect finite aim look-at and capture temporal visual parity | +| Fields/fog/gravity | zone renderer and shaders | daemon/plugin semantics | Fields plugin documents | EveUnity fields lowerer | daemon publishes four canonical gravity/fog splat layers through `field.volume3d`; the provider asset variant owns the fossil shader, native ports, quality/features, and raymarch/temporal/composite pass graph; released EveUnity `0.3.40` lowers temporal history and viewport-to-texture scale relations generically, and fails closed on partial native programs or unresolvable scale bindings; the warm released witness executes the provider bundle, four layers, and repeated composites without importing Aetheria code; derived dither scale is now proven but the raymarch remains nearly flat orange, so visual parity is explicitly absent | compare camera/world sampling coordinates against the published field viewport, then inspect finite aim look-at and capture temporal visual parity | | HUD/schematic | ARPG HUD and `SchematicDisplay` | Eve composition from daemon facts | semantic status/components | EveUnity UI | provider-authored transparent cockpit is wired, projected, and lowered through generic UI Toolkit panes, metrics, and progress components for hull, shield, capacitor, temperature, cargo, weapon cooldown/groups, selected target, target lock, target shield, and target hull; the original armor/equipment schematic and transient warning choreography remain reference-only | schematic topology, warning timelines, dynamic action state, and composited live capture | | Hit/lock/warnings | `ActionGameManager` feedback | daemon event facts | transient feedback stream | VFX/UI/audio | bounded deduplicated game-event ledger and Eve `feedback.stream` wired for pickup outcomes, projectile launch/impact, entity damage, alive-to-dead destruction, authoritative weapon reload chronology, and episode-deduplicated `weapon.fire.refused` facts for insufficient energy or missing ammunition; refusal identity, authored weapon, target, reason, and remaining magazine state are runtime-independent cockpit inputs | add lock transitions, thermal and docking event families, negative transaction fixtures, and runtime effect consumption | | Assets | `Assets/Resources` | Aetheria provider | asset catalog + CultMesh CDN | runtime cache/load | provider manifests name deterministic bundle-internal paths; the authoring build derives presentation-only prefabs, strips missing and non-Eve `MonoBehaviour` components, verifies both saved prefabs and the loaded bundle, and publishes the immutable bundle through CultMesh; released-client warm-cache loading, content verification, and rendered provider identity are proven, while cold transfer still times out because the 46.1 MB body travels through batched snapshot records | mapped/network body transport followed by empty-cache download, atomic promotion, and cache reuse proof |