bevy_starfield

Crates.iobevy_starfield
lib.rsbevy_starfield
version0.1.1
sourcesrc
created_at2023-04-02 22:04:04.6321
updated_at2023-04-03 08:22:04.031876
descriptionA procedural night sky plugin for bevy
homepagehttps://github.com/fintelia/bevy_starfield
repositoryhttps://github.com/fintelia/bevy_starfield
max_upload_size
id828638
size250,184
Bertie (github:cryspen:bertie)

documentation

https://docs.rs/bevy_starfield

README

bevy_starfield

bevy Crates.io Crates.io docs.rs MIT/Apache 2.0

A procedural night sky plugin for the Bevy game engine.

Cube Example Screenshot

Minimal Example

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());
}

License

bevy_starfield is dual-licensed under MIT and Apache-2.0. You may use it under either at your option.

Credits

The star data included with this crate is sourced from the Yale Bright Star Catalog.

Commit count: 13

cargo fmt