A procedural sky plugin for the Bevy game engine.
"basic" Example
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
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)