| Crates.io | bevy_starfield |
| lib.rs | bevy_starfield |
| version | 0.1.1 |
| created_at | 2023-04-02 22:04:04.6321+00 |
| updated_at | 2023-04-03 08:22:04.031876+00 |
| description | A procedural night sky plugin for bevy |
| homepage | https://github.com/fintelia/bevy_starfield |
| repository | https://github.com/fintelia/bevy_starfield |
| max_upload_size | |
| id | 828638 |
| size | 250,184 |
A procedural night sky plugin for the Bevy game engine.

use bevy::prelude::*;
use bevy_starfield::StarfieldPlugin;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(StarfieldPlugin)
.add_startup_system(setup)
.insert_resource(GameUnitsToCelestial {
origin_latitude: 51.4778,
origin_longitude: -0.0014,
..Default::default()
})
.run();
}
fn setup(mut commands: Commands) {
commands.spawn(Camera3dBundle::default());
}
bevy_starfield is dual-licensed under MIT and Apache-2.0. You may use it under either at your option.
The star data included with this crate is sourced from the Yale Bright Star Catalog.