Open
Description
What problem does this solve or what need does it fill?
There are three types implementing Material
in bevy:
StandardMaterial
ExtendedMaterial
WireframeMaterial
The former two implement Reflect
, while the latter does not. I think this is an oversight.
The same is true for Material2d
:
ColorMaterial
derivesReflect
, whileWireframe2dMaterial
does not.
What solution would you like?
Since the fields of WireframeMaterial
and Wireframe2dMaterial
are rather trivial, a simple #[derive(Reflect)]
should be enough, mirroring StandardMaterial
and ColorMaterial
.
What alternative(s) have you considered?
Just don't support WireframeMaterial, but I think it'd be good for debugging purposes.