Files
OpenSpace/data/assets/examples/terra_texture_spout.asset
T
Alexander Bock 0b91fd2642 Global cleanup pass over asset files
- Lua style guides
- FrameConversions
- unloadMission, Add mission identifiers
2024-08-14 10:22:20 +02:00

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)