mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
0b91fd2642
- Lua style guides - FrameConversions - unloadMission, Add mission identifiers
22 lines
486 B
Lua
22 lines
486 B
Lua
local globe = asset.require("scene/solarsystem/planets/earth/earth")
|
|
|
|
|
|
|
|
local Layer = {
|
|
Identifier = "TextureSpout",
|
|
Enabled = asset.enabled,
|
|
SpoutName = "SPOUT_TERRA_RECEIVER",
|
|
Type = "SpoutImageProvider"
|
|
}
|
|
|
|
|
|
asset.onInitialize(function()
|
|
openspace.globebrowsing.addLayer(globe.Earth.Identifier, "ColorLayers", Layer)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.globebrowsing.deleteLayer(globe.Earth.Identifier, "ColorLayers", Layer)
|
|
end)
|
|
|
|
asset.export("layer", Layer)
|