SizeReferenceTileProvider
Inherits TileProvider
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector3 |
Yes |
Asset Examples
1local globe = asset.require("../../moon")
2
3
4
5local Layer = {
6 Identifier = "Size_Reference",
7 Name = "Size Reference",
8 Enabled = asset.enabled,
9 Type = "SizeReferenceTileProvider",
10 Radii = globe.Moon.Renderable.Radii
11}
12
13
14asset.onInitialize(function()
15 openspace.globebrowsing.addLayer(globe.Moon.Identifier, "Overlays", Layer)
16end)
17
18asset.onDeinitialize(function()
19 openspace.globebrowsing.deleteLayer(globe.Moon.Identifier, "Overlays", Layer)
20end)
21
22asset.export("layer", Layer)
23
24
25
26asset.meta = {
27 Name = "Moon Size Reference",
28 Description = "Size reference layer for Moon globe",
29 Author = "OpenSpace Team",
30 URL = "http://openspaceproject.com",
31 License = "MIT license"
32}