mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-28 06:59:46 -06:00
* Updating all assets to new coding style * Cleaning up asset files * Moving default_actions and default_keybindings files * Changing procedural globes to explicitly specified globes * Move Spice loading explicitly to the initialize part and also deinitialize * Removing unused asset files * Removing asset_helper * Removing scale_model_helper asset * Removing script_scheduler_helper * Removing testing_keybindings * Remove procedural_globe
30 lines
697 B
Lua
30 lines
697 B
Lua
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
|
|
|
|
|
|
|
local RenderablePlaneImageOnline = {
|
|
Identifier = "RenderablePlaneImageOnline",
|
|
Parent = transforms.SolarSystemBarycenter.Identifier,
|
|
Renderable = {
|
|
Type = "RenderablePlaneImageOnline",
|
|
Size = 3.0E11,
|
|
Origin = "Center",
|
|
Billboard = true,
|
|
URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg"
|
|
},
|
|
GUI = {
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(RenderablePlaneImageOnline)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(RenderablePlaneImageOnline)
|
|
end)
|
|
|
|
asset.export(RenderablePlaneImageOnline)
|