Uses Rayleigh and Mie scattering to simulate a realistic sky.
```rust use bevy::prelude::; use bevy_atmosphere::prelude::;
fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(AtmospherePlugin) .addstartupsystem(setup) .run(); }
fn setup(mut commands: Commands) { commands .spawn_bundle(Camera3dBundle::default()) .insert(AtmosphereCamera(None)); } ```
Atmosphere
resource with custom values.AtmosphereCamera
component, which holds an optional render layer for the spawned skybox to be on.ATMOSPHERE_INIT
startup stage, which can be disabled by turning off the "automatic" feature.AtmosphereSkyBox
component. Only skyboxes with the component and that have a parent with AtmosphereCamera
will have their rotation corrected.AtmosphereSettings
resource and set the resolution
field (which should be a multiple of 8). This could be used as part of quality settings in games.