A compact render plugin to the Amethyst game engine which renders different space elements. It currently supports planet rendering (well, the atmosphere), star/sun rendering and background cosmos rendering (lots of tiny stars).
Add the required plugins to your Amethyst render bundle as shown: ```rust use space_render::{ cosmos::{Cosmos, CosmosRender}, planet::PlanetRender, star::StarRender, };
let displayconfigpath = app_root.join("config\display.ron");
let gamedata = GameDataBuilder::default()
// Add all your other bundles here:
// ...
// Setup the rendering bundle.
.withbundle(
RenderingBundle::CosmosRender
plugin in our rendering bundle in order to render the background stars.
.withplugin(CosmosRender::new(Some(Cosmos::default()))),
// This is the atmosphere renderer.
.withplugin(PlanetRender::new()),
// This renders the 'sun' (basicall just a billboard).
// It does the job far away but it doesn't really work if you get up close.
// May fix if needed in the future.
.with_plugin(StarRender::new()),
)?;
```