Crate bevy_skybox[][src]

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(commands: Commands) {
	commands
		.spawn_bundle(Camera3dBundle::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

SkyboxBox

The SkyboxBox tag attached to the skybox mesh entity.

SkyboxCamera

The SkyboxCamera tag attached to the camera (Translation) entity that triggers the skybox to move with the camera.

SkyboxPlugin

The SkyboxPlugin object acts as both the plugin and the resource providing the image name.