Crate bevy_skybox

Source
Expand description

A skybox plugin for processing skybox images and projecting them relative to the camera.

§Example

use bevy::prelude::*;
use bevy_skybox::{SkyboxCamera, SkyboxPlugin};

fn main() {
   App::build()
       .add_plugins(DefaultPlugins)
       .add_systems(Startup, setup)
       .add_plugin(SkyboxPlugin::from_image_file("sky1.png"))
       .run();

fn setup(mut commands: Commands) {
   commands.spawn((
       Camera3d,
       SkyboxCamera,
   ));}

Structs§

SkyboxCamera
The SkyboxCamera tag attached to the camera triggers the skybox to be added to the camera.
SkyboxPlugin
The SkyboxPlugin object acts as both the plugin and the resource providing the image name.