• Stars
    star
    266
  • Rank 154,103 (Top 4 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created about 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A procedural sky plugin for bevy

bevy_atmosphere logo

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

A procedural sky plugin for the Bevy game engine.

"basic" Example

basic example image

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

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(AtmospherePlugin)
        .add_startup_system(setup)
        .run();
}

fn setup(mut commands: Commands) {
    commands.spawn((Camera3dBundle::default(), AtmosphereCamera::default()));
}

"cycle" Example

cycle example image

Getting Started

To learn more, read the docs or check out the examples.

For more information on the technicalities, you can check out the technical docs or check out my blog.

🚧 Warning: Incompatible with WebGL 🚧

Versions 0.4 and higher break compatibility with WebGL by using a compute shader for efficiency. WebGPU should resolve this when shipped.

As of writing, Bevy uses WebGL internally. A custom fork can be used to enable WebGPU in Bevy and feature flags can be used to enable WebGPU in most browsers.

License

bevy_atmosphere is dual-licensed under MIT and Apache-2.0! That means you can choose to use bevy_atmosphere under either for your project.

0.6 Change Log

  • Updated bevy to 0.10
  • Updated bevy_spectator to 0.2 (for examples)