bevy/crates
Carter Anderson 963e2f08a2 Materials and MaterialPlugin (#3428)
This adds "high level" `Material` and `SpecializedMaterial` traits, which can be used with a `MaterialPlugin<T: SpecializedMaterial>`. `MaterialPlugin` automatically registers the appropriate resources, draw functions, and queue systems. The `Material` trait is simpler, and should cover most use cases. `SpecializedMaterial` is like `Material`, but it also requires defining a "specialization key" (see #3031). `Material` has a trivial blanket impl of `SpecializedMaterial`, which allows us to use the same types + functions for both.

This makes defining custom 3d materials much simpler (see the `shader_material` example diff) and ensures consistent behavior across all 3d materials (both built in and custom). I ported the built in `StandardMaterial` to `MaterialPlugin`. There is also a new `MaterialMeshBundle<T: SpecializedMaterial>`, which `PbrBundle` aliases to.
2021-12-25 21:45:43 +00:00
..
bevy_app make sub_app return an &App and add sub_app_mut() -> &mut App (#3309) 2021-12-24 06:57:30 +00:00
bevy_asset Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_audio Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_core Rename fixed timestep state and add a test (#3260) 2021-12-12 21:26:40 +00:00
bevy_core_pipeline make sub_app return an &App and add sub_app_mut() -> &mut App (#3309) 2021-12-24 06:57:30 +00:00
bevy_crevice Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_derive Remove vestigial derives (#3343) 2021-12-18 00:09:24 +00:00
bevy_diagnostic Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dylib Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dynamic_plugin Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ecs add tracing spans for parallel executor and system overhead (#3416) 2021-12-23 19:03:44 +00:00
bevy_ecs_compile_fail_tests Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_gilrs enable wasm-bindgen feature on gilrs (#3420) 2021-12-23 19:19:14 +00:00
bevy_gltf Only bevy_render should depend directly on wgpu (#3393) 2021-12-20 20:50:52 +00:00
bevy_input Add documentation and tests to AxisSettings (#3303) 2021-12-18 20:00:18 +00:00
bevy_internal enable Webgl2 optimisation in pbr under feature (#3291) 2021-12-22 20:59:48 +00:00
bevy_log Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_macro_utils Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_math Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_pbr Materials and MaterialPlugin (#3428) 2021-12-25 21:45:43 +00:00
bevy_reflect Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_render re-export BufferBinding and BufferDescriptor (#3429) 2021-12-24 16:53:49 +00:00
bevy_scene fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
bevy_sprite make sub_app return an &App and add sub_app_mut() -> &mut App (#3309) 2021-12-24 06:57:30 +00:00
bevy_tasks Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_text make sub_app return an &App and add sub_app_mut() -> &mut App (#3309) 2021-12-24 06:57:30 +00:00
bevy_transform fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
bevy_ui Add Visibility component to UI (#3426) 2021-12-24 07:10:12 +00:00
bevy_utils Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_window Added set_cursor_icon(...) to Window (#3395) 2021-12-20 22:04:45 +00:00
bevy_winit Added set_cursor_icon(...) to Window (#3395) 2021-12-20 22:04:45 +00:00