Use Sun position instead of SSB in Sun light source (see #2223)

This commit is contained in:
Emma Broman
2022-09-09 11:34:56 +02:00
parent 877e0fb61f
commit ff89d7860c

View File

@@ -48,7 +48,7 @@ local SunLabel = {
local LightSource = {
Type = "SceneGraphLightSource",
Identifier = "Sun",
Node = transforms.SolarSystemBarycenter.Identifier,
Node = Sun.Identifier,
Intensity = 1.0
}
@@ -56,12 +56,12 @@ asset.onInitialize(function()
openspace.addSceneGraphNode(Sun)
openspace.addSceneGraphNode(SunLabel)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(SunLabel)
openspace.removeSceneGraphNode(Sun)
end)
asset.export(Sun)
asset.export(SunLabel)
asset.export("LightSource", LightSource)