Allow cull_mode to be reflected so crates like bevy_materialize can set it
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 4d 8m
- Merged PRs (30d)
- 147
Description
## What problem does this solve or what need does it fill?
I am using bevy_materialize and i have trees whose leaves have a material defined in Toml.
```
type = "DoodadMaterial"
[material.base]
base_color_texture="/textures/material_overrides/nature/MeadowFoliageAtlas.png"
base_color = { LinearRgba = [0.33,0.55,0.22,1.0] }
perceptual_roughness= 0.9
uv_transform = { texture_subset_dimensions = { offset = [0,0], dimensions = [512, 512], base_texture_dimensions = [2048,2048] } }
double_sided= true
alpha_mode= {Mask = 0.5 }
[material.extension.custom_uniforms]
uv_input_scale= 1.0
```
At this point, the leaves have a cull_mode of BACK which absolutely sucks because it means my leaves dont show two-sided properly.
## What solution would you like?
```
#[reflect(ignore, clone)]
pub cull_mode: Option,
```
Please make cull_mode not be ignored by reflect, allow it to be serialized and deserialized. !
Alternatively, make cull_mode be forced to NONE when double_sided is true.
Contributor guide
Assessment
This issue has not been assessed yet.