mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-26 05:58:58 -06:00
* Fade fixes * Clean up RenderableSphere. Add orientation properties. * Sane defaults for Digital Universe * Clean up New Horizons related code * Add basic scene * Add ability to initialize rotation as quaternion and mat3 * Adapt legacy code to new Renderable interface
35 lines
1013 B
Plaintext
35 lines
1013 B
Plaintext
local assetHelper = asset.require('util/asset_helper')
|
|
|
|
local i = 1
|
|
for z=1,3 do
|
|
for y=1,3 do
|
|
for x=1,3 do
|
|
local sphere = {
|
|
Identifier = "ExampleSphere" .. i,
|
|
Transform = {
|
|
Translation = {
|
|
Type = "StaticTranslation",
|
|
Position = {x, y, z}
|
|
}
|
|
},
|
|
Renderable = {
|
|
Type = "RenderableSphere",
|
|
Enabled = true,
|
|
Size = 0.20 + i * 0.01,
|
|
Segments = 80,
|
|
Opacity = 1,
|
|
Texture = "${DATA}/test2.jpg",
|
|
Orientation = "Both",
|
|
},
|
|
GUI = {
|
|
Name = "Test Sphere " .. i,
|
|
Path = "/Other/Spheres"
|
|
}
|
|
}
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, { sphere })
|
|
i = i + 1
|
|
end
|
|
end
|
|
end
|
|
|