Crates.io | bevy_skybox |
lib.rs | bevy_skybox |
version | 0.5.0 |
source | src |
created_at | 2021-01-05 22:02:10.388293 |
updated_at | 2021-07-21 23:33:43.644511 |
description | A skybox from an image for bevyengine.org |
homepage | |
repository | https://github.com/jomala/bevy_skybox/ |
max_upload_size | |
id | 332477 |
size | 108,357 |
Provides a skybox from a given image that can be attached to a bevy camera.
Assumes that the image is of the same format as the examples given in the assets
folder:
a net of six squares in the same shape as these examples, exactly aligned with the image
rectangle and filling most of its width and height.
The usage is documented in the module comment at the top of src/lib.rs
.
To demonstrate this, examples\board_flyover.rs
puts a skybox around a flat "board". Key/mouse camera movement is provided by bevy_fly_camera
.
Skybox images come from the following sources.
Many skybox are available as net images. bevy_skybox
assumes that the image is a specific net
of a cube.
The assumptions about the image are listed in src/image.rs
, but the image is measured like this.
Build using stable
or nightly
toolchain, e.g.
cargo run --release --example board_flyover