Crate bevy_atmosphere[][src]

Expand description

A procedural sky plugin for bevy

Example

use bevy::prelude::*;
use bevy_atmosphere::*;

fn main() {
    App::build()
        .insert_resource(bevy_atmosphere::AtmosphereMat::default()) // Default Earth sky
        .add_plugins(DefaultPlugins)
        .add_plugin(bevy_atmosphere::AtmospherePlugin { dynamic: false }) // Set to false since we aren't changing the sky's appearance
        .add_startup_system(setup.system())
        .run();
}

fn setup(mut commands: Commands) {
    commands.spawn_bundle(PerspectiveCameraBundle::default());
}

Structs

Controls the appearance of the sky

Sets up the atmosphere and the systems that control it