mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-20 19:21:00 -06:00
Added label for speed of light
This commit is contained in:
@@ -10,6 +10,7 @@ asset.info = {
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
local earthTransforms = asset.require('scene/solarsystem/planets/earth/transforms')
|
||||
|
||||
openspace.setPropertyValueSingle("Modules.Space.ShowExceptions", false)
|
||||
--openspace.setPropertyValueSingle("Scene.NeptuneTrail.Renderable.Enabled", false)
|
||||
@@ -28,5 +29,34 @@ local speedofLight = {
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { speedofLight})
|
||||
local SpeedOfLightLabel = {
|
||||
Identifier = "LightLabel",
|
||||
Parent = earthTransforms.EarthBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Enabled = false,
|
||||
Type = "RenderableLabels",
|
||||
LabelText = "Speed of light",
|
||||
FontSize = 80.0,
|
||||
LabelSize = 8.6,
|
||||
LabelMaxSize = 80.0,
|
||||
LabelMinSize = 1.0,
|
||||
LabelOrientationOption = "Camera View Direction",
|
||||
BlendMode = "Additive",
|
||||
--TransformationMatrix = {
|
||||
-- 1.0, 0.0, 0.0, 0.0,
|
||||
-- 0.0, 0.0, 0.0, 0.0,
|
||||
-- 0.0, 0.0, 0.0, 0.0,
|
||||
-- 0.0, 0.0, 0.0, 1.0
|
||||
-- },
|
||||
},
|
||||
Tag = { "solarsystem_labels" },
|
||||
GUI = {
|
||||
Name = "Speed of Light Label",
|
||||
Path = "/Solar System/Heliosphere"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { speedofLight, SpeedOfLightLabel})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user