bevy/examples/3d
Zhixing Zhang d9fb61d474 Wireframe Rendering Pipeline (#562)
This PR implements wireframe rendering.

Usage:

This is now ready as soon as #1401 gets merged.


Usage:

```rust
    app
        .insert_resource(WgpuOptions {
            name: Some("3d_scene"),
            features: WgpuFeatures::NON_FILL_POLYGON_MODE,
            ..Default::default()
        }) // To enable the NON_FILL_POLYGON_MODE feature
        .add_plugin(WireframePlugin)
        .run();

```

Now we just need to add the Wireframe component on an entity, and it'll draw. its wireframe.


We can also enable wireframe drawing globally by setting the global property in the `WireframeConfig` resource to `true`.



Co-authored-by: Zhixing Zhang <me@neoto.xin>
2021-03-04 01:23:24 +00:00
..
3d_scene.rs Rename add_resource to insert_resource (#1356) 2021-01-30 12:55:13 -08:00
load_gltf.rs Rename add_resource to insert_resource (#1356) 2021-01-30 12:55:13 -08:00
msaa.rs Rename add_resource to insert_resource (#1356) 2021-01-30 12:55:13 -08:00
orthographic.rs 3D OrthographicProjection improvements + new example (#1361) 2021-01-31 16:22:06 -08:00
parenting.rs Rename add_resource to insert_resource (#1356) 2021-01-30 12:55:13 -08:00
spawner.rs OrthographicProjection scaling mode + camera bundle refactoring (#400) 2021-01-30 02:31:03 -08:00
texture.rs Add support for gltf::Material::unlit (#1341) 2021-01-31 17:13:16 -08:00
update_gltf_scene.rs Rename add_resource to insert_resource (#1356) 2021-01-30 12:55:13 -08:00
wireframe.rs Wireframe Rendering Pipeline (#562) 2021-03-04 01:23:24 +00:00
z_sort_debug.rs Fix the z_sort_debug example from #1361 (#1419) 2021-02-09 12:37:49 -08:00