mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 06:49:09 -06:00
Use Sun position instead of SSB in Sun light source (see #2223)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user