bevy/examples/3d
Charles 6b34e81f00 add a 3d lines example (#5319)
# Objective

- Showcase how to use a `Material` and `Mesh` to spawn 3d lines

![image](https://user-images.githubusercontent.com/8348954/179034236-ebc07f90-3eb5-46cc-8fc1-be7e6bf983fb.png)

## Solution

- Add an example using a simple `Material` and `Mesh` definition to draw a 3d line
	- Shows how to use `LineList` and `LineStrip` in combination with a specialized `Material`

## Notes

This isn't just a primitive shape because it needs a special Material, but I think it's a good showcase of the power of the `Material` and `AsBindGroup` abstractions. All of this is easy to figure out when you know these options are a thing, but I think they are hard to discover which is why I think this should be an example and not shipped with bevy.

Co-authored-by: Charles <IceSentry@users.noreply.github.com>
2022-07-15 22:37:05 +00:00
..
3d_scene.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
lighting.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
lines.rs add a 3d lines example (#5319) 2022-07-15 22:37:05 +00:00
load_gltf.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
msaa.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
orthographic.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
parenting.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
pbr.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
render_to_texture.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
shadow_biases.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
shadow_caster_receiver.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
shapes.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
spherical_area_lights.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
split_screen.rs add a SceneBundle to spawn a scene (#2424) 2022-06-09 20:34:09 +00:00
spotlight.rs Spotlights (#4715) 2022-07-08 19:57:43 +00:00
texture.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
transparency_3d.rs transparency_3d example tweaks (#4968) 2022-06-23 18:36:07 +00:00
two_passes.rs Add "depth_load_op" configuration to 3d Cameras (#4904) 2022-06-07 22:22:10 +00:00
update_gltf_scene.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
vertex_colors.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
wireframe.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00