@@ -3,7 +3,9 @@ use bevy_app::prelude::*;
3
3
use bevy_asset:: { load_internal_asset, HandleUntyped } ;
4
4
use bevy_derive:: Deref ;
5
5
use bevy_ecs:: prelude:: * ;
6
- use bevy_reflect:: TypeUuid ;
6
+ use bevy_reflect:: {
7
+ std_traits:: ReflectDefault , FromReflect , Reflect , ReflectFromReflect , TypeUuid ,
8
+ } ;
7
9
use bevy_render:: {
8
10
extract_component:: { ExtractComponent , ExtractComponentPlugin } ,
9
11
prelude:: Camera ,
@@ -19,7 +21,8 @@ mod node;
19
21
20
22
pub use node:: FxaaNode ;
21
23
22
- #[ derive( Eq , PartialEq , Hash , Clone , Copy ) ]
24
+ #[ derive( Reflect , FromReflect , Eq , PartialEq , Hash , Clone , Copy ) ]
25
+ #[ reflect( FromReflect , PartialEq , Hash ) ]
23
26
pub enum Sensitivity {
24
27
Low ,
25
28
Medium ,
@@ -40,7 +43,8 @@ impl Sensitivity {
40
43
}
41
44
}
42
45
43
- #[ derive( Component , Clone , ExtractComponent ) ]
46
+ #[ derive( Reflect , FromReflect , Component , Clone , ExtractComponent ) ]
47
+ #[ reflect( Component , FromReflect , Default ) ]
44
48
#[ extract_component_filter( With <Camera >) ]
45
49
pub struct Fxaa {
46
50
/// Enable render passes for FXAA.
0 commit comments