From 79dce8acfac120abf4597992ca854890d9146be0 Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Thu, 18 Jul 2024 14:09:30 +0200 Subject: [PATCH] Fix broken light pollution update Broke in DU Update #3335 due to updated identifiers --- data/assets/nightsky/light_pollution.asset | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/data/assets/nightsky/light_pollution.asset b/data/assets/nightsky/light_pollution.asset index 4dba3318bf..c8f7269839 100644 --- a/data/assets/nightsky/light_pollution.asset +++ b/data/assets/nightsky/light_pollution.asset @@ -62,7 +62,7 @@ local SetLightPollutionLevel1 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.9, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.9, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.01, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 6.1, 0.3) ]], @@ -78,7 +78,7 @@ local SetLightPollutionLevel2 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.8, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.8, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.02, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 6.0, 0.3) ]], @@ -94,7 +94,7 @@ local SetLightPollutionLevel3 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.7, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.7, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.03, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.9, 0.3) ]], @@ -110,7 +110,7 @@ local SetLightPollutionLevel4 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.6, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.6, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.04, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.8, 0.3) ]], @@ -126,7 +126,7 @@ local SetLightPollutionLevel5 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.5, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.5, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.05, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.8, 0.4) ]], @@ -142,7 +142,7 @@ local SetLightPollutionLevel6 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.4, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.4, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.06, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.7, 0.4) ]], @@ -158,7 +158,7 @@ local SetLightPollutionLevel7 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.3, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.3, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.07, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.6, 0.4) ]], @@ -174,7 +174,7 @@ local SetLightPollutionLevel8 = { openspace.globebrowsing.setNodePositionFromCamera("LightPollutionSphere", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.2, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.2, 0.3) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.08, 0.5) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.5, 0.4) ]], @@ -191,7 +191,7 @@ local SetLightPollutionLevel9 = { openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Enabled", true) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 1.0) openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Opacity", 0.09, 0.5) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 0.1, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 0.1, 0.3) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 5.4, 0.4) ]], Documentation = "Adds a light pollution sphere and lowers the level of the stars by 0.9", @@ -205,7 +205,7 @@ local UndoLightPollution = { Command = [[ openspace.setPropertyValueSingle("Scene.LightPollutionSphere.Renderable.Fade", 0.0, 0.3) openspace.setPropertyValueSingle("Scene.Stars.Renderable.MagnitudeExponent", 6.2, 0.3) - openspace.setPropertyValueSingle("Scene.MilkyWay.Renderable.Fade", 1.0, 0.3) + openspace.setPropertyValueSingle("Scene.AllSky_Visible.Renderable.Fade", 1.0, 0.3) ]], Documentation = "Hides the light pollution sphere and resets the stars", GuiPath = "/Night Sky/Light Pollution",