mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 09:20:26 -05:00
5008aa7cd7
- Make the SourceType and DestinationType parameters required in the DashboardItemAngle - Shift the "UTC" string in the DashboardDate from the FormatString to the TimeFormat - Make the SourceType and DestinationType parameters for the DashboardItemDistance required - Add new "Deltatime" option to the DashboardItemFramerate. Add examples for the DashboardItemFramerate - Fix issue where the inputstate would not update if no option was selected - Automatically disable simplification if a unit is requested in the asset for a DashboardItemSimulationIncrement or DashboardItemVelocity
25 lines
571 B
Lua
25 lines
571 B
Lua
-- Basic
|
|
-- This example shows how to create a textured plane in 3D space, where the texture is
|
|
-- loaded from a local file on disk.
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePlaneImageLocal_Example",
|
|
Renderable = {
|
|
Type = "RenderablePlaneImageLocal",
|
|
Size = 3.0E11,
|
|
Texture = openspace.absPath("${DATA}/test2.jpg")
|
|
},
|
|
GUI = {
|
|
Name = "RenderablePlaneImageLocal - Basic",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|