Crate bevy_skybox[−][src]
Expand description
A skybox plugin for processing skybox images and projecting them relative to the camera.
Example
use bevy::prelude::*; use bevy_skybox::{SkyboxPlugin, SkyboxCamera}; fn setup(mut commands: Commands) { commands .spawn() .insert_bundle(PerspectiveCameraBundle::default()) .insert(SkyboxCamera); } fn main() { App::build() .add_plugins(DefaultPlugins) .add_startup_system(setup.system()) .add_plugin(SkyboxPlugin::from_image_file("sky1.png")) .run(); }
Structs
The SkyboxBox
tag attached to the skybox mesh entity.
The SkyboxCamera
tag attached to the camera (Translation) entity that
triggers the skybox to move with the camera.
The SkyboxPlugin
object acts as both the plugin and the resource providing the image name.