Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add 3d shapes example #4613

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/3d/shapes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! This example demonstrates the built-in 3d shapes in Bevy.
//! The scene includes a patterned texture and a rotation for visualizing the normals and UVs.

use bevy::{
prelude::*,
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
Expand All @@ -12,6 +15,7 @@ fn main() {
.run();
}

// A marker component for our shapes so we can query them separately from the ground plane
rparrett marked this conversation as resolved.
Show resolved Hide resolved
#[derive(Component)]
struct Shape;

Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Example | File | Description
`texture` | [`3d/texture.rs`](./3d/texture.rs) | Shows configuration of texture materials
`update_gltf_scene` | [`3d/update_gltf_scene.rs`](./3d/update_gltf_scene.rs) | Update a scene from a gltf file, either by spawning the scene as a child of another entity, or by accessing the entities of the scene
`wireframe` | [`3d/wireframe.rs`](./3d/wireframe.rs) | Showcases wireframe rendering
`shapes` | [`3d/shapes.rs`](./3d/shapes.rs) | A scene showcasing more built-in shapes
`shapes` | [`3d/shapes.rs`](./3d/shapes.rs) | A scene showcasing the built-in 3D shapes

## Animation

Expand Down