mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
Fix broken light pollution update
Broke in DU Update #3335 due to updated identifiers
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user