Commit ff89d786 authored by Emma Broman's avatar Emma Broman
Browse files

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

Showing with 3 additions and 3 deletions
+3 -3
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment