bevy/crates/bevy_pbr/src
Hennadii Chernyshchyk 534cad611d Add reflection for resources (#5175)
# Objective

We don't have reflection for resources.

## Solution

Introduce reflection for resources.

Continues #3580 (by @Davier), related to #3576.

---

## Changelog

### Added

* Reflection on a resource type (by adding `ReflectResource`):

```rust
#[derive(Reflect)]
#[reflect(Resource)]
struct MyResourse;
```

### Changed

* Rename `ReflectComponent::add_component` into `ReflectComponent::insert_component` for consistency.

## Migration Guide

* Rename `ReflectComponent::add_component` into `ReflectComponent::insert_component`.
2022-07-04 13:04:20 +00:00
..
render Add inverse_projection and inverse_view_proj fields to shader view uniform (#5119) 2022-07-04 21:04:16 +08:00
alpha.rs Derive default for enums where possible (#5158) 2022-07-01 03:42:15 +00:00
bundle.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
lib.rs Add reflection for resources (#5175) 2022-07-04 13:04:20 +00:00
light.rs Add reflection for resources (#5175) 2022-07-04 13:04:20 +00:00
material.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
pbr_material.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
wireframe.rs Add reflection for resources (#5175) 2022-07-04 13:04:20 +00:00