mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-30 07:49:31 -05:00
submodule update
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
local color = {0.0, 1.0, 1.0}
|
||||
|
||||
-- @TODO (emmbr 2020-02-03) Potential threading issue later on? This will run on the main thread
|
||||
local singeColorTexturePath = openspace.createSingeColorImage("example_ring_color", color)
|
||||
|
||||
local BasicDisc = {
|
||||
Identifier = "BasicDisc",
|
||||
Parent = "Root",
|
||||
Renderable = {
|
||||
Type = "RenderableDisc",
|
||||
Texture = singeColorTexturePath,
|
||||
Size = 1e10,
|
||||
Width = 0.5
|
||||
},
|
||||
GUI = {
|
||||
Name = "Basic Disc",
|
||||
Path = "/Examples/Discs"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
BasicDisc
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
local scale = 3E11
|
||||
local scale = 149597870700 -- 1 AU
|
||||
|
||||
local radialGrid = {
|
||||
Identifier = "ExampleRadialGrid",
|
||||
@@ -14,9 +14,10 @@ local radialGrid = {
|
||||
Renderable = {
|
||||
Type = "RenderableRadialGrid",
|
||||
Opacity = 0.8,
|
||||
GridColor = {0.6, 1.0, 0.7},
|
||||
Color = { 0.6, 1.0, 0.7 },
|
||||
LineWidth = 3.0,
|
||||
GridSegments = {3, 4},
|
||||
GridSegments = { 3, 4 },
|
||||
OuterSize = 1.0,
|
||||
InnerRadius = 0.2,
|
||||
Enabled = false
|
||||
},
|
||||
@@ -36,10 +37,10 @@ local planarGrid = {
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableGrid",
|
||||
GridColor = {0.0, 1.0, 0.8},
|
||||
Color = { 0.0, 1.0, 0.8 },
|
||||
LineWidth = 2.0,
|
||||
Segments = {5, 10},
|
||||
Size = {1, 2},
|
||||
Segments = { 5, 10 },
|
||||
Size = { 1, 2 },
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
@@ -48,7 +49,51 @@ local planarGrid = {
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
radialGrid,
|
||||
planarGrid
|
||||
local sphericalGrid = {
|
||||
Identifier = "ExampleSphericalGrid",
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = scale
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableSphericalGrid",
|
||||
Color = { 1.0, 0.5, 0.2 },
|
||||
LineWidth = 2.0,
|
||||
Segments = 40,
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
Name = "Example Spherical Grid",
|
||||
Path = "/Examples/Grids"
|
||||
}
|
||||
}
|
||||
|
||||
local boxGrid = {
|
||||
Identifier = "ExampleBoxGrid",
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = scale
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableBoxGrid",
|
||||
Color = { 0.5, 0.0, 1.0 },
|
||||
LineWidth = 2.0,
|
||||
Size = { 2, 2, 2 },
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
Name = "Example Box Grid",
|
||||
Path = "/Examples/Grids"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
radialGrid,
|
||||
planarGrid,
|
||||
sphericalGrid,
|
||||
boxGrid
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user