mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 20:21:24 -06:00
* Implement new RenderableTrails as abstract base class - Implement RenderableTrailsOrbit and RenderableTrailsTrajectory as concrete instances Remove old RenderableTrails and RenderableTrailsNew classes Adapt mod files to the new structure * Addressed Pull Request comments
62 lines
1.7 KiB
Modula-2
62 lines
1.7 KiB
Modula-2
return {
|
|
-- Moon module
|
|
{
|
|
Name = "Moon",
|
|
Parent = "EarthBarycenter",
|
|
Renderable = {
|
|
Type = "RenderablePlanet",
|
|
Frame = "IAU_MOON",
|
|
Body = "MOON",
|
|
Geometry = {
|
|
Type = "SimpleSphere",
|
|
Radius = { 1.737, 6},
|
|
Segments = 100
|
|
},
|
|
Shadow_Group = {
|
|
Source1 = {
|
|
Name = "Sun",
|
|
Radius = {696.3, 6}
|
|
},
|
|
Caster1 = {
|
|
Name = "Earth",
|
|
Radius = {6.371, 6}
|
|
},
|
|
},
|
|
Textures = {
|
|
Type = "simple",
|
|
Color = "textures/Moon16K.dds",
|
|
--Color = "textures/moonmap4k.jpg",
|
|
},
|
|
},
|
|
Transform = {
|
|
Translation = {
|
|
Type = "SpiceTranslation",
|
|
Body = "MOON",
|
|
Observer = "EARTH BARYCENTER",
|
|
Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
|
},
|
|
Rotation = {
|
|
Type = "SpiceRotation",
|
|
SourceFrame = "IAU_MOON",
|
|
DestinationFrame = "ECLIPJ2000"
|
|
},
|
|
},
|
|
},
|
|
-- MoonTrail module
|
|
{
|
|
Name = "MoonTrail",
|
|
Parent = "EarthBarycenter",
|
|
Renderable = {
|
|
Type = "RenderableTrailOrbit",
|
|
Translation = {
|
|
Type = "SpiceTranslation",
|
|
Body = "MOON",
|
|
Observer = "EARTH BARYCENTER",
|
|
},
|
|
Color = { 0.5, 0.3, 0.3 },
|
|
Period = 27,
|
|
Resolution = 1000
|
|
},
|
|
}
|
|
}
|