From 490fe45a710e71db6dd743bd7f88aa5473396aab Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 16 Jul 2026 19:56:52 +0100 Subject: [PATCH] Restore histogram exposure ownership --- Aetheria.State.Daemon.Smoke/Program.cs | 9 +++++++++ Aetheria.Unity/Packages/manifest.json | 2 +- Aetheria.Unity/Packages/packages-lock.json | 4 ++-- Assets/Editor/EveAssetBundleBuilder.cs | 4 ++-- Assets/Editor/EveEnvironmentProfileMigrator.cs | 7 +++---- .../Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs | 9 +++++++++ 6 files changed, 26 insertions(+), 9 deletions(-) diff --git a/Aetheria.State.Daemon.Smoke/Program.cs b/Aetheria.State.Daemon.Smoke/Program.cs index a54103e97..aa65cb937 100644 --- a/Aetheria.State.Daemon.Smoke/Program.cs +++ b/Aetheria.State.Daemon.Smoke/Program.cs @@ -820,6 +820,15 @@ internal sealed class AetheriaDaemonYmirSmokeChecks world.Props["ambientLightColor"] == "0.5,0.75,1" && world.Props["reflectionAssetRef"] == "texture.environment.reflection" && world.Props["postProcessProfileAssetRef"] == "profile.environment.flight" && + world.Props["exposureMode"] == "histogram.v1" && + world.Props["exposureLowPercent"] == "47.37294" && + world.Props["exposureHighPercent"] == "99" && + world.Props["exposureMinimumEv"] == "-3" && + world.Props["exposureMaximumEv"] == "0.3" && + world.Props["exposureKeyValue"] == "0.5" && + world.Props["exposureAdaptation"] == "progressive" && + world.Props["exposureSpeedUp"] == "2" && + world.Props["exposureSpeedDown"] == "1" && world.Props["cameraReconstruction"] == "temporal-reprojection.v1" && world.Props["temporalQuality"] == "high" && world.Props["temporalHistoryBlend"] == "0.99" && diff --git a/Aetheria.Unity/Packages/manifest.json b/Aetheria.Unity/Packages/manifest.json index 8157370e3..c2a5e76c6 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.15", "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.3", "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.58" + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.59" } } diff --git a/Aetheria.Unity/Packages/packages-lock.json b/Aetheria.Unity/Packages/packages-lock.json index 9e32cf4c2..169fde3f3 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.58", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.59", "depth": 0, "source": "git", "dependencies": { @@ -155,7 +155,7 @@ "com.unity.render-pipelines.universal": "17.4.0", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "02203ff134570c301ce58969397c296ee14e69ee" + "hash": "4d5257b8ca09767974e8eb350a9695191ec39fdc" }, "com.unity.modules.assetbundle": { "version": "1.0.0", diff --git a/Assets/Editor/EveAssetBundleBuilder.cs b/Assets/Editor/EveAssetBundleBuilder.cs index 20a1f616e..eafa81e98 100644 --- a/Assets/Editor/EveAssetBundleBuilder.cs +++ b/Assets/Editor/EveAssetBundleBuilder.cs @@ -668,10 +668,10 @@ namespace Aetheria.Editor throw new InvalidOperationException("Aetheria flight profile has no serialized ACES tonemapping component."); if (!profile.TryGet(out ColorAdjustments color) || !color.postExposure.overrideState || - !Mathf.Approximately(color.postExposure.value, 2f) || + !Mathf.Approximately(color.postExposure.value, 0f) || !color.contrast.overrideState || !Mathf.Approximately(color.contrast.value, 15f)) - throw new InvalidOperationException("Aetheria flight profile has no serialized exposure/contrast component."); + throw new InvalidOperationException("Aetheria flight profile has no neutral exposure/contrast component."); if (!profile.TryGet(out Bloom bloom) || !bloom.intensity.overrideState || !Mathf.Approximately(bloom.intensity.value, 3f) || diff --git a/Assets/Editor/EveEnvironmentProfileMigrator.cs b/Assets/Editor/EveEnvironmentProfileMigrator.cs index f69e8963a..ed157cb88 100644 --- a/Assets/Editor/EveEnvironmentProfileMigrator.cs +++ b/Assets/Editor/EveEnvironmentProfileMigrator.cs @@ -23,10 +23,9 @@ namespace Aetheria.Editor tonemapping.mode.Override(TonemappingMode.ACES); var color = VolumeProfileFactory.CreateVolumeComponent(profile, true, false); - // The fossil histogram exposure clamps average luminance to 2^-3 and - // uses a 0.5 middle-grey key. At that dark-scene bound the resulting - // exposure is 4x, which is the fixed URP equivalent available here. - color.postExposure.Override(2f); + // Histogram exposure is lowered separately from the generic Eve + // camera contract. The static profile must not become a second owner. + color.postExposure.Override(0f); color.contrast.Override(15f); var bloom = VolumeProfileFactory.CreateVolumeComponent(profile, true, false); diff --git a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs index ffa250bf3..baae15bb4 100644 --- a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs +++ b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonGameSurfaceBuilder.cs @@ -651,6 +651,15 @@ namespace GameCult.Aetheria.State.Verse ["reflectionAssetRef"] = "texture.environment.reflection", ["reflectionIntensity"] = "1", ["postProcessProfileAssetRef"] = "profile.environment.flight", + ["exposureMode"] = "histogram.v1", + ["exposureLowPercent"] = "47.37294", + ["exposureHighPercent"] = "99", + ["exposureMinimumEv"] = "-3", + ["exposureMaximumEv"] = "0.3", + ["exposureKeyValue"] = "0.5", + ["exposureAdaptation"] = "progressive", + ["exposureSpeedUp"] = "2", + ["exposureSpeedDown"] = "1", ["cameraReconstruction"] = "temporal-reprojection.v1", ["temporalQuality"] = "high", ["temporalHistoryBlend"] = "0.99",