mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
1695937749
* Remove Logarithmic ViewOption and instead always use exponent of NumericalProperty + set exponent of some renderables' properties * Add MinMaxRange ViewOption for Vec2 properties * Add MinMaxRange viewoption to some existing vec2 properties and combine some other related properties to be able to utilize it. For example Min and Max label sizes, fade in/out distances, inner and outer radius. OBS! Includes renaming several properties (**breaking change**) * Refactor and document labels code. OBS! Includes renaming several properties (**breaking change**) * Add comments for some assets that have labels that are not working correctly Renderables with rename properties: RenderableLabels , GlobeLabelsComponent, RenderableBillboardsCloud, RenderableDUMeshes, RenderableRadialGrid )
53 lines
1008 B
Plaintext
53 lines
1008 B
Plaintext
local assetHelper = asset.require('util/asset_helper')
|
|
|
|
local scale = 149597870700 -- 1 AU
|
|
|
|
local circle = {
|
|
Identifier = "ExampleCircle",
|
|
Transform = {
|
|
Scale = {
|
|
Type = "StaticScale",
|
|
Scale = scale
|
|
}
|
|
},
|
|
Renderable = {
|
|
Type = "RenderableRadialGrid",
|
|
Color = { 0.6, 0.6, 0.8 },
|
|
LineWidth = 3.0,
|
|
GridSegments = { 1, 1 },
|
|
CircleSegments = 64,
|
|
Radii = { 0.0, 1.0 }
|
|
},
|
|
GUI = {
|
|
Name = "Example Circle",
|
|
Path = "/Examples/Primitives"
|
|
}
|
|
}
|
|
|
|
local ellipse = {
|
|
Identifier = "ExampleEllipse",
|
|
Transform = {
|
|
Scale = {
|
|
Type = "NonUniformStaticScale",
|
|
Scale = { 1.5, 1.0, 1.0 }
|
|
}
|
|
},
|
|
Renderable = {
|
|
Type = "RenderableRadialGrid",
|
|
Color = { 0.6, 0.8, 0.6 },
|
|
LineWidth = 3.0,
|
|
GridSegments = { 1, 1 },
|
|
CircleSegments = 64,
|
|
Radii = { 0.0, scale }
|
|
},
|
|
GUI = {
|
|
Name = "Example Ellipse",
|
|
Path = "/Examples/Primitives"
|
|
}
|
|
}
|
|
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
|
circle,
|
|
ellipse
|
|
})
|